Subversion Repositories SmartDukaan

Rev

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

Rev 9665 Rev 9761
Line 357... Line 357...
357
 
357
 
358
    public void addOrUpdateAllSnapdealInventory(List<SnapdealInventoryItem> allsnapdealinventorysnapshot) throws org.apache.thrift.TException;
358
    public void addOrUpdateAllSnapdealInventory(List<SnapdealInventoryItem> allsnapdealinventorysnapshot) throws org.apache.thrift.TException;
359
 
359
 
360
    public List<SnapdealInventoryItem> getSnapdealInventorySnapshot() throws org.apache.thrift.TException;
360
    public List<SnapdealInventoryItem> getSnapdealInventorySnapshot() throws org.apache.thrift.TException;
361
 
361
 
-
 
362
    public List<HoldInventoryDetail> getHoldInventoryDetails(long itemId, long warehouseId, long source) throws org.apache.thrift.TException;
-
 
363
 
362
  }
364
  }
363
 
365
 
364
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
366
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
365
 
367
 
366
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
368
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 499... Line 501...
499
 
501
 
500
    public void addOrUpdateAllSnapdealInventory(List<SnapdealInventoryItem> allsnapdealinventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAllSnapdealInventory_call> resultHandler) throws org.apache.thrift.TException;
502
    public void addOrUpdateAllSnapdealInventory(List<SnapdealInventoryItem> allsnapdealinventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAllSnapdealInventory_call> resultHandler) throws org.apache.thrift.TException;
501
 
503
 
502
    public void getSnapdealInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
504
    public void getSnapdealInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
503
 
505
 
-
 
506
    public void getHoldInventoryDetails(long itemId, long warehouseId, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHoldInventoryDetails_call> resultHandler) throws org.apache.thrift.TException;
-
 
507
 
504
  }
508
  }
505
 
509
 
506
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
510
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
507
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
511
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
508
      public Factory() {}
512
      public Factory() {}
Line 2159... Line 2163...
2159
        return result.success;
2163
        return result.success;
2160
      }
2164
      }
2161
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealInventorySnapshot failed: unknown result");
2165
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealInventorySnapshot failed: unknown result");
2162
    }
2166
    }
2163
 
2167
 
-
 
2168
    public List<HoldInventoryDetail> getHoldInventoryDetails(long itemId, long warehouseId, long source) throws org.apache.thrift.TException
-
 
2169
    {
-
 
2170
      send_getHoldInventoryDetails(itemId, warehouseId, source);
-
 
2171
      return recv_getHoldInventoryDetails();
-
 
2172
    }
-
 
2173
 
-
 
2174
    public void send_getHoldInventoryDetails(long itemId, long warehouseId, long source) throws org.apache.thrift.TException
-
 
2175
    {
-
 
2176
      getHoldInventoryDetails_args args = new getHoldInventoryDetails_args();
-
 
2177
      args.setItemId(itemId);
-
 
2178
      args.setWarehouseId(warehouseId);
-
 
2179
      args.setSource(source);
-
 
2180
      sendBase("getHoldInventoryDetails", args);
-
 
2181
    }
-
 
2182
 
-
 
2183
    public List<HoldInventoryDetail> recv_getHoldInventoryDetails() throws org.apache.thrift.TException
-
 
2184
    {
-
 
2185
      getHoldInventoryDetails_result result = new getHoldInventoryDetails_result();
-
 
2186
      receiveBase(result, "getHoldInventoryDetails");
-
 
2187
      if (result.isSetSuccess()) {
-
 
2188
        return result.success;
-
 
2189
      }
-
 
2190
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHoldInventoryDetails failed: unknown result");
-
 
2191
    }
-
 
2192
 
2164
  }
2193
  }
2165
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2194
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2166
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2195
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2167
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2196
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2168
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2197
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4520... Line 4549...
4520
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4549
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4521
        return (new Client(prot)).recv_getSnapdealInventorySnapshot();
4550
        return (new Client(prot)).recv_getSnapdealInventorySnapshot();
4522
      }
4551
      }
4523
    }
4552
    }
4524
 
4553
 
-
 
4554
    public void getHoldInventoryDetails(long itemId, long warehouseId, long source, org.apache.thrift.async.AsyncMethodCallback<getHoldInventoryDetails_call> resultHandler) throws org.apache.thrift.TException {
-
 
4555
      checkReady();
-
 
4556
      getHoldInventoryDetails_call method_call = new getHoldInventoryDetails_call(itemId, warehouseId, source, resultHandler, this, ___protocolFactory, ___transport);
-
 
4557
      this.___currentMethod = method_call;
-
 
4558
      ___manager.call(method_call);
-
 
4559
    }
-
 
4560
 
-
 
4561
    public static class getHoldInventoryDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4562
      private long itemId;
-
 
4563
      private long warehouseId;
-
 
4564
      private long source;
-
 
