Subversion Repositories SmartDukaan

Rev

Rev 5437 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5437 Rev 5460
Line 532... Line 532...
532
    /**
532
    /**
533
     * Clear item availability cache.
533
     * Clear item availability cache.
534
     */
534
     */
535
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException;
535
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException;
536
 
536
 
-
 
537
    public List<Long> getClearanceSaleCatalogIds() throws InventoryServiceException, org.apache.thrift.TException;
-
 
538
 
537
  }
539
  }
538
 
540
 
539
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
541
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
540
 
542
 
541
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
543
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 710... Line 712...
710
 
712
 
711
    public void getInventorySnapshot(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
713
    public void getInventorySnapshot(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
712
 
714
 
713
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
715
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
714
 
716
 
-
 
717
    public void getClearanceSaleCatalogIds(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getClearanceSaleCatalogIds_call> resultHandler) throws org.apache.thrift.TException;
-
 
718
 
715
  }
719
  }
716
 
720
 
717
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
721
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
718
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
722
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
719
      public Factory() {}
723
      public Factory() {}
Line 2900... Line 2904...
2900
      clearItemAvailabilityCache_result result = new clearItemAvailabilityCache_result();
2904
      clearItemAvailabilityCache_result result = new clearItemAvailabilityCache_result();
2901
      receiveBase(result, "clearItemAvailabilityCache");
2905
      receiveBase(result, "clearItemAvailabilityCache");
2902
      return;
2906
      return;
2903
    }
2907
    }
2904
 
2908
 
-
 
2909
    public List<Long> getClearanceSaleCatalogIds() throws InventoryServiceException, org.apache.thrift.TException
-
 
2910
    {
-
 
2911
      send_getClearanceSaleCatalogIds();
-
 
2912
      return recv_getClearanceSaleCatalogIds();
-
 
2913
    }
-
 
2914
 
-
 
2915
    public void send_getClearanceSaleCatalogIds() throws org.apache.thrift.TException
-
 
2916
    {
-
 
2917
      getClearanceSaleCatalogIds_args args = new getClearanceSaleCatalogIds_args();
-
 
2918
      sendBase("getClearanceSaleCatalogIds", args);
-
 
2919
    }
-
 
2920
 
-
 
2921
    public List<Long> recv_getClearanceSaleCatalogIds() throws InventoryServiceException, org.apache.thrift.TException
-
 
2922
    {
-
 
2923
      getClearanceSaleCatalogIds_result result = new getClearanceSaleCatalogIds_result();
-
 
2924
      receiveBase(result, "getClearanceSaleCatalogIds");
-
 
2925
      if (result.isSetSuccess()) {
-
 
2926
        return result.success;
-
 
2927
      }
-
 
2928
      if (result.cex != null) {
-
 
2929
        throw result.cex;
-
 
2930
      }
-
 
2931
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");
-
 
2932
    }
-
 
2933
 
2905
  }
2934
  }
2906
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2935
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2907
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2936
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2908
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2937
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2909
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2938
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5834... Line 5863...
5834
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5863
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5835
        (new Client(prot)).recv_clearItemAvailabilityCache();
5864
        (new Client(prot)).recv_clearItemAvailabilityCache();
5836
      }
5865
      }
5837
    }
5866
    }
5838
 
5867
 
-
 
5868
    public void getClearanceSaleCatalogIds(org.apache.thrift.async.AsyncMethodCallback<getClearanceSaleCatalogIds_call> resultHandler) throws org.apache.thrift.TException {
-
 
5869
      checkReady();
-
 
5870
      getClearanceSaleCatalogIds_call method_call = new getClearanceSaleCatalogIds_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
5871
      this.___currentMethod = method_call;
-
 
5872
      ___manager.call(method_call);
-
 
5873
    }
-
 
5874
 
-
 
