Subversion Repositories SmartDukaan

Rev

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

Rev 6548 Rev 6630
Line 172... Line 172...
172
    /**
172
    /**
173
     * Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
173
     * Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
174
     */
174
     */
175
    public List<InventoryAvailability> getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException;
175
    public List<InventoryAvailability> getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException;
176
 
176
 
-
 
177
    /**
-
 
178
     * Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
-
 
179
     */
-
 
180
    public List<InventoryAvailability> getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException;
-
 
181
 
177
  }
182
  }
178
 
183
 
179
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
184
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
180
 
185
 
181
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
186
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 214... Line 219...
214
 
219
 
215
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForLostItem_call> resultHandler) throws org.apache.thrift.TException;
220
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForLostItem_call> resultHandler) throws org.apache.thrift.TException;
216
 
221
 
217
    public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
222
    public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
218
 
223
 
-
 
224
    public void getCurrentNonSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
-
 
225
 
219
  }
226
  }
220
 
227
 
221
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
228
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
222
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
229
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
223
      public Factory() {}
230
      public Factory() {}
Line 710... Line 717...
710
        return result.success;
717
        return result.success;
711
      }
718
      }
712
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
719
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
713
    }
720
    }
714
 
721
 
-
 
722
    public List<InventoryAvailability> getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
-
 
723
    {
-
 
724
      send_getCurrentNonSerializedInventoryByScans();
-
 
725
      return recv_getCurrentNonSerializedInventoryByScans();
-
 
726
    }
-
 
727
 
-
 
728
    public void send_getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
-
 
729
    {
-
 
730
      getCurrentNonSerializedInventoryByScans_args args = new getCurrentNonSerializedInventoryByScans_args();
-
 
731
      sendBase("getCurrentNonSerializedInventoryByScans", args);
-
 
732
    }
-
 
733
 
-
 
734
    public List<InventoryAvailability> recv_getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
-
 
735
    {
-
 
736
      getCurrentNonSerializedInventoryByScans_result result = new getCurrentNonSerializedInventoryByScans_result();
-
 
737
      receiveBase(result, "getCurrentNonSerializedInventoryByScans");
-
 
738
      if (result.isSetSuccess()) {
-
 
739
        return result.success;
-
 
740
      }
-
 
741
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
-
 
742
    }
-
 
743
 
715
  }
744
  }
716
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
745
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
717
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
746
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
718
      private org.apache.thrift.async.TAsyncClientManager clientManager;
747
      private org.apache.thrift.async.TAsyncClientManager clientManager;
719
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
748
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1393... Line 1422...
1393
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1422
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1394
        return (new Client(prot)).recv_getCurrentSerializedInventoryByScans();
1423
        return (new Client(prot)).recv_getCurrentSerializedInventoryByScans();
1395
      }
1424
      }
1396
    }
1425
    }
1397
 
1426
 
-
 
1427
    public void getCurrentNonSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<getCurrentNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
-
 
1428
      checkReady();
-
 
1429
      getCurrentNonSerializedInventoryByScans_call method_call = new getCurrentNonSerializedInventoryByScans_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
1430
      this.___currentMethod = method_call;
-
 
1431
      ___manager.call(method_call);
-
 
1432
    }
-
 
1433
 
-
 
1434
    public static class getCurrentNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1435
      public getCurrentNonSerializedInventoryByScans_call(org.apache.thrift.async.AsyncMethodCallback<getCurrentNonSerializedInventoryByScans_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 {
-
 
1436
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1437
      }
-
 
1438
 
-
 
1439
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1440
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1441
        getCurrentNonSerializedInventoryByScans_args args = new getCurrentNonSerializedInventoryByScans_args();
-
 
1442
        args.write(prot);
-
 
1443
        prot.writeMessageEnd();
-
 
1444
      }
-
 
1445
 
-
 
1446
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
-
 
1447
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1448
          throw new IllegalStateException("Method call not finished!");
