Subversion Repositories SmartDukaan

Rev

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

Rev 9299 Rev 9456
Line 482... Line 482...
482
 
482
 
483
    public long getSnapdealSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException;
483
    public long getSnapdealSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException;
484
 
484
 
485
    public long getPrefferedInsurerForItem(long itemId, InsurerType insurerType) throws org.apache.thrift.TException;
485
    public long getPrefferedInsurerForItem(long itemId, InsurerType insurerType) throws org.apache.thrift.TException;
486
 
486
 
-
 
487
    public SnapdealItem getSnapdealItembySkuAtSnapdeal(String skuAtSnapdeal) throws org.apache.thrift.TException;
-
 
488
 
487
  }
489
  }
488
 
490
 
489
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
491
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
490
 
492
 
491
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
493
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 748... Line 750...
748
 
750
 
749
    public void getSnapdealSearchResultCount(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealSearchResultCount_call> resultHandler) throws org.apache.thrift.TException;
751
    public void getSnapdealSearchResultCount(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealSearchResultCount_call> resultHandler) throws org.apache.thrift.TException;
750
 
752
 
751
    public void getPrefferedInsurerForItem(long itemId, InsurerType insurerType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrefferedInsurerForItem_call> resultHandler) throws org.apache.thrift.TException;
753
    public void getPrefferedInsurerForItem(long itemId, InsurerType insurerType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrefferedInsurerForItem_call> resultHandler) throws org.apache.thrift.TException;
752
 
754
 
-
 
755
    public void getSnapdealItembySkuAtSnapdeal(String skuAtSnapdeal, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealItembySkuAtSnapdeal_call> resultHandler) throws org.apache.thrift.TException;
-
 
756
 
753
  }
757
  }
754
 
758
 
755
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
759
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
756
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
760
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
757
      public Factory() {}
761
      public Factory() {}
Line 3873... Line 3877...
3873
        return result.success;
3877
        return result.success;
3874
      }
3878
      }
3875
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrefferedInsurerForItem failed: unknown result");
3879
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrefferedInsurerForItem failed: unknown result");
3876
    }
3880
    }
3877
 
3881
 
-
 
3882
    public SnapdealItem getSnapdealItembySkuAtSnapdeal(String skuAtSnapdeal) throws org.apache.thrift.TException
-
 
3883
    {
-
 
3884
      send_getSnapdealItembySkuAtSnapdeal(skuAtSnapdeal);
-
 
3885
      return recv_getSnapdealItembySkuAtSnapdeal();
-
 
3886
    }
-
 
3887
 
-
 
3888
    public void send_getSnapdealItembySkuAtSnapdeal(String skuAtSnapdeal) throws org.apache.thrift.TException
-
 
3889
    {
-
 
3890
      getSnapdealItembySkuAtSnapdeal_args args = new getSnapdealItembySkuAtSnapdeal_args();
-
 
3891
      args.setSkuAtSnapdeal(skuAtSnapdeal);
-
 
3892
      sendBase("getSnapdealItembySkuAtSnapdeal", args);
-
 
3893
    }
-
 
3894
 
-
 
3895
    public SnapdealItem recv_getSnapdealItembySkuAtSnapdeal() throws org.apache.thrift.TException
-
 
3896
    {
-
 
3897
      getSnapdealItembySkuAtSnapdeal_result result = new getSnapdealItembySkuAtSnapdeal_result();
-
 
3898
      receiveBase(result, "getSnapdealItembySkuAtSnapdeal");
-
 
3899
      if (result.isSetSuccess()) {
-
 
3900
        return result.success;
-
 
3901
      }
-
 
3902
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealItembySkuAtSnapdeal failed: unknown result");
-
 
3903
    }
-
 
3904
 
3878
  }
3905
  }
3879
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3906
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3880
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3907
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3881
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3908
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3882
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
3909
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 8200... Line 8227...
8200
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8227
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8201
        return (new Client(prot)).recv_getPrefferedInsurerForItem();
8228
        return (new Client(prot)).recv_getPrefferedInsurerForItem();
8202
      }
8229
      }
8203
    }
8230
    }
8204
 
8231
 
-
 