5875
    public static class getClearanceSaleCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5876
      public getClearanceSaleCatalogIds_call(org.apache.thrift.async.AsyncMethodCallback<getClearanceSaleCatalogIds_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 {
-
 
5877
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5878
      }
-
 
5879
 
-
 
5880
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5881
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getClearanceSaleCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5882
        getClearanceSaleCatalogIds_args args = new getClearanceSaleCatalogIds_args();
-
 
5883
        args.write(prot);
-
 
5884
        prot.writeMessageEnd();
-
 
5885
      }
-
 
5886
 
-
 
5887
      public List<Long> getResult() throws InventoryServiceException, org.apache.thrift.TException {
-
 
5888
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5889
          throw new IllegalStateException("Method call not finished!");
-
 
5890
        }
-
 
5891
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5892
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5893
        return (new Client(prot)).recv_getClearanceSaleCatalogIds();
-
 
5894
      }
-
 
5895
    }
-
 
5896
 
5839
  }
5897
  }
5840
 
5898
 
5841
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5899
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5842
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5900
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5843
    public Processor(I iface) {
5901
    public Processor(I iface) {
Line 5934... Line 5992...
5934
      processMap.put("addBadInventory", new addBadInventory());
5992
      processMap.put("addBadInventory", new addBadInventory());
5935
      processMap.put("getShippingLocations", new getShippingLocations());
5993
      processMap.put("getShippingLocations", new getShippingLocations());
5936
      processMap.put("getAllVendorItemMappings", new getAllVendorItemMappings());
5994
      processMap.put("getAllVendorItemMappings", new getAllVendorItemMappings());
5937
      processMap.put("getInventorySnapshot", new getInventorySnapshot());
5995
      processMap.put("getInventorySnapshot", new getInventorySnapshot());
5938
      processMap.put("clearItemAvailabilityCache", new clearItemAvailabilityCache());
5996
      processMap.put("clearItemAvailabilityCache", new clearItemAvailabilityCache());
-
 
5997
      processMap.put("getClearanceSaleCatalogIds", new getClearanceSaleCatalogIds());
5939
      return processMap;
5998
      return processMap;
5940
    }
5999
    }
5941
 
6000
 
5942
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
6001
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
5943
      public addItem() {
6002
      public addItem() {
Line 7578... Line 7637...
7578
        iface.clearItemAvailabilityCache();
7637
        iface.clearItemAvailabilityCache();
7579
        return result;
7638
        return result;
7580
      }
7639
      }
7581
    }
7640
    }
7582
 
7641
 
-
 
7642
    private static class getClearanceSaleCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getClearanceSaleCatalogIds_args> {
-
 
7643
      public getClearanceSaleCatalogIds() {
-
 
7644
        super("getClearanceSaleCatalogIds");
-
 
7645
      }
-
 
7646
 
-
 
7647
      protected getClearanceSaleCatalogIds_args getEmptyArgsInstance() {
-
 
7648
        return new getClearanceSaleCatalogIds_args();
-
 
7649
      }
-
 
7650
 
-
 
7651
      protected getClearanceSaleCatalogIds_result getResult(I iface, getClearanceSaleCatalogIds_args args) throws org.apache.thrift.TException {
-
 
7652
        getClearanceSaleCatalogIds_result result = new getClearanceSaleCatalogIds_result();
-
 
7653
        try {
-
 
7654
          result.success = iface.getClearanceSaleCatalogIds();
-
 
7655
        } catch (InventoryServiceException cex) {
-
 
7656
          result.cex = cex;
-
 
7657
        }
-
 
7658
        return result;
-
 
7659
      }
-
 
7660
    }
-
 
7661
 
7583
  }
7662
  }
7584
 
7663
 
7585
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
7664
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
7586
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
7665
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
7587
 
7666
 
Line 67623... Line 67702...
67623
      sb.append(")");
67702
      sb.append(")");
67624
      return sb.toString();
67703
      return sb.toString();
67625
    }
67704
    }
67626
 
67705
 