-
 
1449
        }
-
 
1450
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1451
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1452
        return (new Client(prot)).recv_getCurrentNonSerializedInventoryByScans();
-
 
1453
      }
-
 
1454
    }
-
 
1455
 
1398
  }
1456
  }
1399
 
1457
 
1400
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1458
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1401
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1459
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1402
    public Processor(I iface) {
1460
    public Processor(I iface) {
Line 1425... Line 1483...
1425
      processMap.put("getInventoryScansForItem", new getInventoryScansForItem());
1483
      processMap.put("getInventoryScansForItem", new getInventoryScansForItem());
1426
      processMap.put("getScanRecordsForSerialNumber", new getScanRecordsForSerialNumber());
1484
      processMap.put("getScanRecordsForSerialNumber", new getScanRecordsForSerialNumber());
1427
      processMap.put("scanForPurchaseReturn", new scanForPurchaseReturn());
1485
      processMap.put("scanForPurchaseReturn", new scanForPurchaseReturn());
1428
      processMap.put("scanForLostItem", new scanForLostItem());
1486
      processMap.put("scanForLostItem", new scanForLostItem());
1429
      processMap.put("getCurrentSerializedInventoryByScans", new getCurrentSerializedInventoryByScans());
1487
      processMap.put("getCurrentSerializedInventoryByScans", new getCurrentSerializedInventoryByScans());
-
 
1488
      processMap.put("getCurrentNonSerializedInventoryByScans", new getCurrentNonSerializedInventoryByScans());
1430
      return processMap;
1489
      return processMap;
1431
    }
1490
    }
1432
 
1491
 
1433
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
1492
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
1434
      public getInventoryItem() {
1493
      public getInventoryItem() {
Line 1772... Line 1831...
1772
        result.success = iface.getCurrentSerializedInventoryByScans();
1831
        result.success = iface.getCurrentSerializedInventoryByScans();
1773
        return result;
1832
        return result;
1774
      }
1833
      }
1775
    }
1834
    }
1776
 
1835
 
-
 
1836
    private static class getCurrentNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentNonSerializedInventoryByScans_args> {
-
 
1837
      public getCurrentNonSerializedInventoryByScans() {
-
 
1838
        super("getCurrentNonSerializedInventoryByScans");
-
 
1839
      }
-
 
1840
 
-
 
1841
      protected getCurrentNonSerializedInventoryByScans_args getEmptyArgsInstance() {
-
 
1842
        return new getCurrentNonSerializedInventoryByScans_args();
-
 
1843
      }
-
 
1844
 
-
 
1845
      protected getCurrentNonSerializedInventoryByScans_result getResult(I iface, getCurrentNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
-
 
1846
        getCurrentNonSerializedInventoryByScans_result result = new getCurrentNonSerializedInventoryByScans_result();
-
 
1847
        result.success = iface.getCurrentNonSerializedInventoryByScans();
-
 
1848
        return result;
-
 
1849
      }
-
 
1850
    }
-
 
1851
 
1777
  }
1852
  }
1778
 
1853
 
1779
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
1854
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
1780
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
1855
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
1781
 
1856
 
Line 15491... Line 15566...
15491
      boolean first = true;
15566
      boolean first = true;
15492
 
15567
 
15493
      sb.append("success:");
15568
      sb.append("success:");
15494
      if (this.success == null) {
15569
      if (this.success == null) {
15495
        sb.append("null");
15570
        sb.append("null");
-
 
15571
      } else {
-
 
15572
        sb.append(this.success);
-
 
15573
      }
-
 
15574
      first = false;
-
 
15575
      sb.append(")");
-
 
15576
      return sb.toString();
-
 
15577
    }
-
 
15578
 
-
 
15579
    public void validate() throws org.apache.thrift.TException {
-
 
15580
      // check for required fields
-
 
15581
    }
-
 
15582
 
-
 
