Subversion Repositories SmartDukaan

Rev

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

Rev 10864 Rev 10886
Line 352... Line 352...
352
 
352
 
353
    public long scanForBadPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
353
    public long scanForBadPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
354
 
354
 
355
    public Map<Long,Long> getItemsInPurchaseReturn(long purchaseReturnId) throws WarehouseServiceException, org.apache.thrift.TException;
355
    public Map<Long,Long> getItemsInPurchaseReturn(long purchaseReturnId) throws WarehouseServiceException, org.apache.thrift.TException;
356
 
356
 
-
 
357
    public List<Scan> getScansForInventoryItem(long inventoryItemId, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
358
 
357
  }
359
  }
358
 
360
 
359
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
361
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
360
 
362
 
361
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
363
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 478... Line 480...
478
 
480
 
479
    public void scanForBadPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForBadPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
481
    public void scanForBadPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForBadPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
480
 
482
 
481
    public void getItemsInPurchaseReturn(long purchaseReturnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsInPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
483
    public void getItemsInPurchaseReturn(long purchaseReturnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsInPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
482
 
484
 
-
 
485
    public void getScansForInventoryItem(long inventoryItemId, ScanType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScansForInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
486
 
483
  }
487
  }
484
 
488
 
485
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
489
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
486
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
490
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
487
      public Factory() {}
491
      public Factory() {}
Line 2047... Line 2051...
2047
        throw result.ex;
2051
        throw result.ex;
2048
      }
2052
      }
2049
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsInPurchaseReturn failed: unknown result");
2053
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsInPurchaseReturn failed: unknown result");
2050
    }
2054
    }
2051
 
2055
 
-
 
2056
    public List<Scan> getScansForInventoryItem(long inventoryItemId, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException
-
 
2057
    {
-
 
2058
      send_getScansForInventoryItem(inventoryItemId, type);
-
 
2059
      return recv_getScansForInventoryItem();
-
 
2060
    }
-
 
2061
 
-
 
2062
    public void send_getScansForInventoryItem(long inventoryItemId, ScanType type) throws org.apache.thrift.TException
-
 
2063
    {
-
 
2064
      getScansForInventoryItem_args args = new getScansForInventoryItem_args();
-
 
2065
      args.setInventoryItemId(inventoryItemId);
-
 
2066
      args.setType(type);
-
 
2067
      sendBase("getScansForInventoryItem", args);
-
 
2068
    }
-
 
2069
 
-
 
2070
    public List<Scan> recv_getScansForInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
-
 
2071
    {
-
 
2072
      getScansForInventoryItem_result result = new getScansForInventoryItem_result();
-
 
2073
      receiveBase(result, "getScansForInventoryItem");
-
 
2074
      if (result.isSetSuccess()) {
-
 
2075
        return result.success;
-
 
2076
      }
-
 
2077
      if (result.ex != null) {
-
 
2078
        throw result.ex;
-
 
2079
      }
-
 
2080
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScansForInventoryItem failed: unknown result");
-
 
2081
    }
-
 
2082
 
2052
  }
2083
  }
2053
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2084
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2054
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2085
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2055
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2086
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2056
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2087
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4233... Line 4264...
4233
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4264
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4234
        return (new Client(prot)).recv_getItemsInPurchaseReturn();
4265
        return (new Client(prot)).recv_getItemsInPurchaseReturn();
4235
      }
4266
      }
4236
    }
4267
    }
4237
 
4268
 
-
 
4269
    public void getScansForInventoryItem(long inventoryItemId, ScanType type, org.apache.thrift.async.AsyncMethodCallback<getScansForInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
4270
      checkReady();
-
 
4271
      getScansForInventoryItem_call method_call = new getScansForInventoryItem_call(inventoryItemId, type, resultHandler, this, ___protocolFactory, ___transport);
-
 
4272
      this.___currentMethod = method_call;
-
 
4273
      ___manager.call(method_call);
-
 
4274
    }
-
 
4275
 
-
 
4276
    public static class getScansForInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4277
      private long inventoryItemId;
-
 
4278
      private ScanType type;
-
 
4279
      public getScansForInventoryItem_call(long inventoryItemId, ScanType type, org.apache.thrift.async.AsyncMethodCallback<getScansForInventoryItem_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 {
-
 
4280
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4281
        this.inventoryItemId = inventoryItemId;
-
 
4282
        this.type = type;
-
 
4283
      }
-
 
4284
 
-
 
4285
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4286
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getScansForInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4287
        getScansForInventoryItem_args args = new getScansForInventoryItem_args();
-
 
4288
        args.setInventoryItemId(inventoryItemId);
-
 
4289
        args.setType(type);
-
 
4290
        args.write(prot);
-
 
4291
        prot.writeMessageEnd();
-
 
4292
      }
-
 
4293
 
-
 
4294
      public List<Scan> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