67627
    public void validate() throws org.apache.thrift.TException {
67706
    public void validate() throws org.apache.thrift.TException {
-
 
67707
      // check for required fields
-
 
67708
    }
-
 
67709
 
-
 
67710
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
67711
      try {
-
 
67712
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
67713
      } catch (org.apache.thrift.TException te) {
-
 
67714
        throw new java.io.IOException(te);
-
 
67715
      }
-
 
67716
    }
-
 
67717
 
-
 
67718
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
67719
      try {
-
 
67720
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
67721
      } catch (org.apache.thrift.TException te) {
-
 
67722
        throw new java.io.IOException(te);
-
 
67723
      }
-
 
67724
    }
-
 
67725
 
-
 
67726
  }
-
 
67727
 
-
 
67728
  public static class getClearanceSaleCatalogIds_args implements org.apache.thrift.TBase<getClearanceSaleCatalogIds_args, getClearanceSaleCatalogIds_args._Fields>, java.io.Serializable, Cloneable   {
-
 
67729
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClearanceSaleCatalogIds_args");
-
 
67730
 
-
 
67731
 
-
 
67732
 
-
 
67733
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
67734
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
67735
;
-
 
67736
 
-
 
67737
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
67738
 
-
 
67739
      static {
-
 
67740
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
67741
          byName.put(field.getFieldName(), field);
-
 
67742
        }
-
 
67743
      }
-
 
67744
 
-
 
67745
      /**
-
 
67746
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
67747
       */
-
 
67748
      public static _Fields findByThriftId(int fieldId) {
-
 
67749
        switch(fieldId) {
-
 
67750
          default:
-
 
67751
            return null;
-
 
67752
        }
-
 
67753
      }
-
 
67754
 
-
 
67755
      /**
-
 
67756
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
67757
       * if it is not found.
-
 
67758
       */
-
 
67759
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
67760
        _Fields fields = findByThriftId(fieldId);
-
 
67761
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
67762
        return fields;
-
 
67763
      }
-
 
67764
 
-
 
67765
      /**
-
 
67766
       * Find the _Fields constant that matches name, or null if its not found.
-
 
67767
       */
-
 
67768
      public static _Fields findByName(String name) {
-
 
67769
        return byName.get(name);
-
 
67770
      }
-
 
67771
 
-
 
67772
      private final short _thriftId;
-
 
67773
      private final String _fieldName;
-
 
67774
 
-
 
67775
      _Fields(short thriftId, String fieldName) {
-
 
67776
        _thriftId = thriftId;
-
 
67777
        _fieldName = fieldName;
-
 
67778
      }
-
 
67779
 
-
 
67780
      public short getThriftFieldId() {
-
 
67781
        return _thriftId;
-
 
67782
      }
-
 
67783
 
-
 
67784
      public String getFieldName() {
-
 
67785
        return _fieldName;
-
 
67786
      }
-
 
67787
    }
-
 
67788
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
67789
    static {
-
 
67790
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
67791
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
67792
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getClearanceSaleCatalogIds_args.class, metaDataMap);
-
 
67793
    }
-
 
67794
 
-
 
67795
    public getClearanceSaleCatalogIds_args() {
-
 
67796
    }
-
 
67797
 
-
 
67798
    /**
-
 
67799
     * Performs a deep copy on <i>other</i>.
-
 
67800
     */
-
 
67801
    public getClearanceSaleCatalogIds_args(getClearanceSaleCatalogIds_args other) {
-
 
67802
    }
-
 
67803
 
-
 
67804
    public getClearanceSaleCatalogIds_args deepCopy() {
-
 
67805
      return new getClearanceSaleCatalogIds_args(this);
-
 
67806
    }
-
 
67807
 
-
 
67808
    @Override
-
 
67809
    public void clear() {
-
 
67810
    }
-
 
67811
 
-
 
67812
    public void setFieldValue(_Fields field, Object value) {
-
 
67813
      switch (field) {
-
 
67814
      }
-
 
67815
    }