8232
    public void getSnapdealItembySkuAtSnapdeal(String skuAtSnapdeal, org.apache.thrift.async.AsyncMethodCallback<getSnapdealItembySkuAtSnapdeal_call> resultHandler) throws org.apache.thrift.TException {
-
 
8233
      checkReady();
-
 
8234
      getSnapdealItembySkuAtSnapdeal_call method_call = new getSnapdealItembySkuAtSnapdeal_call(skuAtSnapdeal, resultHandler, this, ___protocolFactory, ___transport);
-
 
8235
      this.___currentMethod = method_call;
-
 
8236
      ___manager.call(method_call);
-
 
8237
    }
-
 
8238
 
-
 
8239
    public static class getSnapdealItembySkuAtSnapdeal_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
8240
      private String skuAtSnapdeal;
-
 
8241
      public getSnapdealItembySkuAtSnapdeal_call(String skuAtSnapdeal, org.apache.thrift.async.AsyncMethodCallback<getSnapdealItembySkuAtSnapdeal_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 {
-
 
8242
        super(client, protocolFactory, transport, resultHandler, false);
-
 
8243
        this.skuAtSnapdeal = skuAtSnapdeal;
-
 
8244
      }
-
 
8245
 
-
 
8246
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
8247
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSnapdealItembySkuAtSnapdeal", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
8248
        getSnapdealItembySkuAtSnapdeal_args args = new getSnapdealItembySkuAtSnapdeal_args();
-
 
8249
        args.setSkuAtSnapdeal(skuAtSnapdeal);
-
 
8250
        args.write(prot);
-
 
8251
        prot.writeMessageEnd();
-
 
8252
      }
-
 
8253
 
-
 
8254
      public SnapdealItem getResult() throws org.apache.thrift.TException {
-
 
8255
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
8256
          throw new IllegalStateException("Method call not finished!");
-
 
8257
        }
-
 
8258
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
8259
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
8260
        return (new Client(prot)).recv_getSnapdealItembySkuAtSnapdeal();
-
 
8261
      }
-
 
8262
    }
-
 
8263
 
8205
  }
8264
  }
8206
 
8265
 
8207
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
8266
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
8208
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
8267
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
8209
    public Processor(I iface) {
8268
    public Processor(I iface) {
Line 8344... Line 8403...
8344
      processMap.put("getSnapdealItems", new getSnapdealItems());
8403
      processMap.put("getSnapdealItems", new getSnapdealItems());
8345
      processMap.put("searchSnapdealItems", new searchSnapdealItems());
8404
      processMap.put("searchSnapdealItems", new searchSnapdealItems());
8346
      processMap.put("getCountForSnapdealItems", new getCountForSnapdealItems());
8405
      processMap.put("getCountForSnapdealItems", new getCountForSnapdealItems());
8347
      processMap.put("getSnapdealSearchResultCount", new getSnapdealSearchResultCount());
8406
      processMap.put("getSnapdealSearchResultCount", new getSnapdealSearchResultCount());
8348
      processMap.put("getPrefferedInsurerForItem", new getPrefferedInsurerForItem());
8407
      processMap.put("getPrefferedInsurerForItem", new getPrefferedInsurerForItem());
-
 
8408
      processMap.put("getSnapdealItembySkuAtSnapdeal", new getSnapdealItembySkuAtSnapdeal());
8349
      return processMap;
8409
      return processMap;
8350
    }
8410
    }
8351
 
8411
 
8352
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
8412
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
8353
      public addItem() {
8413
      public addItem() {
Line 10636... Line 10696...
10636
        result.setSuccessIsSet(true);
10696
        result.setSuccessIsSet(true);
10637
        return result;
10697
        return result;
10638
      }
10698
      }
10639
    }
10699
    }
10640
 
10700
 
-
 