4295
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4296
          throw new IllegalStateException("Method call not finished!");
-
 
4297
        }
-
 
4298
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4299
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4300
        return (new Client(prot)).recv_getScansForInventoryItem();
-
 
4301
      }
-
 
4302
    }
-
 
4303
 
4238
  }
4304
  }
4239
 
4305
 
4240
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4306
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4241
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4307
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4242
    public Processor(I iface) {
4308
    public Processor(I iface) {
Line 4307... Line 4373...
4307
      processMap.put("getAmazonTransferredSkuDetails", new getAmazonTransferredSkuDetails());
4373
      processMap.put("getAmazonTransferredSkuDetails", new getAmazonTransferredSkuDetails());
4308
      processMap.put("getScansforPurchase", new getScansforPurchase());
4374
      processMap.put("getScansforPurchase", new getScansforPurchase());
4309
      processMap.put("getCurrentBadQuantityForItem", new getCurrentBadQuantityForItem());
4375
      processMap.put("getCurrentBadQuantityForItem", new getCurrentBadQuantityForItem());
4310
      processMap.put("scanForBadPurchaseReturn", new scanForBadPurchaseReturn());
4376
      processMap.put("scanForBadPurchaseReturn", new scanForBadPurchaseReturn());
4311
      processMap.put("getItemsInPurchaseReturn", new getItemsInPurchaseReturn());
4377
      processMap.put("getItemsInPurchaseReturn", new getItemsInPurchaseReturn());
-
 
4378
      processMap.put("getScansForInventoryItem", new getScansForInventoryItem());
4312
      return processMap;
4379
      return processMap;
4313
    }
4380
    }
4314
 
4381
 
4315
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
4382
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
4316
      public getInventoryItem() {
4383
      public getInventoryItem() {
Line 5441... Line 5508...
5441
        }
5508
        }
5442
        return result;
5509
        return result;
5443
      }
5510
      }
5444
    }
5511
    }
5445
 
5512
 
-
 
5513
    private static class getScansForInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getScansForInventoryItem_args> {
-
 
5514
      public getScansForInventoryItem() {
-
 
5515
        super("getScansForInventoryItem");
-
 
5516
      }
-
 
5517
 
-
 
5518
      protected getScansForInventoryItem_args getEmptyArgsInstance() {
-
 
5519
        return new getScansForInventoryItem_args();
-
 
5520
      }
-
 
5521
 
-
 
5522
      protected getScansForInventoryItem_result getResult(I iface, getScansForInventoryItem_args args) throws org.apache.thrift.TException {
-
 
5523
        getScansForInventoryItem_result result = new getScansForInventoryItem_result();
-
 
5524
        try {
-
 
5525
          result.success = iface.getScansForInventoryItem(args.inventoryItemId, args.type);
-
 
5526
        } catch (WarehouseServiceException ex) {
-
 
5527
          result.ex = ex;
-
 
5528
        }
-
 
5529
        return result;
-
 
5530
      }
-
 
5531
    }
-
 
5532
 
5446
  }
5533
  }
5447
 
5534
 
5448
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
5535
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
5449
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
5536
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
5450
 
5537
 
Line 51064... Line 51151...
51064
      boolean first = true;
51151
      boolean first = true;
51065
 
51152
 
51066
      sb.append("success:");
51153
      sb.append("success:");
51067
      if (this.success == null) {
51154
      if (this.success == null) {
51068
        sb.append("null");
51155
        sb.append("null");
-
 
51156
      } else {
-
 
51157
        sb.append(this.success);
-
 
51158
      }
-
 
51159
      first = false;
-
 
51160
      if (!first) sb.append(", ");
-
 
51161
      sb.append("ex:");
-
 
51162
      if (this.ex == null) {
-
 
51163
        sb.append("null");
-
 
51164
      } else {
-
 
51165
        sb.append(this.ex);
-
 
51166
      }
-
 
51167
      first = false;
-
 
51168
      sb.append(")");
-
 
51169
      return sb.toString();
-
 
51170
    }
-
 
51171
 
-
 
51172
    public void validate() throws org.apache.thrift.TException {
-
 
51173
      // check for required fields
-
 
51174
    }
-
 
51175
 
-
 
51176
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
51177
      try {
-
 
51178
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
51179
      } catch (org.apache.thrift.TException te) {
-
 
51180
        throw new java.io.IOException(te);
-
 
51181
      }
-
 
51182
    }
-
 
51183
 
-
 
51184
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
51185
      try {
-
 
51186
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
51187
      } catch (org.apache.thrift.TException te) {
-
 
51188
        throw new java.io.IOException(te);
-
 
51189
      }
-
 
51190
    }
-
 
51191
 
-
 
51192
  }
-
 
51193
 
-
 
51194
  public static class getScansForInventoryItem_args implements org.apache.thrift.TBase<getScansForInventoryItem_args, getScansForInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