-
 
67816
 
-
 
67817
    public Object getFieldValue(_Fields field) {
-
 
67818
      switch (field) {
-
 
67819
      }
-
 
67820
      throw new IllegalStateException();
-
 
67821
    }
-
 
67822
 
-
 
67823
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
67824
    public boolean isSet(_Fields field) {
-
 
67825
      if (field == null) {
-
 
67826
        throw new IllegalArgumentException();
-
 
67827
      }
-
 
67828
 
-
 
67829
      switch (field) {
-
 
67830
      }
-
 
67831
      throw new IllegalStateException();
-
 
67832
    }
-
 
67833
 
-
 
67834
    @Override
-
 
67835
    public boolean equals(Object that) {
-
 
67836
      if (that == null)
-
 
67837
        return false;
-
 
67838
      if (that instanceof getClearanceSaleCatalogIds_args)
-
 
67839
        return this.equals((getClearanceSaleCatalogIds_args)that);
-
 
67840
      return false;
-
 
67841
    }
-
 
67842
 
-
 
67843
    public boolean equals(getClearanceSaleCatalogIds_args that) {
-
 
67844
      if (that == null)
-
 
67845
        return false;
-
 
67846
 
-
 
67847
      return true;
-
 
67848
    }
-
 
67849
 
-
 
67850
    @Override
-
 
67851
    public int hashCode() {
-
 
67852
      return 0;
-
 
67853
    }
-
 
67854
 
-
 
67855
    public int compareTo(getClearanceSaleCatalogIds_args other) {
-
 
67856
      if (!getClass().equals(other.getClass())) {
-
 
67857
        return getClass().getName().compareTo(other.getClass().getName());
-
 
67858
      }
-
 
67859
 
-
 
67860
      int lastComparison = 0;
-
 
67861
      getClearanceSaleCatalogIds_args typedOther = (getClearanceSaleCatalogIds_args)other;
-
 
67862
 
-
 
67863
      return 0;
-
 
67864
    }
-
 
67865
 
-
 
67866
    public _Fields fieldForId(int fieldId) {
-
 
67867
      return _Fields.findByThriftId(fieldId);
-
 
67868
    }
-
 
67869
 
-
 
67870
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
67871
      org.apache.thrift.protocol.TField field;
-
 
67872
      iprot.readStructBegin();
-
 
67873
      while (true)
-
 
67874
      {
-
 
67875
        field = iprot.readFieldBegin();
-
 
67876
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
67877
          break;
-
 
67878
        }
-
 
67879
        switch (field.id) {
-
 
67880
          default:
-
 
67881
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
67882
        }
-
 
67883
        iprot.readFieldEnd();
-
 
67884
      }
-
 
67885
      iprot.readStructEnd();
-
 
67886
      validate();
-
 
67887
    }
-
 
67888
 
-
 
67889
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
67890
      validate();
-
 
67891
 
-
 
67892
      oprot.writeStructBegin(STRUCT_DESC);
-
 
67893
      oprot.writeFieldStop();
-
 
67894
      oprot.writeStructEnd();
-
 
67895
    }
-
 
67896
 
-
 
67897
    @Override
-
 
67898
    public String toString() {
-
 
67899
      StringBuilder sb = new StringBuilder("getClearanceSaleCatalogIds_args(");
-
 
67900
      boolean first = true;
-
 
67901
 
-
 
67902
      sb.append(")");
-
 
67903
      return sb.toString();
-
 
67904
    }
-
 
67905
 
-
 
67906
    public void validate() throws org.apache.thrift.TException {
-
 
67907
      // check for required fields
-
 
67908
    }
-
 
67909
 
-
 
67910
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
67911
      try {
-
 
67912
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
67913
      } catch (org.apache.thrift.TException te) {
-
 
67914
        throw new java.io.IOException(te);
-
 
67915
      }
-
 
67916
    }
