Subversion Repositories SmartDukaan

Rev

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

Rev 7718 Rev 7957
Line 268... Line 268...
268
 
268
 
269
    public long getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
269
    public long getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
270
 
270
 
271
    public List<InTransitInventory> getInTransitInventory(long originWarehouseId) throws org.apache.thrift.TException;
271
    public List<InTransitInventory> getInTransitInventory(long originWarehouseId) throws org.apache.thrift.TException;
272
 
272
 
-
 
273
    public boolean isItemAvailableForSale(long itemId, long serialNumber, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
274
 
-
 
275
    /**
-
 
276
     * Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
-
 
277
     * 
-
 
278
     * @param date
-
 
279
     */
-
 
280
    public List<InventoryAvailability> getHistoricBadInventoryByScans(long date) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
281
 
273
  }
282
  }
274
 
283
 
275
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
284
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
276
 
285
 
277
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
286
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 362... Line 371...
362
 
371
 
363
    public void getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call> resultHandler) throws org.apache.thrift.TException;
372
    public void getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(long itemId, long physicalWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse_call> resultHandler) throws org.apache.thrift.TException;
364
 
373
 
365
    public void getInTransitInventory(long originWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInTransitInventory_call> resultHandler) throws org.apache.thrift.TException;
374
    public void getInTransitInventory(long originWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInTransitInventory_call> resultHandler) throws org.apache.thrift.TException;
366
 
375
 
-
 
376
    public void isItemAvailableForSale(long itemId, long serialNumber, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isItemAvailableForSale_call> resultHandler) throws org.apache.thrift.TException;
-
 
377
 
-
 
378
    public void getHistoricBadInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricBadInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
-
 
379
 
367
  }
380
  }
368
 
381
 
369
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
382
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
370
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
383
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
371
      public Factory() {}
384
      public Factory() {}
Line 1510... Line 1523...
1510
        return result.success;
1523
        return result.success;
1511
      }
1524
      }
1512
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInTransitInventory failed: unknown result");
1525
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInTransitInventory failed: unknown result");
1513
    }
1526
    }
1514
 
1527
 
-
 
1528
    public boolean isItemAvailableForSale(long itemId, long serialNumber, long warehouseId) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1529
    {
-
 
1530
      send_isItemAvailableForSale(itemId, serialNumber, warehouseId);
-
 
1531
      return recv_isItemAvailableForSale();
-
 
1532
    }
-
 
1533
 
-
 
1534
    public void send_isItemAvailableForSale(long itemId, long serialNumber, long warehouseId) throws org.apache.thrift.TException
-
 
1535
    {
-
 
1536
      isItemAvailableForSale_args args = new isItemAvailableForSale_args();
-
 
1537
      args.setItemId(itemId);
-
 
1538
      args.setSerialNumber(serialNumber);
-
 
1539
      args.setWarehouseId(warehouseId);
-
 
1540
      sendBase("isItemAvailableForSale", args);
-
 
1541
    }
-
 
1542
 
-
 
1543
    public boolean recv_isItemAvailableForSale() throws WarehouseServiceException, org.apache.thrift.TException
-
 
1544
    {
-
 
1545
      isItemAvailableForSale_result result = new isItemAvailableForSale_result();
-
 
1546
      receiveBase(result, "isItemAvailableForSale");
-
 
1547
      if (result.isSetSuccess()) {
-
 
1548
        return result.success;
-
 
1549
      }
-
 
1550
      if (result.wex != null) {
-
 
1551
        throw result.wex;
-
 
1552
      }
-
 
1553
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isItemAvailableForSale failed: unknown result");
-
 
1554
    }
-
 
1555
 
-
 
1556
    public List<InventoryAvailability> getHistoricBadInventoryByScans(long date) throws WarehouseServiceException, org.apache.thrift.TException
-
 
1557
    {
-
 
1558
      send_getHistoricBadInventoryByScans(date);
-
 
1559
      return recv_getHistoricBadInventoryByScans();
-
 
1560
    }
-
 
1561
 
-
 
1562
    public void send_getHistoricBadInventoryByScans(long date) throws org.apache.thrift.TException
-
 
1563
    {
-
 
1564
      getHistoricBadInventoryByScans_args args = new getHistoricBadInventoryByScans_args();
-
 
1565
      args.setDate(date);
-
 
1566
      sendBase("getHistoricBadInventoryByScans", args);
-
 
1567
    }
-
 
1568
 
-
 
1569
    public List<InventoryAvailability> recv_getHistoricBadInventoryByScans() throws WarehouseServiceException, org.apache.thrift.TException
-
 
1570
    {
-
 
1571
      getHistoricBadInventoryByScans_result result = new getHistoricBadInventoryByScans_result();
-
 
1572
      receiveBase(result, "getHistoricBadInventoryByScans");
-
 
1573
      if (result.isSetSuccess()) {
-
 
1574
        return result.success;
-
 
1575
      }
-
 
1576
      if (result.wex != null) {
-
 
1577
        throw result.wex;
-
 
1578
      }
-
 
1579
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistoricBadInventoryByScans failed: unknown result");
-
 
1580
    }
-
 
1581
 
1515
  }
1582
  }
1516
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1583
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1517
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1584
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1518
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1585
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1519
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1586
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 3124... Line 3191...
3124
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3191
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3125
        return (new Client(prot)).recv_getInTransitInventory();
3192
        return (new Client(prot)).recv_getInTransitInventory();
3126
      }
3193
      }
3127
    }
3194
    }
3128
 
3195
 
-
 
3196
    public void isItemAvailableForSale(long itemId, long serialNumber, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<isItemAvailableForSale_call> resultHandler) throws org.apache.thrift.TException {
-
 
3197
      checkReady();
-
 
3198
      isItemAvailableForSale_call method_call = new isItemAvailableForSale_call(itemId, serialNumber, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
3199
      this.___currentMethod = method_call;
-
 
3200
      ___manager.call(method_call);
-
 
3201
    }
-
 
3202
 
-
 
3203
    public static class isItemAvailableForSale_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3204
      private long itemId;
-
 
3205
      private long serialNumber;
-
 
3206
      private long warehouseId;
-
 
3207
      public isItemAvailableForSale_call(long itemId, long serialNumber, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<isItemAvailableForSale_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 {
-
 
3208
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3209
        this.itemId = itemId;
-
 
3210
        this.serialNumber = serialNumber;
-
 
3211
        this.warehouseId = warehouseId;
-
 
3212
      }
-
 
3213
 
-
 
3214
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3215
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isItemAvailableForSale", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3216
        isItemAvailableForSale_args args = new isItemAvailableForSale_args();
-
 
3217
        args.setItemId(itemId);
-
 
3218
        args.setSerialNumber(serialNumber);
-
 
3219
        args.setWarehouseId(warehouseId);
-
 
3220
        args.write(prot);
-
 
3221
        prot.writeMessageEnd();
-
 
3222
      }
-
 
3223
 
-
 
3224
      public boolean getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
3225
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3226
          throw new IllegalStateException("Method call not finished!");
-
 
3227
        }
-
 
3228
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3229
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3230
        return (new Client(prot)).recv_isItemAvailableForSale();
-
 
3231
      }
-
 
3232
    }
-
 
3233
 
-
 
3234
    public void getHistoricBadInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricBadInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
-
 
3235
      checkReady();
-
 
3236
      getHistoricBadInventoryByScans_call method_call = new getHistoricBadInventoryByScans_call(date, resultHandler, this, ___protocolFactory, ___transport);
-
 
3237
      this.___currentMethod = method_call;
-
 
3238
      ___manager.call(method_call);
-
 
3239
    }
-
 
3240
 
-
 
3241
    public static class getHistoricBadInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3242
      private long date;
-
 
3243
      public getHistoricBadInventoryByScans_call(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricBadInventoryByScans_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 {
-
 
3244
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3245
        this.date = date;
-
 
3246
      }
-
 
3247
 
-
 
3248
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3249
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHistoricBadInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3250
        getHistoricBadInventoryByScans_args args = new getHistoricBadInventoryByScans_args();
-
 
3251
        args.setDate(date);
-
 
3252
        args.write(prot);
-
 
3253
        prot.writeMessageEnd();
-
 
3254
      }
-
 
3255
 
-
 
3256
      public List<InventoryAvailability> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
3257
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3258
          throw new IllegalStateException("Method call not finished!");
-
 
3259
        }
-
 
3260
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3261
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3262
        return (new Client(prot)).recv_getHistoricBadInventoryByScans();
-
 
3263
      }
-
 
3264
    }
-
 
3265
 
3129
  }
3266
  }
3130
 
3267
 