4565
      public getHoldInventoryDetails_call(long itemId, long warehouseId, long source, org.apache.thrift.async.AsyncMethodCallback<getHoldInventoryDetails_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 {
-
 
4566
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4567
        this.itemId = itemId;
-
 
4568
        this.warehouseId = warehouseId;
-
 
4569
        this.source = source;
-
 
4570
      }
-
 
4571
 
-
 
4572
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4573
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHoldInventoryDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4574
        getHoldInventoryDetails_args args = new getHoldInventoryDetails_args();
-
 
4575
        args.setItemId(itemId);
-
 
4576
        args.setWarehouseId(warehouseId);
-
 
4577
        args.setSource(source);
-
 
4578
        args.write(prot);
-
 
4579
        prot.writeMessageEnd();
-
 
4580
      }
-
 
4581
 
-
 
4582
      public List<HoldInventoryDetail> getResult() throws org.apache.thrift.TException {
-
 
4583
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4584
          throw new IllegalStateException("Method call not finished!");
-
 
4585
        }
-
 
4586
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4587
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4588
        return (new Client(prot)).recv_getHoldInventoryDetails();
-
 
4589
      }
-
 
4590
    }
-
 
4591
 
4525
  }
4592
  }
4526
 
4593
 
4527
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4594
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4528
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4595
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4529
    public Processor(I iface) {
4596
    public Processor(I iface) {
Line 4602... Line 4669...
4602
      processMap.put("getNlcForWarehouse", new getNlcForWarehouse());
4669
      processMap.put("getNlcForWarehouse", new getNlcForWarehouse());
4603
      processMap.put("getHeldInventoryMapForItem", new getHeldInventoryMapForItem());
4670
      processMap.put("getHeldInventoryMapForItem", new getHeldInventoryMapForItem());
4604
      processMap.put("addOrUpdateAllAmazonFbaInventory", new addOrUpdateAllAmazonFbaInventory());
4671
      processMap.put("addOrUpdateAllAmazonFbaInventory", new addOrUpdateAllAmazonFbaInventory());
4605
      processMap.put("addOrUpdateAllSnapdealInventory", new addOrUpdateAllSnapdealInventory());
4672
      processMap.put("addOrUpdateAllSnapdealInventory", new addOrUpdateAllSnapdealInventory());
4606
      processMap.put("getSnapdealInventorySnapshot", new getSnapdealInventorySnapshot());
4673
      processMap.put("getSnapdealInventorySnapshot", new getSnapdealInventorySnapshot());
-
 
4674
      processMap.put("getHoldInventoryDetails", new getHoldInventoryDetails());
4607
      return processMap;
4675
      return processMap;
4608
    }
4676
    }
4609
 
4677
 
4610
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
4678
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
4611
      public addWarehouse() {
4679
      public addWarehouse() {
Line 5815... Line 5883...
5815
        result.success = iface.getSnapdealInventorySnapshot();
5883
        result.success = iface.getSnapdealInventorySnapshot();
5816
        return result;
5884
        return result;
5817
      }
5885
      }
5818
    }
5886
    }
5819
 
5887
 
-
 
5888
    private static class getHoldInventoryDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHoldInventoryDetails_args> {
-
 
5889
      public getHoldInventoryDetails() {
-
 
5890
        super("getHoldInventoryDetails");
-
 
5891
      }
-
 
5892
 
-
 
5893
      protected getHoldInventoryDetails_args getEmptyArgsInstance() {
-
 
5894
        return new getHoldInventoryDetails_args();
-
 
5895
      }
-
 
5896
 
-
 
5897
      protected getHoldInventoryDetails_result getResult(I iface, getHoldInventoryDetails_args args) throws org.apache.thrift.TException {
-
 
5898
        getHoldInventoryDetails_result result = new getHoldInventoryDetails_result();
-
 
5899
        result.success = iface.getHoldInventoryDetails(args.itemId, args.warehouseId, args.source);
-
 
5900
        return result;
-
 
5901
      }
-
 
5902
    }
-
 
5903
 
5820
  }
5904
  }
5821
 
5905
 
5822
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
5906
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
5823
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
5907
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
5824
 
5908
 
Line 51368... Line 51452...
51368
      boolean first = true;
51452
      boolean first = true;
51369
 
51453
 
51370
      sb.append("success:");
51454
      sb.append("success:");
51371
      if (this.success == null) {
51455
      if (this.success == null) {
51372
        sb.append("null");
51456
        sb.append("null");
-
 
51457
      } else {
-
 
51458
        sb.append(this.success);
-
 
51459
      }
-
 
51460
      first = false;
-
 
51461
      sb.append(")");
-
 
51462
      return sb.toString();
-
 
51463
    }
-
 
51464
 
-
 
51465
    public void validate() throws org.apache.thrift.TException {
-
 
51466
      // check for required fields
-
 
51467
    }
-
 
51468
 
-
 
51469
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
51470
      try {
-
 
51471
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
51472
      } catch (org.apache.thrift.TException te) {
-
 
51473
        throw new java.io.IOException(te);
-
 
51474
      }