-
 
67917
 
-
 
67918
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
67919
      try {
-
 
67920
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
67921
      } catch (org.apache.thrift.TException te) {
-
 
67922
        throw new java.io.IOException(te);
-
 
67923
      }
-
 
67924
    }
-
 
67925
 
-
 
67926
  }
-
 
67927
 
-
 
67928
  public static class getClearanceSaleCatalogIds_result implements org.apache.thrift.TBase<getClearanceSaleCatalogIds_result, getClearanceSaleCatalogIds_result._Fields>, java.io.Serializable, Cloneable   {
-
 
67929
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClearanceSaleCatalogIds_result");
-
 
67930
 
-
 
67931
    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);
-
 
67932
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
67933
 
-
 
67934
    private List<Long> success; // required
-
 
67935
    private InventoryServiceException cex; // required
-
 
67936
 
-
 
67937
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
67938
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
67939
      SUCCESS((short)0, "success"),
-
 
67940
      CEX((short)1, "cex");
-
 
67941
 
-
 
67942
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
67943
 
-
 
67944
      static {
-
 
67945
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
67946
          byName.put(field.getFieldName(), field);
-
 
67947
        }
-
 
67948
      }
-
 
67949
 
-
 
67950
      /**
-
 
67951
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
67952
       */
-
 
67953
      public static _Fields findByThriftId(int fieldId) {
-
 
67954
        switch(fieldId) {
-
 
67955
          case 0: // SUCCESS
-
 
67956
            return SUCCESS;
-
 
67957
          case 1: // CEX
-
 
67958
            return CEX;
-
 
67959
          default:
-
 
67960
            return null;
-
 
67961
        }
-
 
67962
      }
-
 
67963
 
-
 
67964
      /**
-
 
67965
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
67966
       * if it is not found.
-
 
67967
       */
-
 
67968
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
67969
        _Fields fields = findByThriftId(fieldId);
-
 
67970
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
67971
        return fields;
-
 
67972
      }
-
 
67973
 
-
 
67974
      /**
-
 
67975
       * Find the _Fields constant that matches name, or null if its not found.
-
 
67976
       */
-
 
67977
      public static _Fields findByName(String name) {
-
 
67978
        return byName.get(name);
-
 
67979
      }
-
 
67980
 
-
 
67981
      private final short _thriftId;
-
 
67982
      private final String _fieldName;
-
 
67983
 
-
 
67984
      _Fields(short thriftId, String fieldName) {
-
 
67985
        _thriftId = thriftId;
-
 
67986
        _fieldName = fieldName;
-
 
67987
      }
-
 
67988
 
-
 
67989
      public short getThriftFieldId() {
-
 
67990
        return _thriftId;
-
 
67991
      }
-
 
67992
 
-
 
67993
      public String getFieldName() {
-
 
67994
        return _fieldName;
-
 
67995
      }
-
 
67996
    }
-
 
67997
 
-
 
67998
    // isset id assignments
-
 
67999
 
-
 
68000
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
68001
    static {
-
 
68002
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
68003
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
68004
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
68005
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
68006
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
68007
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
68008
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
68009
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getClearanceSaleCatalogIds_result.class, metaDataMap);
-
 
68010
    }
-
 
68011
 
-
 
68012
    public getClearanceSaleCatalogIds_result() {
-
 
68013
    }
-
 
68014
 
-
 
68015
    public getClearanceSaleCatalogIds_result(
-
 
68016
      List<Long> success,
-
 
68017
      InventoryServiceException cex)
-
 
68018
    {
-
 
68019
      this();
-
 
68020
      this.success = success;
-
 
68021
      this.cex = cex;
-
 
68022
    }
-
 
68023
 
-
 
68024
    /**
-
 
68025
     * Performs a deep copy on <i>other</i>.
-
 
68026
     */
-
 