10701
    private static class getSnapdealItembySkuAtSnapdeal<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSnapdealItembySkuAtSnapdeal_args> {
-
 
10702
      public getSnapdealItembySkuAtSnapdeal() {
-
 
10703
        super("getSnapdealItembySkuAtSnapdeal");
-
 
10704
      }
-
 
10705
 
-
 
10706
      protected getSnapdealItembySkuAtSnapdeal_args getEmptyArgsInstance() {
-
 
10707
        return new getSnapdealItembySkuAtSnapdeal_args();
-
 
10708
      }
-
 
10709
 
-
 
10710
      protected getSnapdealItembySkuAtSnapdeal_result getResult(I iface, getSnapdealItembySkuAtSnapdeal_args args) throws org.apache.thrift.TException {
-
 
10711
        getSnapdealItembySkuAtSnapdeal_result result = new getSnapdealItembySkuAtSnapdeal_result();
-
 
10712
        result.success = iface.getSnapdealItembySkuAtSnapdeal(args.skuAtSnapdeal);
-
 
10713
        return result;
-
 
10714
      }
-
 
10715
    }
-
 
10716
 
10641
  }
10717
  }
10642
 
10718
 
10643
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
10719
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
10644
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
10720
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
10645
 
10721
 
Line 94772... Line 94848...
94772
      first = false;
94848
      first = false;
94773
      sb.append(")");
94849
      sb.append(")");
94774
      return sb.toString();
94850
      return sb.toString();
94775
    }
94851
    }
94776
 
94852
 
-
 
94853
    public void validate() throws org.apache.thrift.TException {
-
 
94854
      // check for required fields
-
 
94855
    }
-
 
94856
 
-
 
94857
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
94858
      try {
-
 
94859
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
94860
      } catch (org.apache.thrift.TException te) {
-
 
94861
        throw new java.io.IOException(te);
-
 
94862
      }
-
 
94863
    }
-
 
94864
 
-
 
94865
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
94866
      try {
-
 
94867
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
94868
      } catch (org.apache.thrift.TException te) {
-
 
94869
        throw new java.io.IOException(te);
-
 
94870
      }
-
 
94871
    }
-
 
94872
 
-
 
94873
  }
-
 
94874
 
-
 
94875
  public static class getSnapdealItembySkuAtSnapdeal_args implements org.apache.thrift.TBase<getSnapdealItembySkuAtSnapdeal_args, getSnapdealItembySkuAtSnapdeal_args._Fields>, java.io.Serializable, Cloneable   {
-
 
94876
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItembySkuAtSnapdeal_args");
-
 
94877
 
-
 
94878
    private static final org.apache.thrift.protocol.TField SKU_AT_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("skuAtSnapdeal", org.apache.thrift.protocol.TType.STRING, (short)-1);
-
 
94879
 
-
 
94880
    private String skuAtSnapdeal; // required
-
 
94881
 
-
 
94882
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
94883
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
94884
      SKU_AT_SNAPDEAL((short)-1, "skuAtSnapdeal");
-
 
94885
 
-
 
94886
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
94887
 
-
 
94888
      static {
-
 
94889
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
94890
          byName.put(field.getFieldName(), field);
-
 
94891
        }
-
 
94892
      }
-
 
94893
 
-
 
94894
      /**
-
 
94895
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
94896
       */
-
 
94897
      public static _Fields findByThriftId(int fieldId) {
-
 
94898
        switch(fieldId) {
-
 
94899
          case -1: // SKU_AT_SNAPDEAL
-
 
94900
            return SKU_AT_SNAPDEAL;
-
 
94901
          default:
-
 
94902
            return null;
-
 
94903
        }
-
 
94904
      }
-
 
94905
 
-
 
94906
      /**
-
 
94907
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
94908
       * if it is not found.
-
 
94909
       */
-
 
94910
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
94911
        _Fields fields = findByThriftId(fieldId);
-
 
94912
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
94913
        return fields;
-
 
94914
      }
-
 
94915
 
-
 
94916
      /**
-
 
94917
       * Find the _Fields constant that matches name, or null if its not found.
-
 
94918
       */
-
 
94919
      public static _Fields findByName(String name) {
-
 
94920
        return byName.get(name);
-
 
94921
      }
-
 
94922
 
-
 
94923
      private final short _thriftId;
-
 
94924
      private final String _fieldName;
-
 
94925
 
-
 
94926
      _Fields(short thriftId, String fieldName) {
-
 
94927
        _thriftId = thriftId;
-
 
94928
        _fieldName = fieldName;
-
 
94929
      }
-
 
94930
 
-
 