3131
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3268
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3132
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3269
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3133
    public Processor(I iface) {
3270
    public Processor(I iface) {
Line 3182... Line 3319...
3182
      processMap.put("scanForTransferOut", new scanForTransferOut());
3319
      processMap.put("scanForTransferOut", new scanForTransferOut());
3183
      processMap.put("scanForTransferIn", new scanForTransferIn());
3320
      processMap.put("scanForTransferIn", new scanForTransferIn());
3184
      processMap.put("scanForOursThirdPartyReceive", new scanForOursThirdPartyReceive());
3321
      processMap.put("scanForOursThirdPartyReceive", new scanForOursThirdPartyReceive());
3185
      processMap.put("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse());
3322
      processMap.put("getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse", new getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse());
3186
      processMap.put("getInTransitInventory", new getInTransitInventory());
3323
      processMap.put("getInTransitInventory", new getInTransitInventory());
-
 
3324
      processMap.put("isItemAvailableForSale", new isItemAvailableForSale());
-
 
3325
      processMap.put("getHistoricBadInventoryByScans", new getHistoricBadInventoryByScans());
3187
      return processMap;
3326
      return processMap;
3188
    }
3327
    }
3189
 
3328
 
3190
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
3329
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
3191
      public getInventoryItem() {
3330
      public getInventoryItem() {
Line 4004... Line 4143...
4004
        result.success = iface.getInTransitInventory(args.originWarehouseId);
4143
        result.success = iface.getInTransitInventory(args.originWarehouseId);
4005
        return result;
4144
        return result;
4006
      }
4145
      }
4007
    }
4146
    }
4008
 
4147
 
-
 
4148
    private static class isItemAvailableForSale<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isItemAvailableForSale_args> {
-
 
4149
      public isItemAvailableForSale() {
-
 
4150
        super("isItemAvailableForSale");
-
 
4151
      }
-
 
4152
 
-
 
4153
      protected isItemAvailableForSale_args getEmptyArgsInstance() {
-
 
4154
        return new isItemAvailableForSale_args();
-
 
4155
      }
-
 
4156
 
-
 
4157
      protected isItemAvailableForSale_result getResult(I iface, isItemAvailableForSale_args args) throws org.apache.thrift.TException {
-
 
4158
        isItemAvailableForSale_result result = new isItemAvailableForSale_result();
-
 
4159
        try {
-
 
4160
          result.success = iface.isItemAvailableForSale(args.itemId, args.serialNumber, args.warehouseId);
-
 
4161
          result.setSuccessIsSet(true);
-
 
4162
        } catch (WarehouseServiceException wex) {
-
 
4163
          result.wex = wex;
-
 
4164
        }
-
 
4165
        return result;
-
 
4166
      }
-
 
4167
    }
-
 
4168
 
-
 
4169
    private static class getHistoricBadInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHistoricBadInventoryByScans_args> {
-
 
4170
      public getHistoricBadInventoryByScans() {
-
 
4171
        super("getHistoricBadInventoryByScans");
-
 
4172
      }
-
 
4173
 
-
 
4174
      protected getHistoricBadInventoryByScans_args getEmptyArgsInstance() {
-
 
4175
        return new getHistoricBadInventoryByScans_args();
-
 
4176
      }
-
 
4177
 
-
 
4178
      protected getHistoricBadInventoryByScans_result getResult(I iface, getHistoricBadInventoryByScans_args args) throws org.apache.thrift.TException {
-
 
4179
        getHistoricBadInventoryByScans_result result = new getHistoricBadInventoryByScans_result();
-
 
4180
        try {
-
 
4181
          result.success = iface.getHistoricBadInventoryByScans(args.date);
-
 
4182
        } catch (WarehouseServiceException wex) {
-
 
4183
          result.wex = wex;
-
 
4184
        }
-
 
4185
        return result;
-
 
4186
      }
-
 
4187
    }
-
 
4188
 
4009
  }
4189
  }
4010
 
4190
 
4011
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
4191
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
4012
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
4192
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
4013
 
4193
 
Line 37053... Line 37233...
37053
      }
37233
      }
37054
      first = false;
37234
      first = false;
37055
      sb.append(")");
37235
      sb.append(")");
37056
      return sb.toString();
37236
      return sb.toString();
37057
    }
37237
    }
-
 
37238
 
-
 
37239
    public void validate() throws org.apache.thrift.TException {
-
 
37240
      // check for required fields
-
 
37241
    }
-
 
37242
 
-
 
37243
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
37244
      try {
-
 
37245
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
37246
      } catch (org.apache.thrift.TException te) {
-
 
37247
        throw new java.io.IOException(te);
-
 
37248
      }
-
 
37249
    }
-
 
37250
 
-
 
37251
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
37252
      try {
-
 
37253
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
37254
      } catch (org.apache.thrift.TException te) {
-
 
37255
        throw new java.io.IOException(te);
-
 
37256
      }
-
 
37257
    }
-
 
37258
 
-
 
37259
  }
-
 
37260
 
-
 
37261
  public static class isItemAvailableForSale_args implements org.apache.thrift.TBase<isItemAvailableForSale_args, isItemAvailableForSale_args._Fields>, java.io.Serializable, Cloneable   {
-
 
37262
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isItemAvailableForSale_args");
-
 
37263
 
-
 
37264
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
37265
    private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
37266
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
37267
 
-
 
37268
    private long itemId; // required
-
 
37269
    private long serialNumber; // required
-
 
37270
    private long warehouseId; // required
-
 
37271
 
-
 
37272
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
37273
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
37274
      ITEM_ID((short)1, "itemId"),
-
 
37275
      SERIAL_NUMBER((short)2, "serialNumber"),
-
 
37276
      WAREHOUSE_ID((short)3, "warehouseId");
-
 
37277
 
-
 
37278
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
37279
 
-
 
37280
      static {
-
 
37281
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
37282
          byName.put(field.getFieldName(), field);
-
 
37283
        }
-
 
37284
      }
-
 
37285
 
-
 
37286
      /**
-
 
37287
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
37288
       */
-
 
37289
      public static _Fields findByThriftId(int fieldId) {
-
 
37290
        switch(fieldId) {
-
 
37291
          case 1: // ITEM_ID
-
 
37292
            return ITEM_ID;
-
 
37293
          case 2: // SERIAL_NUMBER
-
 
37294
            return SERIAL_NUMBER;
-
 
37295
          case 3: // WAREHOUSE_ID
-
 
37296
            return WAREHOUSE_ID;
-
 
37297
          default:
-
 
37298
            return null;
-
 
37299
        }
-
 
37300
      }
-
 
37301
 
-
 
37302
      /**
-
 
37303
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
37304
       * if it is not found.
-
 
37305
       */
-
 
37306
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
37307
        _Fields fields = findByThriftId(fieldId);
-
 
37308
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
37309
        return fields;
-
 
37310
      }
-
 
37311
 
-
 
37312
      /**
-
 
37313
       * Find the _Fields constant that matches name, or null if its not found.
-
 
37314
       */
-
 
37315
      public static _Fields findByName(String name) {
-
 
37316
        return byName.get(name);
-
 
37317
      }
-
 
37318
 
-
 
37319
      private final short _thriftId;
-
 
37320
      private final String _fieldName;
-
 
37321
 
-
 
37322
      _Fields(short thriftId, String fieldName) {
-
 
37323
        _thriftId = thriftId;
-
 
37324
        _fieldName = fieldName;
-
 
37325
      }
-
 
37326
 
-
 
37327
      public short getThriftFieldId() {
-
 
37328
        return _thriftId;
-
 
37329
      }
-
 
37330
 
-
 
37331
      public String getFieldName() {
-
 
37332
        return _fieldName;
-
 
37333
      }
-
 
37334
    }
-
 
37335
 
-
 
37336
    // isset id assignments
-
 
37337
    private static final int __ITEMID_ISSET_ID = 0;
-
 
37338
    private static final int __SERIALNUMBER_ISSET_ID = 1;
-
 
37339
    private static final int __WAREHOUSEID_ISSET_ID = 2;
-
 
37340
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
37341
 
-
 
37342
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
37343
    static {
-
 
37344
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
37345
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
37346
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
37347
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
37348
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
37349
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
37350
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
37351
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
37352
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isItemAvailableForSale_args.class, metaDataMap);
-
 
37353
    }
-
 
37354
 
-
 
37355
    public isItemAvailableForSale_args() {
-
 
37356
    }
-
 
37357
 
-
 
37358
    public isItemAvailableForSale_args(
-
 
37359
      long itemId,
-
 
37360
      long serialNumber,
-
 
37361
      long warehouseId)
-
 
37362
    {
-
 
37363
      this();
-
 
37364
      this.itemId = itemId;
-
 
37365
      setItemIdIsSet(true);
-
 
37366
      this.serialNumber = serialNumber;
-
 
37367
      setSerialNumberIsSet(true);
-
 
37368
      this.warehouseId = warehouseId;
-
 
37369
      setWarehouseIdIsSet(true);
-
 
37370
    }
-
 
37371
 
-
 