15583
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
15584
      try {
-
 
15585
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
15586
      } catch (org.apache.thrift.TException te) {
-
 
15587
        throw new java.io.IOException(te);
-
 
15588
      }
-
 
15589
    }
-
 
15590
 
-
 
15591
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
15592
      try {
-
 
15593
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
15594
      } catch (org.apache.thrift.TException te) {
-
 
15595
        throw new java.io.IOException(te);
-
 
15596
      }
-
 
15597
    }
-
 
15598
 
-
 
15599
  }
-
 
15600
 
-
 
15601
  public static class getCurrentNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCurrentNonSerializedInventoryByScans_args, getCurrentNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
-
 
15602
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentNonSerializedInventoryByScans_args");
-
 
15603
 
-
 
15604
 
-
 
15605
 
-
 
15606
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
15607
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
15608
;
-
 
15609
 
-
 
15610
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
15611
 
-
 
15612
      static {
-
 
15613
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
15614
          byName.put(field.getFieldName(), field);
-
 
15615
        }
-
 
15616
      }
-
 
15617
 
-
 
15618
      /**
-
 
15619
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
15620
       */
-
 
15621
      public static _Fields findByThriftId(int fieldId) {
-
 
15622
        switch(fieldId) {
-
 
15623
          default:
-
 
15624
            return null;
-
 
15625
        }
-
 
15626
      }
-
 
15627
 
-
 
15628
      /**
-
 
15629
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
15630
       * if it is not found.
-
 
15631
       */
-
 
15632
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
15633
        _Fields fields = findByThriftId(fieldId);
-
 
15634
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
15635
        return fields;
-
 
15636
      }
-
 
15637
 
-
 
15638
      /**
-
 
15639
       * Find the _Fields constant that matches name, or null if its not found.
-
 
15640
       */
-
 
15641
      public static _Fields findByName(String name) {
-
 
15642
        return byName.get(name);
-
 
15643
      }
-
 
15644
 
-
 
15645
      private final short _thriftId;
-
 
15646
      private final String _fieldName;
-
 
15647
 
-
 
15648
      _Fields(short thriftId, String fieldName) {
-
 
15649
        _thriftId = thriftId;
-
 
15650
        _fieldName = fieldName;
-
 
15651
      }
-
 
15652
 
-
 
15653
      public short getThriftFieldId() {
-
 
15654
        return _thriftId;
-
 
15655
      }
-
 
15656
 
-
 
15657
      public String getFieldName() {
-
 
15658
        return _fieldName;
-
 
15659
      }
-
 
15660
    }
-
 
15661
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
15662
    static {
-
 
15663
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
15664
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
15665
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentNonSerializedInventoryByScans_args.class, metaDataMap);
-
 
15666
    }
-
 
15667
 
-
 
15668
    public getCurrentNonSerializedInventoryByScans_args() {
-
 
15669
    }
-
 
15670
 
-
 
15671
    /**
-
 
15672
     * Performs a deep copy on <i>other</i>.
-
 
15673
     */
-
 
15674
    public getCurrentNonSerializedInventoryByScans_args(getCurrentNonSerializedInventoryByScans_args other) {
-
 
15675
    }
-
 
15676
 
-
 
15677
    public getCurrentNonSerializedInventoryByScans_args deepCopy() {
-
 
15678
      return new getCurrentNonSerializedInventoryByScans_args(this);
-
 
15679
    }
-
 
15680
 
-
 
15681
    @Override
-
 
15682
    public void clear() {
-
 
15683
    }
-
 
15684
 
-
 
15685
    public void setFieldValue(_Fields field, Object value) {
-
 
15686
      switch (field) {
-
 
15687
      }
-
 
15688
    }
-
 
15689
 
-
 
15690
    public Object getFieldValue(_Fields field) {
-
 
15691
      switch (field) {
-
 
15692
      }
-
 
15693
      throw new IllegalStateException();
-
 
15694
    }
-
 
15695
 
-
 