-
 
51475
    }
-
 
51476
 
-
 
51477
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
51478
      try {
-
 
51479
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
51480
      } catch (org.apache.thrift.TException te) {
-
 
51481
        throw new java.io.IOException(te);
-
 
51482
      }
-
 
51483
    }
-
 
51484
 
-
 
51485
  }
-
 
51486
 
-
 
51487
  public static class getHoldInventoryDetails_args implements org.apache.thrift.TBase<getHoldInventoryDetails_args, getHoldInventoryDetails_args._Fields>, java.io.Serializable, Cloneable   {
-
 
51488
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHoldInventoryDetails_args");
-
 
51489
 
-
 
51490
    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);
-
 
51491
    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)2);
-
 
51492
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
51493
 
-
 
51494
    private long itemId; // required
-
 
51495
    private long warehouseId; // required
-
 
51496
    private long source; // required
-
 
51497
 
-
 
51498
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
51499
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
51500
      ITEM_ID((short)1, "itemId"),
-
 
51501
      WAREHOUSE_ID((short)2, "warehouseId"),
-
 
51502
      SOURCE((short)3, "source");
-
 
51503
 
-
 
51504
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
51505
 
-
 
51506
      static {
-
 
51507
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
51508
          byName.put(field.getFieldName(), field);
-
 
51509
        }
-
 
51510
      }
-
 
51511
 
-
 
51512
      /**
-
 
51513
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
51514
       */
-
 
51515
      public static _Fields findByThriftId(int fieldId) {
-
 
51516
        switch(fieldId) {
-
 
51517
          case 1: // ITEM_ID
-
 
51518
            return ITEM_ID;
-
 
51519
          case 2: // WAREHOUSE_ID
-
 
51520
            return WAREHOUSE_ID;
-
 
51521
          case 3: // SOURCE
-
 
51522
            return SOURCE;
-
 
51523
          default:
-
 
51524
            return null;
-
 
51525
        }
-
 
51526
      }
-
 
51527
 
-
 
51528
      /**
-
 
51529
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
51530
       * if it is not found.
-
 
51531
       */
-
 
51532
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
51533
        _Fields fields = findByThriftId(fieldId);
-
 
51534
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
51535
        return fields;
-
 
51536
      }
-
 
51537
 
-
 
51538
      /**
-
 
51539
       * Find the _Fields constant that matches name, or null if its not found.
-
 
51540
       */
-
 
51541
      public static _Fields findByName(String name) {
-
 
51542
        return byName.get(name);
-
 
51543
      }
-
 
51544
 
-
 
51545
      private final short _thriftId;
-
 
51546
      private final String _fieldName;
-
 
51547
 
-
 
51548
      _Fields(short thriftId, String fieldName) {
-
 
51549
        _thriftId = thriftId;
-
 
51550
        _fieldName = fieldName;
-
 
51551
      }
-
 
51552
 
-
 
51553
      public short getThriftFieldId() {
-
 
51554
        return _thriftId;
-
 
51555
      }
-
 
51556
 
-
 
51557
      public String getFieldName() {
-
 
51558
        return _fieldName;
-
 
51559
      }
-
 
51560
    }
-
 
51561
 
-
 
51562
    // isset id assignments
-
 
51563
    private static final int __ITEMID_ISSET_ID = 0;
-
 
51564
    private static final int __WAREHOUSEID_ISSET_ID = 1;
-
 
51565
    private static final int __SOURCE_ISSET_ID = 2;
-
 
51566
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
51567
 
-
 
51568
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
51569
    static {
-
 
51570
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
51571
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
51572
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
51573
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
51574
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
51575
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
51576
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
51577
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
51578
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHoldInventoryDetails_args.class, metaDataMap);
-
 
51579
    }
-
 
51580
 
-
 
51581
    public getHoldInventoryDetails_args() {
-
 
51582
    }
-
 
51583
 
-
 
51584
    public getHoldInventoryDetails_args(
-
 
51585
      long itemId,
-
 
51586
      long warehouseId,
-
 
51587
      long source)
-
 
51588
    {
-
 
51589
      this();
-
 
51590
      this.itemId = itemId;
-
 
51591
      setItemIdIsSet(true);
-
 
51592
      this.warehouseId = warehouseId;
-
 
51593
      setWarehouseIdIsSet(true);
-
 
51594
      this.source = source;
-
 
51595
      setSourceIsSet(true);
-
 
51596
    }
-
 
51597
 
-
 
51598
    /**
-
 
51599
     * Performs a deep copy on <i>other</i>.
-
 
51600
     */
-
 
51601
    public getHoldInventoryDetails_args(getHoldInventoryDetails_args other) {
-
 
51602
      __isset_bit_vector.clear();
-
 
51603
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
51604
      this.itemId = other.itemId;
-
 
51605
      this.warehouseId = other.warehouseId;
-
 
51606
      this.source = other.source;
-
 
51607
    }