68027
    public getClearanceSaleCatalogIds_result(getClearanceSaleCatalogIds_result other) {
-
 
68028
      if (other.isSetSuccess()) {
-
 
68029
        List<Long> __this__success = new ArrayList<Long>();
-
 
68030
        for (Long other_element : other.success) {
-
 
68031
          __this__success.add(other_element);
-
 
68032
        }
-
 
68033
        this.success = __this__success;
-
 
68034
      }
-
 
68035
      if (other.isSetCex()) {
-
 
68036
        this.cex = new InventoryServiceException(other.cex);
-
 
68037
      }
-
 
68038
    }
-
 
68039
 
-
 
68040
    public getClearanceSaleCatalogIds_result deepCopy() {
-
 
68041
      return new getClearanceSaleCatalogIds_result(this);
-
 
68042
    }
-
 
68043
 
-
 
68044
    @Override
-
 
68045
    public void clear() {
-
 
68046
      this.success = null;
-
 
68047
      this.cex = null;
-
 
68048
    }
-
 
68049
 
-
 
68050
    public int getSuccessSize() {
-
 
68051
      return (this.success == null) ? 0 : this.success.size();
-
 
68052
    }
-
 
68053
 
-
 
68054
    public java.util.Iterator<Long> getSuccessIterator() {
-
 
68055
      return (this.success == null) ? null : this.success.iterator();
-
 
68056
    }
-
 
68057
 
-
 
68058
    public void addToSuccess(long elem) {
-
 
68059
      if (this.success == null) {
-
 
68060
        this.success = new ArrayList<Long>();
-
 
68061
      }
-
 
68062
      this.success.add(elem);
-
 
68063
    }
-
 
68064
 
-
 
68065
    public List<Long> getSuccess() {
-
 
68066
      return this.success;
-
 
68067
    }
-
 
68068
 
-
 
68069
    public void setSuccess(List<Long> success) {
-
 
68070
      this.success = success;
-
 
68071
    }
-
 
68072
 
-
 
68073
    public void unsetSuccess() {
-
 
68074
      this.success = null;
-
 
68075
    }
-
 
68076
 
-
 
68077
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
68078
    public boolean isSetSuccess() {
-
 
68079
      return this.success != null;
-
 
68080
    }
-
 
68081
 
-
 
68082
    public void setSuccessIsSet(boolean value) {
-
 
68083
      if (!value) {
-
 
68084
        this.success = null;
-
 
68085
      }
-
 
68086
    }
-
 
68087
 
-
 
68088
    public InventoryServiceException getCex() {
-
 
68089
      return this.cex;
-
 
68090
    }
-
 
68091
 
-
 
68092
    public void setCex(InventoryServiceException cex) {
-
 
68093
      this.cex = cex;
-
 
68094
    }
-
 
68095
 
-
 
68096
    public void unsetCex() {
-
 
68097
      this.cex = null;
-
 
68098
    }
-
 
68099
 
-
 
68100
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
68101
    public boolean isSetCex() {
-
 
68102
      return this.cex != null;
-
 
68103
    }
-
 
68104
 
-
 
68105
    public void setCexIsSet(boolean value) {
-
 
68106
      if (!value) {
-
 
68107
        this.cex = null;
-
 
68108
      }
-
 
68109
    }
-
 
68110
 
-
 
68111
    public void setFieldValue(_Fields field, Object value) {
-
 
68112
      switch (field) {
-
 
68113
      case SUCCESS:
-
 
68114
        if (value == null) {
-
 
68115
          unsetSuccess();
-
 
68116
        } else {
-
 
68117
          setSuccess((List<Long>)value);
-
 
68118
        }
-
 
68119
        break;
-
 
68120
 
-
 
68121
      case CEX:
-
 
68122
        if (value == null) {
-
 
68123
          unsetCex();
-
 
68124
        } else {
-
 
68125
          setCex((InventoryServiceException)value);
-
 
68126
        }
-
 
68127
        break;
-
 
68128
 
-
 
68129
      }
-
 
68130
    }