15696
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
15697
    public boolean isSet(_Fields field) {
-
 
15698
      if (field == null) {
-
 
15699
        throw new IllegalArgumentException();
-
 
15700
      }
-
 
15701
 
-
 
15702
      switch (field) {
-
 
15703
      }
-
 
15704
      throw new IllegalStateException();
-
 
15705
    }
-
 
15706
 
-
 
15707
    @Override
-
 
15708
    public boolean equals(Object that) {
-
 
15709
      if (that == null)
-
 
15710
        return false;
-
 
15711
      if (that instanceof getCurrentNonSerializedInventoryByScans_args)
-
 
15712
        return this.equals((getCurrentNonSerializedInventoryByScans_args)that);
-
 
15713
      return false;
-
 
15714
    }
-
 
15715
 
-
 
15716
    public boolean equals(getCurrentNonSerializedInventoryByScans_args that) {
-
 
15717
      if (that == null)
-
 
15718
        return false;
-
 
15719
 
-
 
15720
      return true;
-
 
15721
    }
-
 
15722
 
-
 
15723
    @Override
-
 
15724
    public int hashCode() {
-
 
15725
      return 0;
-
 
15726
    }
-
 
15727
 
-
 
15728
    public int compareTo(getCurrentNonSerializedInventoryByScans_args other) {
-
 
15729
      if (!getClass().equals(other.getClass())) {
-
 
15730
        return getClass().getName().compareTo(other.getClass().getName());
-
 
15731
      }
-
 
15732
 
-
 
15733
      int lastComparison = 0;
-
 
15734
      getCurrentNonSerializedInventoryByScans_args typedOther = (getCurrentNonSerializedInventoryByScans_args)other;
-
 
15735
 
-
 
15736
      return 0;
-
 
15737
    }
-
 
15738
 
-
 
15739
    public _Fields fieldForId(int fieldId) {
-
 
15740
      return _Fields.findByThriftId(fieldId);
-
 
15741
    }
-
 
15742
 
-
 
15743
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
15744
      org.apache.thrift.protocol.TField field;
-
 
15745
      iprot.readStructBegin();
-
 
15746
      while (true)
-
 
15747
      {
-
 
15748
        field = iprot.readFieldBegin();
-
 
15749
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
15750
          break;
-
 
15751
        }
-
 
15752
        switch (field.id) {
-
 
15753
          default:
-
 
15754
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
15755
        }
-
 
15756
        iprot.readFieldEnd();
-
 
15757
      }
-
 
15758
      iprot.readStructEnd();
-
 
15759
      validate();
-
 
15760
    }
-
 
15761
 
-
 
15762
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
15763
      validate();
-
 
15764
 
-
 
15765
      oprot.writeStructBegin(STRUCT_DESC);
-
 
15766
      oprot.writeFieldStop();
-
 
15767
      oprot.writeStructEnd();
-
 
15768
    }
-
 
15769
 
-
 
15770
    @Override
-
 
15771
    public String toString() {
-
 
15772
      StringBuilder sb = new StringBuilder("getCurrentNonSerializedInventoryByScans_args(");
-
 
15773
      boolean first = true;
-
 
15774
 
-
 
15775
      sb.append(")");
-
 
15776
      return sb.toString();
-
 
15777
    }
-
 
15778
 
-
 
15779
    public void validate() throws org.apache.thrift.TException {
-
 
15780
      // check for required fields
-
 
15781
    }
-
 
15782
 
-
 
15783
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
15784
      try {
-
 
15785
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
15786
      } catch (org.apache.thrift.TException te) {
-
 
15787
        throw new java.io.IOException(te);
-
 
15788
      }
-
 
15789
    }
-
 
15790
 
-
 
15791
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
15792
      try {
-
 
15793
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
15794
      } catch (org.apache.thrift.TException te) {
-
 
15795
        throw new java.io.IOException(te);
-
 
15796
      }
-
 
15797
    }
-
 
15798
 
-
 
15799
  }