-
 
51608
 
-
 
51609
    public getHoldInventoryDetails_args deepCopy() {
-
 
51610
      return new getHoldInventoryDetails_args(this);
-
 
51611
    }
-
 
51612
 
-
 
51613
    @Override
-
 
51614
    public void clear() {
-
 
51615
      setItemIdIsSet(false);
-
 
51616
      this.itemId = 0;
-
 
51617
      setWarehouseIdIsSet(false);
-
 
51618
      this.warehouseId = 0;
-
 
51619
      setSourceIsSet(false);
-
 
51620
      this.source = 0;
-
 
51621
    }
-
 
51622
 
-
 
51623
    public long getItemId() {
-
 
51624
      return this.itemId;
-
 
51625
    }
-
 
51626
 
-
 
51627
    public void setItemId(long itemId) {
-
 
51628
      this.itemId = itemId;
-
 
51629
      setItemIdIsSet(true);
-
 
51630
    }
-
 
51631
 
-
 
51632
    public void unsetItemId() {
-
 
51633
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
51634
    }
-
 
51635
 
-
 
51636
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
51637
    public boolean isSetItemId() {
-
 
51638
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
51639
    }
-
 
51640
 
-
 
51641
    public void setItemIdIsSet(boolean value) {
-
 
51642
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
51643
    }
-
 
51644
 
-
 
51645
    public long getWarehouseId() {
-
 
51646
      return this.warehouseId;
-
 
51647
    }
-
 
51648
 
-
 
51649
    public void setWarehouseId(long warehouseId) {
-
 
51650
      this.warehouseId = warehouseId;
-
 
51651
      setWarehouseIdIsSet(true);
-
 
51652
    }
-
 
51653
 
-
 
51654
    public void unsetWarehouseId() {
-
 
51655
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
-
 
51656
    }
-
 
51657
 
-
 
51658
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
-
 
51659
    public boolean isSetWarehouseId() {
-
 
51660
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
-
 
51661
    }
-
 
51662
 
-
 
51663
    public void setWarehouseIdIsSet(boolean value) {
-
 
51664
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
-
 
51665
    }
-
 
51666
 
-
 
51667
    public long getSource() {
-
 
51668
      return this.source;
-
 
51669
    }
-
 
51670
 
-
 
51671
    public void setSource(long source) {
-
 
51672
      this.source = source;
-
 
51673
      setSourceIsSet(true);
-
 
51674
    }
-
 
51675
 
-
 
51676
    public void unsetSource() {
-
 
51677
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
-
 
51678
    }
-
 
51679
 
-
 
51680
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
-
 
51681
    public boolean isSetSource() {
-
 
51682
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
-
 
51683
    }
-
 
51684
 
-
 
51685
    public void setSourceIsSet(boolean value) {
-
 
51686
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
-
 
51687
    }
-
 
51688
 
-
 
51689
    public void setFieldValue(_Fields field, Object value) {
-
 
51690
      switch (field) {
-
 
51691
      case ITEM_ID:
-
 
51692
        if (value == null) {
-
 
51693
          unsetItemId();
-
 
51694
        } else {
-
 
51695
          setItemId((Long)value);
-
 
51696
        }
-
 
51697
        break;
-
 
51698
 
-
 
51699
      case WAREHOUSE_ID:
-
 
51700
        if (value == null) {
-
 
51701
          unsetWarehouseId();
-
 
51702
        } else {
-
 
51703
          setWarehouseId((Long)value);
-
 
51704
        }
-
 
51705
        break;
-
 
51706
 
-
 
51707
      case SOURCE:
-
 
51708
        if (value == null) {
-
 
51709
          unsetSource();
-
 
51710
        } else {
-
 
51711
          setSource((Long)value);
-
 
51712
        }
-
 
51713
        break;
-
 
51714
 
-
 
51715
      }
-
 
51716
    }
-
 
51717
 
-
 
51718
    public Object getFieldValue(_Fields field) {
-
 
51719
      switch (field) {
-
 
51720
      case ITEM_ID:
-
 
51721
        return Long.valueOf(getItemId());
-
 
51722
 
-
 
51723
      case WAREHOUSE_ID:
-
 
51724
        return Long.valueOf(getWarehouseId());
-
 
51725
 
-
 
51726
      case SOURCE:
-
 
51727
        return Long.valueOf(getSource());
-
 
51728
 
-
 
51729
      }
-
 
51730
      throw new IllegalStateException();
-
 
51731
    }
-
 
51732
 
-
 
51733
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
51734
    public boolean isSet(_Fields field) {
-
 
51735
      if (field == null) {
-
 
51736
        throw new IllegalArgumentException();
-
 
51737
      }
-
 
51738
 
-
 
51739
      switch (field) {
-
 
51740
      case ITEM_ID:
-
 
51741
        return isSetItemId();
-
 
51742
      case WAREHOUSE_ID:
-
 
51743
        return isSetWarehouseId();
-
 
51744
      case SOURCE:
-
 
51745
        return isSetSource();
-
 
51746
      }
-
 
51747
      throw new IllegalStateException();
-
 
51748
    }