51195
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScansForInventoryItem_args");
-
 
51196
 
-
 
51197
    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);
-
 
51198
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
-
 
51199
 
-
 
51200
    private long inventoryItemId; // required
-
 
51201
    private ScanType type; // required
-
 
51202
 
-
 
51203
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
51204
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
51205
      INVENTORY_ITEM_ID((short)1, "inventoryItemId"),
-
 
51206
      /**
-
 
51207
       * 
-
 
51208
       * @see ScanType
-
 
51209
       */
-
 
51210
      TYPE((short)2, "type");
-
 
51211
 
-
 
51212
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
51213
 
-
 
51214
      static {
-
 
51215
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
51216
          byName.put(field.getFieldName(), field);
-
 
51217
        }
-
 
51218
      }
-
 
51219
 
-
 
51220
      /**
-
 
51221
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
51222
       */
-
 
51223
      public static _Fields findByThriftId(int fieldId) {
-
 
51224
        switch(fieldId) {
-
 
51225
          case 1: // INVENTORY_ITEM_ID
-
 
51226
            return INVENTORY_ITEM_ID;
-
 
51227
          case 2: // TYPE
-
 
51228
            return TYPE;
-
 
51229
          default:
-
 
51230
            return null;
-
 
51231
        }
-
 
51232
      }
-
 
51233
 
-
 
51234
      /**
-
 
51235
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
51236
       * if it is not found.
-
 
51237
       */
-
 
51238
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
51239
        _Fields fields = findByThriftId(fieldId);
-
 
51240
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
51241
        return fields;
-
 
51242
      }
-
 
51243
 
-
 
51244
      /**
-
 
51245
       * Find the _Fields constant that matches name, or null if its not found.
-
 
51246
       */
-
 
51247
      public static _Fields findByName(String name) {
-
 
51248
        return byName.get(name);
-
 
51249
      }
-
 
51250
 
-
 
51251
      private final short _thriftId;
-
 
51252
      private final String _fieldName;
-
 
51253
 
-
 
51254
      _Fields(short thriftId, String fieldName) {
-
 
51255
        _thriftId = thriftId;
-
 
51256
        _fieldName = fieldName;
-
 
51257
      }
-
 
51258
 
-
 
51259
      public short getThriftFieldId() {
-
 
51260
        return _thriftId;
-
 
51261
      }
-
 
51262
 
-
 
51263
      public String getFieldName() {
-
 
51264
        return _fieldName;
-
 
51265
      }
-
 
51266
    }
-
 
51267
 
-
 
51268
    // isset id assignments
-
 
51269
    private static final int __INVENTORYITEMID_ISSET_ID = 0;
-
 
51270
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
51271
 
-
 
51272
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
51273
    static {
-
 
51274
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
51275
      tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
51276
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
51277
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
51278
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
-
 
51279
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
51280
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScansForInventoryItem_args.class, metaDataMap);
-
 
51281
    }
-
 
51282
 
-
 
51283
    public getScansForInventoryItem_args() {
-
 
51284
    }
-
 
51285
 
-
 
51286
    public getScansForInventoryItem_args(
-
 
51287
      long inventoryItemId,
-
 
51288
      ScanType type)
-
 
51289
    {
-
 
51290
      this();
-
 
51291
      this.inventoryItemId = inventoryItemId;
-
 
51292
      setInventoryItemIdIsSet(true);
-
 
51293
      this.type = type;
-
 
51294
    }
-
 
51295
 
-
 
51296
    /**
-
 
51297
     * Performs a deep copy on <i>other</i>.
-
 
51298
     */
-
 
51299
    public getScansForInventoryItem_args(getScansForInventoryItem_args other) {
-
 
51300
      __isset_bit_vector.clear();
-
 
51301
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
51302
      this.inventoryItemId = other.inventoryItemId;
-
 
51303
      if (other.isSetType()) {
-
 
51304
        this.type = other.type;
-
 
51305
      }
-
 
51306
    }
-
 
51307
 
-
 
51308
    public getScansForInventoryItem_args deepCopy() {
-
 
51309
      return new getScansForInventoryItem_args(this);
-
 
51310
    }
-
 
51311
 
-
 
51312
    @Override
-
 
51313
    public void clear() {
-
 
51314
      setInventoryItemIdIsSet(false);
-
 
51315
      this.inventoryItemId = 0;
-
 
51316
      this.type = null;
-
 
51317
    }
-
 
51318
 
-
 
51319
    public long getInventoryItemId() {
-
 
51320
      return this.inventoryItemId;
-
 
51321
    }
-
 
51322
 
-
 
51323
    public void setInventoryItemId(long inventoryItemId) {
-
 
51324
      this.inventoryItemId = inventoryItemId;
-
 
51325
      setInventoryItemIdIsSet(true);
-
 
51326
    }
-
 
51327
 
-
 