-
 
15800
 
-
 
15801
  public static class getCurrentNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCurrentNonSerializedInventoryByScans_result, getCurrentNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
-
 
15802
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentNonSerializedInventoryByScans_result");
-
 
15803
 
-
 
15804
    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);
-
 
15805
 
-
 
15806
    private List<InventoryAvailability> success; // required
-
 
15807
 
-
 
15808
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
15809
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
15810
      SUCCESS((short)0, "success");
-
 
15811
 
-
 
15812
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
15813
 
-
 
15814
      static {
-
 
15815
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
15816
          byName.put(field.getFieldName(), field);
-
 
15817
        }
-
 
15818
      }
-
 
15819
 
-
 
15820
      /**
-
 
15821
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
15822
       */
-
 
15823
      public static _Fields findByThriftId(int fieldId) {
-
 
15824
        switch(fieldId) {
-
 
15825
          case 0: // SUCCESS
-
 
15826
            return SUCCESS;
-
 
15827
          default:
-
 
15828
            return null;
-
 
15829
        }
-
 
15830
      }
-
 
15831
 
-
 
15832
      /**
-
 
15833
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
15834
       * if it is not found.
-
 
15835
       */
-
 
15836
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
15837
        _Fields fields = findByThriftId(fieldId);
-
 
15838
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
15839
        return fields;
-
 
15840
      }
-
 
15841
 
-
 
15842
      /**
-
 
15843
       * Find the _Fields constant that matches name, or null if its not found.
-
 
15844
       */
-
 
15845
      public static _Fields findByName(String name) {
-
 
15846
        return byName.get(name);
-
 
15847
      }
-
 
15848
 
-
 
15849
      private final short _thriftId;
-
 
15850
      private final String _fieldName;
-
 
15851
 
-
 
15852
      _Fields(short thriftId, String fieldName) {
-
 
15853
        _thriftId = thriftId;
-
 
15854
        _fieldName = fieldName;
-
 
15855
      }
-
 
15856
 
-
 
15857
      public short getThriftFieldId() {
-
 
15858
        return _thriftId;
-
 
15859
      }
-
 
15860
 
-
 
15861
      public String getFieldName() {
-
 
15862
        return _fieldName;
-
 
15863
      }
-
 
15864
    }
-
 
15865
 
-
 
15866
    // isset id assignments
-
 
15867
 
-
 
15868
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
15869
    static {
-
 
15870
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
15871
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
15872
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
15873
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
-
 
15874
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
15875
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentNonSerializedInventoryByScans_result.class, metaDataMap);
-
 
15876
    }
-
 
15877
 
-
 
15878
    public getCurrentNonSerializedInventoryByScans_result() {
-
 
15879
    }
-
 
15880
 
-
 
15881
    public getCurrentNonSerializedInventoryByScans_result(
-
 
15882
      List<InventoryAvailability> success)
-
 
15883
    {
-
 
15884
      this();
-
 
15885
      this.success = success;
-
 
15886
    }
-
 
15887
 
-
 
15888
    /**
-
 
15889
     * Performs a deep copy on <i>other</i>.
-
 
15890
     */
-
 
15891
    public getCurrentNonSerializedInventoryByScans_result(getCurrentNonSerializedInventoryByScans_result other) {
-
 
15892
      if (other.isSetSuccess()) {
-
 
15893
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
-
 
15894
        for (InventoryAvailability other_element : other.success) {
-
 
15895
          __this__success.add(new InventoryAvailability(other_element));
-
 
15896
        }
-
 
15897
        this.success = __this__success;
-
 
15898
      }
-
 
15899
    }
-
 
15900
 
-
 
15901
    public getCurrentNonSerializedInventoryByScans_result deepCopy() {
-
 
15902
      return new getCurrentNonSerializedInventoryByScans_result(this);
-
 
15903
    }
-
 
15904
 
-
 
15905
    @Override
-
 