37372
    /**
-
 
37373
     * Performs a deep copy on <i>other</i>.
-
 
37374
     */
-
 
37375
    public isItemAvailableForSale_args(isItemAvailableForSale_args other) {
-
 
37376
      __isset_bit_vector.clear();
-
 
37377
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
37378
      this.itemId = other.itemId;
-
 
37379
      this.serialNumber = other.serialNumber;
-
 
37380
      this.warehouseId = other.warehouseId;
-
 
37381
    }
-
 
37382
 
-
 
37383
    public isItemAvailableForSale_args deepCopy() {
-
 
37384
      return new isItemAvailableForSale_args(this);
-
 
37385
    }
-
 
37386
 
-
 
37387
    @Override
-
 
37388
    public void clear() {
-
 
37389
      setItemIdIsSet(false);
-
 
37390
      this.itemId = 0;
-
 
37391
      setSerialNumberIsSet(false);
-
 
37392
      this.serialNumber = 0;
-
 
37393
      setWarehouseIdIsSet(false);
-
 
37394
      this.warehouseId = 0;
-
 
37395
    }
-
 
37396
 
-
 
37397
    public long getItemId() {
-
 
37398
      return this.itemId;
-
 
37399
    }
-
 
37400
 
-
 
37401
    public void setItemId(long itemId) {
-
 
37402
      this.itemId = itemId;
-
 
37403
      setItemIdIsSet(true);
-
 
37404
    }
-
 
37405
 
-
 
37406
    public void unsetItemId() {
-
 
37407
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
37408
    }
-
 
37409
 
-
 
37410
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
37411
    public boolean isSetItemId() {
-
 
37412
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
37413
    }
-
 
37414
 
-
 
37415
    public void setItemIdIsSet(boolean value) {
-
 
37416
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
37417
    }
-
 
37418
 
-
 
37419
    public long getSerialNumber() {
-
 
37420
      return this.serialNumber;
-
 
37421
    }
-
 
37422
 
-
 
37423
    public void setSerialNumber(long serialNumber) {
-
 
37424
      this.serialNumber = serialNumber;
-
 
37425
      setSerialNumberIsSet(true);
-
 
37426
    }
-
 
37427
 
-
 
37428
    public void unsetSerialNumber() {
-
 
37429
      __isset_bit_vector.clear(__SERIALNUMBER_ISSET_ID);
-
 
37430
    }
-
 
37431
 
-
 
37432
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
-
 
37433
    public boolean isSetSerialNumber() {
-
 
37434
      return __isset_bit_vector.get(__SERIALNUMBER_ISSET_ID);
-
 
37435
    }
-
 
37436
 
-
 
37437
    public void setSerialNumberIsSet(boolean value) {
-
 
37438
      __isset_bit_vector.set(__SERIALNUMBER_ISSET_ID, value);
-
 
37439
    }
-
 
37440
 
-
 
37441
    public long getWarehouseId() {
-
 
37442
      return this.warehouseId;
-
 
37443
    }
-
 
37444
 
-
 
37445
    public void setWarehouseId(long warehouseId) {
-
 
37446
      this.warehouseId = warehouseId;
-
 
37447
      setWarehouseIdIsSet(true);
-
 
37448
    }
-
 
37449
 
-
 
37450
    public void unsetWarehouseId() {
-
 
37451
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
37452
    }
-
 
37453
 
-
 
37454
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
37455
    public boolean isSetWarehouseId() {
-
 
37456
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
37457
    }
-
 
37458
 
-
 
37459
    public void setWarehouseIdIsSet(boolean value) {
-
 
37460
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
37461
    }
-
 
37462
 
-
 
37463
    public void setFieldValue(_Fields field, Object value) {
-
 
37464
      switch (field) {
-
 
37465
      case ITEM_ID:
-
 
37466
        if (value == null) {
-
 
37467
          unsetItemId();
-
 
37468
        } else {
-
 
37469
          setItemId((Long)value);
-
 
37470
        }
-
 
37471
        break;
-
 
37472
 
-
 
37473
      case SERIAL_NUMBER:
-
 
37474
        if (value == null) {
-
 
37475
          unsetSerialNumber();
-
 
37476
        } else {
-
 
37477
          setSerialNumber((Long)value);
-
 
37478
        }
-
 
37479
        break;
-
 
37480
 
-
 
37481
      case WAREHOUSE_ID:
-
 
37482
        if (value == null) {
-
 
37483
          unsetWarehouseId();
-
 
37484
        } else {
-
 
37485
          setWarehouseId((Long)value);
-
 
37486
        }
-
 
37487
        break;
-
 
37488
 
-
 
37489
      }
-
 
37490
    }
-
 
37491
 
-
 
37492
    public Object getFieldValue(_Fields field) {
-
 
37493
      switch (field) {
-
 
37494
      case ITEM_ID:
-
 
37495
        return Long.valueOf(getItemId());
-
 
37496
 
-
 
37497
      case SERIAL_NUMBER:
-
 
37498
        return Long.valueOf(getSerialNumber());
-
 
37499
 
-
 
37500
      case WAREHOUSE_ID:
-
 
37501
        return Long.valueOf(getWarehouseId());
-
 
37502
 
-
 
37503
      }
-
 
37504
      throw new IllegalStateException();
-
 
37505
    }
-
 
37506
 
-
 
37507
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
37508
    public boolean isSet(_Fields field) {
-
 
37509
      if (field == null) {
-
 
37510
        throw new IllegalArgumentException();
-
 
37511
      }
-
 
37512
 
-
 
37513
      switch (field) {
-
 
37514
      case ITEM_ID:
-
 
37515
        return isSetItemId();
-
 
37516
      case SERIAL_NUMBER:
-
 
37517
        return isSetSerialNumber();
-
 
37518
      case WAREHOUSE_ID:
-
 
37519
        return isSetWarehouseId();
-
 
37520
      }
-
 
37521
      throw new IllegalStateException();
-
 
37522
    }
-
 
37523
 
-
 
37524
    @Override
-
 
37525
    public boolean equals(Object that) {
-
 
37526
      if (that == null)
-
 
37527
        return false;
-
 
37528
      if (that instanceof isItemAvailableForSale_args)
-
 
37529
        return this.equals((isItemAvailableForSale_args)that);
-
 
37530
      return false;
-
 
37531
    }
-
 
37532
 
-
 
37533
    public boolean equals(isItemAvailableForSale_args that) {
-
 
37534
      if (that == null)
-
 
37535
        return false;
-
 
37536
 
-
 
37537
      boolean this_present_itemId = true;
-
 
37538
      boolean that_present_itemId = true;
-
 
37539
      if (this_present_itemId || that_present_itemId) {
-
 
37540
        if (!(this_present_itemId && that_present_itemId))
-
 
37541
          return false;
-
 
37542
        if (this.itemId != that.itemId)
-
 
37543
          return false;
-
 
37544
      }
-
 
37545
 
-
 
37546
      boolean this_present_serialNumber = true;
-
 
37547
      boolean that_present_serialNumber = true;
-
 
37548
      if (this_present_serialNumber || that_present_serialNumber) {
-
 
37549
        if (!(this_present_serialNumber && that_present_serialNumber))
-
 
37550
          return false;
-
 
37551
        if (this.serialNumber != that.serialNumber)
-
 
37552
          return false;
-
 
37553
      }
-
 
37554
 
-
 
37555
      boolean this_present_warehouseId = true;
-
 
37556
      boolean that_present_warehouseId = true;
-
 
37557
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
37558
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
37559
          return false;
-
 
37560
        if (this.warehouseId != that.warehouseId)
-
 
37561
          return false;
-
 
37562
      }
-
 
37563
 
-
 
37564
      return true;
-
 
37565
    }
-
 
37566
 
-
 
37567
    @Override
-
 
37568
    public int hashCode() {
-
 
37569
      return 0;
-
 
37570
    }
-
 
37571
 
-
 
37572
    public int compareTo(isItemAvailableForSale_args other) {
-
 
37573
      if (!getClass().equals(other.getClass())) {
-
 
37574
        return getClass().getName().compareTo(other.getClass().getName());
-
 
37575
      }
-
 
37576
 
-
 
37577
      int lastComparison = 0;
-
 
37578
      isItemAvailableForSale_args typedOther = (isItemAvailableForSale_args)other;
-
 
37579
 
-
 
37580
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
37581
      if (lastComparison != 0) {
-
 
37582
        return lastComparison;
-
 
37583
      }
-
 
37584
      if (isSetItemId()) {
-
 
37585
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
37586
        if (lastComparison != 0) {
-
 
37587
          return lastComparison;
-
 
37588
        }
-
 
37589
      }
-
 
37590
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
-
 
37591
      if (lastComparison != 0) {
-
 
37592
        return lastComparison;
-
 
37593
      }
-
 
37594
      if (isSetSerialNumber()) {
-
 
37595
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
-
 
37596
        if (lastComparison != 0) {
-
 
37597
          return lastComparison;
-
 
37598
        }
-
 
37599
      }
-
 
37600
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
37601
      if (lastComparison != 0) {
-
 
37602
        return lastComparison;
-
 
37603
      }
-
 
37604
      if (isSetWarehouseId()) {
-
 
37605
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
-
 
37606
        if (lastComparison != 0) {
-
 
37607
          return lastComparison;
-
 
37608
        }
-
 
37609
      }
-
 
37610
      return 0;
-
 
37611
    }