-
 
68131
 
-
 
68132
    public Object getFieldValue(_Fields field) {
-
 
68133
      switch (field) {
-
 
68134
      case SUCCESS:
-
 
68135
        return getSuccess();
-
 
68136
 
-
 
68137
      case CEX:
-
 
68138
        return getCex();
-
 
68139
 
-
 
68140
      }
-
 
68141
      throw new IllegalStateException();
-
 
68142
    }
-
 
68143
 
-
 
68144
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
68145
    public boolean isSet(_Fields field) {
-
 
68146
      if (field == null) {
-
 
68147
        throw new IllegalArgumentException();
-
 
68148
      }
-
 
68149
 
-
 
68150
      switch (field) {
-
 
68151
      case SUCCESS:
-
 
68152
        return isSetSuccess();
-
 
68153
      case CEX:
-
 
68154
        return isSetCex();
-
 
68155
      }
-
 
68156
      throw new IllegalStateException();
-
 
68157
    }
-
 
68158
 
-
 
68159
    @Override
-
 
68160
    public boolean equals(Object that) {
-
 
68161
      if (that == null)
-
 
68162
        return false;
-
 
68163
      if (that instanceof getClearanceSaleCatalogIds_result)
-
 
68164
        return this.equals((getClearanceSaleCatalogIds_result)that);
-
 
68165
      return false;
-
 
68166
    }
-
 
68167
 
-
 
68168
    public boolean equals(getClearanceSaleCatalogIds_result that) {
-
 
68169
      if (that == null)
-
 
68170
        return false;
-
 
68171
 
-
 
68172
      boolean this_present_success = true && this.isSetSuccess();
-
 
68173
      boolean that_present_success = true && that.isSetSuccess();
-
 
68174
      if (this_present_success || that_present_success) {
-
 
68175
        if (!(this_present_success && that_present_success))
-
 
68176
          return false;
-
 
68177
        if (!this.success.equals(that.success))
-
 
68178
          return false;
-
 
68179
      }
-
 
68180
 
-
 
68181
      boolean this_present_cex = true && this.isSetCex();
-
 
68182
      boolean that_present_cex = true && that.isSetCex();
-
 
68183
      if (this_present_cex || that_present_cex) {
-
 
68184
        if (!(this_present_cex && that_present_cex))
-
 
68185
          return false;
-
 
68186
        if (!this.cex.equals(that.cex))
-
 
68187
          return false;
-
 
68188
      }
-
 
68189
 
-
 
68190
      return true;
-
 
68191
    }
-
 
68192
 
-
 
68193
    @Override
-
 
68194
    public int hashCode() {
-
 
68195
      return 0;
-
 
68196
    }
-
 
68197
 
-
 
68198
    public int compareTo(getClearanceSaleCatalogIds_result other) {
-
 
68199
      if (!getClass().equals(other.getClass())) {
-
 
68200
        return getClass().getName().compareTo(other.getClass().getName());
-
 
68201
      }
-
 
68202
 
-
 
68203
      int lastComparison = 0;
-
 
68204
      getClearanceSaleCatalogIds_result typedOther = (getClearanceSaleCatalogIds_result)other;
-
 
68205
 
-
 
68206
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
68207
      if (lastComparison != 0) {
-
 
68208
        return lastComparison;
-
 
68209
      }
-
 
68210
      if (isSetSuccess()) {
-
 
68211
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
68212
        if (lastComparison != 0) {
-
 
68213
          return lastComparison;
-
 
68214
        }
-
 
68215
      }
-
 
68216
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
68217
      if (lastComparison != 0) {
-
 
68218
        return lastComparison;
-
 
68219
      }
-
 
68220
      if (isSetCex()) {
-
 
68221
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
68222
        if (lastComparison != 0) {
-
 
68223
          return lastComparison;
-
 
68224
        }
-
 
68225
      }
-
 
68226
      return 0;
-
 
68227
    }