51328
    public void unsetInventoryItemId() {
-
 
51329
      __isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
-
 
51330
    }
-
 
51331
 
-
 
51332
    /** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
-
 
51333
    public boolean isSetInventoryItemId() {
-
 
51334
      return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
-
 
51335
    }
-
 
51336
 
-
 
51337
    public void setInventoryItemIdIsSet(boolean value) {
-
 
51338
      __isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
-
 
51339
    }
-
 
51340
 
-
 
51341
    /**
-
 
51342
     * 
-
 
51343
     * @see ScanType
-
 
51344
     */
-
 
51345
    public ScanType getType() {
-
 
51346
      return this.type;
-
 
51347
    }
-
 
51348
 
-
 
51349
    /**
-
 
51350
     * 
-
 
51351
     * @see ScanType
-
 
51352
     */
-
 
51353
    public void setType(ScanType type) {
-
 
51354
      this.type = type;
-
 
51355
    }
-
 
51356
 
-
 
51357
    public void unsetType() {
-
 
51358
      this.type = null;
-
 
51359
    }
-
 
51360
 
-
 
51361
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
-
 
51362
    public boolean isSetType() {
-
 
51363
      return this.type != null;
-
 
51364
    }
-
 
51365
 
-
 
51366
    public void setTypeIsSet(boolean value) {
-
 
51367
      if (!value) {
-
 
51368
        this.type = null;
-
 
51369
      }
-
 
51370
    }
-
 
51371
 
-
 
51372
    public void setFieldValue(_Fields field, Object value) {
-
 
51373
      switch (field) {
-
 
51374
      case INVENTORY_ITEM_ID:
-
 
51375
        if (value == null) {
-
 
51376
          unsetInventoryItemId();
-
 
51377
        } else {
-
 
51378
          setInventoryItemId((Long)value);
-
 
51379
        }
-
 
51380
        break;
-
 
51381
 
-
 
51382
      case TYPE:
-
 
51383
        if (value == null) {
-
 
51384
          unsetType();
-
 
51385
        } else {
-
 
51386
          setType((ScanType)value);
-
 
51387
        }
-
 
51388
        break;
-
 
51389
 
-
 
51390
      }
-
 
51391
    }
-
 
51392
 
-
 
51393
    public Object getFieldValue(_Fields field) {
-
 
51394
      switch (field) {
-
 
51395
      case INVENTORY_ITEM_ID:
-
 
51396
        return Long.valueOf(getInventoryItemId());
-
 
51397
 
-
 
51398
      case TYPE:
-
 
51399
        return getType();
-
 
51400
 
-
 
51401
      }
-
 
51402
      throw new IllegalStateException();
-
 
51403
    }
-
 
51404
 
-
 
51405
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
51406
    public boolean isSet(_Fields field) {
-
 
51407
      if (field == null) {
-
 
51408
        throw new IllegalArgumentException();
-
 
51409
      }
-
 
51410
 
-
 
51411
      switch (field) {
-
 
51412
      case INVENTORY_ITEM_ID:
-
 
51413
        return isSetInventoryItemId();
-
 
51414
      case TYPE:
-
 
51415
        return isSetType();
-
 
51416
      }
-
 
51417
      throw new IllegalStateException();
-
 
51418
    }
-
 
51419
 
-
 
51420
    @Override
-
 
51421
    public boolean equals(Object that) {
-
 
51422
      if (that == null)
-
 
51423
        return false;
-
 
51424
      if (that instanceof getScansForInventoryItem_args)
-
 
51425
        return this.equals((getScansForInventoryItem_args)that);
-
 
51426
      return false;
-
 
51427
    }
-
 
51428
 
-
 
51429
    public boolean equals(getScansForInventoryItem_args that) {
-
 
51430
      if (that == null)
-
 
51431
        return false;
-
 
51432
 
-
 
51433
      boolean this_present_inventoryItemId = true;
-
 
51434
      boolean that_present_inventoryItemId = true;
-
 
51435
      if (this_present_inventoryItemId || that_present_inventoryItemId) {
-
 
51436
        if (!(this_present_inventoryItemId && that_present_inventoryItemId))
-
 
51437
          return false;
-
 
51438
        if (this.inventoryItemId != that.inventoryItemId)
-
 
51439
          return false;
-
 
51440
      }
-
 
51441
 
-
 
51442
      boolean this_present_type = true && this.isSetType();
-
 
51443
      boolean that_present_type = true && that.isSetType();
-
 
51444
      if (this_present_type || that_present_type) {
-
 
51445
        if (!(this_present_type && that_present_type))
-
 
51446
          return false;
-
 
51447
        if (!this.type.equals(that.type))
-
 
51448
          return false;
-
 
51449
      }
-
 
51450
 
-
 
51451
      return true;
-
 
51452
    }
-
 
51453
 
-
 
51454
    @Override
-
 
51455
    public int hashCode() {
-
 
51456
      return 0;
-
 
51457
    }