-
 
37612
 
-
 
37613
    public _Fields fieldForId(int fieldId) {
-
 
37614
      return _Fields.findByThriftId(fieldId);
-
 
37615
    }
-
 
37616
 
-
 
37617
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
37618
      org.apache.thrift.protocol.TField field;
-
 
37619
      iprot.readStructBegin();
-
 
37620
      while (true)
-
 
37621
      {
-
 
37622
        field = iprot.readFieldBegin();
-
 
37623
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
37624
          break;
-
 
37625
        }
-
 
37626
        switch (field.id) {
-
 
37627
          case 1: // ITEM_ID
-
 
37628
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
37629
              this.itemId = iprot.readI64();
-
 
37630
              setItemIdIsSet(true);
-
 
37631
            } else { 
-
 
37632
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
37633
            }
-
 
37634
            break;
-
 
37635
          case 2: // SERIAL_NUMBER
-
 
37636
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
37637
              this.serialNumber = iprot.readI64();
-
 
37638
              setSerialNumberIsSet(true);
-
 
37639
            } else { 
-
 
37640
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
37641
            }
-
 
37642
            break;
-
 
37643
          case 3: // WAREHOUSE_ID
-
 
37644
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
37645
              this.warehouseId = iprot.readI64();
-
 
37646
              setWarehouseIdIsSet(true);
-
 
37647
            } else { 
-
 
37648
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
37649
            }
-
 
37650
            break;
-
 
37651
          default:
-
 
37652
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
37653
        }
-
 
37654
        iprot.readFieldEnd();
-
 
37655
      }
-
 
37656
      iprot.readStructEnd();
-
 
37657
      validate();
-
 
37658
    }
-
 
37659
 
-
 
37660
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
37661
      validate();
-
 
37662
 
-
 
37663
      oprot.writeStructBegin(STRUCT_DESC);
-
 
37664
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
37665
      oprot.writeI64(this.itemId);
-
 
37666
      oprot.writeFieldEnd();
-
 
37667
      oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
-
 
37668
      oprot.writeI64(this.serialNumber);
-
 
37669
      oprot.writeFieldEnd();
-
 
37670
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
37671
      oprot.writeI64(this.warehouseId);
-
 
37672
      oprot.writeFieldEnd();
-
 
37673
      oprot.writeFieldStop();
-
 
37674
      oprot.writeStructEnd();
-
 
37675
    }
-
 
37676
 
-
 
37677
    @Override
-
 
37678
    public String toString() {
-
 
37679
      StringBuilder sb = new StringBuilder("isItemAvailableForSale_args(");
-
 
37680
      boolean first = true;
-
 
37681
 
-
 
37682
      sb.append("itemId:");
-
 
37683
      sb.append(this.itemId);
-
 
37684
      first = false;
-
 
37685
      if (!first) sb.append(", ");
-
 
37686
      sb.append("serialNumber:");
-
 
37687
      sb.append(this.serialNumber);
-
 
37688
      first = false;
-
 
37689
      if (!first) sb.append(", ");
-
 
37690
      sb.append("warehouseId:");
-
 
37691
      sb.append(this.warehouseId);
-
 
37692
      first = false;
-
 
37693
      sb.append(")");
-
 
37694
      return sb.toString();
-
 
37695
    }
-
 
37696
 
-
 
37697
    public void validate() throws org.apache.thrift.TException {
-
 
37698
      // check for required fields
-
 
37699
    }
-
 
37700
 
-
 
37701
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
37702
      try {
-
 
37703
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
37704
      } catch (org.apache.thrift.TException te) {
-
 
37705
        throw new java.io.IOException(te);
-
 
37706
      }
-
 
37707
    }
-
 
37708
 
-
 
37709
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
37710
      try {
-
 
37711
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
37712
        __isset_bit_vector = new BitSet(1);
-
 
37713
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
37714
      } catch (org.apache.thrift.TException te) {
-
 
37715
        throw new java.io.IOException(te);
-
 
37716
      }
-
 
37717
    }
-
 
37718
 
-
 
37719
  }
-
 
37720
 
-
 
37721
  public static class isItemAvailableForSale_result implements org.apache.thrift.TBase<isItemAvailableForSale_result, isItemAvailableForSale_result._Fields>, java.io.Serializable, Cloneable   {
-
 
37722
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isItemAvailableForSale_result");
-
 
37723
 
-
 
37724
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
37725
    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);
-
 
37726
 
-
 
37727
    private boolean success; // required
-
 
37728
    private WarehouseServiceException wex; // required
-
 
37729
 
-
 
37730
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
37731
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
37732
      SUCCESS((short)0, "success"),
-
 
37733
      WEX((short)1, "wex");
-
 
37734
 
-
 
37735
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
37736
 
-
 
37737
      static {
-
 
37738
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
37739
          byName.put(field.getFieldName(), field);
-
 
37740
        }
-
 
37741
      }
-
 
37742
 
-
 
37743
      /**
-
 
37744
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
37745
       */
-
 
37746
      public static _Fields findByThriftId(int fieldId) {
-
 
37747
        switch(fieldId) {
-
 
37748
          case 0: // SUCCESS
-
 
37749
            return SUCCESS;
-
 
37750
          case 1: // WEX
-
 
37751
            return WEX;
-
 
37752
          default:
-
 
37753
            return null;
-
 
37754
        }
-
 
37755
      }
-
 
37756
 
-
 
37757
      /**
-
 
37758
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
37759
       * if it is not found.
-
 
37760
       */
-
 
37761
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
37762
        _Fields fields = findByThriftId(fieldId);
-
 
37763
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
37764
        return fields;
-
 
37765
      }
-
 
37766
 
-
 
37767
      /**
-
 
37768
       * Find the _Fields constant that matches name, or null if its not found.
-
 
37769
       */
-
 
37770
      public static _Fields findByName(String name) {
-
 
37771
        return byName.get(name);
-
 
37772
      }
-
 
37773
 
-
 
37774
      private final short _thriftId;
-
 
37775
      private final String _fieldName;
-
 
37776
 
-
 
37777
      _Fields(short thriftId, String fieldName) {
-
 
37778
        _thriftId = thriftId;
-
 
37779
        _fieldName = fieldName;
-
 
37780
      }
-
 
37781
 
-
 
37782
      public short getThriftFieldId() {
-
 
37783
        return _thriftId;
-
 
37784
      }
-
 
37785
 
-
 
37786
      public String getFieldName() {
-
 
37787
        return _fieldName;
-
 
37788
      }
-
 
37789
    }
-
 
37790
 
-
 
37791
    // isset id assignments
-
 
37792
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
37793
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
37794
 
-
 
37795
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
37796
    static {
-
 
37797
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
37798
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
37799
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
37800
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
37801
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
37802
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
37803
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isItemAvailableForSale_result.class, metaDataMap);
-
 
37804
    }
-
 
37805
 
-
 
37806
    public isItemAvailableForSale_result() {
-
 
37807
    }
-
 
37808
 
-
 
37809
    public isItemAvailableForSale_result(
-
 
37810
      boolean success,
-
 
37811
      WarehouseServiceException wex)
-
 
37812
    {
-
 
37813
      this();
-
 
37814
      this.success = success;
-
 
37815
      setSuccessIsSet(true);
-
 
37816
      this.wex = wex;
-
 
37817
    }
-
 
37818
 
-
 
37819
    /**
-
 
37820
     * Performs a deep copy on <i>other</i>.
-
 
37821
     */
-
 
37822
    public isItemAvailableForSale_result(isItemAvailableForSale_result other) {
-
 
37823
      __isset_bit_vector.clear();
-
 
37824
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
37825
      this.success = other.success;
-
 
37826
      if (other.isSetWex()) {
-
 
37827
        this.wex = new WarehouseServiceException(other.wex);
-
 
37828
      }
-
 
37829
    }
-
 
37830
 
-
 
37831
    public isItemAvailableForSale_result deepCopy() {
-
 
37832
      return new isItemAvailableForSale_result(this);
-
 
37833
    }
-
 
37834
 
-
 
37835
    @Override
-
 
37836
    public void clear() {
-
 
37837
      setSuccessIsSet(false);
-
 
37838
      this.success = false;
-
 
37839
      this.wex = null;
-
 
37840
    }
-
 
37841
 
-
 