-
 
68228
 
-
 
68229
    public _Fields fieldForId(int fieldId) {
-
 
68230
      return _Fields.findByThriftId(fieldId);
-
 
68231
    }
-
 
68232
 
-
 
68233
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
68234
      org.apache.thrift.protocol.TField field;
-
 
68235
      iprot.readStructBegin();
-
 
68236
      while (true)
-
 
68237
      {
-
 
68238
        field = iprot.readFieldBegin();
-
 
68239
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
68240
          break;
-
 
68241
        }
-
 
68242
        switch (field.id) {
-
 
68243
          case 0: // SUCCESS
-
 
68244
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
68245
              {
-
 
68246
                org.apache.thrift.protocol.TList _list208 = iprot.readListBegin();
-
 
68247
                this.success = new ArrayList<Long>(_list208.size);
-
 
68248
                for (int _i209 = 0; _i209 < _list208.size; ++_i209)
-
 
68249
                {
-
 
68250
                  long _elem210; // required
-
 
68251
                  _elem210 = iprot.readI64();
-
 
68252
                  this.success.add(_elem210);
-
 
68253
                }
-
 
68254
                iprot.readListEnd();
-
 
68255
              }
-
 
68256
            } else { 
-
 
68257
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
68258
            }
-
 
68259
            break;
-
 
68260
          case 1: // CEX
-
 
68261
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
68262
              this.cex = new InventoryServiceException();
-
 
68263
              this.cex.read(iprot);
-
 
68264
            } else { 
-
 
68265
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
68266
            }
-
 
68267
            break;
-
 
68268
          default:
-
 
68269
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
68270
        }
-
 
68271
        iprot.readFieldEnd();
-
 
68272
      }
-
 
68273
      iprot.readStructEnd();
-
 
68274
      validate();
-
 
68275
    }
-
 
68276
 
-
 
68277
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
68278
      oprot.writeStructBegin(STRUCT_DESC);
-
 
68279
 
-
 
68280
      if (this.isSetSuccess()) {
-
 
68281
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
68282
        {
-
 
68283
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
68284
          for (long _iter211 : this.success)
-
 
68285
          {
-
 
68286
            oprot.writeI64(_iter211);
-
 
68287
          }
-
 
68288
          oprot.writeListEnd();
-
 
68289
        }
-
 
68290
        oprot.writeFieldEnd();
-
 
68291
      } else if (this.isSetCex()) {
-
 
68292
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
68293
        this.cex.write(oprot);
-
 
68294
        oprot.writeFieldEnd();
-
 
68295
      }
-
 
68296
      oprot.writeFieldStop();
-
 
68297
      oprot.writeStructEnd();
-
 
68298
    }
-
 
68299
 
-
 
68300
    @Override
-
 
68301
    public String toString() {
-
 
68302
      StringBuilder sb = new StringBuilder("getClearanceSaleCatalogIds_result(");
-
 
68303
      boolean first = true;
-
 
68304
 
-
 
68305
      sb.append("success:");
-
 
68306
      if (this.success == null) {
-
 
68307
        sb.append("null");
-
 
68308
      } else {
-
 
68309
        sb.append(this.success);
-
 
68310
      }
-
 
68311
      first = false;
-
 
68312
      if (!first) sb.append(", ");
-
 
68313
      sb.append("cex:");
-
 
68314
      if (this.cex == null) {
-
 
68315
        sb.append("null");
-
 
68316
      } else {
-
 
68317
        sb.append(this.cex);
-
 
68318
      }
-
 
68319
      first = false;
-
 
68320
      sb.append(")");
-
 
68321
      return sb.toString();
-
 
68322
    }
-
 
68323
 
-
 
68324
    public void validate() throws org.apache.thrift.TException {
67628
      // check for required fields
68325
      // check for required fields
67629
    }
68326
    }
67630
 
68327
 
67631
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
68328
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
67632
      try {
68329
      try {