-
 
51458
 
-
 
51459
    public int compareTo(getScansForInventoryItem_args other) {
-
 
51460
      if (!getClass().equals(other.getClass())) {
-
 
51461
        return getClass().getName().compareTo(other.getClass().getName());
-
 
51462
      }
-
 
51463
 
-
 
51464
      int lastComparison = 0;
-
 
51465
      getScansForInventoryItem_args typedOther = (getScansForInventoryItem_args)other;
-
 
51466
 
-
 
51467
      lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
-
 
51468
      if (lastComparison != 0) {
-
 
51469
        return lastComparison;
-
 
51470
      }
-
 
51471
      if (isSetInventoryItemId()) {
-
 
51472
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
-
 
51473
        if (lastComparison != 0) {
-
 
51474
          return lastComparison;
-
 
51475
        }
-
 
51476
      }
-
 
51477
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
-
 
51478
      if (lastComparison != 0) {
-
 
51479
        return lastComparison;
-
 
51480
      }
-
 
51481
      if (isSetType()) {
-
 
51482
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
-
 
51483
        if (lastComparison != 0) {
-
 
51484
          return lastComparison;
-
 
51485
        }
-
 
51486
      }
-
 
51487
      return 0;
-
 
51488
    }
-
 
51489
 
-
 
51490
    public _Fields fieldForId(int fieldId) {
-
 
51491
      return _Fields.findByThriftId(fieldId);
-
 
51492
    }
-
 
51493
 
-
 
51494
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
51495
      org.apache.thrift.protocol.TField field;
-
 
51496
      iprot.readStructBegin();
-
 
51497
      while (true)
-
 
51498
      {
-
 
51499
        field = iprot.readFieldBegin();
-
 
51500
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
51501
          break;
-
 
51502
        }
-
 
51503
        switch (field.id) {
-
 
51504
          case 1: // INVENTORY_ITEM_ID
-
 
51505
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
51506
              this.inventoryItemId = iprot.readI64();
-
 
51507
              setInventoryItemIdIsSet(true);
-
 
51508
            } else { 
-
 
51509
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51510
            }
-
 
51511
            break;
-
 
51512
          case 2: // TYPE
-
 
51513
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
51514
              this.type = ScanType.findByValue(iprot.readI32());
-
 
51515
            } else { 
-
 
51516
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51517
            }
-
 
51518
            break;
-
 
51519
          default:
-
 
51520
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51521
        }
-
 
51522
        iprot.readFieldEnd();
-
 
51523
      }
-
 
51524
      iprot.readStructEnd();
-
 
51525
      validate();
-
 
51526
    }
-
 
51527
 
-
 
51528
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
51529
      validate();
-
 
51530
 
-
 
51531
      oprot.writeStructBegin(STRUCT_DESC);
-
 
51532
      oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
-
 
51533
      oprot.writeI64(this.inventoryItemId);
-
 
51534
      oprot.writeFieldEnd();
-
 
51535
      if (this.type != null) {
-
 
51536
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
-
 
51537
        oprot.writeI32(this.type.getValue());
-
 
51538
        oprot.writeFieldEnd();
-
 
51539
      }
-
 
51540
      oprot.writeFieldStop();
-
 
51541
      oprot.writeStructEnd();
-
 
51542
    }
-
 
51543
 
-
 
51544
    @Override
-
 
51545
    public String toString() {
-
 
51546
      StringBuilder sb = new StringBuilder("getScansForInventoryItem_args(");
-
 
51547
      boolean first = true;
-
 
51548
 
-
 
51549
      sb.append("inventoryItemId:");
-
 
51550
      sb.append(this.inventoryItemId);
-
 
51551
      first = false;
-
 
51552
      if (!first) sb.append(", ");
-
 
51553
      sb.append("type:");
-
 
51554
      if (this.type == null) {
-
 
51555
        sb.append("null");
-
 
51556
      } else {
-
 
51557
        sb.append(this.type);
-
 
51558
      }
-
 
51559
      first = false;
-
 
51560
      sb.append(")");
-
 
51561
      return sb.toString();
-
 
51562
    }
-
 
51563
 
-
 
51564
    public void validate() throws org.apache.thrift.TException {
-
 
51565
      // check for required fields
-
 
51566
    }
-
 
51567
 
-
 
51568
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
51569
      try {
-
 
51570
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
51571
      } catch (org.apache.thrift.TException te) {
-
 
51572
        throw new java.io.IOException(te);
-
 
51573
      }
-
 
51574
    }
-
 
51575
 
-
 
51576
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
51577
      try {
-
 
51578
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
51579
        __isset_bit_vector = new BitSet(1);
-
 
51580
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
51581
      } catch (org.apache.thrift.TException te) {
-
 
51582
        throw new java.io.IOException(te);
-
 
51583
      }
-
 
51584
    }
-
 
51585
 