94931
      public short getThriftFieldId() {
-
 
94932
        return _thriftId;
-
 
94933
      }
-
 
94934
 
-
 
94935
      public String getFieldName() {
-
 
94936
        return _fieldName;
-
 
94937
      }
-
 
94938
    }
-
 
94939
 
-
 
94940
    // isset id assignments
-
 
94941
 
-
 
94942
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
94943
    static {
-
 
94944
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
94945
      tmpMap.put(_Fields.SKU_AT_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("skuAtSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
94946
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
94947
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
94948
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItembySkuAtSnapdeal_args.class, metaDataMap);
-
 
94949
    }
-
 
94950
 
-
 
94951
    public getSnapdealItembySkuAtSnapdeal_args() {
-
 
94952
    }
-
 
94953
 
-
 
94954
    public getSnapdealItembySkuAtSnapdeal_args(
-
 
94955
      String skuAtSnapdeal)
-
 
94956
    {
-
 
94957
      this();
-
 
94958
      this.skuAtSnapdeal = skuAtSnapdeal;
-
 
94959
    }
-
 
94960
 
-
 
94961
    /**
-
 
94962
     * Performs a deep copy on <i>other</i>.
-
 
94963
     */
-
 
94964
    public getSnapdealItembySkuAtSnapdeal_args(getSnapdealItembySkuAtSnapdeal_args other) {
-
 
94965
      if (other.isSetSkuAtSnapdeal()) {
-
 
94966
        this.skuAtSnapdeal = other.skuAtSnapdeal;
-
 
94967
      }
-
 
94968
    }
-
 
94969
 
-
 
94970
    public getSnapdealItembySkuAtSnapdeal_args deepCopy() {
-
 
94971
      return new getSnapdealItembySkuAtSnapdeal_args(this);
-
 
94972
    }
-
 
94973
 
-
 
94974
    @Override
-
 
94975
    public void clear() {
-
 
94976
      this.skuAtSnapdeal = null;
-
 
94977
    }
-
 
94978
 
-
 
94979
    public String getSkuAtSnapdeal() {
-
 
94980
      return this.skuAtSnapdeal;
-
 
94981
    }
-
 
94982
 
-
 
94983
    public void setSkuAtSnapdeal(String skuAtSnapdeal) {
-
 
94984
      this.skuAtSnapdeal = skuAtSnapdeal;
-
 
94985
    }
-
 
94986
 
-
 
94987
    public void unsetSkuAtSnapdeal() {
-
 
94988
      this.skuAtSnapdeal = null;
-
 
94989
    }
-
 
94990
 
-
 
94991
    /** Returns true if field skuAtSnapdeal is set (has been assigned a value) and false otherwise */
-
 
94992
    public boolean isSetSkuAtSnapdeal() {
-
 
94993
      return this.skuAtSnapdeal != null;
-
 
94994
    }
-
 
94995
 
-
 
94996
    public void setSkuAtSnapdealIsSet(boolean value) {
-
 
94997
      if (!value) {
-
 
94998
        this.skuAtSnapdeal = null;
-
 
94999
      }
-
 
95000
    }
-
 
95001
 
-
 
95002
    public void setFieldValue(_Fields field, Object value) {
-
 
95003
      switch (field) {
-
 
95004
      case SKU_AT_SNAPDEAL:
-
 
95005
        if (value == null) {
-
 
95006
          unsetSkuAtSnapdeal();
-
 
95007
        } else {
-
 
95008
          setSkuAtSnapdeal((String)value);
-
 
95009
        }
-
 
95010
        break;
-
 
95011
 
-
 
95012
      }
-
 
95013
    }
-
 
95014
 
-
 
95015
    public Object getFieldValue(_Fields field) {
-
 
95016
      switch (field) {
-
 
95017
      case SKU_AT_SNAPDEAL:
-
 
95018
        return getSkuAtSnapdeal();
-
 
95019
 
-
 
95020
      }
-
 
95021
      throw new IllegalStateException();
-
 
95022
    }
-
 
95023
 
-
 
95024
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
95025
    public boolean isSet(_Fields field) {
-
 
95026
      if (field == null) {
-
 
95027
        throw new IllegalArgumentException();
-
 
95028
      }
-
 
95029
 
-
 
95030
      switch (field) {
-
 
95031
      case SKU_AT_SNAPDEAL:
-
 
95032
        return isSetSkuAtSnapdeal();
-
 
95033
      }
-
 
95034
      throw new IllegalStateException();
-
 
95035
    }
-
 
95036
 
-
 
95037
    @Override
-
 
95038
    public boolean equals(Object that) {
-
 
95039
      if (that == null)
-
 
95040
        return false;
-
 
95041
      if (that instanceof getSnapdealItembySkuAtSnapdeal_args)
-
 
95042
        return this.equals((getSnapdealItembySkuAtSnapdeal_args)that);
-
 
95043
      return false;
-
 
95044
    }
-
 
95045
 
-
 
95046
    public boolean equals(getSnapdealItembySkuAtSnapdeal_args that) {
-
 
95047
      if (that == null)
-
 
95048
        return false;
-
 
95049
 
-
 
95050
      boolean this_present_skuAtSnapdeal = true && this.isSetSkuAtSnapdeal();
-
 
95051
      boolean that_present_skuAtSnapdeal = true && that.isSetSkuAtSnapdeal();
-
 
95052
      if (this_present_skuAtSnapdeal || that_present_skuAtSnapdeal) {
-
 
95053
        if (!(this_present_skuAtSnapdeal && that_present_skuAtSnapdeal))
-
 
95054
          return false;
-
 
95055
        if (!this.skuAtSnapdeal.equals(that.skuAtSnapdeal))
-
 
95056
          return false;
-
 
95057
      }
-
 
95058
 
-
 
95059
      return true;
-
 
95060
    }
-
 
95061
 
-
 
95062
    @Override
-
 
95063
    public int hashCode() {
-
 
95064
      return 0;
-
 
95065
    }
-
 
95066
 
-
 
95067
    public int compareTo(getSnapdealItembySkuAtSnapdeal_args other) {
-
 
95068
      if (!getClass().equals(other.getClass())) {
-
 
95069
        return getClass().getName().compareTo(other.getClass().getName());
-
 
95070
      }
-
 
95071
 
-
 
95072
      int lastComparison = 0;
-
 
95073
      getSnapdealItembySkuAtSnapdeal_args typedOther = (getSnapdealItembySkuAtSnapdeal_args)other;
-
 
95074
 
-
 
95075
      lastComparison = Boolean.valueOf(isSetSkuAtSnapdeal()).compareTo(typedOther.isSetSkuAtSnapdeal());
-
 
95076
      if (lastComparison != 0) {
-
 
95077
        return lastComparison;
-
 
95078
      }
-
 
95079
      if (isSetSkuAtSnapdeal()) {
-
 
95080
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skuAtSnapdeal, typedOther.skuAtSnapdeal);
-
 
95081
        if (lastComparison != 0) {
-
 
95082
          return lastComparison;
-
 
95083
        }
-
 
95084
      }
-
 
95085
      return 0;
-
 
95086
    }