37842
    public boolean isSuccess() {
-
 
37843
      return this.success;
-
 
37844
    }
-
 
37845
 
-
 
37846
    public void setSuccess(boolean success) {
-
 
37847
      this.success = success;
-
 
37848
      setSuccessIsSet(true);
-
 
37849
    }
-
 
37850
 
-
 
37851
    public void unsetSuccess() {
-
 
37852
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
37853
    }
-
 
37854
 
-
 
37855
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
37856
    public boolean isSetSuccess() {
-
 
37857
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
37858
    }
-
 
37859
 
-
 
37860
    public void setSuccessIsSet(boolean value) {
-
 
37861
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
37862
    }
-
 
37863
 
-
 
37864
    public WarehouseServiceException getWex() {
-
 
37865
      return this.wex;
-
 
37866
    }
-
 
37867
 
-
 
37868
    public void setWex(WarehouseServiceException wex) {
-
 
37869
      this.wex = wex;
-
 
37870
    }
-
 
37871
 
-
 
37872
    public void unsetWex() {
-
 
37873
      this.wex = null;
-
 
37874
    }
-
 
37875
 
-
 
37876
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
37877
    public boolean isSetWex() {
-
 
37878
      return this.wex != null;
-
 
37879
    }
-
 
37880
 
-
 
37881
    public void setWexIsSet(boolean value) {
-
 
37882
      if (!value) {
-
 
37883
        this.wex = null;
-
 
37884
      }
-
 
37885
    }
-
 
37886
 
-
 
37887
    public void setFieldValue(_Fields field, Object value) {
-
 
37888
      switch (field) {
-
 
37889
      case SUCCESS:
-
 
37890
        if (value == null) {
-
 
37891
          unsetSuccess();
-
 
37892
        } else {
-
 
37893
          setSuccess((Boolean)value);
-
 
37894
        }
-
 
37895
        break;
-
 
37896
 
-
 
37897
      case WEX:
-
 
37898
        if (value == null) {
-
 
37899
          unsetWex();
-
 
37900
        } else {
-
 
37901
          setWex((WarehouseServiceException)value);
-
 
37902
        }
-
 
37903
        break;
-
 
37904
 
-
 
37905
      }
-
 
37906
    }
-
 
37907
 
-
 
37908
    public Object getFieldValue(_Fields field) {
-
 
37909
      switch (field) {
-
 
37910
      case SUCCESS:
-
 
37911
        return Boolean.valueOf(isSuccess());
-
 
37912
 
-
 
37913
      case WEX:
-
 
37914
        return getWex();
-
 
37915
 
-
 
37916
      }
-
 
37917
      throw new IllegalStateException();
-
 
37918
    }
-
 
37919
 
-
 
37920
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
37921
    public boolean isSet(_Fields field) {
-
 
37922
      if (field == null) {
-
 
37923
        throw new IllegalArgumentException();
-
 
37924
      }
-
 
37925
 
-
 
37926
      switch (field) {
-
 
37927
      case SUCCESS:
-
 
37928
        return isSetSuccess();
-
 
37929
      case WEX:
-
 
37930
        return isSetWex();
-
 
37931
      }
-
 
37932
      throw new IllegalStateException();
-
 
37933
    }
-
 
37934
 
-
 
37935
    @Override
-
 
37936
    public boolean equals(Object that) {
-
 
37937
      if (that == null)
-
 
37938
        return false;
-
 
37939
      if (that instanceof isItemAvailableForSale_result)
-
 
37940
        return this.equals((isItemAvailableForSale_result)that);
-
 
37941
      return false;
-
 
37942
    }
-
 
37943
 
-
 
37944
    public boolean equals(isItemAvailableForSale_result that) {
-
 
37945
      if (that == null)
-
 
37946
        return false;
-
 
37947
 
-
 
37948
      boolean this_present_success = true;
-
 
37949
      boolean that_present_success = true;
-
 
37950
      if (this_present_success || that_present_success) {
-
 
37951
        if (!(this_present_success && that_present_success))
-
 
37952
          return false;
-
 
37953
        if (this.success != that.success)
-
 
37954
          return false;
-
 
37955
      }
-
 
37956
 
-
 
37957
      boolean this_present_wex = true && this.isSetWex();
-
 
37958
      boolean that_present_wex = true && that.isSetWex();
-
 
37959
      if (this_present_wex || that_present_wex) {
-
 
37960
        if (!(this_present_wex && that_present_wex))
-
 
37961
          return false;
-
 
37962
        if (!this.wex.equals(that.wex))
-
 
37963
          return false;
-
 
37964
      }
-
 
37965
 
-
 
37966
      return true;
-
 
37967
    }
-
 
37968
 
-
 
37969
    @Override
-
 
37970
    public int hashCode() {
-
 
37971
      return 0;
-
 
37972
    }
-
 
37973
 
-
 
37974
    public int compareTo(isItemAvailableForSale_result other) {
-
 
37975
      if (!getClass().equals(other.getClass())) {
-
 
37976
        return getClass().getName().compareTo(other.getClass().getName());
-
 
37977
      }
-
 
37978
 
-
 
37979
      int lastComparison = 0;
-
 
37980
      isItemAvailableForSale_result typedOther = (isItemAvailableForSale_result)other;
-
 
37981
 
-
 
37982
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
37983
      if (lastComparison != 0) {
-
 
37984
        return lastComparison;
-
 
37985
      }
-
 
37986
      if (isSetSuccess()) {
-
 
37987
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
37988
        if (lastComparison != 0) {
-
 
37989
          return lastComparison;
-
 
37990
        }
-
 
37991
      }
-
 
37992
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
37993
      if (lastComparison != 0) {
-
 
37994
        return lastComparison;
-
 
37995
      }
-
 
37996
      if (isSetWex()) {
-
 
37997
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
37998
        if (lastComparison != 0) {
-
 
37999
          return lastComparison;
-
 
38000
        }
-
 
38001
      }
-
 
38002
      return 0;
-
 
38003
    }
-
 
38004
 
-
 
38005
    public _Fields fieldForId(int fieldId) {
-
 
38006
      return _Fields.findByThriftId(fieldId);
-
 
38007
    }
-
 
38008
 
-
 
38009
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
38010
      org.apache.thrift.protocol.TField field;
-
 
38011
      iprot.readStructBegin();
-
 
38012
      while (true)
-
 
38013
      {
-
 
38014
        field = iprot.readFieldBegin();
-
 
38015
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
38016
          break;
-
 
38017
        }
-
 
38018
        switch (field.id) {
-
 
38019
          case 0: // SUCCESS
-
 
38020
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
38021
              this.success = iprot.readBool();
-
 
38022
              setSuccessIsSet(true);
-
 
38023
            } else { 
-
 
38024
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38025
            }
-
 
38026
            break;
-
 
38027
          case 1: // WEX
-
 
38028
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
38029
              this.wex = new WarehouseServiceException();
-
 
38030
              this.wex.read(iprot);
-
 
38031
            } else { 
-
 
38032
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38033
            }
-
 
38034
            break;
-
 
38035
          default:
-
 
38036
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38037
        }
-
 
38038
        iprot.readFieldEnd();
-
 
38039
      }
-
 
38040
      iprot.readStructEnd();
-
 
38041
      validate();
-
 
38042
    }
-
 
38043
 
-
 
38044
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
38045
      oprot.writeStructBegin(STRUCT_DESC);
-
 
38046
 
-
 
38047
      if (this.isSetSuccess()) {
-
 
38048
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
38049
        oprot.writeBool(this.success);
-
 
38050
        oprot.writeFieldEnd();
-
 
38051
      } else if (this.isSetWex()) {
-
 
38052
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
38053
        this.wex.write(oprot);
-
 
38054
        oprot.writeFieldEnd();
-
 
38055
      }
-
 
38056
      oprot.writeFieldStop();
-
 
38057
      oprot.writeStructEnd();
-
 
38058
    }
-
 
38059
 
-
 
38060
    @Override
-
 
38061
    public String toString() {
-
 
38062
      StringBuilder sb = new StringBuilder("isItemAvailableForSale_result(");
-
 
38063
      boolean first = true;
-
 
38064
 
-
 
38065
      sb.append("success:");
-
 
38066
      sb.append(this.success);
-
 
38067
      first = false;
-
 
38068
      if (!first) sb.append(", ");
-
 
38069
      sb.append("wex:");
-
 
38070
      if (this.wex == null) {
-
 
38071
        sb.append("null");
-
 
38072
      } else {
-
 
38073
        sb.append(this.wex);
-
 
38074
      }
-
 
38075
      first = false;
-
 
38076
      sb.append(")");
-
 
38077
      return sb.toString();
-
 
38078
    }
-
 
38079
 
-
 
38080
    public void validate() throws org.apache.thrift.TException {
-
 
38081
      // check for required fields
-
 
38082
    }
-
 