-
 
51749
 
-
 
51750
    @Override
-
 
51751
    public boolean equals(Object that) {
-
 
51752
      if (that == null)
-
 
51753
        return false;
-
 
51754
      if (that instanceof getHoldInventoryDetails_args)
-
 
51755
        return this.equals((getHoldInventoryDetails_args)that);
-
 
51756
      return false;
-
 
51757
    }
-
 
51758
 
-
 
51759
    public boolean equals(getHoldInventoryDetails_args that) {
-
 
51760
      if (that == null)
-
 
51761
        return false;
-
 
51762
 
-
 
51763
      boolean this_present_itemId = true;
-
 
51764
      boolean that_present_itemId = true;
-
 
51765
      if (this_present_itemId || that_present_itemId) {
-
 
51766
        if (!(this_present_itemId && that_present_itemId))
-
 
51767
          return false;
-
 
51768
        if (this.itemId != that.itemId)
-
 
51769
          return false;
-
 
51770
      }
-
 
51771
 
-
 
51772
      boolean this_present_warehouseId = true;
-
 
51773
      boolean that_present_warehouseId = true;
-
 
51774
      if (this_present_warehouseId || that_present_warehouseId) {
-
 
51775
        if (!(this_present_warehouseId && that_present_warehouseId))
-
 
51776
          return false;
-
 
51777
        if (this.warehouseId != that.warehouseId)
-
 
51778
          return false;
-
 
51779
      }
-
 
51780
 
-
 
51781
      boolean this_present_source = true;
-
 
51782
      boolean that_present_source = true;
-
 
51783
      if (this_present_source || that_present_source) {
-
 
51784
        if (!(this_present_source && that_present_source))
-
 
51785
          return false;
-
 
51786
        if (this.source != that.source)
-
 
51787
          return false;
-
 
51788
      }
-
 
51789
 
-
 
51790
      return true;
-
 
51791
    }
-
 
51792
 
-
 
51793
    @Override
-
 
51794
    public int hashCode() {
-
 
51795
      return 0;
-
 
51796
    }
-
 
51797
 
-
 
51798
    public int compareTo(getHoldInventoryDetails_args other) {
-
 
51799
      if (!getClass().equals(other.getClass())) {
-
 
51800
        return getClass().getName().compareTo(other.getClass().getName());
-
 
51801
      }
-
 
51802
 
-
 
51803
      int lastComparison = 0;
-
 
51804
      getHoldInventoryDetails_args typedOther = (getHoldInventoryDetails_args)other;
-
 
51805
 
-
 
51806
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
51807
      if (lastComparison != 0) {
-
 
51808
        return lastComparison;
-
 
51809
      }
-
 
51810
      if (isSetItemId()) {
-
 
51811
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
51812
        if (lastComparison != 0) {
-
 
51813
          return lastComparison;
-
 
51814
        }
-
 
51815
      }
-
 
51816
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
-
 
51817
      if (lastComparison != 0) {
-
 
51818
        return lastComparison;
-
 
51819
      }
-
 
51820
      if (isSetWarehouseId()) {
-
 
51821
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
-
 
51822
        if (lastComparison != 0) {
-
 
51823
          return lastComparison;
-
 
51824
        }
-
 
51825
      }
-
 
51826
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
-
 
51827
      if (lastComparison != 0) {
-
 
51828
        return lastComparison;
-
 
51829
      }
-
 
51830
      if (isSetSource()) {
-
 
51831
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
-
 
51832
        if (lastComparison != 0) {
-
 
51833
          return lastComparison;
-
 
51834
        }
-
 
51835
      }
-
 
51836
      return 0;
-
 
51837
    }
-
 
51838
 
-
 
51839
    public _Fields fieldForId(int fieldId) {
-
 
51840
      return _Fields.findByThriftId(fieldId);
-
 
51841
    }
-
 
51842
 
-
 
51843
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
51844
      org.apache.thrift.protocol.TField field;
-
 
51845
      iprot.readStructBegin();
-
 
51846
      while (true)
-
 
51847
      {
-
 
51848
        field = iprot.readFieldBegin();
-
 
51849
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
51850
          break;
-
 
51851
        }
-
 
51852
        switch (field.id) {
-
 
51853
          case 1: // ITEM_ID
-
 
51854
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
51855
              this.itemId = iprot.readI64();
-
 
51856
              setItemIdIsSet(true);
-
 
51857
            } else { 
-
 
51858
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51859
            }
-
 
51860
            break;
-
 
51861
          case 2: // WAREHOUSE_ID
-
 
51862
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
51863
              this.warehouseId = iprot.readI64();
-
 
51864
              setWarehouseIdIsSet(true);
-
 
51865
            } else { 
-
 
51866
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51867
            }
-
 
51868
            break;
-
 