-
 
95087
 
-
 
95088
    public _Fields fieldForId(int fieldId) {
-
 
95089
      return _Fields.findByThriftId(fieldId);
-
 
95090
    }
-
 
95091
 
-
 
95092
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
95093
      org.apache.thrift.protocol.TField field;
-
 
95094
      iprot.readStructBegin();
-
 
95095
      while (true)
-
 
95096
      {
-
 
95097
        field = iprot.readFieldBegin();
-
 
95098
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
95099
          break;
-
 
95100
        }
-
 
95101
        switch (field.id) {
-
 
95102
          case -1: // SKU_AT_SNAPDEAL
-
 
95103
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
95104
              this.skuAtSnapdeal = iprot.readString();
-
 
95105
            } else { 
-
 
95106
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
95107
            }
-
 
95108
            break;
-
 
95109
          default:
-
 
95110
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
95111
        }
-
 
95112
        iprot.readFieldEnd();
-
 
95113
      }
-
 
95114
      iprot.readStructEnd();
-
 
95115
      validate();
-
 
95116
    }
-
 
95117
 
-
 
95118
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
95119
      validate();
-
 
95120
 
-
 
95121
      oprot.writeStructBegin(STRUCT_DESC);
-
 
95122
      if (this.skuAtSnapdeal != null) {
-
 
95123
        oprot.writeFieldBegin(SKU_AT_SNAPDEAL_FIELD_DESC);
-
 
95124
        oprot.writeString(this.skuAtSnapdeal);
-
 
95125
        oprot.writeFieldEnd();
-
 
95126
      }