38083
 
-
 
38084
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
38085
      try {
-
 
38086
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
38087
      } catch (org.apache.thrift.TException te) {
-
 
38088
        throw new java.io.IOException(te);
-
 
38089
      }
-
 
38090
    }
-
 
38091
 
-
 
38092
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
38093
      try {
-
 
38094
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
38095
      } catch (org.apache.thrift.TException te) {
-
 
38096
        throw new java.io.IOException(te);
-
 
38097
      }
-
 
38098
    }
-
 
38099
 
-
 
38100
  }
-
 
38101
 
-
 
38102
  public static class getHistoricBadInventoryByScans_args implements org.apache.thrift.TBase<getHistoricBadInventoryByScans_args, getHistoricBadInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
-
 
38103
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricBadInventoryByScans_args");
-
 
38104
 
-
 
38105
    private static final org.apache.thrift.protocol.TField DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("date", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
38106
 
-
 
38107
    private long date; // required
-
 
38108
 
-
 
38109
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
38110
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
38111
      DATE((short)1, "date");
-
 
38112
 
-
 
38113
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
38114
 
-
 
38115
      static {
-
 
38116
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
38117
          byName.put(field.getFieldName(), field);
-
 
38118
        }
-
 
38119
      }
-
 
38120
 
-
 
38121
      /**
-
 
38122
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
38123
       */
-
 
38124
      public static _Fields findByThriftId(int fieldId) {
-
 
38125
        switch(fieldId) {
-
 
38126
          case 1: // DATE
-
 
38127
            return DATE;
-
 
38128
          default:
-
 
38129
            return null;
-
 
38130
        }
-
 
38131
      }
-
 
38132
 
-
 
38133
      /**
-
 
38134
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
38135
       * if it is not found.
-
 
38136
       */
-
 
38137
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
38138
        _Fields fields = findByThriftId(fieldId);
-
 
38139
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
38140
        return fields;
-
 
38141
      }
-
 
38142
 
-
 
38143
      /**
-
 
38144
       * Find the _Fields constant that matches name, or null if its not found.
-
 
38145
       */
-
 
38146
      public static _Fields findByName(String name) {
-
 
38147
        return byName.get(name);
-
 
38148
      }
-
 
38149
 
-
 
38150
      private final short _thriftId;
-
 
38151
      private final String _fieldName;
-
 
38152
 
-
 
38153
      _Fields(short thriftId, String fieldName) {
-
 
38154
        _thriftId = thriftId;
-
 
38155
        _fieldName = fieldName;
-
 
38156
      }
-
 
38157
 
-
 
38158
      public short getThriftFieldId() {
-
 
38159
        return _thriftId;
-
 
38160
      }
-
 
38161
 
-
 
38162
      public String getFieldName() {
-
 
38163
        return _fieldName;
-
 
38164
      }
-
 
38165
    }
-
 
38166
 
-
 
38167
    // isset id assignments
-
 
38168
    private static final int __DATE_ISSET_ID = 0;
-
 
38169
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
38170
 
-
 
38171
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
38172
    static {
-
 
38173
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
38174
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
38175
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
38176
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
38177
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricBadInventoryByScans_args.class, metaDataMap);
-
 
38178
    }
-
 
38179
 
-
 
38180
    public getHistoricBadInventoryByScans_args() {
-
 
38181
    }
-
 
38182
 
-
 
38183
    public getHistoricBadInventoryByScans_args(
-
 
38184
      long date)
-
 
38185
    {
-
 
38186
      this();
-
 
38187
      this.date = date;
-
 
38188
      setDateIsSet(true);
-
 
38189
    }
-
 
38190
 
-
 
38191
    /**
-
 
38192
     * Performs a deep copy on <i>other</i>.
-
 
38193
     */
-
 
38194
    public getHistoricBadInventoryByScans_args(getHistoricBadInventoryByScans_args other) {
-
 
38195
      __isset_bit_vector.clear();
-
 
38196
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
38197
      this.date = other.date;
-
 
38198
    }
-
 
38199
 
-
 
38200
    public getHistoricBadInventoryByScans_args deepCopy() {
-
 
38201
      return new getHistoricBadInventoryByScans_args(this);
-
 
38202
    }
-
 
38203
 
-
 
38204
    @Override
-
 
38205
    public void clear() {
-
 
38206
      setDateIsSet(false);
-
 
38207
      this.date = 0;
-
 
38208
    }
-
 
38209
 
-
 
38210
    public long getDate() {
-
 
38211
      return this.date;
-
 
38212
    }
-
 
38213
 
-
 
38214
    public void setDate(long date) {
-
 
38215
      this.date = date;
-
 
38216
      setDateIsSet(true);
-
 
38217
    }
-
 
38218
 
-
 
38219
    public void unsetDate() {
-
 
38220
      __isset_bit_vector.clear(__DATE_ISSET_ID);
-
 
38221
    }
-
 
38222
 
-
 
38223
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
-
 
38224
    public boolean isSetDate() {
-
 
38225
      return __isset_bit_vector.get(__DATE_ISSET_ID);
-
 
38226
    }
-
 
38227
 
-
 
38228
    public void setDateIsSet(boolean value) {
-
 
38229
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
-
 
38230
    }
-
 
38231
 
-
 
38232
    public void setFieldValue(_Fields field, Object value) {
-
 
38233
      switch (field) {
-
 
38234
      case DATE:
-
 
38235
        if (value == null) {
-
 
38236
          unsetDate();
-
 
38237
        } else {
-
 
38238
          setDate((Long)value);
-
 
38239
        }
-
 
38240
        break;
-
 
38241
 
-
 
38242
      }
-
 
38243
    }
-
 
38244
 
-
 
38245
    public Object getFieldValue(_Fields field) {
-
 
38246
      switch (field) {
-
 
38247
      case DATE:
-
 
38248
        return Long.valueOf(getDate());
-
 
38249
 
-
 
38250
      }
-
 
38251
      throw new IllegalStateException();
-
 
38252
    }
-
 
38253
 
-
 
38254
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
38255
    public boolean isSet(_Fields field) {
-
 
38256
      if (field == null) {
-
 
38257
        throw new IllegalArgumentException();
-
 
38258
      }
-
 
38259
 
-
 
38260
      switch (field) {
-
 
38261
      case DATE:
-
 
38262
        return isSetDate();
-
 
38263
      }
-
 
38264
      throw new IllegalStateException();
-
 
38265
    }
-
 
38266
 
-
 
38267
    @Override
-
 
38268
    public boolean equals(Object that) {
-
 
38269
      if (that == null)
-
 
38270
        return false;
-
 
38271
      if (that instanceof getHistoricBadInventoryByScans_args)
-
 
38272
        return this.equals((getHistoricBadInventoryByScans_args)that);
-
 
38273
      return false;
-
 
38274
    }
-
 
38275
 
-
 
38276
    public boolean equals(getHistoricBadInventoryByScans_args that) {
-
 
38277
      if (that == null)
-
 
38278
        return false;
-
 
38279
 
-
 
38280
      boolean this_present_date = true;
-
 
38281
      boolean that_present_date = true;
-
 
38282
      if (this_present_date || that_present_date) {
-
 
38283
        if (!(this_present_date && that_present_date))
-
 
38284
          return false;
-
 
38285
        if (this.date != that.date)
-
 
38286
          return false;
-
 
38287
      }
-
 
38288
 
-
 
38289
      return true;
-
 
38290
    }
-
 
38291
 
-
 
38292
    @Override
-
 
38293
    public int hashCode() {
-
 
38294
      return 0;
-
 
38295
    }
-
 
38296
 
-
 
38297
    public int compareTo(getHistoricBadInventoryByScans_args other) {
-
 
38298
      if (!getClass().equals(other.getClass())) {
-
 
38299
        return getClass().getName().compareTo(other.getClass().getName());
-
 
38300
      }
-
 
38301
 
-
 
38302
      int lastComparison = 0;
-
 
38303
      getHistoricBadInventoryByScans_args typedOther = (getHistoricBadInventoryByScans_args)other;
-
 
38304
 
-
 
38305
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
-
 
38306
      if (lastComparison != 0) {
-
 
38307
        return lastComparison;
-
 
38308
      }
-
 
38309
      if (isSetDate()) {
-
 
38310
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
-
 
38311
        if (lastComparison != 0) {
-
 
38312
          return lastComparison;
-
 
38313
        }
-
 
38314
      }
-
 
38315
      return 0;
-
 
38316
    }
-
 
38317
 
-
 
38318
    public _Fields fieldForId(int fieldId) {
-
 
38319
      return _Fields.findByThriftId(fieldId);
-
 
38320
    }
-
 
38321
 
-
 
38322
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
38323
      org.apache.thrift.protocol.TField field;
-
 
38324
      iprot.readStructBegin();
-
 
38325
      while (true)
-
 