51869
          case 3: // SOURCE
-
 
51870
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
51871
              this.source = iprot.readI64();
-
 
51872
              setSourceIsSet(true);
-
 
51873
            } else { 
-
 
51874
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51875
            }
-
 
51876
            break;
-
 
51877
          default:
-
 
51878
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
51879
        }
-
 
51880
        iprot.readFieldEnd();
-
 
51881
      }
-
 
51882
      iprot.readStructEnd();
-
 
51883
      validate();
-
 
51884
    }
-
 
51885
 
-
 
51886
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
51887
      validate();
-
 
51888
 
-
 
51889
      oprot.writeStructBegin(STRUCT_DESC);
-
 
51890
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
51891
      oprot.writeI64(this.itemId);
-
 
51892
      oprot.writeFieldEnd();
-
 
51893
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
51894
      oprot.writeI64(this.warehouseId);
-
 
51895
      oprot.writeFieldEnd();
-
 
51896
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
-
 
51897
      oprot.writeI64(this.source);
-
 
51898
      oprot.writeFieldEnd();
-
 
51899
      oprot.writeFieldStop();
-
 
51900
      oprot.writeStructEnd();
-
 
51901
    }
-
 
51902
 
-
 
51903
    @Override
-
 
51904
    public String toString() {
-
 
51905
      StringBuilder sb = new StringBuilder("getHoldInventoryDetails_args(");
-
 
51906
      boolean first = true;
-
 
51907
 
-
 
51908
      sb.append("itemId:");
-
 
51909
      sb.append(this.itemId);
-
 
51910
      first = false;
-
 
51911
      if (!first) sb.append(", ");
-
 
51912
      sb.append("warehouseId:");
-
 
51913
      sb.append(this.warehouseId);
-
 
51914
      first = false;
-
 
51915
      if (!first) sb.append(", ");
-
 
51916
      sb.append("source:");
-
 
51917
      sb.append(this.source);
-
 
51918
      first = false;
-
 
51919
      sb.append(")");
-
 
51920
      return sb.toString();
-
 
51921
    }
-
 
51922
 
-
 
51923
    public void validate() throws org.apache.thrift.TException {
-
 
51924
      // check for required fields
-
 
51925
    }
-
 
51926
 
-
 
51927
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
51928
      try {
-
 
51929
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
51930
      } catch (org.apache.thrift.TException te) {
-
 
51931
        throw new java.io.IOException(te);
-
 
51932
      }
-
 
51933
    }
-
 
51934
 
-
 
51935
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
51936
      try {
-
 
51937
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
51938
        __isset_bit_vector = new BitSet(1);
-
 
51939
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
51940
      } catch (org.apache.thrift.TException te) {
-
 
51941
        throw new java.io.IOException(te);
-
 
51942
      }
-
 
51943
    }
-
 
51944
 
-
 
51945
  }
-
 
51946
 
-
 
51947
  public static class getHoldInventoryDetails_result implements org.apache.thrift.TBase<getHoldInventoryDetails_result, getHoldInventoryDetails_result._Fields>, java.io.Serializable, Cloneable   {
-
 
51948
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHoldInventoryDetails_result");
-
 
51949
 
-
 
51950
    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);
-
 
51951
 
-
 
51952
    private List<HoldInventoryDetail> success; // required
-
 
51953
 
-
 
51954
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
51955
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
51956
      SUCCESS((short)0, "success");
-
 
51957
 
-
 
51958
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
51959
 
-
 
51960
      static {
-
 
51961
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
51962
          byName.put(field.getFieldName(), field);
-
 
51963
        }
-
 
51964
      }
-
 
51965
 
-
 
51966
      /**
-
 
51967
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
51968
       */
-
 
51969
      public static _Fields findByThriftId(int fieldId) {
-
 
51970
        switch(fieldId) {
-
 
51971
          case 0: // SUCCESS
-
 
51972
            return SUCCESS;
-
 
51973
          default:
-
 
51974
            return null;
-
 
51975
        }
-
 
51976
      }
-
 
51977
 
-
 
51978
      /**
-
 
51979
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
51980
       * if it is not found.
-
 
51981
       */
-
 
51982
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
51983
        _Fields fields = findByThriftId(fieldId);
-
 
51984
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
51985
        return fields;
-
 
51986
      }
-
 
51987
 
-
 
51988
      /**
-
 
51989
       * Find the _Fields constant that matches name, or null if its not found.
-
 
51990
       */
-
 
51991
      public static _Fields findByName(String name) {
-
 
51992
        return byName.get(name);
-
 
51993
      }
-
 
51994
 
-
 
51995
      private final short _thriftId;
-
 
51996
      private final String _fieldName;
-
 
51997
 
-
 
51998
      _Fields(short thriftId, String fieldName) {
-
 
51999
        _thriftId = thriftId;
-
 
52000
        _fieldName = fieldName;
-
 
52001
      }
-
 
52002
 
-
 