-
 
95127
      oprot.writeFieldStop();
-
 
95128
      oprot.writeStructEnd();
-
 
95129
    }
-
 
95130
 
-
 
95131
    @Override
-
 
95132
    public String toString() {
-
 
95133
      StringBuilder sb = new StringBuilder("getSnapdealItembySkuAtSnapdeal_args(");
-
 
95134
      boolean first = true;
-
 
95135
 
-
 
95136
      sb.append("skuAtSnapdeal:");
-
 
95137
      if (this.skuAtSnapdeal == null) {
-
 
95138
        sb.append("null");
-
 
95139
      } else {
-
 
95140
        sb.append(this.skuAtSnapdeal);
-
 
95141
      }
-
 
95142
      first = false;
-
 
95143
      sb.append(")");
-
 
95144
      return sb.toString();
-
 
95145
    }
-
 
95146
 
-
 
95147
    public void validate() throws org.apache.thrift.TException {
-
 
95148
      // check for required fields
-
 
95149
    }
-
 
95150
 
-
 
95151
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
95152
      try {
-
 
95153
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
95154
      } catch (org.apache.thrift.TException te) {
-
 
95155
        throw new java.io.IOException(te);
-
 
95156
      }
-
 
95157
    }
-
 
95158
 
-
 
95159
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
95160
      try {
-
 
95161
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
95162
      } catch (org.apache.thrift.TException te) {
-
 
95163
        throw new java.io.IOException(te);
-
 
95164
      }
-
 
95165
    }
-
 
95166
 
-
 
95167
  }
-
 
95168
 
-
 
95169
  public static class getSnapdealItembySkuAtSnapdeal_result implements org.apache.thrift.TBase<getSnapdealItembySkuAtSnapdeal_result, getSnapdealItembySkuAtSnapdeal_result._Fields>, java.io.Serializable, Cloneable   {
-
 
95170
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItembySkuAtSnapdeal_result");
-
 
95171
 
-
 
95172
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
95173
 
-
 
95174
    private SnapdealItem success; // required
-
 
95175
 
-
 
95176
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
95177
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
95178
      SUCCESS((short)0, "success");
-
 
95179
 
-
 
95180
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
95181
 
-
 
95182
      static {
-
 
95183
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
95184
          byName.put(field.getFieldName(), field);
-
 
95185
        }
-
 
95186
      }
-
 
95187
 
-
 
95188
      /**
-
 
95189
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
95190
       */
-
 
95191
      public static _Fields findByThriftId(int fieldId) {
-
 
95192
        switch(fieldId) {
-
 
95193
          case 0: // SUCCESS
-
 
95194
            return SUCCESS;
-
 
95195
          default:
-
 
95196
            return null;
-
 
95197
        }
-
 
95198
      }
-
 
95199
 
-
 
95200
      /**
-
 
95201
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
95202
       * if it is not found.
-
 
95203
       */
-
 
95204
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
95205
        _Fields fields = findByThriftId(fieldId);
-
 
95206
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
95207
        return fields;
-
 
95208
      }
-
 
95209
 
-
 
95210
      /**
-
 
95211
       * Find the _Fields constant that matches name, or null if its not found.
-
 
95212
       */
-
 
95213
      public static _Fields findByName(String name) {
-
 
95214
        return byName.get(name);
-
 
95215
      }
-
 
95216
 
-
 
95217
      private final short _thriftId;
-
 
95218
      private final String _fieldName;
-
 
95219
 
-
 
95220
      _Fields(short thriftId, String fieldName) {
-
 
95221
        _thriftId = thriftId;
-
 
95222
        _fieldName = fieldName;
-
 
95223
      }
-
 
95224
 
-
 
95225
      public short getThriftFieldId() {
-
 
95226
        return _thriftId;
-
 
95227
      }
-
 
95228
 
-
 
95229
      public String getFieldName() {
-
 
95230
        return _fieldName;
-
 
95231
      }