-
 
51586
  }
-
 
51587
 
-
 
51588
  public static class getScansForInventoryItem_result implements org.apache.thrift.TBase<getScansForInventoryItem_result, getScansForInventoryItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
51589
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScansForInventoryItem_result");
-
 
51590
 
-
 
51591
    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);
-
 
51592
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
51593
 
-
 
51594
    private List<Scan> success; // required
-
 
51595
    private WarehouseServiceException ex; // required
-
 
51596
 
-
 
51597
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
51598
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
51599
      SUCCESS((short)0, "success"),
-
 
51600
      EX((short)1, "ex");
-
 
51601
 
-
 
51602
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
51603
 
-
 
51604
      static {
-
 
51605
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
51606
          byName.put(field.getFieldName(), field);
-
 
51607
        }
-
 
51608
      }
-
 
51609
 
-
 
51610
      /**
-
 
51611
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
51612
       */
-
 
51613
      public static _Fields findByThriftId(int fieldId) {
-
 
51614
        switch(fieldId) {
-
 
51615
          case 0: // SUCCESS
-
 
51616
            return SUCCESS;
-
 
51617
          case 1: // EX
-
 
51618
            return EX;
-
 
51619
          default:
-
 
51620
            return null;
-
 
51621
        }
-
 
51622
      }
-
 
51623
 
-
 
51624
      /**
-
 
51625
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
51626
       * if it is not found.
-
 
51627
       */
-
 
51628
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
51629
        _Fields fields = findByThriftId(fieldId);
-
 
51630
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
51631
        return fields;
-
 
51632
      }
-
 
51633
 
-
 
51634
      /**
-
 
51635
       * Find the _Fields constant that matches name, or null if its not found.
-
 
51636
       */
-
 
51637
      public static _Fields findByName(String name) {
-
 
51638
        return byName.get(name);
-
 
51639
      }
-
 
51640
 
-
 
51641
      private final short _thriftId;
-
 
51642
      private final String _fieldName;
-
 
51643
 
-
 
51644
      _Fields(short thriftId, String fieldName) {
-
 
51645
        _thriftId = thriftId;
-
 
51646
        _fieldName = fieldName;
-
 
51647
      }
-
 
51648
 
-
 
51649
      public short getThriftFieldId() {
-
 
51650
        return _thriftId;
-
 
51651
      }
-
 
51652
 
-
 
51653
      public String getFieldName() {
-
 
51654
        return _fieldName;
-
 
51655
      }
-
 
51656
    }
-
 
51657
 
-
 
51658
    // isset id assignments
-
 
51659
 
-
 
51660
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
51661
    static {
-
 
51662
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
51663
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
51664
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
51665
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
-
 
51666
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
51667
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
51668
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
51669
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScansForInventoryItem_result.class, metaDataMap);
-
 
51670
    }
-
 
51671
 
-
 
51672
    public getScansForInventoryItem_result() {
-
 
51673
    }
-
 
51674
 
-
 
51675
    public getScansForInventoryItem_result(
-
 
51676
      List<Scan> success,
-
 
51677
      WarehouseServiceException ex)
-
 
51678
    {
-
 
51679
      this();
-
 
51680
      this.success = success;
-
 
51681
      this.ex = ex;
-
 
51682
    }
-
 
51683
 
-
 
51684
    /**
-
 
51685
     * Performs a deep copy on <i>other</i>.
-
 
51686
     */
-
 
51687
    public getScansForInventoryItem_result(getScansForInventoryItem_result other) {
-
 
51688
      if (other.isSetSuccess()) {
-
 
51689
        List<Scan> __this__success = new ArrayList<Scan>();
-
 
51690
        for (Scan other_element : other.success) {
-
 
51691
          __this__success.add(new Scan(other_element));
-
 
51692
        }
-
 
51693
        this.success = __this__success;
-
 
51694
      }
-
 
51695
      if (other.isSetEx()) {
-
 
51696
        this.ex = new WarehouseServiceException(other.ex);
-
 
51697
      }
-
 
51698
    }
-
 
51699
 
-
 
51700
    public getScansForInventoryItem_result deepCopy() {
-
 
51701
      return new getScansForInventoryItem_result(this);
-
 
51702
    }
-
 
51703
 
-
 
51704
    @Override
-
 
51705
    public void clear() {
-
 
51706
      this.success = null;
-
 
51707
      this.ex = null;
-
 
51708
    }
-
 
51709
 
-
 
51710
    public int getSuccessSize() {
-
 
51711
      return (this.success == null) ? 0 : this.success.size();
-
 
51712
    }
-
 
51713
 
-
 
51714
    public java.util.Iterator<Scan> getSuccessIterator() {
-
 
51715
      return (this.success == null) ? null : this.success.iterator();
-
 
51716
    }
-
 
51717
 
-
 