52003
      public short getThriftFieldId() {
-
 
52004
        return _thriftId;
-
 
52005
      }
-
 
52006
 
-
 
52007
      public String getFieldName() {
-
 
52008
        return _fieldName;
-
 
52009
      }
-
 
52010
    }
-
 
52011
 
-
 
52012
    // isset id assignments
-
 
52013
 
-
 
52014
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
52015
    static {
-
 
52016
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
52017
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
52018
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
52019
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, HoldInventoryDetail.class))));
-
 
52020
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
52021
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHoldInventoryDetails_result.class, metaDataMap);
-
 
52022
    }
-
 
52023
 
-
 
52024
    public getHoldInventoryDetails_result() {
-
 
52025
    }
-
 
52026
 
-
 
52027
    public getHoldInventoryDetails_result(
-
 
52028
      List<HoldInventoryDetail> success)
-
 
52029
    {
-
 
52030
      this();
-
 
52031
      this.success = success;
-
 
52032
    }
-
 
52033
 
-
 
52034
    /**
-
 
52035
     * Performs a deep copy on <i>other</i>.
-
 
52036
     */
-
 
52037
    public getHoldInventoryDetails_result(getHoldInventoryDetails_result other) {
-
 
52038
      if (other.isSetSuccess()) {
-
 
52039
        List<HoldInventoryDetail> __this__success = new ArrayList<HoldInventoryDetail>();
-
 
52040
        for (HoldInventoryDetail other_element : other.success) {
-
 
52041
          __this__success.add(new HoldInventoryDetail(other_element));
-
 
52042
        }
-
 
52043
        this.success = __this__success;
-
 
52044
      }
-
 
52045
    }
-
 
52046
 
-
 
52047
    public getHoldInventoryDetails_result deepCopy() {
-
 
52048
      return new getHoldInventoryDetails_result(this);
-
 
52049
    }
-
 
52050
 
-
 
52051
    @Override
-
 
52052
    public void clear() {
-
 
52053
      this.success = null;
-
 
52054
    }
-
 
52055
 
-
 
52056
    public int getSuccessSize() {
-
 
52057
      return (this.success == null) ? 0 : this.success.size();
-
 
52058
    }
-
 
52059
 
-
 
52060
    public java.util.Iterator<HoldInventoryDetail> getSuccessIterator() {
-
 
52061
      return (this.success == null) ? null : this.success.iterator();
-
 
52062
    }
-
 
52063
 
-
 
52064
    public void addToSuccess(HoldInventoryDetail elem) {
-
 
52065
      if (this.success == null) {
-
 
52066
        this.success = new ArrayList<HoldInventoryDetail>();
-
 
52067
      }
-
 
52068
      this.success.add(elem);
-
 
52069
    }
-
 
52070
 
-
 
52071
    public List<HoldInventoryDetail> getSuccess() {
-
 
52072
      return this.success;
-
 
52073
    }
-
 
52074
 
-
 
52075
    public void setSuccess(List<HoldInventoryDetail> success) {
-
 
52076
      this.success = success;
-
 
52077
    }
-
 
52078
 
-
 
52079
    public void unsetSuccess() {
-
 
52080
      this.success = null;
-
 
52081
    }
-
 
52082
 
-
 
52083
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
52084
    public boolean isSetSuccess() {
-
 
52085
      return this.success != null;
-
 
52086
    }
-
 
52087
 
-
 
52088
    public void setSuccessIsSet(boolean value) {
-
 
52089
      if (!value) {
-
 
52090
        this.success = null;
-
 
52091
      }
-
 
52092
    }
-
 
52093
 
-
 
52094
    public void setFieldValue(_Fields field, Object value) {
-
 
52095
      switch (field) {
-
 
52096
      case SUCCESS:
-
 
52097
        if (value == null) {
-
 
52098
          unsetSuccess();
-
 
52099
        } else {
-
 
52100
          setSuccess((List<HoldInventoryDetail>)value);
-
 
52101
        }
-
 
52102
        break;
-
 
52103
 
-
 
52104
      }
-
 
52105
    }
-
 
52106
 
-
 
52107
    public Object getFieldValue(_Fields field) {
-
 
52108
      switch (field) {
-
 
52109
      case SUCCESS:
-
 
52110
        return getSuccess();
-
 
52111
 
-
 
52112
      }
-
 
52113
      throw new IllegalStateException();
-
 
52114
    }
-
 
52115
 
-
 
52116
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
52117
    public boolean isSet(_Fields field) {
-
 
52118
      if (field == null) {
-
 
52119
        throw new IllegalArgumentException();
-
 
52120
      }
-
 
52121
 
-
 
52122
      switch (field) {
-
 
52123
      case SUCCESS:
-
 
52124
        return isSetSuccess();
-
 
52125
      }
-
 
52126
      throw new IllegalStateException();
-
 
52127
    }
-
 
52128
 
-
 
52129
    @Override
-
 