-
 
95232
    }
-
 
95233
 
-
 
95234
    // isset id assignments
-
 
95235
 
-
 
95236
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
95237
    static {
-
 
95238
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
95239
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
95240
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItem.class)));
-
 
95241
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
95242
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItembySkuAtSnapdeal_result.class, metaDataMap);
-
 
95243
    }
-
 
95244
 
-
 
95245
    public getSnapdealItembySkuAtSnapdeal_result() {
-
 
95246
    }
-
 
95247
 
-
 
95248
    public getSnapdealItembySkuAtSnapdeal_result(
-
 
95249
      SnapdealItem success)
-
 
95250
    {
-
 
95251
      this();
-
 
95252
      this.success = success;
-
 
95253
    }
-
 
95254
 
-
 
95255
    /**
-
 
95256
     * Performs a deep copy on <i>other</i>.
-
 
95257
     */
-
 
95258
    public getSnapdealItembySkuAtSnapdeal_result(getSnapdealItembySkuAtSnapdeal_result other) {
-
 
95259
      if (other.isSetSuccess()) {
-
 
95260
        this.success = new SnapdealItem(other.success);
-
 
95261
      }
-
 
95262
    }
-
 
95263
 
-
 
95264
    public getSnapdealItembySkuAtSnapdeal_result deepCopy() {
-
 
95265
      return new getSnapdealItembySkuAtSnapdeal_result(this);
-
 
95266
    }
-
 
95267
 
-
 
95268
    @Override
-
 
95269
    public void clear() {
-
 
95270
      this.success = null;
-
 
95271
    }
-
 
95272
 
-
 
95273
    public SnapdealItem getSuccess() {
-
 
95274
      return this.success;
-
 
95275
    }
-
 
95276
 
-
 
95277
    public void setSuccess(SnapdealItem success) {
-
 
95278
      this.success = success;
-
 
95279
    }
-
 
95280
 
-
 
95281
    public void unsetSuccess() {
-
 
95282
      this.success = null;
-
 
95283
    }
-
 
95284
 
-
 
95285
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
95286
    public boolean isSetSuccess() {
-
 
95287
      return this.success != null;
-
 
95288
    }
-
 
95289
 
-
 
95290
    public void setSuccessIsSet(boolean value) {
-
 
95291
      if (!value) {
-
 
95292
        this.success = null;
-
 
95293
      }
-
 
95294
    }
-
 
95295
 
-
 
95296
    public void setFieldValue(_Fields field, Object value) {
-
 
95297
      switch (field) {
-
 
95298
      case SUCCESS:
-
 
95299
        if (value == null) {
-
 
95300
          unsetSuccess();
-
 
95301
        } else {
-
 
95302
          setSuccess((SnapdealItem)value);
-
 
95303
        }
-
 
95304
        break;
-
 
95305
 
-
 
95306
      }
-
 
95307
    }
-
 
95308
 
-
 
95309
    public Object getFieldValue(_Fields field) {
-
 
95310
      switch (field) {
-
 
95311
      case SUCCESS:
-
 
95312
        return getSuccess();
-
 
95313
 
-
 
95314
      }
-
 
95315
      throw new IllegalStateException();
-
 
95316
    }
-
 
95317
 
-
 
95318
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
95319
    public boolean isSet(_Fields field) {
-
 
95320
      if (field == null) {
-
 
95321
        throw new IllegalArgumentException();
-
 
95322
      }
-
 
95323
 
-
 
95324
      switch (field) {
-
 
95325
      case SUCCESS:
-
 
95326
        return isSetSuccess();
-
 
95327
      }
-
 
95328
      throw new IllegalStateException();
-
 
95329
    }
-
 
95330
 
-
 
95331
    @Override
-
 
95332
    public boolean equals(Object that) {
-
 
95333
      if (that == null)
-
 
95334
        return false;
-
 
95335
      if (that instanceof getSnapdealItembySkuAtSnapdeal_result)
-
 
95336
        return this.equals((getSnapdealItembySkuAtSnapdeal_result)that);
-
 
95337
      return false;
-
 
95338
    }
-
 
95339
 
-
 