51718
    public void addToSuccess(Scan elem) {
-
 
51719
      if (this.success == null) {
-
 
51720
        this.success = new ArrayList<Scan>();
-
 
51721
      }
-
 
51722
      this.success.add(elem);
-
 
51723
    }
-
 
51724
 
-
 
51725
    public List<Scan> getSuccess() {
-
 
51726
      return this.success;
-
 
51727
    }
-
 
51728
 
-
 
51729
    public void setSuccess(List<Scan> success) {
-
 
51730
      this.success = success;
-
 
51731
    }
-
 
51732
 
-
 
51733
    public void unsetSuccess() {
-
 
51734
      this.success = null;
-
 
51735
    }
-
 
51736
 
-
 
51737
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
51738
    public boolean isSetSuccess() {
-
 
51739
      return this.success != null;
-
 
51740
    }
-
 
51741
 
-
 
51742
    public void setSuccessIsSet(boolean value) {
-
 
51743
      if (!value) {
-
 
51744
        this.success = null;
-
 
51745
      }
-
 
51746
    }
-
 
51747
 
-
 
51748
    public WarehouseServiceException getEx() {
-
 
51749
      return this.ex;
-
 
51750
    }
-
 
51751
 
-
 
51752
    public void setEx(WarehouseServiceException ex) {
-
 
51753
      this.ex = ex;
-
 
51754
    }
-
 
51755
 
-
 
51756
    public void unsetEx() {
-
 
51757
      this.ex = null;
-
 
51758
    }
-
 
51759
 
-
 
51760
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
51761
    public boolean isSetEx() {
-
 
51762
      return this.ex != null;
-
 
51763
    }
-
 
51764
 
-
 
51765
    public void setExIsSet(boolean value) {
-
 
51766
      if (!value) {
-
 
51767
        this.ex = null;
-
 
51768
      }
-
 
51769
    }
-
 
51770
 
-
 
51771
    public void setFieldValue(_Fields field, Object value) {
-
 
51772
      switch (field) {
-
 
51773
      case SUCCESS:
-
 
51774
        if (value == null) {
-
 
51775
          unsetSuccess();
-
 
51776
        } else {
-
 
51777
          setSuccess((List<Scan>)value);
-
 
51778
        }
-
 
51779
        break;
-
 
51780
 
-
 
51781
      case EX:
-
 
51782
        if (value == null) {
-
 
51783
          unsetEx();
-
 
51784
        } else {
-
 
51785
          setEx((WarehouseServiceException)value);
-
 
51786
        }
-
 
51787
        break;
-
 
51788
 
-
 
51789
      }
-
 
51790
    }
-
 
51791
 
-
 
51792
    public Object getFieldValue(_Fields field) {
-
 
51793
      switch (field) {
-
 
51794
      case SUCCESS:
-
 
51795
        return getSuccess();
-
 
51796
 
-
 
51797
      case EX:
-
 
51798
        return getEx();
-
 
51799
 
-
 
51800
      }
-
 
51801
      throw new IllegalStateException();
-
 
51802
    }
-
 
51803
 
-
 
51804
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
51805
    public boolean isSet(_Fields field) {
-
 
51806
      if (field == null) {
-
 
51807
        throw new IllegalArgumentException();
-
 
51808
      }
-
 
51809
 
-
 
51810
      switch (field) {
-
 
51811
      case SUCCESS:
-
 
51812
        return isSetSuccess();
-
 
51813
      case EX:
-
 
51814
        return isSetEx();
-
 
51815
      }
-
 
51816
      throw new IllegalStateException();
-
 
51817
    }
-
 
51818
 
-
 
51819
    @Override
-
 
51820
    public boolean equals(Object that) {
-
 
51821
      if (that == null)
-
 
51822
        return false;
-
 
51823
      if (that instanceof getScansForInventoryItem_result)
-
 
51824
        return this.equals((getScansForInventoryItem_result)that);
-
 
51825
      return false;
-
 
51826
    }
-
 
51827
 
-
 
51828
    public boolean equals(getScansForInventoryItem_result that) {
-
 
51829
      if (that == null)
-
 
51830
        return false;
-
 
51831
 
-
 
51832
      boolean this_present_success = true && this.isSetSuccess();
-
 
51833
      boolean that_present_success = true && that.isSetSuccess();
-
 
51834
      if (this_present_success || that_present_success) {
-
 
51835
        if (!(this_present_success && that_present_success))
-
 
51836
          return false;
-
 
51837
        if (!this.success.equals(that.success))
-
 
51838
          return false;
-
 
51839
      }
-
 
51840
 
-
 
51841
      boolean this_present_ex = true && this.isSetEx();
-
 
51842
      boolean that_present_ex = true && that.isSetEx();
-
 
51843
      if (this_present_ex || that_present_ex) {
-
 
51844
        if (!(this_present_ex && that_present_ex))
-
 
51845
          return false;
-
 
51846
        if (!this.ex.equals(that.ex))
-
 
51847
          return false;
-
 
51848
      }
-
 
51849
 
-
 
51850
      return true;
-
 
51851
    }