15906
    public void clear() {
-
 
15907
      this.success = null;
-
 
15908
    }
-
 
15909
 
-
 
15910
    public int getSuccessSize() {
-
 
15911
      return (this.success == null) ? 0 : this.success.size();
-
 
15912
    }
-
 
15913
 
-
 
15914
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
-
 
15915
      return (this.success == null) ? null : this.success.iterator();
-
 
15916
    }
-
 
15917
 
-
 
15918
    public void addToSuccess(InventoryAvailability elem) {
-
 
15919
      if (this.success == null) {
-
 
15920
        this.success = new ArrayList<InventoryAvailability>();
-
 
15921
      }
-
 
15922
      this.success.add(elem);
-
 
15923
    }
-
 
15924
 
-
 
15925
    public List<InventoryAvailability> getSuccess() {
-
 
15926
      return this.success;
-
 
15927
    }
-
 
15928
 
-
 
15929
    public void setSuccess(List<InventoryAvailability> success) {
-
 
15930
      this.success = success;
-
 
15931
    }
-
 
15932
 
-
 
15933
    public void unsetSuccess() {
-
 
15934
      this.success = null;
-
 
15935
    }
-
 
15936
 
-
 
15937
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
15938
    public boolean isSetSuccess() {
-
 
15939
      return this.success != null;
-
 
15940
    }
-
 
15941
 
-
 
15942
    public void setSuccessIsSet(boolean value) {
-
 
15943
      if (!value) {
-
 
15944
        this.success = null;
-
 
15945
      }
-
 
15946
    }
-
 
15947
 
-
 
15948
    public void setFieldValue(_Fields field, Object value) {
-
 
15949
      switch (field) {
-
 
15950
      case SUCCESS:
-
 
15951
        if (value == null) {
-
 
15952
          unsetSuccess();
-
 
15953
        } else {
-
 
15954
          setSuccess((List<InventoryAvailability>)value);
-
 
15955
        }
-
 
15956
        break;
-
 
15957
 
-
 
15958
      }
-
 
15959
    }
-
 
15960
 
-
 
15961
    public Object getFieldValue(_Fields field) {
-
 
15962
      switch (field) {
-
 
15963
      case SUCCESS:
-
 
15964
        return getSuccess();
-
 
15965
 
-
 
15966
      }
-
 
15967
      throw new IllegalStateException();
-
 
15968
    }
-
 
15969
 
-
 
15970
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
15971
    public boolean isSet(_Fields field) {
-
 
15972
      if (field == null) {
-
 
15973
        throw new IllegalArgumentException();
-
 
15974
      }
-
 
15975
 
-
 
15976
      switch (field) {
-
 
15977
      case SUCCESS:
-
 
15978
        return isSetSuccess();
-
 
15979
      }
-
 
15980
      throw new IllegalStateException();
-
 
15981
    }
-
 
15982
 
-
 
15983
    @Override
-
 
15984
    public boolean equals(Object that) {
-
 
15985
      if (that == null)
-
 
15986
        return false;
-
 
15987
      if (that instanceof getCurrentNonSerializedInventoryByScans_result)
-
 
15988
        return this.equals((getCurrentNonSerializedInventoryByScans_result)that);
-
 
15989
      return false;
-
 
15990
    }
-
 
15991
 
-
 
15992
    public boolean equals(getCurrentNonSerializedInventoryByScans_result that) {
-
 
15993
      if (that == null)
-
 
15994
        return false;
-
 
15995
 
-
 
15996
      boolean this_present_success = true && this.isSetSuccess();
-
 
15997
      boolean that_present_success = true && that.isSetSuccess();
-
 
15998
      if (this_present_success || that_present_success) {
-
 
15999
        if (!(this_present_success && that_present_success))
-
 
16000
          return false;
-
 
16001
        if (!this.success.equals(that.success))
-
 
16002
          return false;
-
 
16003
      }
-
 
16004
 
-
 
16005
      return true;
-
 
16006
    }