95340
    public boolean equals(getSnapdealItembySkuAtSnapdeal_result that) {
-
 
95341
      if (that == null)
-
 
95342
        return false;
-
 
95343
 
-
 
95344
      boolean this_present_success = true && this.isSetSuccess();
-
 
95345
      boolean that_present_success = true && that.isSetSuccess();
-
 
95346
      if (this_present_success || that_present_success) {
-
 
95347
        if (!(this_present_success && that_present_success))
-
 
95348
          return false;
-
 
95349
        if (!this.success.equals(that.success))
-
 
95350
          return false;
-
 
95351
      }
-
 
95352
 
-
 
95353
      return true;
-
 
95354
    }
-
 
95355
 
-
 
95356
    @Override
-
 
95357
    public int hashCode() {
-
 
95358
      return 0;
-
 
95359
    }
-
 
95360
 
-
 
95361
    public int compareTo(getSnapdealItembySkuAtSnapdeal_result other) {
-
 
95362
      if (!getClass().equals(other.getClass())) {
-
 
95363
        return getClass().getName().compareTo(other.getClass().getName());
-
 
95364
      }
-
 
95365
 
-
 
95366
      int lastComparison = 0;
-
 
95367
      getSnapdealItembySkuAtSnapdeal_result typedOther = (getSnapdealItembySkuAtSnapdeal_result)other;
-
 
95368
 
-
 
95369
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
95370
      if (lastComparison != 0) {
-
 
95371
        return lastComparison;
-
 
95372
      }
-
 
95373
      if (isSetSuccess()) {
-
 
95374
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
95375
        if (lastComparison != 0) {
-
 
95376
          return lastComparison;
-
 
95377
        }
-
 
95378
      }
-
 
95379
      return 0;
-
 
95380
    }
-
 
95381
 
-
 
95382
    public _Fields fieldForId(int fieldId) {
-
 
95383
      return _Fields.findByThriftId(fieldId);
-
 
95384
    }
-
 
95385
 
-
 
95386
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
95387
      org.apache.thrift.protocol.TField field;
-
 
95388
      iprot.readStructBegin();
-
 
95389
      while (true)
-
 
95390
      {
-
 
95391
        field = iprot.readFieldBegin();
-
 
95392
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
95393
          break;
-
 
95394
        }
-
 
95395
        switch (field.id) {
-
 
95396
          case 0: // SUCCESS
-
 
95397
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
95398
              this.success = new SnapdealItem();
-
 
95399
              this.success.read(iprot);
-
 
95400
            } else { 
-
 
95401
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
95402
            }
-
 
95403
            break;
-
 
95404
          default:
-
 
95405
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
95406
        }
-
 
95407
        iprot.readFieldEnd();
-
 
95408
      }
-
 
95409
      iprot.readStructEnd();
-
 
95410
      validate();
-
 
95411
    }
-
 
95412
 
-
 
95413
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
95414
      oprot.writeStructBegin(STRUCT_DESC);
-
 
95415
 
-
 
95416
      if (this.isSetSuccess()) {
-
 
95417
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
95418
        this.success.write(oprot);
-
 
95419
        oprot.writeFieldEnd();
-
 
95420
      }
-
 
95421
      oprot.writeFieldStop();
-
 
95422
      oprot.writeStructEnd();
-
 
95423
    }
-
 
95424
 
-
 
95425
    @Override
-
 
95426
    public String toString() {
-
 
95427
      StringBuilder sb = new StringBuilder("getSnapdealItembySkuAtSnapdeal_result(");
-
 
95428
      boolean first = true;
-
 
95429
 
-
 
95430
      sb.append("success:");
-
 
95431
      if (this.success == null) {
-
 
95432
        sb.append("null");
-
 
95433
      } else {
-
 
95434
        sb.append(this.success);
-
 
95435
      }
-
 
95436
      first = false;
-
 
95437
      sb.append(")");
-
 
95438
      return sb.toString();
-
 
95439
    }
-
 
95440
 
94777
    public void validate() throws org.apache.thrift.TException {
95441
    public void validate() throws org.apache.thrift.TException {
94778
      // check for required fields
95442
      // check for required fields
94779
    }
95443
    }
94780
 
95444
 
94781
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
95445
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {