Subversion Repositories SmartDukaan

Rev

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

Rev 11905 Rev 12133
Line 554... Line 554...
554
 
554
 
555
    public AmazonOutOfSync getAmazonOutSyncItems(long item_id) throws org.apache.thrift.TException;
555
    public AmazonOutOfSync getAmazonOutSyncItems(long item_id) throws org.apache.thrift.TException;
556
 
556
 
557
    public List<PdPriceComp> getAllPrivateDealsComparison() throws org.apache.thrift.TException;
557
    public List<PdPriceComp> getAllPrivateDealsComparison() throws org.apache.thrift.TException;
558
 
558
 
-
 
559
    public List<SnapdealItem> getAllSnapdealMarketplaceItem() throws org.apache.thrift.TException;
-
 
560
 
-
 
561
    public List<FlipkartItem> getAllFlipkartMarketplaceItem() throws org.apache.thrift.TException;
-
 
562
 
559
  }
563
  }
560
 
564
 
561
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
565
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
562
 
566
 
563
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
567
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 892... Line 896...
892
 
896
 
893
    public void getAmazonOutSyncItems(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonOutSyncItems_call> resultHandler) throws org.apache.thrift.TException;
897
    public void getAmazonOutSyncItems(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonOutSyncItems_call> resultHandler) throws org.apache.thrift.TException;
894
 
898
 
895
    public void getAllPrivateDealsComparison(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPrivateDealsComparison_call> resultHandler) throws org.apache.thrift.TException;
899
    public void getAllPrivateDealsComparison(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPrivateDealsComparison_call> resultHandler) throws org.apache.thrift.TException;
896
 
900
 
-
 
901
    public void getAllSnapdealMarketplaceItem(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSnapdealMarketplaceItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
902
 
-
 
903
    public void getAllFlipkartMarketplaceItem(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFlipkartMarketplaceItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
904
 
897
  }
905
  }
898
 
906
 
899
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
907
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
900
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
908
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
901
      public Factory() {}
909
      public Factory() {}
Line 4869... Line 4877...
4869
        return result.success;
4877
        return result.success;
4870
      }
4878
      }
4871
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPrivateDealsComparison failed: unknown result");
4879
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPrivateDealsComparison failed: unknown result");
4872
    }
4880
    }
4873
 
4881
 
-
 
4882
    public List<SnapdealItem> getAllSnapdealMarketplaceItem() throws org.apache.thrift.TException
-
 
4883
    {
-
 
4884
      send_getAllSnapdealMarketplaceItem();
-
 
4885
      return recv_getAllSnapdealMarketplaceItem();
-
 
4886
    }
-
 
4887
 
-
 
4888
    public void send_getAllSnapdealMarketplaceItem() throws org.apache.thrift.TException
-
 
4889
    {
-
 
4890
      getAllSnapdealMarketplaceItem_args args = new getAllSnapdealMarketplaceItem_args();
-
 
4891
      sendBase("getAllSnapdealMarketplaceItem", args);
-
 
4892
    }
-
 
4893
 
-
 
4894
    public List<SnapdealItem> recv_getAllSnapdealMarketplaceItem() throws org.apache.thrift.TException
-
 
4895
    {
-
 
4896
      getAllSnapdealMarketplaceItem_result result = new getAllSnapdealMarketplaceItem_result();
-
 
4897
      receiveBase(result, "getAllSnapdealMarketplaceItem");
-
 
4898
      if (result.isSetSuccess()) {
-
 
4899
        return result.success;
-
 
4900
      }
-
 
4901
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSnapdealMarketplaceItem failed: unknown result");
-
 
4902
    }
-
 
4903
 
-
 
4904
    public List<FlipkartItem> getAllFlipkartMarketplaceItem() throws org.apache.thrift.TException
-
 
4905
    {
-
 
4906
      send_getAllFlipkartMarketplaceItem();
-
 
4907
      return recv_getAllFlipkartMarketplaceItem();
-
 
4908
    }
-
 
4909
 
-
 
4910
    public void send_getAllFlipkartMarketplaceItem() throws org.apache.thrift.TException
-
 
4911
    {
-
 
4912
      getAllFlipkartMarketplaceItem_args args = new getAllFlipkartMarketplaceItem_args();
-
 
4913
      sendBase("getAllFlipkartMarketplaceItem", args);
-
 
4914
    }
-
 
4915
 
-
 
4916
    public List<FlipkartItem> recv_getAllFlipkartMarketplaceItem() throws org.apache.thrift.TException
-
 
4917
    {
-
 
4918
      getAllFlipkartMarketplaceItem_result result = new getAllFlipkartMarketplaceItem_result();
-
 
4919
      receiveBase(result, "getAllFlipkartMarketplaceItem");
-
 
4920
      if (result.isSetSuccess()) {
-
 
4921
        return result.success;
-
 
4922
      }
-
 
4923
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFlipkartMarketplaceItem failed: unknown result");
-
 
4924
    }
-
 
4925
 
4874
  }
4926
  }
4875
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4927
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4876
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4928
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4877
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4929
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4878
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4930
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 10384... Line 10436...
10384
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10436
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10385
        return (new Client(prot)).recv_getAllPrivateDealsComparison();
10437
        return (new Client(prot)).recv_getAllPrivateDealsComparison();
10386
      }
10438
      }
10387
    }
10439
    }
10388
 
10440
 
-
 
10441
    public void getAllSnapdealMarketplaceItem(org.apache.thrift.async.AsyncMethodCallback<getAllSnapdealMarketplaceItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
10442
      checkReady();
-
 
10443
      getAllSnapdealMarketplaceItem_call method_call = new getAllSnapdealMarketplaceItem_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
10444
      this.___currentMethod = method_call;
-
 
10445
      ___manager.call(method_call);
-
 
10446
    }
-
 
10447
 
-
 
10448
    public static class getAllSnapdealMarketplaceItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10449
      public getAllSnapdealMarketplaceItem_call(org.apache.thrift.async.AsyncMethodCallback<getAllSnapdealMarketplaceItem_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 {
-
 
10450
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10451
      }
-
 
10452
 
-
 
10453
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10454
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllSnapdealMarketplaceItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10455
        getAllSnapdealMarketplaceItem_args args = new getAllSnapdealMarketplaceItem_args();
-
 
10456
        args.write(prot);
-
 
10457
        prot.writeMessageEnd();
-
 
10458
      }
-
 
10459
 
-
 
10460
      public List<SnapdealItem> getResult() throws org.apache.thrift.TException {
-
 
10461
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10462
          throw new IllegalStateException("Method call not finished!");
-
 
10463
        }
-
 
10464
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10465
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10466
        return (new Client(prot)).recv_getAllSnapdealMarketplaceItem();
-
 
10467
      }
-
 
10468
    }
-
 
10469
 
-
 
10470
    public void getAllFlipkartMarketplaceItem(org.apache.thrift.async.AsyncMethodCallback<getAllFlipkartMarketplaceItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
10471
      checkReady();
-
 
10472
      getAllFlipkartMarketplaceItem_call method_call = new getAllFlipkartMarketplaceItem_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
10473
      this.___currentMethod = method_call;
-
 
10474
      ___manager.call(method_call);
-
 
10475
    }
-
 
10476
 
-
 
10477
    public static class getAllFlipkartMarketplaceItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10478
      public getAllFlipkartMarketplaceItem_call(org.apache.thrift.async.AsyncMethodCallback<getAllFlipkartMarketplaceItem_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 {
-
 
10479
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10480
      }
-
 
10481
 
-
 
10482
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10483
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllFlipkartMarketplaceItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10484
        getAllFlipkartMarketplaceItem_args args = new getAllFlipkartMarketplaceItem_args();
-
 
10485
        args.write(prot);
-
 
10486
        prot.writeMessageEnd();
-
 
10487
      }
-
 
10488
 
-
 
10489
      public List<FlipkartItem> getResult() throws org.apache.thrift.TException {
-
 
10490
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10491
          throw new IllegalStateException("Method call not finished!");
-
 
10492
        }
-
 
10493
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10494
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10495
        return (new Client(prot)).recv_getAllFlipkartMarketplaceItem();
-
 
10496
      }
-
 
10497
    }
-
 
10498
 
10389
  }
10499
  }
10390
 
10500
 
10391
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10501
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10392
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10502
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10393
    public Processor(I iface) {
10503
    public Processor(I iface) {
Line 10564... Line 10674...
10564
      processMap.put("addOrUpdatePrivateDeal", new addOrUpdatePrivateDeal());
10674
      processMap.put("addOrUpdatePrivateDeal", new addOrUpdatePrivateDeal());
10565
      processMap.put("getPrivateDealsCatalogIds", new getPrivateDealsCatalogIds());
10675
      processMap.put("getPrivateDealsCatalogIds", new getPrivateDealsCatalogIds());
10566
      processMap.put("getPrivateDealsCount", new getPrivateDealsCount());
10676
      processMap.put("getPrivateDealsCount", new getPrivateDealsCount());
10567
      processMap.put("getAmazonOutSyncItems", new getAmazonOutSyncItems());
10677
      processMap.put("getAmazonOutSyncItems", new getAmazonOutSyncItems());
10568
      processMap.put("getAllPrivateDealsComparison", new getAllPrivateDealsComparison());
10678
      processMap.put("getAllPrivateDealsComparison", new getAllPrivateDealsComparison());
-
 
10679
      processMap.put("getAllSnapdealMarketplaceItem", new getAllSnapdealMarketplaceItem());
-
 
10680
      processMap.put("getAllFlipkartMarketplaceItem", new getAllFlipkartMarketplaceItem());
10569
      return processMap;
10681
      return processMap;
10570
    }
10682
    }
10571
 
10683
 
10572
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
10684
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
10573
      public addItem() {
10685
      public addItem() {
Line 13467... Line 13579...
13467
        result.success = iface.getAllPrivateDealsComparison();
13579
        result.success = iface.getAllPrivateDealsComparison();
13468
        return result;
13580
        return result;
13469
      }
13581
      }
13470
    }
13582
    }
13471
 
13583
 
-
 
13584
    private static class getAllSnapdealMarketplaceItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSnapdealMarketplaceItem_args> {
-
 
13585
      public getAllSnapdealMarketplaceItem() {
-
 
13586
        super("getAllSnapdealMarketplaceItem");
-
 
13587
      }
-
 
13588
 
-
 
13589
      protected getAllSnapdealMarketplaceItem_args getEmptyArgsInstance() {
-
 
13590
        return new getAllSnapdealMarketplaceItem_args();
-
 
13591
      }
-
 
13592
 
-
 
13593
      protected getAllSnapdealMarketplaceItem_result getResult(I iface, getAllSnapdealMarketplaceItem_args args) throws org.apache.thrift.TException {
-
 
13594
        getAllSnapdealMarketplaceItem_result result = new getAllSnapdealMarketplaceItem_result();
-
 
13595
        result.success = iface.getAllSnapdealMarketplaceItem();
-
 
13596
        return result;
-
 
13597
      }
-
 
13598
    }
-
 
13599
 
-
 
13600
    private static class getAllFlipkartMarketplaceItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFlipkartMarketplaceItem_args> {
-
 
13601
      public getAllFlipkartMarketplaceItem() {
-
 
13602
        super("getAllFlipkartMarketplaceItem");
-
 
13603
      }
-
 
13604
 
-
 
13605
      protected getAllFlipkartMarketplaceItem_args getEmptyArgsInstance() {
-
 
13606
        return new getAllFlipkartMarketplaceItem_args();
-
 
13607
      }
-
 
13608
 
-
 
13609
      protected getAllFlipkartMarketplaceItem_result getResult(I iface, getAllFlipkartMarketplaceItem_args args) throws org.apache.thrift.TException {
-
 
13610
        getAllFlipkartMarketplaceItem_result result = new getAllFlipkartMarketplaceItem_result();
-
 
13611
        result.success = iface.getAllFlipkartMarketplaceItem();
-
 
13612
        return result;
-
 
13613
      }
-
 
13614
    }
-
 
13615
 
13472
  }
13616
  }
13473
 
13617
 
13474
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
13618
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
13475
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
13619
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
13476
 
13620
 
Line 120736... Line 120880...
120736
      boolean first = true;
120880
      boolean first = true;
120737
 
120881
 
120738
      sb.append("success:");
120882
      sb.append("success:");
120739
      if (this.success == null) {
120883
      if (this.success == null) {
120740
        sb.append("null");
120884
        sb.append("null");
-
 
120885
      } else {
-
 
120886
        sb.append(this.success);
-
 
120887
      }
-
 
120888
      first = false;
-
 
120889
      sb.append(")");
-
 
120890
      return sb.toString();
-
 
120891
    }
-
 
120892
 
-
 
120893
    public void validate() throws org.apache.thrift.TException {
-
 
120894
      // check for required fields
-
 
120895
    }
-
 
120896
 
-
 
120897
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
120898
      try {
-
 
120899
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
120900
      } catch (org.apache.thrift.TException te) {
-
 
120901
        throw new java.io.IOException(te);
-
 
120902
      }
-
 
120903
    }
-
 
120904
 
-
 
120905
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
120906
      try {
-
 
120907
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
120908
      } catch (org.apache.thrift.TException te) {
-
 
120909
        throw new java.io.IOException(te);
-
 
120910
      }
-
 
120911
    }
-
 
120912
 
-
 
120913
  }
-
 
120914
 
-
 
120915
  public static class getAllSnapdealMarketplaceItem_args implements org.apache.thrift.TBase<getAllSnapdealMarketplaceItem_args, getAllSnapdealMarketplaceItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
120916
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSnapdealMarketplaceItem_args");
-
 
120917
 
-
 
120918
 
-
 
120919
 
-
 
120920
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
120921
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
120922
;
-
 
120923
 
-
 
120924
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
120925
 
-
 
120926
      static {
-
 
120927
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
120928
          byName.put(field.getFieldName(), field);
-
 
120929
        }
-
 
120930
      }
-
 
120931
 
-
 
120932
      /**
-
 
120933
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
120934
       */
-
 
120935
      public static _Fields findByThriftId(int fieldId) {
-
 
120936
        switch(fieldId) {
-
 
120937
          default:
-
 
120938
            return null;
-
 
120939
        }
-
 
120940
      }
-
 
120941
 
-
 
120942
      /**
-
 
120943
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
120944
       * if it is not found.
-
 
120945
       */
-
 
120946
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
120947
        _Fields fields = findByThriftId(fieldId);
-
 
120948
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
120949
        return fields;
-
 
120950
      }
-
 
120951
 
-
 
120952
      /**
-
 
120953
       * Find the _Fields constant that matches name, or null if its not found.
-
 
120954
       */
-
 
120955
      public static _Fields findByName(String name) {
-
 
120956
        return byName.get(name);
-
 
120957
      }
-
 
120958
 
-
 
120959
      private final short _thriftId;
-
 
120960
      private final String _fieldName;
-
 
120961
 
-
 
120962
      _Fields(short thriftId, String fieldName) {
-
 
120963
        _thriftId = thriftId;
-
 
120964
        _fieldName = fieldName;
-
 
120965
      }
-
 
120966
 
-
 
120967
      public short getThriftFieldId() {
-
 
120968
        return _thriftId;
-
 
120969
      }
-
 
120970
 
-
 
120971
      public String getFieldName() {
-
 
120972
        return _fieldName;
-
 
120973
      }
-
 
120974
    }
-
 
120975
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
120976
    static {
-
 
120977
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
120978
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
120979
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSnapdealMarketplaceItem_args.class, metaDataMap);
-
 
120980
    }
-
 
120981
 
-
 
120982
    public getAllSnapdealMarketplaceItem_args() {
-
 
120983
    }
-
 
120984
 
-
 
120985
    /**
-
 
120986
     * Performs a deep copy on <i>other</i>.
-
 
120987
     */
-
 
120988
    public getAllSnapdealMarketplaceItem_args(getAllSnapdealMarketplaceItem_args other) {
-
 
120989
    }
-
 
120990
 
-
 
120991
    public getAllSnapdealMarketplaceItem_args deepCopy() {
-
 
120992
      return new getAllSnapdealMarketplaceItem_args(this);
-
 
120993
    }
-
 
120994
 
-
 
120995
    @Override
-
 
120996
    public void clear() {
-
 
120997
    }
-
 
120998
 
-
 
120999
    public void setFieldValue(_Fields field, Object value) {
-
 
121000
      switch (field) {
-
 
121001
      }
-
 
121002
    }
-
 
121003
 
-
 
121004
    public Object getFieldValue(_Fields field) {
-
 
121005
      switch (field) {
-
 
121006
      }
-
 
121007
      throw new IllegalStateException();
-
 
121008
    }
-
 
121009
 
-
 
121010
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
121011
    public boolean isSet(_Fields field) {
-
 
121012
      if (field == null) {
-
 
121013
        throw new IllegalArgumentException();
-
 
121014
      }
-
 
121015
 
-
 
121016
      switch (field) {
-
 
121017
      }
-
 
121018
      throw new IllegalStateException();
-
 
121019
    }
-
 
121020
 
-
 
121021
    @Override
-
 
121022
    public boolean equals(Object that) {
-
 
121023
      if (that == null)
-
 
121024
        return false;
-
 
121025
      if (that instanceof getAllSnapdealMarketplaceItem_args)
-
 
121026
        return this.equals((getAllSnapdealMarketplaceItem_args)that);
-
 
121027
      return false;
-
 
121028
    }
-
 
121029
 
-
 
121030
    public boolean equals(getAllSnapdealMarketplaceItem_args that) {
-
 
121031
      if (that == null)
-
 
121032
        return false;
-
 
121033
 
-
 
121034
      return true;
-
 
121035
    }
-
 
121036
 
-
 
121037
    @Override
-
 
121038
    public int hashCode() {
-
 
121039
      return 0;
-
 
121040
    }
-
 
121041
 
-
 
121042
    public int compareTo(getAllSnapdealMarketplaceItem_args other) {
-
 
121043
      if (!getClass().equals(other.getClass())) {
-
 
121044
        return getClass().getName().compareTo(other.getClass().getName());
-
 
121045
      }
-
 
121046
 
-
 
121047
      int lastComparison = 0;
-
 
121048
      getAllSnapdealMarketplaceItem_args typedOther = (getAllSnapdealMarketplaceItem_args)other;
-
 
121049
 
-
 
121050
      return 0;
-
 
121051
    }
-
 
121052
 
-
 
121053
    public _Fields fieldForId(int fieldId) {
-
 
121054
      return _Fields.findByThriftId(fieldId);
-
 
121055
    }
-
 
121056
 
-
 
121057
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
121058
      org.apache.thrift.protocol.TField field;
-
 
121059
      iprot.readStructBegin();
-
 
121060
      while (true)
-
 
121061
      {
-
 
121062
        field = iprot.readFieldBegin();
-
 
121063
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
121064
          break;
-
 
121065
        }
-
 
121066
        switch (field.id) {
-
 
121067
          default:
-
 
121068
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
121069
        }
-
 
121070
        iprot.readFieldEnd();
-
 
121071
      }
-
 
121072
      iprot.readStructEnd();
-
 
121073
      validate();
-
 
121074
    }
-
 
121075
 
-
 
121076
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
121077
      validate();
-
 
121078
 
-
 
121079
      oprot.writeStructBegin(STRUCT_DESC);
-
 
121080
      oprot.writeFieldStop();
-
 
121081
      oprot.writeStructEnd();
-
 
121082
    }
-
 
121083
 
-
 
121084
    @Override
-
 
121085
    public String toString() {
-
 
121086
      StringBuilder sb = new StringBuilder("getAllSnapdealMarketplaceItem_args(");
-
 
121087
      boolean first = true;
-
 
121088
 
-
 
121089
      sb.append(")");
-
 
121090
      return sb.toString();
-
 
121091
    }
-
 
121092
 
-
 
121093
    public void validate() throws org.apache.thrift.TException {
-
 
121094
      // check for required fields
-
 
121095
    }
-
 
121096
 
-
 
121097
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
121098
      try {
-
 
121099
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
121100
      } catch (org.apache.thrift.TException te) {
-
 
121101
        throw new java.io.IOException(te);
-
 
121102
      }
-
 
121103
    }
-
 
121104
 
-
 
121105
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
121106
      try {
-
 
121107
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
121108
      } catch (org.apache.thrift.TException te) {
-
 
121109
        throw new java.io.IOException(te);
-
 
121110
      }
-
 
121111
    }
-
 
121112
 
-
 
121113
  }
-
 
121114
 
-
 
121115
  public static class getAllSnapdealMarketplaceItem_result implements org.apache.thrift.TBase<getAllSnapdealMarketplaceItem_result, getAllSnapdealMarketplaceItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
121116
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSnapdealMarketplaceItem_result");
-
 
121117
 
-
 
121118
    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);
-
 
121119
 
-
 
121120
    private List<SnapdealItem> success; // required
-
 
121121
 
-
 
121122
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
121123
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
121124
      SUCCESS((short)0, "success");
-
 
121125
 
-
 
121126
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
121127
 
-
 
121128
      static {
-
 
121129
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
121130
          byName.put(field.getFieldName(), field);
-
 
121131
        }
-
 
121132
      }
-
 
121133
 
-
 
121134
      /**
-
 
121135
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
121136
       */
-
 
121137
      public static _Fields findByThriftId(int fieldId) {
-
 
121138
        switch(fieldId) {
-
 
121139
          case 0: // SUCCESS
-
 
121140
            return SUCCESS;
-
 
121141
          default:
-
 
121142
            return null;
-
 
121143
        }
-
 
121144
      }
-
 
121145
 
-
 
121146
      /**
-
 
121147
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
121148
       * if it is not found.
-
 
121149
       */
-
 
121150
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
121151
        _Fields fields = findByThriftId(fieldId);
-
 
121152
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
121153
        return fields;
-
 
121154
      }
-
 
121155
 
-
 
121156
      /**
-
 
121157
       * Find the _Fields constant that matches name, or null if its not found.
-
 
121158
       */
-
 
121159
      public static _Fields findByName(String name) {
-
 
121160
        return byName.get(name);
-
 
121161
      }
-
 
121162
 
-
 
121163
      private final short _thriftId;
-
 
121164
      private final String _fieldName;
-
 
121165
 
-
 
121166
      _Fields(short thriftId, String fieldName) {
-
 
121167
        _thriftId = thriftId;
-
 
121168
        _fieldName = fieldName;
-
 
121169
      }
-
 
121170
 
-
 
121171
      public short getThriftFieldId() {
-
 
121172
        return _thriftId;
-
 
121173
      }
-
 
121174
 
-
 
121175
      public String getFieldName() {
-
 
121176
        return _fieldName;
-
 
121177
      }
-
 
121178
    }
-
 
121179
 
-
 
121180
    // isset id assignments
-
 
121181
 
-
 
121182
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
121183
    static {
-
 
121184
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
121185
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
121186
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
121187
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItem.class))));
-
 
121188
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
121189
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSnapdealMarketplaceItem_result.class, metaDataMap);
-
 
121190
    }
-
 
121191
 
-
 
121192
    public getAllSnapdealMarketplaceItem_result() {
-
 
121193
    }
-
 
121194
 
-
 
121195
    public getAllSnapdealMarketplaceItem_result(
-
 
121196
      List<SnapdealItem> success)
-
 
121197
    {
-
 
121198
      this();
-
 
121199
      this.success = success;
-
 
121200
    }
-
 
121201
 
-
 
121202
    /**
-
 
121203
     * Performs a deep copy on <i>other</i>.
-
 
121204
     */
-
 
121205
    public getAllSnapdealMarketplaceItem_result(getAllSnapdealMarketplaceItem_result other) {
-
 
121206
      if (other.isSetSuccess()) {
-
 
121207
        List<SnapdealItem> __this__success = new ArrayList<SnapdealItem>();
-
 
121208
        for (SnapdealItem other_element : other.success) {
-
 
121209
          __this__success.add(new SnapdealItem(other_element));
-
 
121210
        }
-
 
121211
        this.success = __this__success;
-
 
121212
      }
-
 
121213
    }
-
 
121214
 
-
 
121215
    public getAllSnapdealMarketplaceItem_result deepCopy() {
-
 
121216
      return new getAllSnapdealMarketplaceItem_result(this);
-
 
121217
    }
-
 
121218
 
-
 
121219
    @Override
-
 
121220
    public void clear() {
-
 
121221
      this.success = null;
-
 
121222
    }
-
 
121223
 
-
 
121224
    public int getSuccessSize() {
-
 
121225
      return (this.success == null) ? 0 : this.success.size();
-
 
121226
    }
-
 
121227
 
-
 
121228
    public java.util.Iterator<SnapdealItem> getSuccessIterator() {
-
 
121229
      return (this.success == null) ? null : this.success.iterator();
-
 
121230
    }
-
 
121231
 
-
 
121232
    public void addToSuccess(SnapdealItem elem) {
-
 
121233
      if (this.success == null) {
-
 
121234
        this.success = new ArrayList<SnapdealItem>();
-
 
121235
      }
-
 
121236
      this.success.add(elem);
-
 
121237
    }
-
 
121238
 
-
 
121239
    public List<SnapdealItem> getSuccess() {
-
 
121240
      return this.success;
-
 
121241
    }
-
 
121242
 
-
 
121243
    public void setSuccess(List<SnapdealItem> success) {
-
 
121244
      this.success = success;
-
 
121245
    }
-
 
121246
 
-
 
121247
    public void unsetSuccess() {
-
 
121248
      this.success = null;
-
 
121249
    }
-
 
121250
 
-
 
121251
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
121252
    public boolean isSetSuccess() {
-
 
121253
      return this.success != null;
-
 
121254
    }
-
 
121255
 
-
 
121256
    public void setSuccessIsSet(boolean value) {
-
 
121257
      if (!value) {
-
 
121258
        this.success = null;
-
 
121259
      }
-
 
121260
    }
-
 
121261
 
-
 
121262
    public void setFieldValue(_Fields field, Object value) {
-
 
121263
      switch (field) {
-
 
121264
      case SUCCESS:
-
 
121265
        if (value == null) {
-
 
121266
          unsetSuccess();
-
 
121267
        } else {
-
 
121268
          setSuccess((List<SnapdealItem>)value);
-
 
121269
        }
-
 
121270
        break;
-
 
121271
 
-
 
121272
      }
-
 
121273
    }
-
 
121274
 
-
 
121275
    public Object getFieldValue(_Fields field) {
-
 
121276
      switch (field) {
-
 
121277
      case SUCCESS:
-
 
121278
        return getSuccess();
-
 
121279
 
-
 
121280
      }
-
 
121281
      throw new IllegalStateException();
-
 
121282
    }
-
 
121283
 
-
 
121284
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
121285
    public boolean isSet(_Fields field) {
-
 
121286
      if (field == null) {
-
 
121287
        throw new IllegalArgumentException();
-
 
121288
      }
-
 
121289
 
-
 
121290
      switch (field) {
-
 
121291
      case SUCCESS:
-
 
121292
        return isSetSuccess();
-
 
121293
      }
-
 
121294
      throw new IllegalStateException();
-
 
121295
    }
-
 
121296
 
-
 
121297
    @Override
-
 
121298
    public boolean equals(Object that) {
-
 
121299
      if (that == null)
-
 
121300
        return false;
-
 
121301
      if (that instanceof getAllSnapdealMarketplaceItem_result)
-
 
121302
        return this.equals((getAllSnapdealMarketplaceItem_result)that);
-
 
121303
      return false;
-
 
121304
    }
-
 
121305
 
-
 
121306
    public boolean equals(getAllSnapdealMarketplaceItem_result that) {
-
 
121307
      if (that == null)
-
 
121308
        return false;
-
 
121309
 
-
 
121310
      boolean this_present_success = true && this.isSetSuccess();
-
 
121311
      boolean that_present_success = true && that.isSetSuccess();
-
 
121312
      if (this_present_success || that_present_success) {
-
 
121313
        if (!(this_present_success && that_present_success))
-
 
121314
          return false;
-
 
121315
        if (!this.success.equals(that.success))
-
 
121316
          return false;
-
 
121317
      }
-
 
121318
 
-
 
121319
      return true;
-
 
121320
    }
-
 
121321
 
-
 
121322
    @Override
-
 
121323
    public int hashCode() {
-
 
121324
      return 0;
-
 
121325
    }
-
 
121326
 
-
 
121327
    public int compareTo(getAllSnapdealMarketplaceItem_result other) {
-
 
121328
      if (!getClass().equals(other.getClass())) {
-
 
121329
        return getClass().getName().compareTo(other.getClass().getName());
-
 
121330
      }
-
 
121331
 
-
 
121332
      int lastComparison = 0;
-
 
121333
      getAllSnapdealMarketplaceItem_result typedOther = (getAllSnapdealMarketplaceItem_result)other;
-
 
121334
 
-
 
121335
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
121336
      if (lastComparison != 0) {
-
 
121337
        return lastComparison;
-
 
121338
      }
-
 
121339
      if (isSetSuccess()) {
-
 
121340
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
121341
        if (lastComparison != 0) {
-
 
121342
          return lastComparison;
-
 
121343
        }
-
 
121344
      }
-
 
121345
      return 0;
-
 
121346
    }
-
 
121347
 
-
 
121348
    public _Fields fieldForId(int fieldId) {
-
 
121349
      return _Fields.findByThriftId(fieldId);
-
 
121350
    }
-
 
121351
 
-
 
121352
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
121353
      org.apache.thrift.protocol.TField field;
-
 
121354
      iprot.readStructBegin();
-
 
121355
      while (true)
-
 
121356
      {
-
 
121357
        field = iprot.readFieldBegin();
-
 
121358
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
121359
          break;
-
 
121360
        }
-
 
121361
        switch (field.id) {
-
 
121362
          case 0: // SUCCESS
-
 
121363
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
121364
              {
-
 
121365
                org.apache.thrift.protocol.TList _list390 = iprot.readListBegin();
-
 
121366
                this.success = new ArrayList<SnapdealItem>(_list390.size);
-
 
121367
                for (int _i391 = 0; _i391 < _list390.size; ++_i391)
-
 
121368
                {
-
 
121369
                  SnapdealItem _elem392; // required
-
 
121370
                  _elem392 = new SnapdealItem();
-
 
121371
                  _elem392.read(iprot);
-
 
121372
                  this.success.add(_elem392);
-
 
121373
                }
-
 
121374
                iprot.readListEnd();
-
 
121375
              }
-
 
121376
            } else { 
-
 
121377
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
121378
            }
-
 
121379
            break;
-
 
121380
          default:
-
 
121381
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
121382
        }
-
 
121383
        iprot.readFieldEnd();
-
 
121384
      }
-
 
121385
      iprot.readStructEnd();
-
 
121386
      validate();
-
 
121387
    }
-
 
121388
 
-
 
121389
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
121390
      oprot.writeStructBegin(STRUCT_DESC);
-
 
121391
 
-
 
121392
      if (this.isSetSuccess()) {
-
 
121393
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
121394
        {
-
 
121395
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
121396
          for (SnapdealItem _iter393 : this.success)
-
 
121397
          {
-
 
121398
            _iter393.write(oprot);
-
 
121399
          }
-
 
121400
          oprot.writeListEnd();
-
 
121401
        }
-
 
121402
        oprot.writeFieldEnd();
-
 
121403
      }
-
 
121404
      oprot.writeFieldStop();
-
 
121405
      oprot.writeStructEnd();
-
 
121406
    }
-
 
121407
 
-
 
121408
    @Override
-
 
121409
    public String toString() {
-
 
121410
      StringBuilder sb = new StringBuilder("getAllSnapdealMarketplaceItem_result(");
-
 
121411
      boolean first = true;
-
 
121412
 
-
 
121413
      sb.append("success:");
-
 
121414
      if (this.success == null) {
-
 
121415
        sb.append("null");
-
 
121416
      } else {
-
 
121417
        sb.append(this.success);
-
 
121418
      }
-
 
121419
      first = false;
-
 
121420
      sb.append(")");
-
 
121421
      return sb.toString();
-
 
121422
    }
-
 
121423
 
-
 
121424
    public void validate() throws org.apache.thrift.TException {
-
 
121425
      // check for required fields
-
 
121426
    }
-
 
121427
 
-
 
121428
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
121429
      try {
-
 
121430
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
121431
      } catch (org.apache.thrift.TException te) {
-
 
121432
        throw new java.io.IOException(te);
-
 
121433
      }
-
 
121434
    }
-
 
121435
 
-
 
121436
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
121437
      try {
-
 
121438
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
121439
      } catch (org.apache.thrift.TException te) {
-
 
121440
        throw new java.io.IOException(te);
-
 
121441
      }
-
 
121442
    }
-
 
121443
 
-
 
121444
  }
-
 
121445
 
-
 
121446
  public static class getAllFlipkartMarketplaceItem_args implements org.apache.thrift.TBase<getAllFlipkartMarketplaceItem_args, getAllFlipkartMarketplaceItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
121447
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFlipkartMarketplaceItem_args");
-
 
121448
 
-
 
121449
 
-
 
121450
 
-
 
121451
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
121452
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
121453
;
-
 
121454
 
-
 
121455
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
121456
 
-
 
121457
      static {
-
 
121458
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
121459
          byName.put(field.getFieldName(), field);
-
 
121460
        }
-
 
121461
      }
-
 
121462
 
-
 
121463
      /**
-
 
121464
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
121465
       */
-
 
121466
      public static _Fields findByThriftId(int fieldId) {
-
 
121467
        switch(fieldId) {
-
 
121468
          default:
-
 
121469
            return null;
-
 
121470
        }
-
 
121471
      }
-
 
121472
 
-
 
121473
      /**
-
 
121474
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
121475
       * if it is not found.
-
 
121476
       */
-
 
121477
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
121478
        _Fields fields = findByThriftId(fieldId);
-
 
121479
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
121480
        return fields;
-
 
121481
      }
-
 
121482
 
-
 
121483
      /**
-
 
121484
       * Find the _Fields constant that matches name, or null if its not found.
-
 
121485
       */
-
 
121486
      public static _Fields findByName(String name) {
-
 
121487
        return byName.get(name);
-
 
121488
      }
-
 
121489
 
-
 
121490
      private final short _thriftId;
-
 
121491
      private final String _fieldName;
-
 
121492
 
-
 
121493
      _Fields(short thriftId, String fieldName) {
-
 
121494
        _thriftId = thriftId;
-
 
121495
        _fieldName = fieldName;
-
 
121496
      }
-
 
121497
 
-
 
121498
      public short getThriftFieldId() {
-
 
121499
        return _thriftId;
-
 
121500
      }
-
 
121501
 
-
 
121502
      public String getFieldName() {
-
 
121503
        return _fieldName;
-
 
121504
      }
-
 
121505
    }
-
 
121506
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
121507
    static {
-
 
121508
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
121509
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
121510
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFlipkartMarketplaceItem_args.class, metaDataMap);
-
 
121511
    }
-
 
121512
 
-
 
121513
    public getAllFlipkartMarketplaceItem_args() {
-
 
121514
    }
-
 
121515
 
-
 
121516
    /**
-
 
121517
     * Performs a deep copy on <i>other</i>.
-
 
121518
     */
-
 
121519
    public getAllFlipkartMarketplaceItem_args(getAllFlipkartMarketplaceItem_args other) {
-
 
121520
    }
-
 
121521
 
-
 
121522
    public getAllFlipkartMarketplaceItem_args deepCopy() {
-
 
121523
      return new getAllFlipkartMarketplaceItem_args(this);
-
 
121524
    }
-
 
121525
 
-
 
121526
    @Override
-
 
121527
    public void clear() {
-
 
121528
    }
-
 
121529
 
-
 
121530
    public void setFieldValue(_Fields field, Object value) {
-
 
121531
      switch (field) {
-
 
121532
      }
-
 
121533
    }
-
 
121534
 
-
 
121535
    public Object getFieldValue(_Fields field) {
-
 
121536
      switch (field) {
-
 
121537
      }
-
 
121538
      throw new IllegalStateException();
-
 
121539
    }
-
 
121540
 
-
 
121541
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
121542
    public boolean isSet(_Fields field) {
-
 
121543
      if (field == null) {
-
 
121544
        throw new IllegalArgumentException();
-
 
121545
      }
-
 
121546
 
-
 
121547
      switch (field) {
-
 
121548
      }
-
 
121549
      throw new IllegalStateException();
-
 
121550
    }
-
 
121551
 
-
 
121552
    @Override
-
 
121553
    public boolean equals(Object that) {
-
 
121554
      if (that == null)
-
 
121555
        return false;
-
 
121556
      if (that instanceof getAllFlipkartMarketplaceItem_args)
-
 
121557
        return this.equals((getAllFlipkartMarketplaceItem_args)that);
-
 
121558
      return false;
-
 
121559
    }
-
 
121560
 
-
 
121561
    public boolean equals(getAllFlipkartMarketplaceItem_args that) {
-
 
121562
      if (that == null)
-
 
121563
        return false;
-
 
121564
 
-
 
121565
      return true;
-
 
121566
    }
-
 
121567
 
-
 
121568
    @Override
-
 
121569
    public int hashCode() {
-
 
121570
      return 0;
-
 
121571
    }
-
 
121572
 
-
 
121573
    public int compareTo(getAllFlipkartMarketplaceItem_args other) {
-
 
121574
      if (!getClass().equals(other.getClass())) {
-
 
121575
        return getClass().getName().compareTo(other.getClass().getName());
-
 
121576
      }
-
 
121577
 
-
 
121578
      int lastComparison = 0;
-
 
121579
      getAllFlipkartMarketplaceItem_args typedOther = (getAllFlipkartMarketplaceItem_args)other;
-
 
121580
 
-
 
121581
      return 0;
-
 
121582
    }
-
 
121583
 
-
 
121584
    public _Fields fieldForId(int fieldId) {
-
 
121585
      return _Fields.findByThriftId(fieldId);
-
 
121586
    }
-
 
121587
 
-
 
121588
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
121589
      org.apache.thrift.protocol.TField field;
-
 
121590
      iprot.readStructBegin();
-
 
121591
      while (true)
-
 
121592
      {
-
 
121593
        field = iprot.readFieldBegin();
-
 
121594
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
121595
          break;
-
 
121596
        }
-
 
121597
        switch (field.id) {
-
 
121598
          default:
-
 
121599
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
121600
        }
-
 
121601
        iprot.readFieldEnd();
-
 
121602
      }
-
 
121603
      iprot.readStructEnd();
-
 
121604
      validate();
-
 
121605
    }
-
 
121606
 
-
 
121607
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
121608
      validate();
-
 
121609
 
-
 
121610
      oprot.writeStructBegin(STRUCT_DESC);
-
 
121611
      oprot.writeFieldStop();
-
 
121612
      oprot.writeStructEnd();
-
 
121613
    }
-
 
121614
 
-
 
121615
    @Override
-
 
121616
    public String toString() {
-
 
121617
      StringBuilder sb = new StringBuilder("getAllFlipkartMarketplaceItem_args(");
-
 
121618
      boolean first = true;
-
 
121619
 
-
 
121620
      sb.append(")");
-
 
121621
      return sb.toString();
-
 
121622
    }
-
 
121623
 
-
 
121624
    public void validate() throws org.apache.thrift.TException {
-
 
121625
      // check for required fields
-
 
121626
    }
-
 
121627
 
-
 
121628
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
121629
      try {
-
 
121630
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
121631
      } catch (org.apache.thrift.TException te) {
-
 
121632
        throw new java.io.IOException(te);
-
 
121633
      }
-
 
121634
    }
-
 
121635
 
-
 
121636
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
121637
      try {
-
 
121638
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
121639
      } catch (org.apache.thrift.TException te) {
-
 
121640
        throw new java.io.IOException(te);
-
 
121641
      }
-
 
121642
    }
-
 
121643
 
-
 
121644
  }
-
 
121645
 
-
 
121646
  public static class getAllFlipkartMarketplaceItem_result implements org.apache.thrift.TBase<getAllFlipkartMarketplaceItem_result, getAllFlipkartMarketplaceItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
121647
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFlipkartMarketplaceItem_result");
-
 
121648
 
-
 
121649
    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);
-
 
121650
 
-
 
121651
    private List<FlipkartItem> success; // required
-
 
121652
 
-
 
121653
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
121654
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
121655
      SUCCESS((short)0, "success");
-
 
121656
 
-
 
121657
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
121658
 
-
 
121659
      static {
-
 
121660
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
121661
          byName.put(field.getFieldName(), field);
-
 
121662
        }
-
 
121663
      }
-
 
121664
 
-
 
121665
      /**
-
 
121666
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
121667
       */
-
 
121668
      public static _Fields findByThriftId(int fieldId) {
-
 
121669
        switch(fieldId) {
-
 
121670
          case 0: // SUCCESS
-
 
121671
            return SUCCESS;
-
 
121672
          default:
-
 
121673
            return null;
-
 
121674
        }
-
 
121675
      }
-
 
121676
 
-
 
121677
      /**
-
 
121678
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
121679
       * if it is not found.
-
 
121680
       */
-
 
121681
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
121682
        _Fields fields = findByThriftId(fieldId);
-
 
121683
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
121684
        return fields;
-
 
121685
      }
-
 
121686
 
-
 
121687
      /**
-
 
121688
       * Find the _Fields constant that matches name, or null if its not found.
-
 
121689
       */
-
 
121690
      public static _Fields findByName(String name) {
-
 
121691
        return byName.get(name);
-
 
121692
      }
-
 
121693
 
-
 
121694
      private final short _thriftId;
-
 
121695
      private final String _fieldName;
-
 
121696
 
-
 
121697
      _Fields(short thriftId, String fieldName) {
-
 
121698
        _thriftId = thriftId;
-
 
121699
        _fieldName = fieldName;
-
 
121700
      }
-
 
121701
 
-
 
121702
      public short getThriftFieldId() {
-
 
121703
        return _thriftId;
-
 
121704
      }
-
 
121705
 
-
 
121706
      public String getFieldName() {
-
 
121707
        return _fieldName;
-
 
121708
      }
-
 
121709
    }
-
 
121710
 
-
 
121711
    // isset id assignments
-
 
121712
 
-
 
121713
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
121714
    static {
-
 
121715
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
121716
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
121717
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
121718
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartItem.class))));
-
 
121719
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
121720
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFlipkartMarketplaceItem_result.class, metaDataMap);
-
 
121721
    }
-
 
121722
 
-
 
121723
    public getAllFlipkartMarketplaceItem_result() {
-
 
121724
    }
-
 
121725
 
-
 
121726
    public getAllFlipkartMarketplaceItem_result(
-
 
121727
      List<FlipkartItem> success)
-
 
121728
    {
-
 
121729
      this();
-
 
121730
      this.success = success;
-
 
121731
    }
-
 
121732
 
-
 
121733
    /**
-
 
121734
     * Performs a deep copy on <i>other</i>.
-
 
121735
     */
-
 
121736
    public getAllFlipkartMarketplaceItem_result(getAllFlipkartMarketplaceItem_result other) {
-
 
121737
      if (other.isSetSuccess()) {
-
 
121738
        List<FlipkartItem> __this__success = new ArrayList<FlipkartItem>();
-
 
121739
        for (FlipkartItem other_element : other.success) {
-
 
121740
          __this__success.add(new FlipkartItem(other_element));
-
 
121741
        }
-
 
121742
        this.success = __this__success;
-
 
121743
      }
-
 
121744
    }
-
 
121745
 
-
 
121746
    public getAllFlipkartMarketplaceItem_result deepCopy() {
-
 
121747
      return new getAllFlipkartMarketplaceItem_result(this);
-
 
121748
    }
-
 
121749
 
-
 
121750
    @Override
-
 
121751
    public void clear() {
-
 
121752
      this.success = null;
-
 
121753
    }
-
 
121754
 
-
 
121755
    public int getSuccessSize() {
-
 
121756
      return (this.success == null) ? 0 : this.success.size();
-
 
121757
    }
-
 
121758
 
-
 
121759
    public java.util.Iterator<FlipkartItem> getSuccessIterator() {
-
 
121760
      return (this.success == null) ? null : this.success.iterator();
-
 
121761
    }
-
 
121762
 
-
 
121763
    public void addToSuccess(FlipkartItem elem) {
-
 
121764
      if (this.success == null) {
-
 
121765
        this.success = new ArrayList<FlipkartItem>();
-
 
121766
      }
-
 
121767
      this.success.add(elem);
-
 
121768
    }
-
 
121769
 
-
 
121770
    public List<FlipkartItem> getSuccess() {
-
 
121771
      return this.success;
-
 
121772
    }
-
 
121773
 
-
 
121774
    public void setSuccess(List<FlipkartItem> success) {
-
 
121775
      this.success = success;
-
 
121776
    }
-
 
121777
 
-
 
121778
    public void unsetSuccess() {
-
 
121779
      this.success = null;
-
 
121780
    }
-
 
121781
 
-
 
121782
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
121783
    public boolean isSetSuccess() {
-
 
121784
      return this.success != null;
-
 
121785
    }