-
 
51852
 
-
 
51853
    @Override
-
 
51854
    public int hashCode() {
-
 
51855
      return 0;
-
 
51856
    }
-
 
51857
 
-
 
51858
    public int compareTo(getScansForInventoryItem_result other) {
-
 
51859
      if (!getClass().equals(other.getClass())) {
-
 
51860
        return getClass().getName().compareTo(other.getClass().getName());
-
 
51861
      }
-
 
51862
 
-
 
51863
      int lastComparison = 0;
-
 
51864
      getScansForInventoryItem_result typedOther = (getScansForInventoryItem_result)other;
-
 
51865
 
-
 
51866
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
51867
      if (lastComparison != 0) {
-
 
51868
        return lastComparison;
-
 
51869
      }
-
 
51870
      if (isSetSuccess()) {
-
 
51871
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
51872
        if (lastComparison != 0) {
-
 
51873
          return lastComparison;
-
 
51874
        }
-
 
51875
      }
-
 
51876
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
51877
      if (lastComparison != 0) {
-
 
51878
        return lastComparison;
-
 
51879
      }
-
 
51880
      if (isSetEx()) {
-
 
51881
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
51882
        if (lastComparison != 0) {
-
 
51883
          return lastComparison;
-
 
51884
        }
-
 
51885
      }
-
 
51886
      return 0;
-
 
51887
    }
-
 
51888
 
-
 
51889
    public _Fields fieldForId(int fieldId) {
-
 
51890
      return _Fields.findByThriftId(fieldId);
-
 
51891
    }
-
 
51892
 
-
 
51893
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
51894
      org.apache.thrift.protocol.TField field;
-
 
51895
      iprot.readStructBegin();
-
 
51896
      while (true)
-
 
51897
      {
-
 
51898
        field = iprot.readFieldBegin();
-
 
51899
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
51900
          break;
-
 
51901
        }
-
 
51902
        switch (field.id) {
-
 
51903
          case 0: // SUCCESS
-
 
51904
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
51905
              {
-
 
51906
                org.apache.thrift.protocol.TList _list158 = iprot.readListBegin();
-
 
51907
                this.success = new ArrayList<Scan>(_list158.size);
-
 
51908
                for (int _i159 = 0; _i159 < _list158.size; ++_i159)
-
 
51909
                {
-
 
51910
                  Scan _elem160; // required
-
 
51911
                  _elem160 = new Scan();
-
 
51912
                  _elem160.read(iprot);
-
 
51913
                  this.success.add(_elem160);
-
 
51914
                }
-
 
51915
                iprot.readListEnd();
-
 
51916
              }
-
 
51917
            } else { 
-
 
51918
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51919
            }
-
 
51920
            break;
-
 
51921
          case 1: // EX
-
 
51922
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
51923
              this.ex = new WarehouseServiceException();
-
 
51924
              this.ex.read(iprot);
-
 
51925
            } else { 
-
 
51926
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51927
            }
-
 
51928
            break;
-
 
51929
          default:
-
 
51930
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51931
        }
-
 
51932
        iprot.readFieldEnd();
-
 
51933
      }
-
 
51934
      iprot.readStructEnd();
-
 
51935
      validate();
-
 
51936
    }
-
 
51937
 
-
 
51938
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
51939
      oprot.writeStructBegin(STRUCT_DESC);
-
 
51940
 
-
 
51941
      if (this.isSetSuccess()) {
-
 
51942
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
51943
        {
-
 
51944
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
51945
          for (Scan _iter161 : this.success)
-
 
51946
          {
-
 
51947
            _iter161.write(oprot);
-
 
51948
          }
-
 
51949
          oprot.writeListEnd();
-
 
51950
        }
-
 
51951
        oprot.writeFieldEnd();
-
 
51952
      } else if (this.isSetEx()) {
-
 
51953
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
51954
        this.ex.write(oprot);
-
 
51955
        oprot.writeFieldEnd();
-
 
51956
      }
-
 
51957
      oprot.writeFieldStop();
-
 
51958
      oprot.writeStructEnd();
-
 
51959
    }
-
 
51960
 
-
 
51961
    @Override
-
 
51962
    public String toString() {
-
 
51963
      StringBuilder sb = new StringBuilder("getScansForInventoryItem_result(");
-
 
51964
      boolean first = true;
-
 
51965
 
-
 
51966
      sb.append("success:");
-
 
51967
      if (this.success == null) {
-
 
51968
        sb.append("null");
51069
      } else {
51969
      } else {
51070
        sb.append(this.success);
51970
        sb.append(this.success);
51071
      }
51971
      }
51072
      first = false;
51972
      first = false;
51073
      if (!first) sb.append(", ");
51973
      if (!first) sb.append(", ");