-
 
16007
 
-
 
16008
    @Override
-
 
16009
    public int hashCode() {
-
 
16010
      return 0;
-
 
16011
    }
-
 
16012
 
-
 
16013
    public int compareTo(getCurrentNonSerializedInventoryByScans_result other) {
-
 
16014
      if (!getClass().equals(other.getClass())) {
-
 
16015
        return getClass().getName().compareTo(other.getClass().getName());
-
 
16016
      }
-
 
16017
 
-
 
16018
      int lastComparison = 0;
-
 
16019
      getCurrentNonSerializedInventoryByScans_result typedOther = (getCurrentNonSerializedInventoryByScans_result)other;
-
 
16020
 
-
 
16021
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
16022
      if (lastComparison != 0) {
-
 
16023
        return lastComparison;
-
 
16024
      }
-
 
16025
      if (isSetSuccess()) {
-
 
16026
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
16027
        if (lastComparison != 0) {
-
 
16028
          return lastComparison;
-
 
16029
        }
-
 
16030
      }
-
 
16031
      return 0;
-
 
16032
    }
-
 
16033
 
-
 
16034
    public _Fields fieldForId(int fieldId) {
-
 
16035
      return _Fields.findByThriftId(fieldId);
-
 
16036
    }
-
 
16037
 
-
 
16038
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
16039
      org.apache.thrift.protocol.TField field;
-
 
16040
      iprot.readStructBegin();
-
 
16041
      while (true)
-
 
16042
      {
-
 
16043
        field = iprot.readFieldBegin();
-
 
16044
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
16045
          break;
-
 
16046
        }
-
 
16047
        switch (field.id) {
-
 
16048
          case 0: // SUCCESS
-
 
16049
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
16050
              {
-
 
16051
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
-
 
16052
                this.success = new ArrayList<InventoryAvailability>(_list44.size);
-
 
16053
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
-
 
16054
                {
-
 
16055
                  InventoryAvailability _elem46; // required
-
 
16056
                  _elem46 = new InventoryAvailability();
-
 
16057
                  _elem46.read(iprot);
-
 
16058
                  this.success.add(_elem46);
-
 
16059
                }
-
 
16060
                iprot.readListEnd();
-
 
16061
              }
-
 
16062
            } else { 
-
 
16063
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16064
            }
-
 
16065
            break;
-
 
16066
          default:
-
 
16067
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16068
        }
-
 
16069
        iprot.readFieldEnd();
-
 
16070
      }
-
 
16071
      iprot.readStructEnd();
-
 
16072
      validate();
-
 
16073
    }
-
 
16074
 
-
 
16075
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
16076
      oprot.writeStructBegin(STRUCT_DESC);
-
 
16077
 
-
 
16078
      if (this.isSetSuccess()) {
-
 
16079
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
16080
        {
-
 
16081
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
16082
          for (InventoryAvailability _iter47 : this.success)
-
 
16083
          {
-
 
16084
            _iter47.write(oprot);
-
 
16085
          }
-
 
16086
          oprot.writeListEnd();
-
 
16087
        }
-
 
16088
        oprot.writeFieldEnd();
-
 
16089
      }
-
 
16090
      oprot.writeFieldStop();
-
 
16091
      oprot.writeStructEnd();
-
 
16092
    }
-
 
16093
 
-
 
16094
    @Override
-
 
16095
    public String toString() {
-
 
16096
      StringBuilder sb = new StringBuilder("getCurrentNonSerializedInventoryByScans_result(");
-
 
16097
      boolean first = true;
-
 
16098
 
-
 
16099
      sb.append("success:");
-
 
16100
      if (this.success == null) {
-
 
16101
        sb.append("null");
15496
      } else {
16102
      } else {
15497
        sb.append(this.success);
16103
        sb.append(this.success);
15498
      }
16104
      }
15499
      first = false;
16105
      first = false;
15500
      sb.append(")");
16106
      sb.append(")");