38326
      {
-
 
38327
        field = iprot.readFieldBegin();
-
 
38328
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
38329
          break;
-
 
38330
        }
-
 
38331
        switch (field.id) {
-
 
38332
          case 1: // DATE
-
 
38333
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
38334
              this.date = iprot.readI64();
-
 
38335
              setDateIsSet(true);
-
 
38336
            } else { 
-
 
38337
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38338
            }
-
 
38339
            break;
-
 
38340
          default:
-
 
38341
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38342
        }
-
 
38343
        iprot.readFieldEnd();
-
 
38344
      }
-
 
38345
      iprot.readStructEnd();
-
 
38346
      validate();
-
 
38347
    }
-
 
38348
 
-
 
38349
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
38350
      validate();
-
 
38351
 
-
 
38352
      oprot.writeStructBegin(STRUCT_DESC);
-
 
38353
      oprot.writeFieldBegin(DATE_FIELD_DESC);
-
 
38354
      oprot.writeI64(this.date);
-
 
38355
      oprot.writeFieldEnd();
-
 
38356
      oprot.writeFieldStop();
-
 
38357
      oprot.writeStructEnd();
-
 
38358
    }
-
 
38359
 
-
 
38360
    @Override
-
 
38361
    public String toString() {
-
 
38362
      StringBuilder sb = new StringBuilder("getHistoricBadInventoryByScans_args(");
-
 
38363
      boolean first = true;
-
 
38364
 
-
 
38365
      sb.append("date:");
-
 
38366
      sb.append(this.date);
-
 
38367
      first = false;
-
 
38368
      sb.append(")");
-
 
38369
      return sb.toString();
-
 
38370
    }
-
 
38371
 
-
 
38372
    public void validate() throws org.apache.thrift.TException {
-
 
38373
      // check for required fields
-
 
38374
    }
-
 
38375
 
-
 
38376
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
38377
      try {
-
 
38378
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
38379
      } catch (org.apache.thrift.TException te) {
-
 
38380
        throw new java.io.IOException(te);
-
 
38381
      }
-
 
38382
    }
-
 
38383
 
-
 
38384
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
38385
      try {
-
 
38386
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
38387
        __isset_bit_vector = new BitSet(1);
-
 
38388
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
38389
      } catch (org.apache.thrift.TException te) {
-
 
38390
        throw new java.io.IOException(te);
-
 
38391
      }
-
 
38392
    }
-
 
38393
 
-
 
38394
  }
-
 
38395
 
-
 
38396
  public static class getHistoricBadInventoryByScans_result implements org.apache.thrift.TBase<getHistoricBadInventoryByScans_result, getHistoricBadInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
-
 
38397
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricBadInventoryByScans_result");
-
 
38398
 
-
 
38399
    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);
-
 
38400
    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);
-
 
38401
 
-
 
38402
    private List<InventoryAvailability> success; // required
-
 
38403
    private WarehouseServiceException wex; // required
-
 
38404
 
-
 
38405
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
38406
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
38407
      SUCCESS((short)0, "success"),
-
 
38408
      WEX((short)1, "wex");
-
 
38409
 
-
 
38410
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
38411
 
-
 
38412
      static {
-
 
38413
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
38414
          byName.put(field.getFieldName(), field);
-
 
38415
        }
-
 
38416
      }
-
 
38417
 
-
 
38418
      /**
-
 
38419
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
38420
       */
-
 
38421
      public static _Fields findByThriftId(int fieldId) {
-
 
38422
        switch(fieldId) {
-
 
38423
          case 0: // SUCCESS
-
 
38424
            return SUCCESS;
-
 
38425
          case 1: // WEX
-
 
38426
            return WEX;
-
 
38427
          default:
-
 
38428
            return null;
-
 
38429
        }
-
 
38430
      }
-
 
38431
 
-
 
38432
      /**
-
 
38433
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
38434
       * if it is not found.
-
 
38435
       */
-
 
38436
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
38437
        _Fields fields = findByThriftId(fieldId);
-
 
38438
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
38439
        return fields;
-
 
38440
      }
-
 
38441
 
-
 
38442
      /**
-
 
38443
       * Find the _Fields constant that matches name, or null if its not found.
-
 
38444
       */
-
 
38445
      public static _Fields findByName(String name) {
-
 
38446
        return byName.get(name);
-
 
38447
      }
-
 
38448
 
-
 
38449
      private final short _thriftId;
-
 
38450
      private final String _fieldName;
-
 
38451
 
-
 
38452
      _Fields(short thriftId, String fieldName) {
-
 
38453
        _thriftId = thriftId;
-
 
38454
        _fieldName = fieldName;
-
 
38455
      }
-
 
38456
 
-
 
38457
      public short getThriftFieldId() {
-
 
38458
        return _thriftId;
-
 
38459
      }
-
 
38460
 
-
 
38461
      public String getFieldName() {
-
 
38462
        return _fieldName;
-
 
38463
      }
-
 
38464
    }
-
 
38465
 
-
 
38466
    // isset id assignments
-
 
38467
 
-
 
38468
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
38469
    static {
-
 
38470
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
38471
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
38472
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
38473
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
-
 
38474
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
38475
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
38476
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
38477
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricBadInventoryByScans_result.class, metaDataMap);
-
 
38478
    }
-
 
38479
 
-
 
38480
    public getHistoricBadInventoryByScans_result() {
-
 
38481
    }
-
 
38482
 
-
 
38483
    public getHistoricBadInventoryByScans_result(
-
 
38484
      List<InventoryAvailability> success,
-
 
38485
      WarehouseServiceException wex)
-
 
38486
    {
-
 
38487
      this();
-
 
38488
      this.success = success;
-
 
38489
      this.wex = wex;
-
 
38490
    }
-
 
38491
 
-
 
38492
    /**
-
 
38493
     * Performs a deep copy on <i>other</i>.
-
 
38494
     */
-
 
38495
    public getHistoricBadInventoryByScans_result(getHistoricBadInventoryByScans_result other) {
-
 
38496
      if (other.isSetSuccess()) {
-
 
38497
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
-
 
38498
        for (InventoryAvailability other_element : other.success) {
-
 
38499
          __this__success.add(new InventoryAvailability(other_element));
-
 
38500
        }
-
 
38501
        this.success = __this__success;
-
 
38502
      }
-
 
38503
      if (other.isSetWex()) {
-
 
38504
        this.wex = new WarehouseServiceException(other.wex);
-
 
38505
      }
-
 
38506
    }
-
 
38507
 
-
 
38508
    public getHistoricBadInventoryByScans_result deepCopy() {
-
 
38509
      return new getHistoricBadInventoryByScans_result(this);
-
 
38510
    }
-
 
38511
 
-
 
38512
    @Override
-
 
38513
    public void clear() {
-
 
38514
      this.success = null;
-
 
38515
      this.wex = null;
-
 
38516
    }
-
 
38517
 
-
 
38518
    public int getSuccessSize() {
-
 
38519
      return (this.success == null) ? 0 : this.success.size();
-
 
38520
    }
-
 
38521
 
-
 
38522
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
-
 
38523
      return (this.success == null) ? null : this.success.iterator();
-
 
38524
    }
-
 
38525
 
-
 
38526
    public void addToSuccess(InventoryAvailability elem) {
-
 
38527
      if (this.success == null) {
-
 
38528
        this.success = new ArrayList<InventoryAvailability>();
-
 
38529
      }
-
 
38530
      this.success.add(elem);
-
 
38531
    }
-
 
38532
 
-
 
38533
    public List<InventoryAvailability> getSuccess() {
-
 
38534
      return this.success;
-
 
38535
    }
-
 
38536
 
-
 
38537
    public void setSuccess(List<InventoryAvailability> success) {
-
 
38538
      this.success = success;
-
 
38539
    }
-
 
38540
 
-
 
38541
    public void unsetSuccess() {
-
 
38542
      this.success = null;
-
 
38543
    }
-
 
38544
 
-
 
38545
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
38546
    public boolean isSetSuccess() {
-
 
38547
      return this.success != null;
-
 
38548
    }
-
 
38549
 
-
 
38550
    public void setSuccessIsSet(boolean value) {
-
 
38551
      if (!value) {
-
 
38552
        this.success = null;
-
 
38553
      }
-
 
38554
    }
-
 
38555
 
-
 
38556
    public WarehouseServiceException getWex() {
-
 
38557
      return this.wex;
-
 
38558
    }
-
 
38559
 
-
 
38560
    public void setWex(WarehouseServiceException wex) {
-
 
38561
      this.wex = wex;
-
 
38562
    }
-
 
38563
 
-
 
38564
    public void unsetWex() {
-
 
38565
      this.wex = null;
-
 
38566
    }
-
 
38567
 
-
 
38568
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
-
 
38569
    public boolean isSetWex() {
-
 
38570
      return this.wex != null;
-
 
38571
    }