-
 
121786
 
-
 
121787
    public void setSuccessIsSet(boolean value) {
-
 
121788
      if (!value) {
-
 
121789
        this.success = null;
-
 
121790
      }
-
 
121791
    }
-
 
121792
 
-
 
121793
    public void setFieldValue(_Fields field, Object value) {
-
 
121794
      switch (field) {
-
 
121795
      case SUCCESS:
-
 
121796
        if (value == null) {
-
 
121797
          unsetSuccess();
-
 
121798
        } else {
-
 
121799
          setSuccess((List<FlipkartItem>)value);
-
 
121800
        }
-
 
121801
        break;
-
 
121802
 
-
 
121803
      }
-
 
121804
    }
-
 
121805
 
-
 
121806
    public Object getFieldValue(_Fields field) {
-
 
121807
      switch (field) {
-
 
121808
      case SUCCESS:
-
 
121809
        return getSuccess();
-
 
121810
 
-
 
121811
      }
-
 
121812
      throw new IllegalStateException();
-
 
121813
    }
-
 
121814
 
-
 
121815
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
121816
    public boolean isSet(_Fields field) {
-
 
121817
      if (field == null) {
-
 
121818
        throw new IllegalArgumentException();
-
 
121819
      }
-
 
121820
 
-
 
121821
      switch (field) {
-
 
121822
      case SUCCESS:
-
 
121823
        return isSetSuccess();
-
 
121824
      }
-
 
121825
      throw new IllegalStateException();
-
 
121826
    }
-
 
121827
 
-
 
121828
    @Override
-
 
121829
    public boolean equals(Object that) {
-
 
121830
      if (that == null)
-
 
121831
        return false;
-
 
121832
      if (that instanceof getAllFlipkartMarketplaceItem_result)
-
 
121833
        return this.equals((getAllFlipkartMarketplaceItem_result)that);
-
 
121834
      return false;
-
 
121835
    }
-
 
121836
 
-
 
121837
    public boolean equals(getAllFlipkartMarketplaceItem_result that) {
-
 
121838
      if (that == null)
-
 
121839
        return false;
-
 
121840
 
-
 
121841
      boolean this_present_success = true && this.isSetSuccess();
-
 
121842
      boolean that_present_success = true && that.isSetSuccess();
-
 
121843
      if (this_present_success || that_present_success) {
-
 
121844
        if (!(this_present_success && that_present_success))
-
 
121845
          return false;
-
 
121846
        if (!this.success.equals(that.success))
-
 
121847
          return false;
-
 
121848
      }
-
 
121849
 
-
 
121850
      return true;
-
 
121851
    }
-
 
121852
 
-
 
121853
    @Override
-
 
121854
    public int hashCode() {
-
 
121855
      return 0;
-
 
121856
    }
-
 
121857
 
-
 
121858
    public int compareTo(getAllFlipkartMarketplaceItem_result other) {
-
 
121859
      if (!getClass().equals(other.getClass())) {
-
 
121860
        return getClass().getName().compareTo(other.getClass().getName());
-
 
121861
      }
-
 
121862
 
-
 
121863
      int lastComparison = 0;
-
 
121864
      getAllFlipkartMarketplaceItem_result typedOther = (getAllFlipkartMarketplaceItem_result)other;
-
 
121865
 
-
 
121866
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
121867
      if (lastComparison != 0) {
-
 
121868
        return lastComparison;
-
 
121869
      }
-
 
121870
      if (isSetSuccess()) {
-
 
121871
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
121872
        if (lastComparison != 0) {
-
 
121873
          return lastComparison;
-
 
121874
        }
-
 
121875
      }
-
 
121876
      return 0;
-
 
121877
    }
-
 
121878
 
-
 
121879
    public _Fields fieldForId(int fieldId) {
-
 
121880
      return _Fields.findByThriftId(fieldId);
-
 
121881
    }
-
 
121882
 
-
 
121883
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
121884
      org.apache.thrift.protocol.TField field;
-
 
121885
      iprot.readStructBegin();
-
 
121886
      while (true)
-
 
121887
      {
-
 
121888
        field = iprot.readFieldBegin();
-
 
121889
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
121890
          break;
-
 
121891
        }
-
 
121892
        switch (field.id) {
-
 
121893
          case 0: // SUCCESS
-
 
121894
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
121895
              {
-
 
121896
                org.apache.thrift.protocol.TList _list394 = iprot.readListBegin();
-
 
121897
                this.success = new ArrayList<FlipkartItem>(_list394.size);
-
 
121898
                for (int _i395 = 0; _i395 < _list394.size; ++_i395)
-
 
121899
                {
-
 
121900
                  FlipkartItem _elem396; // required
-
 
121901
                  _elem396 = new FlipkartItem();
-
 
121902
                  _elem396.read(iprot);
-
 
121903
                  this.success.add(_elem396);
-
 
121904
                }
-
 
121905
                iprot.readListEnd();
-
 
121906
              }
-
 
121907
            } else { 
-
 
121908
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
121909
            }
-
 
121910
            break;
-
 
121911
          default:
-
 
121912
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
121913
        }
-
 
121914
        iprot.readFieldEnd();
-
 
121915
      }
-
 
121916
      iprot.readStructEnd();
-
 
121917
      validate();
-
 
121918
    }
-
 
121919
 
-
 
121920
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
121921
      oprot.writeStructBegin(STRUCT_DESC);
-
 
121922
 
-
 
121923
      if (this.isSetSuccess()) {
-
 
121924
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
121925
        {
-
 
121926
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
121927
          for (FlipkartItem _iter397 : this.success)
-
 
121928
          {
-
 
121929
            _iter397.write(oprot);
-
 
121930
          }
-
 
121931
          oprot.writeListEnd();
-
 
121932
        }
-
 
121933
        oprot.writeFieldEnd();
-
 
121934
      }
-
 
121935
      oprot.writeFieldStop();
-
 
121936
      oprot.writeStructEnd();
-
 
121937
    }
-
 
121938
 
-
 
121939
    @Override
-
 
121940
    public String toString() {
-
 
121941
      StringBuilder sb = new StringBuilder("getAllFlipkartMarketplaceItem_result(");
-
 
121942
      boolean first = true;
-
 
121943
 
-
 
121944
      sb.append("success:");
-
 
121945
      if (this.success == null) {
-
 
121946
        sb.append("null");
120741
      } else {
121947
      } else {
120742
        sb.append(this.success);
121948
        sb.append(this.success);
120743
      }
121949
      }
120744
      first = false;
121950
      first = false;
120745
      sb.append(")");
121951
      sb.append(")");