52130
    public boolean equals(Object that) {
-
 
52131
      if (that == null)
-
 
52132
        return false;
-
 
52133
      if (that instanceof getHoldInventoryDetails_result)
-
 
52134
        return this.equals((getHoldInventoryDetails_result)that);
-
 
52135
      return false;
-
 
52136
    }
-
 
52137
 
-
 
52138
    public boolean equals(getHoldInventoryDetails_result that) {
-
 
52139
      if (that == null)
-
 
52140
        return false;
-
 
52141
 
-
 
52142
      boolean this_present_success = true && this.isSetSuccess();
-
 
52143
      boolean that_present_success = true && that.isSetSuccess();
-
 
52144
      if (this_present_success || that_present_success) {
-
 
52145
        if (!(this_present_success && that_present_success))
-
 
52146
          return false;
-
 
52147
        if (!this.success.equals(that.success))
-
 
52148
          return false;
-
 
52149
      }
-
 
52150
 
-
 
52151
      return true;
-
 
52152
    }
-
 
52153
 
-
 
52154
    @Override
-
 
52155
    public int hashCode() {
-
 
52156
      return 0;
-
 
52157
    }
-
 
52158
 
-
 
52159
    public int compareTo(getHoldInventoryDetails_result other) {
-
 
52160
      if (!getClass().equals(other.getClass())) {
-
 
52161
        return getClass().getName().compareTo(other.getClass().getName());
-
 
52162
      }
-
 
52163
 
-
 
52164
      int lastComparison = 0;
-
 
52165
      getHoldInventoryDetails_result typedOther = (getHoldInventoryDetails_result)other;
-
 
52166
 
-
 
52167
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
52168
      if (lastComparison != 0) {
-
 
52169
        return lastComparison;
-
 
52170
      }
-
 
52171
      if (isSetSuccess()) {
-
 
52172
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
52173
        if (lastComparison != 0) {
-
 
52174
          return lastComparison;
-
 
52175
        }
-
 
52176
      }
-
 
52177
      return 0;
-
 
52178
    }
-
 
52179
 
-
 
52180
    public _Fields fieldForId(int fieldId) {
-
 
52181
      return _Fields.findByThriftId(fieldId);
-
 
52182
    }
-
 
52183
 
-
 
52184
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
52185
      org.apache.thrift.protocol.TField field;
-
 
52186
      iprot.readStructBegin();
-
 
52187
      while (true)
-
 
52188
      {
-
 
52189
        field = iprot.readFieldBegin();
-
 
52190
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
52191
          break;
-
 
52192
        }
-
 
52193
        switch (field.id) {
-
 
52194
          case 0: // SUCCESS
-
 
52195
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
52196
              {
-
 
52197
                org.apache.thrift.protocol.TList _list155 = iprot.readListBegin();
-
 
52198
                this.success = new ArrayList<HoldInventoryDetail>(_list155.size);
-
 
52199
                for (int _i156 = 0; _i156 < _list155.size; ++_i156)
-
 
52200
                {
-
 
52201
                  HoldInventoryDetail _elem157; // required
-
 
52202
                  _elem157 = new HoldInventoryDetail();
-
 
52203
                  _elem157.read(iprot);
-
 
52204
                  this.success.add(_elem157);
-
 
52205
                }
-
 
52206
                iprot.readListEnd();
-
 
52207
              }
-
 
52208
            } else { 
-
 
52209
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52210
            }
-
 
52211
            break;
-
 
52212
          default:
-
 
52213
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
52214
        }
-
 
52215
        iprot.readFieldEnd();
-
 
52216
      }
-
 
52217
      iprot.readStructEnd();
-
 
52218
      validate();
-
 
52219
    }
-
 
52220
 
-
 
52221
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
52222
      oprot.writeStructBegin(STRUCT_DESC);
-
 
52223
 
-
 
52224
      if (this.isSetSuccess()) {
-
 
52225
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
52226
        {
-
 
52227
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
52228
          for (HoldInventoryDetail _iter158 : this.success)
-
 
52229
          {
-
 
52230
            _iter158.write(oprot);
-
 
52231
          }
-
 
52232
          oprot.writeListEnd();
-
 
52233
        }
-
 
52234
        oprot.writeFieldEnd();
-
 
52235
      }
-
 
52236
      oprot.writeFieldStop();
-
 
52237
      oprot.writeStructEnd();
-
 
52238
    }
-
 
52239
 
-
 
52240
    @Override
-
 
52241
    public String toString() {
-
 
52242
      StringBuilder sb = new StringBuilder("getHoldInventoryDetails_result(");
-
 
52243
      boolean first = true;
-
 
52244
 
-
 
52245
      sb.append("success:");
-
 
52246
      if (this.success == null) {
-
 
52247
        sb.append("null");
51373
      } else {
52248
      } else {
51374
        sb.append(this.success);
52249
        sb.append(this.success);
51375
      }
52250
      }
51376
      first = false;
52251
      first = false;
51377
      sb.append(")");
52252
      sb.append(")");