-
 
38572
 
-
 
38573
    public void setWexIsSet(boolean value) {
-
 
38574
      if (!value) {
-
 
38575
        this.wex = null;
-
 
38576
      }
-
 
38577
    }
-
 
38578
 
-
 
38579
    public void setFieldValue(_Fields field, Object value) {
-
 
38580
      switch (field) {
-
 
38581
      case SUCCESS:
-
 
38582
        if (value == null) {
-
 
38583
          unsetSuccess();
-
 
38584
        } else {
-
 
38585
          setSuccess((List<InventoryAvailability>)value);
-
 
38586
        }
-
 
38587
        break;
-
 
38588
 
-
 
38589
      case WEX:
-
 
38590
        if (value == null) {
-
 
38591
          unsetWex();
-
 
38592
        } else {
-
 
38593
          setWex((WarehouseServiceException)value);
-
 
38594
        }
-
 
38595
        break;
-
 
38596
 
-
 
38597
      }
-
 
38598
    }
-
 
38599
 
-
 
38600
    public Object getFieldValue(_Fields field) {
-
 
38601
      switch (field) {
-
 
38602
      case SUCCESS:
-
 
38603
        return getSuccess();
-
 
38604
 
-
 
38605
      case WEX:
-
 
38606
        return getWex();
-
 
38607
 
-
 
38608
      }
-
 
38609
      throw new IllegalStateException();
-
 
38610
    }
-
 
38611
 
-
 
38612
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
38613
    public boolean isSet(_Fields field) {
-
 
38614
      if (field == null) {
-
 
38615
        throw new IllegalArgumentException();
-
 
38616
      }
-
 
38617
 
-
 
38618
      switch (field) {
-
 
38619
      case SUCCESS:
-
 
38620
        return isSetSuccess();
-
 
38621
      case WEX:
-
 
38622
        return isSetWex();
-
 
38623
      }
-
 
38624
      throw new IllegalStateException();
-
 
38625
    }
-
 
38626
 
-
 
38627
    @Override
-
 
38628
    public boolean equals(Object that) {
-
 
38629
      if (that == null)
-
 
38630
        return false;
-
 
38631
      if (that instanceof getHistoricBadInventoryByScans_result)
-
 
38632
        return this.equals((getHistoricBadInventoryByScans_result)that);
-
 
38633
      return false;
-
 
38634
    }
-
 
38635
 
-
 
38636
    public boolean equals(getHistoricBadInventoryByScans_result that) {
-
 
38637
      if (that == null)
-
 
38638
        return false;
-
 
38639
 
-
 
38640
      boolean this_present_success = true && this.isSetSuccess();
-
 
38641
      boolean that_present_success = true && that.isSetSuccess();
-
 
38642
      if (this_present_success || that_present_success) {
-
 
38643
        if (!(this_present_success && that_present_success))
-
 
38644
          return false;
-
 
38645
        if (!this.success.equals(that.success))
-
 
38646
          return false;
-
 
38647
      }
-
 
38648
 
-
 
38649
      boolean this_present_wex = true && this.isSetWex();
-
 
38650
      boolean that_present_wex = true && that.isSetWex();
-
 
38651
      if (this_present_wex || that_present_wex) {
-
 
38652
        if (!(this_present_wex && that_present_wex))
-
 
38653
          return false;
-
 
38654
        if (!this.wex.equals(that.wex))
-
 
38655
          return false;
-
 
38656
      }
-
 
38657
 
-
 
38658
      return true;
-
 
38659
    }
-
 
38660
 
-
 
38661
    @Override
-
 
38662
    public int hashCode() {
-
 
38663
      return 0;
-
 
38664
    }
-
 
38665
 
-
 
38666
    public int compareTo(getHistoricBadInventoryByScans_result other) {
-
 
38667
      if (!getClass().equals(other.getClass())) {
-
 
38668
        return getClass().getName().compareTo(other.getClass().getName());
-
 
38669
      }
-
 
38670
 
-
 
38671
      int lastComparison = 0;
-
 
38672
      getHistoricBadInventoryByScans_result typedOther = (getHistoricBadInventoryByScans_result)other;
-
 
38673
 
-
 
38674
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
38675
      if (lastComparison != 0) {
-
 
38676
        return lastComparison;
-
 
38677
      }
-
 
38678
      if (isSetSuccess()) {
-
 
38679
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
38680
        if (lastComparison != 0) {
-
 
38681
          return lastComparison;
-
 
38682
        }
-
 
38683
      }
-
 
38684
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
-
 
38685
      if (lastComparison != 0) {
-
 
38686
        return lastComparison;
-
 
38687
      }
-
 
38688
      if (isSetWex()) {
-
 
38689
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
-
 
38690
        if (lastComparison != 0) {
-
 
38691
          return lastComparison;
-
 
38692
        }
-
 
38693
      }
-
 
38694
      return 0;
-
 
38695
    }
-
 
38696
 
-
 
38697
    public _Fields fieldForId(int fieldId) {
-
 
38698
      return _Fields.findByThriftId(fieldId);
-
 
38699
    }
-
 
38700
 
-
 
38701
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
38702
      org.apache.thrift.protocol.TField field;
-
 
38703
      iprot.readStructBegin();
-
 
38704
      while (true)
-
 
38705
      {
-
 
38706
        field = iprot.readFieldBegin();
-
 
38707
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
38708
          break;
-
 
38709
        }
-
 
38710
        switch (field.id) {
-
 
38711
          case 0: // SUCCESS
-
 
38712
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
38713
              {
-
 
38714
                org.apache.thrift.protocol.TList _list105 = iprot.readListBegin();
-
 
38715
                this.success = new ArrayList<InventoryAvailability>(_list105.size);
-
 
38716
                for (int _i106 = 0; _i106 < _list105.size; ++_i106)
-
 
38717
                {
-
 
38718
                  InventoryAvailability _elem107; // required
-
 
38719
                  _elem107 = new InventoryAvailability();
-
 
38720
                  _elem107.read(iprot);
-
 
38721
                  this.success.add(_elem107);
-
 
38722
                }
-
 
38723
                iprot.readListEnd();
-
 
38724
              }
-
 
38725
            } else { 
-
 
38726
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38727
            }
-
 
38728
            break;
-
 
38729
          case 1: // WEX
-
 
38730
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
38731
              this.wex = new WarehouseServiceException();
-
 
38732
              this.wex.read(iprot);
-
 
38733
            } else { 
-
 
38734
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38735
            }
-
 
38736
            break;
-
 
38737
          default:
-
 
38738
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
38739
        }
-
 
38740
        iprot.readFieldEnd();
-
 
38741
      }
-
 
38742
      iprot.readStructEnd();
-
 
38743
      validate();
-
 
38744
    }
-
 
38745
 
-
 
38746
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
38747
      oprot.writeStructBegin(STRUCT_DESC);
-
 
38748
 
-
 
38749
      if (this.isSetSuccess()) {
-
 
38750
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
38751
        {
-
 
38752
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
38753
          for (InventoryAvailability _iter108 : this.success)
-
 
38754
          {
-
 
38755
            _iter108.write(oprot);
-
 
38756
          }
-
 
38757
          oprot.writeListEnd();
-
 
38758
        }
-
 
38759
        oprot.writeFieldEnd();
-
 
38760
      } else if (this.isSetWex()) {
-
 
38761
        oprot.writeFieldBegin(WEX_FIELD_DESC);
-
 
38762
        this.wex.write(oprot);
-
 
38763
        oprot.writeFieldEnd();
-
 
38764
      }
-
 
38765
      oprot.writeFieldStop();
-
 
38766
      oprot.writeStructEnd();
-
 
38767
    }
-
 
38768
 
-
 
38769
    @Override
-
 
38770
    public String toString() {
-
 
38771
      StringBuilder sb = new StringBuilder("getHistoricBadInventoryByScans_result(");
-
 
38772
      boolean first = true;
-
 
38773
 
-
 
38774
      sb.append("success:");
-
 
38775
      if (this.success == null) {
-
 
38776
        sb.append("null");
-
 
38777
      } else {
-
 
38778
        sb.append(this.success);
-
 
38779
      }
-
 
38780
      first = false;
-
 
38781
      if (!first) sb.append(", ");
-
 
38782
      sb.append("wex:");
-
 
38783
      if (this.wex == null) {
-
 
38784
        sb.append("null");
-
 
38785
      } else {
-
 
38786
        sb.append(this.wex);
-
 
38787
      }
-
 
38788
      first = false;
-
 
38789
      sb.append(")");
-
 
38790
      return sb.toString();
-
 
38791
    }
37058
 
38792
 
37059
    public void validate() throws org.apache.thrift.TException {
38793
    public void validate() throws org.apache.thrift.TException {
37060
      // check for required fields
38794
      // check for required fields
37061
    }
38795
    }
37062
 
38796