Subversion Repositories SmartDukaan

Rev

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

Rev 9155 Rev 9242
Line 462... Line 462...
462
 
462
 
463
    public List<Amazonlisted> getAllItemstoListOnFba() throws org.apache.thrift.TException;
463
    public List<Amazonlisted> getAllItemstoListOnFba() throws org.apache.thrift.TException;
464
 
464
 
465
    public List<Amazonlisted> getAllItemstoListOnNonFba() throws org.apache.thrift.TException;
465
    public List<Amazonlisted> getAllItemstoListOnNonFba() throws org.apache.thrift.TException;
466
 
466
 
467
    public List<Item> getAllSnapdealListedActiveItems() throws org.apache.thrift.TException;
-
 
468
 
-
 
469
    public void updateAsin(Map<Long,Item> item) throws org.apache.thrift.TException;
467
    public void updateAsin(Map<Long,Item> item) throws org.apache.thrift.TException;
470
 
468
 
471
    public boolean addOrUpdateSnapdealItem(SnapdealItem snapdealitem) throws org.apache.thrift.TException;
469
    public boolean addOrUpdateSnapdealItem(SnapdealItem snapdealitem) throws org.apache.thrift.TException;
472
 
470
 
473
    public SnapdealItem getSnapdealItem(long item_id) throws org.apache.thrift.TException;
471
    public SnapdealItem getSnapdealItem(long item_id) throws org.apache.thrift.TException;
474
 
472
 
-
 
473
    public SnapdealItemDetails getSnapdealItemDetails(long item_id) throws org.apache.thrift.TException;
-
 
474
 
475
    public List<SnapdealItem> getAllSnapdealItems() throws org.apache.thrift.TException;
475
    public List<SnapdealItemDetails> getAllSnapdealItems() throws org.apache.thrift.TException;
-
 
476
 
-
 
477
    public List<SnapdealItemDetails> getSnapdealItems(long offset, long limit) throws org.apache.thrift.TException;
-
 
478
 
-
 
479
    public List<SnapdealItemDetails> searchSnapdealItems(List<String> searchTerm, long offset, long limit) throws org.apache.thrift.TException;
-
 
480
 
-
 
481
    public long getCountForSnapdealItems() throws org.apache.thrift.TException;
-
 
482
 
-
 
483
    public long getSnapdealSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException;
476
 
484
 
477
  }
485
  }
478
 
486
 
479
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
487
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
480
 
488
 
Line 718... Line 726...
718
 
726
 
719
    public void getAllItemstoListOnFba(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnFba_call> resultHandler) throws org.apache.thrift.TException;
727
    public void getAllItemstoListOnFba(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnFba_call> resultHandler) throws org.apache.thrift.TException;
720
 
728
 
721
    public void getAllItemstoListOnNonFba(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnNonFba_call> resultHandler) throws org.apache.thrift.TException;
729
    public void getAllItemstoListOnNonFba(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnNonFba_call> resultHandler) throws org.apache.thrift.TException;
722
 
730
 
723
    public void getAllSnapdealListedActiveItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSnapdealListedActiveItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
724
 
-
 
725
    public void updateAsin(Map<Long,Item> item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAsin_call> resultHandler) throws org.apache.thrift.TException;
731
    public void updateAsin(Map<Long,Item> item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAsin_call> resultHandler) throws org.apache.thrift.TException;
726
 
732
 
727
    public void addOrUpdateSnapdealItem(SnapdealItem snapdealitem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateSnapdealItem_call> resultHandler) throws org.apache.thrift.TException;
733
    public void addOrUpdateSnapdealItem(SnapdealItem snapdealitem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateSnapdealItem_call> resultHandler) throws org.apache.thrift.TException;
728
 
734
 
729
    public void getSnapdealItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealItem_call> resultHandler) throws org.apache.thrift.TException;
735
    public void getSnapdealItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealItem_call> resultHandler) throws org.apache.thrift.TException;
730
 
736
 
-
 
737
    public void getSnapdealItemDetails(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealItemDetails_call> resultHandler) throws org.apache.thrift.TException;
-
 
738
 
731
    public void getAllSnapdealItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSnapdealItems_call> resultHandler) throws org.apache.thrift.TException;
739
    public void getAllSnapdealItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSnapdealItems_call> resultHandler) throws org.apache.thrift.TException;
732
 
740
 
-
 
741
    public void getSnapdealItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
742
 
-
 
743
    public void searchSnapdealItems(List<String> searchTerm, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.searchSnapdealItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
744
 
-
 
745
    public void getCountForSnapdealItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCountForSnapdealItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
746
 
-
 
747
    public void getSnapdealSearchResultCount(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealSearchResultCount_call> resultHandler) throws org.apache.thrift.TException;
-
 
748
 
733
  }
749
  }
734
 
750
 
735
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
751
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
736
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
752
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
737
      public Factory() {}
753
      public Factory() {}
Line 3623... Line 3639...
3623
        return result.success;
3639
        return result.success;
3624
      }
3640
      }
3625
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
3641
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
3626
    }
3642
    }
3627
 
3643
 
3628
    public List<Item> getAllSnapdealListedActiveItems() throws org.apache.thrift.TException
-
 
3629
    {
-
 
3630
      send_getAllSnapdealListedActiveItems();
-
 
3631
      return recv_getAllSnapdealListedActiveItems();
-
 
3632
    }
-
 
3633
 
-
 
3634
    public void send_getAllSnapdealListedActiveItems() throws org.apache.thrift.TException
-
 
3635
    {
-
 
3636
      getAllSnapdealListedActiveItems_args args = new getAllSnapdealListedActiveItems_args();
-
 
3637
      sendBase("getAllSnapdealListedActiveItems", args);
-
 
3638
    }
-
 
3639
 
-
 
3640
    public List<Item> recv_getAllSnapdealListedActiveItems() throws org.apache.thrift.TException
-
 
3641
    {
-
 
3642
      getAllSnapdealListedActiveItems_result result = new getAllSnapdealListedActiveItems_result();
-
 
3643
      receiveBase(result, "getAllSnapdealListedActiveItems");
-
 
3644
      if (result.isSetSuccess()) {
-
 
3645
        return result.success;
-
 
3646
      }
-
 
3647
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSnapdealListedActiveItems failed: unknown result");
-
 
3648
    }
-
 
3649
 
-
 
3650
    public void updateAsin(Map<Long,Item> item) throws org.apache.thrift.TException
3644
    public void updateAsin(Map<Long,Item> item) throws org.apache.thrift.TException
3651
    {
3645
    {
3652
      send_updateAsin(item);
3646
      send_updateAsin(item);
3653
      recv_updateAsin();
3647
      recv_updateAsin();
3654
    }
3648
    }
Line 3711... Line 3705...
3711
        return result.success;
3705
        return result.success;
3712
      }
3706
      }
3713
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");
3707
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");
3714
    }
3708
    }
3715
 
3709
 
-
 
3710
    public SnapdealItemDetails getSnapdealItemDetails(long item_id) throws org.apache.thrift.TException
-
 
3711
    {
-
 
3712
      send_getSnapdealItemDetails(item_id);
-
 
3713
      return recv_getSnapdealItemDetails();
-
 
3714
    }
-
 
3715
 
-
 
3716
    public void send_getSnapdealItemDetails(long item_id) throws org.apache.thrift.TException
-
 
3717
    {
-
 
3718
      getSnapdealItemDetails_args args = new getSnapdealItemDetails_args();
-
 
3719
      args.setItem_id(item_id);
-
 
3720
      sendBase("getSnapdealItemDetails", args);
-
 
3721
    }
-
 
3722
 
-
 
3723
    public SnapdealItemDetails recv_getSnapdealItemDetails() throws org.apache.thrift.TException
-
 
3724
    {
-
 
3725
      getSnapdealItemDetails_result result = new getSnapdealItemDetails_result();
-
 
3726
      receiveBase(result, "getSnapdealItemDetails");
-
 
3727
      if (result.isSetSuccess()) {
-
 
3728
        return result.success;
-
 
3729
      }
-
 
3730
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealItemDetails failed: unknown result");
-
 
3731
    }
-
 
3732
 
3716
    public List<SnapdealItem> getAllSnapdealItems() throws org.apache.thrift.TException
3733
    public List<SnapdealItemDetails> getAllSnapdealItems() throws org.apache.thrift.TException
3717
    {
3734
    {
3718
      send_getAllSnapdealItems();
3735
      send_getAllSnapdealItems();
3719
      return recv_getAllSnapdealItems();
3736
      return recv_getAllSnapdealItems();
3720
    }
3737
    }
3721
 
3738
 
Line 3723... Line 3740...
3723
    {
3740
    {
3724
      getAllSnapdealItems_args args = new getAllSnapdealItems_args();
3741
      getAllSnapdealItems_args args = new getAllSnapdealItems_args();
3725
      sendBase("getAllSnapdealItems", args);
3742
      sendBase("getAllSnapdealItems", args);
3726
    }
3743
    }
3727
 
3744
 
3728
    public List<SnapdealItem> recv_getAllSnapdealItems() throws org.apache.thrift.TException
3745
    public List<SnapdealItemDetails> recv_getAllSnapdealItems() throws org.apache.thrift.TException
3729
    {
3746
    {
3730
      getAllSnapdealItems_result result = new getAllSnapdealItems_result();
3747
      getAllSnapdealItems_result result = new getAllSnapdealItems_result();
3731
      receiveBase(result, "getAllSnapdealItems");
3748
      receiveBase(result, "getAllSnapdealItems");
3732
      if (result.isSetSuccess()) {
3749
      if (result.isSetSuccess()) {
3733
        return result.success;
3750
        return result.success;
3734
      }
3751
      }
3735
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");
3752
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");
3736
    }
3753
    }
3737
 
3754
 
-
 
3755
    public List<SnapdealItemDetails> getSnapdealItems(long offset, long limit) throws org.apache.thrift.TException
-
 
3756
    {
-
 
3757
      send_getSnapdealItems(offset, limit);
-
 
3758
      return recv_getSnapdealItems();
-
 
3759
    }
-
 
3760
 
-
 
3761
    public void send_getSnapdealItems(long offset, long limit) throws org.apache.thrift.TException
-
 
3762
    {
-
 
3763
      getSnapdealItems_args args = new getSnapdealItems_args();
-
 
3764
      args.setOffset(offset);
-
 
3765
      args.setLimit(limit);
-
 
3766
      sendBase("getSnapdealItems", args);
-
 
3767
    }
-
 
3768
 
-
 
3769
    public List<SnapdealItemDetails> recv_getSnapdealItems() throws org.apache.thrift.TException
-
 
3770
    {
-
 
3771
      getSnapdealItems_result result = new getSnapdealItems_result();
-
 
3772
      receiveBase(result, "getSnapdealItems");
-
 
3773
      if (result.isSetSuccess()) {
-
 
3774
        return result.success;
-
 
3775
      }
-
 
3776
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealItems failed: unknown result");
-
 
3777
    }
-
 
3778
 
-
 
3779
    public List<SnapdealItemDetails> searchSnapdealItems(List<String> searchTerm, long offset, long limit) throws org.apache.thrift.TException
-
 
3780
    {
-
 
3781
      send_searchSnapdealItems(searchTerm, offset, limit);
-
 
3782
      return recv_searchSnapdealItems();
-
 
3783
    }
-
 
3784
 
-
 
3785
    public void send_searchSnapdealItems(List<String> searchTerm, long offset, long limit) throws org.apache.thrift.TException
-
 
3786
    {
-
 
3787
      searchSnapdealItems_args args = new searchSnapdealItems_args();
-
 
3788
      args.setSearchTerm(searchTerm);
-
 
3789
      args.setOffset(offset);
-
 
3790
      args.setLimit(limit);
-
 
3791
      sendBase("searchSnapdealItems", args);
-
 
3792
    }
-
 
3793
 
-
 
3794
    public List<SnapdealItemDetails> recv_searchSnapdealItems() throws org.apache.thrift.TException
-
 
3795
    {
-
 
3796
      searchSnapdealItems_result result = new searchSnapdealItems_result();
-
 
3797
      receiveBase(result, "searchSnapdealItems");
-
 
3798
      if (result.isSetSuccess()) {
-
 
3799
        return result.success;
-
 
3800
      }
-
 
3801
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchSnapdealItems failed: unknown result");
-
 
3802
    }
-
 
3803
 
-
 
3804
    public long getCountForSnapdealItems() throws org.apache.thrift.TException
-
 
3805
    {
-
 
3806
      send_getCountForSnapdealItems();
-
 
3807
      return recv_getCountForSnapdealItems();
-
 
3808
    }
-
 
3809
 
-
 
3810
    public void send_getCountForSnapdealItems() throws org.apache.thrift.TException
-
 
3811
    {
-
 
3812
      getCountForSnapdealItems_args args = new getCountForSnapdealItems_args();
-
 
3813
      sendBase("getCountForSnapdealItems", args);
-
 
3814
    }
-
 
3815
 
-
 
3816
    public long recv_getCountForSnapdealItems() throws org.apache.thrift.TException
-
 
3817
    {
-
 
3818
      getCountForSnapdealItems_result result = new getCountForSnapdealItems_result();
-
 
3819
      receiveBase(result, "getCountForSnapdealItems");
-
 
3820
      if (result.isSetSuccess()) {
-
 
3821
        return result.success;
-
 
3822
      }
-
 
3823
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCountForSnapdealItems failed: unknown result");
-
 
3824
    }
-
 
3825
 
-
 
3826
    public long getSnapdealSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException
-
 
3827
    {
-
 
3828
      send_getSnapdealSearchResultCount(searchTerm);
-
 
3829
      return recv_getSnapdealSearchResultCount();
-
 
3830
    }
-
 
3831
 
-
 
3832
    public void send_getSnapdealSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException
-
 
3833
    {
-
 
3834
      getSnapdealSearchResultCount_args args = new getSnapdealSearchResultCount_args();
-
 
3835
      args.setSearchTerm(searchTerm);
-
 
3836
      sendBase("getSnapdealSearchResultCount", args);
-
 
3837
    }
-
 
3838
 
-
 
3839
    public long recv_getSnapdealSearchResultCount() throws org.apache.thrift.TException
-
 
3840
    {
-
 
3841
      getSnapdealSearchResultCount_result result = new getSnapdealSearchResultCount_result();
-
 
3842
      receiveBase(result, "getSnapdealSearchResultCount");
-
 
3843
      if (result.isSetSuccess()) {
-
 
3844
        return result.success;
-
 
3845
      }
-
 
3846
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSnapdealSearchResultCount failed: unknown result");
-
 
3847
    }
-
 
3848
 
3738
  }
3849
  }
3739
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3850
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3740
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3851
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3741
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3852
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3742
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
3853
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 7731... Line 7842...
7731
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7842
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7732
        return (new Client(prot)).recv_getAllItemstoListOnNonFba();
7843
        return (new Client(prot)).recv_getAllItemstoListOnNonFba();
7733
      }
7844
      }
7734
    }
7845
    }
7735
 
7846
 
7736
    public void getAllSnapdealListedActiveItems(org.apache.thrift.async.AsyncMethodCallback<getAllSnapdealListedActiveItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
7737
      checkReady();
-
 
7738
      getAllSnapdealListedActiveItems_call method_call = new getAllSnapdealListedActiveItems_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
7739
      this.___currentMethod = method_call;
-
 
7740
      ___manager.call(method_call);
-
 
7741
    }
-
 
7742
 
-
 
7743
    public static class getAllSnapdealListedActiveItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
7744
      public getAllSnapdealListedActiveItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllSnapdealListedActiveItems_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 {
-
 
7745
        super(client, protocolFactory, transport, resultHandler, false);
-
 
7746
      }
-
 
7747
 
-
 
7748
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
7749
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllSnapdealListedActiveItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
7750
        getAllSnapdealListedActiveItems_args args = new getAllSnapdealListedActiveItems_args();
-
 
7751
        args.write(prot);
-
 
7752
        prot.writeMessageEnd();
-
 
7753
      }
-
 
7754
 
-
 
7755
      public List<Item> getResult() throws org.apache.thrift.TException {
-
 
7756
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
7757
          throw new IllegalStateException("Method call not finished!");
-
 
7758
        }
-
 
7759
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
7760
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
7761
        return (new Client(prot)).recv_getAllSnapdealListedActiveItems();
-
 
7762
      }
-
 
7763
    }
-
 
7764
 
-
 
7765
    public void updateAsin(Map<Long,Item> item, org.apache.thrift.async.AsyncMethodCallback<updateAsin_call> resultHandler) throws org.apache.thrift.TException {
7847
    public void updateAsin(Map<Long,Item> item, org.apache.thrift.async.AsyncMethodCallback<updateAsin_call> resultHandler) throws org.apache.thrift.TException {
7766
      checkReady();
7848
      checkReady();
7767
      updateAsin_call method_call = new updateAsin_call(item, resultHandler, this, ___protocolFactory, ___transport);
7849
      updateAsin_call method_call = new updateAsin_call(item, resultHandler, this, ___protocolFactory, ___transport);
7768
      this.___currentMethod = method_call;
7850
      this.___currentMethod = method_call;
7769
      ___manager.call(method_call);
7851
      ___manager.call(method_call);
Line 7856... Line 7938...
7856
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7938
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7857
        return (new Client(prot)).recv_getSnapdealItem();
7939
        return (new Client(prot)).recv_getSnapdealItem();
7858
      }
7940
      }
7859
    }
7941
    }
7860
 
7942
 
-
 
7943
    public void getSnapdealItemDetails(long item_id, org.apache.thrift.async.AsyncMethodCallback<getSnapdealItemDetails_call> resultHandler) throws org.apache.thrift.TException {
-
 
7944
      checkReady();
-
 
7945
      getSnapdealItemDetails_call method_call = new getSnapdealItemDetails_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
7946
      this.___currentMethod = method_call;
-
 
7947
      ___manager.call(method_call);
-
 
7948
    }
-
 
7949
 
-
 
7950
    public static class getSnapdealItemDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
7951
      private long item_id;
-
 
7952
      public getSnapdealItemDetails_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getSnapdealItemDetails_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 {
-
 
7953
        super(client, protocolFactory, transport, resultHandler, false);
-
 
7954
        this.item_id = item_id;
-
 
7955
      }
-
 
7956
 
-
 
7957
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
7958
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSnapdealItemDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
7959
        getSnapdealItemDetails_args args = new getSnapdealItemDetails_args();
-
 
7960
        args.setItem_id(item_id);
-
 
7961
        args.write(prot);
-
 
7962
        prot.writeMessageEnd();
-
 
7963
      }
-
 
7964
 
-
 
7965
      public SnapdealItemDetails getResult() throws org.apache.thrift.TException {
-
 
7966
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
7967
          throw new IllegalStateException("Method call not finished!");
-
 
7968
        }
-
 
7969
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
7970
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
7971
        return (new Client(prot)).recv_getSnapdealItemDetails();
-
 
7972
      }
-
 
7973
    }
-
 
7974
 
7861
    public void getAllSnapdealItems(org.apache.thrift.async.AsyncMethodCallback<getAllSnapdealItems_call> resultHandler) throws org.apache.thrift.TException {
7975
    public void getAllSnapdealItems(org.apache.thrift.async.AsyncMethodCallback<getAllSnapdealItems_call> resultHandler) throws org.apache.thrift.TException {
7862
      checkReady();
7976
      checkReady();
7863
      getAllSnapdealItems_call method_call = new getAllSnapdealItems_call(resultHandler, this, ___protocolFactory, ___transport);
7977
      getAllSnapdealItems_call method_call = new getAllSnapdealItems_call(resultHandler, this, ___protocolFactory, ___transport);
7864
      this.___currentMethod = method_call;
7978
      this.___currentMethod = method_call;
7865
      ___manager.call(method_call);
7979
      ___manager.call(method_call);
Line 7875... Line 7989...
7875
        getAllSnapdealItems_args args = new getAllSnapdealItems_args();
7989
        getAllSnapdealItems_args args = new getAllSnapdealItems_args();
7876
        args.write(prot);
7990
        args.write(prot);
7877
        prot.writeMessageEnd();
7991
        prot.writeMessageEnd();
7878
      }
7992
      }
7879
 
7993
 
7880
      public List<SnapdealItem> getResult() throws org.apache.thrift.TException {
7994
      public List<SnapdealItemDetails> getResult() throws org.apache.thrift.TException {
7881
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
7995
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
7882
          throw new IllegalStateException("Method call not finished!");
7996
          throw new IllegalStateException("Method call not finished!");
7883
        }
7997
        }
7884
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
7998
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
7885
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7999
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7886
        return (new Client(prot)).recv_getAllSnapdealItems();
8000
        return (new Client(prot)).recv_getAllSnapdealItems();
7887
      }
8001
      }
7888
    }
8002
    }
7889
 
8003
 
-
 
8004
    public void getSnapdealItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getSnapdealItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
8005
      checkReady();
-
 
8006
      getSnapdealItems_call method_call = new getSnapdealItems_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);
-
 
8007
      this.___currentMethod = method_call;
-
 
8008
      ___manager.call(method_call);
-
 
8009
    }
-
 
8010
 
-
 
8011
    public static class getSnapdealItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
8012
      private long offset;
-
 
8013
      private long limit;
-
 
8014
      public getSnapdealItems_call(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getSnapdealItems_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 {
-
 
8015
        super(client, protocolFactory, transport, resultHandler, false);
-
 
8016
        this.offset = offset;
-
 
8017
        this.limit = limit;
-
 
8018
      }
-
 
8019
 
-
 
8020
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
8021
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSnapdealItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
8022
        getSnapdealItems_args args = new getSnapdealItems_args();
-
 
8023
        args.setOffset(offset);
-
 
8024
        args.setLimit(limit);
-
 
8025
        args.write(prot);
-
 
8026
        prot.writeMessageEnd();
-
 
8027
      }
-
 
8028
 
-
 
8029
      public List<SnapdealItemDetails> getResult() throws org.apache.thrift.TException {
-
 
8030
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
8031
          throw new IllegalStateException("Method call not finished!");
-
 
8032
        }
-
 
8033
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
8034
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
8035
        return (new Client(prot)).recv_getSnapdealItems();
-
 
8036
      }
-
 
8037
    }
-
 
8038
 
-
 
8039
    public void searchSnapdealItems(List<String> searchTerm, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<searchSnapdealItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
8040
      checkReady();
-
 
8041
      searchSnapdealItems_call method_call = new searchSnapdealItems_call(searchTerm, offset, limit, resultHandler, this, ___protocolFactory, ___transport);
-
 
8042
      this.___currentMethod = method_call;
-
 
8043
      ___manager.call(method_call);
-
 
8044
    }
-
 
8045
 
-
 
8046
    public static class searchSnapdealItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
8047
      private List<String> searchTerm;
-
 
8048
      private long offset;
-
 
8049
      private long limit;
-
 
8050
      public searchSnapdealItems_call(List<String> searchTerm, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<searchSnapdealItems_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 {
-
 
8051
        super(client, protocolFactory, transport, resultHandler, false);
-
 
8052
        this.searchTerm = searchTerm;
-
 
8053
        this.offset = offset;
-
 
8054
        this.limit = limit;
-
 
8055
      }
-
 
8056
 
-
 
8057
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
8058
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchSnapdealItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
8059
        searchSnapdealItems_args args = new searchSnapdealItems_args();
-
 
8060
        args.setSearchTerm(searchTerm);
-
 
8061
        args.setOffset(offset);
-
 
8062
        args.setLimit(limit);
-
 
8063
        args.write(prot);
-
 
8064
        prot.writeMessageEnd();
-
 
8065
      }
-
 
8066
 
-
 
8067
      public List<SnapdealItemDetails> getResult() throws org.apache.thrift.TException {
-
 
8068
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
8069
          throw new IllegalStateException("Method call not finished!");
-
 
8070
        }
-
 
8071
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
8072
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
8073
        return (new Client(prot)).recv_searchSnapdealItems();
-
 
8074
      }
-
 
8075
    }
-
 
8076
 
-
 
8077
    public void getCountForSnapdealItems(org.apache.thrift.async.AsyncMethodCallback<getCountForSnapdealItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
8078
      checkReady();
-
 
8079
      getCountForSnapdealItems_call method_call = new getCountForSnapdealItems_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
8080
      this.___currentMethod = method_call;
-
 
8081
      ___manager.call(method_call);
-
 
8082
    }
-
 
8083
 
-
 
8084
    public static class getCountForSnapdealItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
8085
      public getCountForSnapdealItems_call(org.apache.thrift.async.AsyncMethodCallback<getCountForSnapdealItems_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 {
-
 
8086
        super(client, protocolFactory, transport, resultHandler, false);
-
 
8087
      }
-
 
8088
 
-
 
8089
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
8090
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCountForSnapdealItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
8091
        getCountForSnapdealItems_args args = new getCountForSnapdealItems_args();
-
 
8092
        args.write(prot);
-
 
8093
        prot.writeMessageEnd();
-
 
8094
      }
-
 
8095
 
-
 
8096
      public long getResult() throws org.apache.thrift.TException {
-
 
8097
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
8098
          throw new IllegalStateException("Method call not finished!");
-
 
8099
        }
-
 
8100
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
8101
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
8102
        return (new Client(prot)).recv_getCountForSnapdealItems();
-
 
8103
      }
-
 
8104
    }
-
 
8105
 
-
 
8106
    public void getSnapdealSearchResultCount(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<getSnapdealSearchResultCount_call> resultHandler) throws org.apache.thrift.TException {
-
 
8107
      checkReady();
-
 
8108
      getSnapdealSearchResultCount_call method_call = new getSnapdealSearchResultCount_call(searchTerm, resultHandler, this, ___protocolFactory, ___transport);
-
 
8109
      this.___currentMethod = method_call;
-
 
8110
      ___manager.call(method_call);
-
 
8111
    }
-
 
8112
 
-
 
8113
    public static class getSnapdealSearchResultCount_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
8114
      private List<String> searchTerm;
-
 
8115
      public getSnapdealSearchResultCount_call(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<getSnapdealSearchResultCount_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 {
-
 
8116
        super(client, protocolFactory, transport, resultHandler, false);
-
 
8117
        this.searchTerm = searchTerm;
-
 
8118
      }
-
 
8119
 
-
 
8120
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
8121
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSnapdealSearchResultCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
8122
        getSnapdealSearchResultCount_args args = new getSnapdealSearchResultCount_args();
-
 
8123
        args.setSearchTerm(searchTerm);
-
 
8124
        args.write(prot);
-
 
8125
        prot.writeMessageEnd();
-
 
8126
      }
-
 
8127
 
-
 
8128
      public long getResult() throws org.apache.thrift.TException {
-
 
8129
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
8130
          throw new IllegalStateException("Method call not finished!");
-
 
8131
        }
-
 
8132
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
8133
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
8134
        return (new Client(prot)).recv_getSnapdealSearchResultCount();
-
 
8135
      }
-
 
8136
    }
-
 
8137
 
7890
  }
8138
  }
7891
 
8139
 
7892
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
8140
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
7893
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
8141
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
7894
    public Processor(I iface) {
8142
    public Processor(I iface) {
Line 8019... Line 8267...
8019
      processMap.put("updateEbayItem", new updateEbayItem());
8267
      processMap.put("updateEbayItem", new updateEbayItem());
8020
      processMap.put("getAmazonListedItems", new getAmazonListedItems());
8268
      processMap.put("getAmazonListedItems", new getAmazonListedItems());
8021
      processMap.put("updateAmazonAttributesInBulk", new updateAmazonAttributesInBulk());
8269
      processMap.put("updateAmazonAttributesInBulk", new updateAmazonAttributesInBulk());
8022
      processMap.put("getAllItemstoListOnFba", new getAllItemstoListOnFba());
8270
      processMap.put("getAllItemstoListOnFba", new getAllItemstoListOnFba());
8023
      processMap.put("getAllItemstoListOnNonFba", new getAllItemstoListOnNonFba());
8271
      processMap.put("getAllItemstoListOnNonFba", new getAllItemstoListOnNonFba());
8024
      processMap.put("getAllSnapdealListedActiveItems", new getAllSnapdealListedActiveItems());
-
 
8025
      processMap.put("updateAsin", new updateAsin());
8272
      processMap.put("updateAsin", new updateAsin());
8026
      processMap.put("addOrUpdateSnapdealItem", new addOrUpdateSnapdealItem());
8273
      processMap.put("addOrUpdateSnapdealItem", new addOrUpdateSnapdealItem());
8027
      processMap.put("getSnapdealItem", new getSnapdealItem());
8274
      processMap.put("getSnapdealItem", new getSnapdealItem());
-
 
8275
      processMap.put("getSnapdealItemDetails", new getSnapdealItemDetails());
8028
      processMap.put("getAllSnapdealItems", new getAllSnapdealItems());
8276
      processMap.put("getAllSnapdealItems", new getAllSnapdealItems());
-
 
8277
      processMap.put("getSnapdealItems", new getSnapdealItems());
-
 
8278
      processMap.put("searchSnapdealItems", new searchSnapdealItems());
-
 
8279
      processMap.put("getCountForSnapdealItems", new getCountForSnapdealItems());
-
 
8280
      processMap.put("getSnapdealSearchResultCount", new getSnapdealSearchResultCount());
8029
      return processMap;
8281
      return processMap;
8030
    }
8282
    }
8031
 
8283
 
8032
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
8284
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
8033
      public addItem() {
8285
      public addItem() {
Line 10152... Line 10404...
10152
        result.success = iface.getAllItemstoListOnNonFba();
10404
        result.success = iface.getAllItemstoListOnNonFba();
10153
        return result;
10405
        return result;
10154
      }
10406
      }
10155
    }
10407
    }
10156
 
10408
 
10157
    private static class getAllSnapdealListedActiveItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSnapdealListedActiveItems_args> {
-
 
10158
      public getAllSnapdealListedActiveItems() {
-
 
10159
        super("getAllSnapdealListedActiveItems");
-
 
10160
      }
-
 
10161
 
-
 
10162
      protected getAllSnapdealListedActiveItems_args getEmptyArgsInstance() {
-
 
10163
        return new getAllSnapdealListedActiveItems_args();
-
 
10164
      }
-
 
10165
 
-
 
10166
      protected getAllSnapdealListedActiveItems_result getResult(I iface, getAllSnapdealListedActiveItems_args args) throws org.apache.thrift.TException {
-
 
10167
        getAllSnapdealListedActiveItems_result result = new getAllSnapdealListedActiveItems_result();
-
 
10168
        result.success = iface.getAllSnapdealListedActiveItems();
-
 
10169
        return result;
-
 
10170
      }
-
 
10171
    }
-
 
10172
 
-
 
10173
    private static class updateAsin<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateAsin_args> {
10409
    private static class updateAsin<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateAsin_args> {
10174
      public updateAsin() {
10410
      public updateAsin() {
10175
        super("updateAsin");
10411
        super("updateAsin");
10176
      }
10412
      }
10177
 
10413
 
Line 10217... Line 10453...
10217
        result.success = iface.getSnapdealItem(args.item_id);
10453
        result.success = iface.getSnapdealItem(args.item_id);
10218
        return result;
10454
        return result;
10219
      }
10455
      }
10220
    }
10456
    }
10221
 
10457
 
-
 
10458
    private static class getSnapdealItemDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSnapdealItemDetails_args> {
-
 
10459
      public getSnapdealItemDetails() {
-
 
10460
        super("getSnapdealItemDetails");
-
 
10461
      }
-
 
10462
 
-
 
10463
      protected getSnapdealItemDetails_args getEmptyArgsInstance() {
-
 
10464
        return new getSnapdealItemDetails_args();
-
 
10465
      }
-
 
10466
 
-
 
10467
      protected getSnapdealItemDetails_result getResult(I iface, getSnapdealItemDetails_args args) throws org.apache.thrift.TException {
-
 
10468
        getSnapdealItemDetails_result result = new getSnapdealItemDetails_result();
-
 
10469
        result.success = iface.getSnapdealItemDetails(args.item_id);
-
 
10470
        return result;
-
 
10471
      }
-
 
10472
    }
-
 
10473
 
10222
    private static class getAllSnapdealItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSnapdealItems_args> {
10474
    private static class getAllSnapdealItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllSnapdealItems_args> {
10223
      public getAllSnapdealItems() {
10475
      public getAllSnapdealItems() {
10224
        super("getAllSnapdealItems");
10476
        super("getAllSnapdealItems");
10225
      }
10477
      }
10226
 
10478
 
Line 10233... Line 10485...
10233
        result.success = iface.getAllSnapdealItems();
10485
        result.success = iface.getAllSnapdealItems();
10234
        return result;
10486
        return result;
10235
      }
10487
      }
10236
    }
10488
    }
10237
 
10489
 
-
 
10490
    private static class getSnapdealItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSnapdealItems_args> {
-
 
10491
      public getSnapdealItems() {
-
 
10492
        super("getSnapdealItems");
-
 
10493
      }
-
 
10494
 
-
 
10495
      protected getSnapdealItems_args getEmptyArgsInstance() {
-
 
10496
        return new getSnapdealItems_args();
-
 
10497
      }
-
 
10498
 
-
 
10499
      protected getSnapdealItems_result getResult(I iface, getSnapdealItems_args args) throws org.apache.thrift.TException {
-
 
10500
        getSnapdealItems_result result = new getSnapdealItems_result();
-
 
10501
        result.success = iface.getSnapdealItems(args.offset, args.limit);
-
 
10502
        return result;
-
 
10503
      }
-
 
10504
    }
-
 
10505
 
-
 
10506
    private static class searchSnapdealItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, searchSnapdealItems_args> {
-
 
10507
      public searchSnapdealItems() {
-
 
10508
        super("searchSnapdealItems");
-
 
10509
      }
-
 
10510
 
-
 
10511
      protected searchSnapdealItems_args getEmptyArgsInstance() {
-
 
10512
        return new searchSnapdealItems_args();
-
 
10513
      }
-
 
10514
 
-
 
10515
      protected searchSnapdealItems_result getResult(I iface, searchSnapdealItems_args args) throws org.apache.thrift.TException {
-
 
10516
        searchSnapdealItems_result result = new searchSnapdealItems_result();
-
 
10517
        result.success = iface.searchSnapdealItems(args.searchTerm, args.offset, args.limit);
-
 
10518
        return result;
-
 
10519
      }
-
 
10520
    }
-
 
10521
 
-
 
10522
    private static class getCountForSnapdealItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCountForSnapdealItems_args> {
-
 
10523
      public getCountForSnapdealItems() {
-
 
10524
        super("getCountForSnapdealItems");
-
 
10525
      }
-
 
10526
 
-
 
10527
      protected getCountForSnapdealItems_args getEmptyArgsInstance() {
-
 
10528
        return new getCountForSnapdealItems_args();
-
 
10529
      }
-
 
10530
 
-
 
10531
      protected getCountForSnapdealItems_result getResult(I iface, getCountForSnapdealItems_args args) throws org.apache.thrift.TException {
-
 
10532
        getCountForSnapdealItems_result result = new getCountForSnapdealItems_result();
-
 
10533
        result.success = iface.getCountForSnapdealItems();
-
 
10534
        result.setSuccessIsSet(true);
-
 
10535
        return result;
-
 
10536
      }
-
 
10537
    }
-
 
10538
 
-
 
10539
    private static class getSnapdealSearchResultCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSnapdealSearchResultCount_args> {
-
 
10540
      public getSnapdealSearchResultCount() {
-
 
10541
        super("getSnapdealSearchResultCount");
-
 
10542
      }
-
 
10543
 
-
 
10544
      protected getSnapdealSearchResultCount_args getEmptyArgsInstance() {
-
 
10545
        return new getSnapdealSearchResultCount_args();
-
 
10546
      }
-
 
10547
 
-
 
10548
      protected getSnapdealSearchResultCount_result getResult(I iface, getSnapdealSearchResultCount_args args) throws org.apache.thrift.TException {
-
 
10549
        getSnapdealSearchResultCount_result result = new getSnapdealSearchResultCount_result();
-
 
10550
        result.success = iface.getSnapdealSearchResultCount(args.searchTerm);
-
 
10551
        result.setSuccessIsSet(true);
-
 
10552
        return result;
-
 
10553
      }
-
 
10554
    }
-
 
10555
 
10238
  }
10556
  }
10239
 
10557
 
10240
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
10558
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
10241
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
10559
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
10242
 
10560
 
Line 88129... Line 88447...
88129
      }
88447
      }
88130
    }
88448
    }
88131
 
88449
 
88132
  }
88450
  }
88133
 
88451
 
88134
  public static class getAllSnapdealListedActiveItems_args implements org.apache.thrift.TBase<getAllSnapdealListedActiveItems_args, getAllSnapdealListedActiveItems_args._Fields>, java.io.Serializable, Cloneable   {
88452
  public static class updateAsin_args implements org.apache.thrift.TBase<updateAsin_args, updateAsin_args._Fields>, java.io.Serializable, Cloneable   {
88135
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSnapdealListedActiveItems_args");
88453
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAsin_args");
88136
 
88454
 
-
 
88455
    private static final org.apache.thrift.protocol.TField ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("item", org.apache.thrift.protocol.TType.MAP, (short)1);
88137
 
88456
 
-
 
88457
    private Map<Long,Item> item; // required
88138
 
88458
 
88139
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
88459
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
88140
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
88460
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
88141
;
-
 
-
 
88461
      ITEM((short)1, "item");
88142
 
88462
 
88143
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
88463
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
88144
 
88464
 
88145
      static {
88465
      static {
88146
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
88466
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 88151... Line 88471...
88151
      /**
88471
      /**
88152
       * Find the _Fields constant that matches fieldId, or null if its not found.
88472
       * Find the _Fields constant that matches fieldId, or null if its not found.
88153
       */
88473
       */
88154
      public static _Fields findByThriftId(int fieldId) {
88474
      public static _Fields findByThriftId(int fieldId) {
88155
        switch(fieldId) {
88475
        switch(fieldId) {
-
 
88476
          case 1: // ITEM
-
 
88477
            return ITEM;
88156
          default:
88478
          default:
88157
            return null;
88479
            return null;
88158
        }
88480
        }
88159
      }
88481
      }
88160
 
88482
 
Line 88189... Line 88511...
88189
 
88511
 
88190
      public String getFieldName() {
88512
      public String getFieldName() {
88191
        return _fieldName;
88513
        return _fieldName;
88192
      }
88514
      }
88193
    }
88515
    }
-
 
88516
 
-
 
88517
    // isset id assignments
-
 
88518
 
88194
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
88519
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
88195
    static {
88520
    static {
88196
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
88521
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
88522
      tmpMap.put(_Fields.ITEM, new org.apache.thrift.meta_data.FieldMetaData("item", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
88523
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
88524
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
88525
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
88197
      metaDataMap = Collections.unmodifiableMap(tmpMap);
88526
      metaDataMap = Collections.unmodifiableMap(tmpMap);
88198
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSnapdealListedActiveItems_args.class, metaDataMap);
88527
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAsin_args.class, metaDataMap);
88199
    }
88528
    }
88200
 
88529
 
88201
    public getAllSnapdealListedActiveItems_args() {
88530
    public updateAsin_args() {
-
 
88531
    }
-
 
88532
 
-
 
88533
    public updateAsin_args(
-
 
88534
      Map<Long,Item> item)
-
 
88535
    {
-
 
88536
      this();
-
 
88537
      this.item = item;
88202
    }
88538
    }
88203
 
88539
 
88204
    /**
88540
    /**
88205
     * Performs a deep copy on <i>other</i>.
88541
     * Performs a deep copy on <i>other</i>.
88206
     */
88542
     */
88207
    public getAllSnapdealListedActiveItems_args(getAllSnapdealListedActiveItems_args other) {
88543
    public updateAsin_args(updateAsin_args other) {
-
 
88544
      if (other.isSetItem()) {
-
 
88545
        Map<Long,Item> __this__item = new HashMap<Long,Item>();
-
 
88546
        for (Map.Entry<Long, Item> other_element : other.item.entrySet()) {
-
 
88547
 
-
 
88548
          Long other_element_key = other_element.getKey();
-
 
88549
          Item other_element_value = other_element.getValue();
-
 
88550
 
-
 
88551
          Long __this__item_copy_key = other_element_key;
-
 
88552
 
-
 
88553
          Item __this__item_copy_value = new Item(other_element_value);
-
 
88554
 
-
 
88555
          __this__item.put(__this__item_copy_key, __this__item_copy_value);
-
 
88556
        }
-
 
88557
        this.item = __this__item;
-
 
88558
      }
88208
    }
88559
    }
88209
 
88560
 
88210
    public getAllSnapdealListedActiveItems_args deepCopy() {
88561
    public updateAsin_args deepCopy() {
88211
      return new getAllSnapdealListedActiveItems_args(this);
88562
      return new updateAsin_args(this);
88212
    }
88563
    }
88213
 
88564
 
88214
    @Override
88565
    @Override
88215
    public void clear() {
88566
    public void clear() {
-
 
88567
      this.item = null;
-
 
88568
    }
-
 
88569
 
-
 
88570
    public int getItemSize() {
-
 
88571
      return (this.item == null) ? 0 : this.item.size();
-
 
88572
    }
-
 
88573
 
-
 
88574
    public void putToItem(long key, Item val) {
-
 
88575
      if (this.item == null) {
-
 
88576
        this.item = new HashMap<Long,Item>();
-
 
88577
      }
-
 
88578
      this.item.put(key, val);
-
 
88579
    }
-
 
88580
 
-
 
88581
    public Map<Long,Item> getItem() {
-
 
88582
      return this.item;
-
 
88583
    }
-
 
88584
 
-
 
88585
    public void setItem(Map<Long,Item> item) {
-
 
88586
      this.item = item;
-
 
88587
    }
-
 
88588
 
-
 
88589
    public void unsetItem() {
-
 
88590
      this.item = null;
-
 
88591
    }
-
 
88592
 
-
 
88593
    /** Returns true if field item is set (has been assigned a value) and false otherwise */
-
 
88594
    public boolean isSetItem() {
-
 
88595
      return this.item != null;
-
 
88596
    }
-
 
88597
 
-
 
88598
    public void setItemIsSet(boolean value) {
-
 
88599
      if (!value) {
-
 
88600
        this.item = null;
-
 
88601
      }
88216
    }
88602
    }
88217
 
88603
 
88218
    public void setFieldValue(_Fields field, Object value) {
88604
    public void setFieldValue(_Fields field, Object value) {
88219
      switch (field) {
88605
      switch (field) {
-
 
88606
      case ITEM:
-
 
88607
        if (value == null) {
-
 
88608
          unsetItem();
-
 
88609
        } else {
-
 
88610
          setItem((Map<Long,Item>)value);
-
 
88611
        }
-
 
88612
        break;
-
 
88613
 
88220
      }
88614
      }
88221
    }
88615
    }
88222
 
88616
 
88223
    public Object getFieldValue(_Fields field) {
88617
    public Object getFieldValue(_Fields field) {
88224
      switch (field) {
88618
      switch (field) {
-
 
88619
      case ITEM:
-
 
88620
        return getItem();
-
 
88621
 
88225
      }
88622
      }
88226
      throw new IllegalStateException();
88623
      throw new IllegalStateException();
88227
    }
88624
    }
88228
 
88625
 
88229
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
88626
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 88231... Line 88628...
88231
      if (field == null) {
88628
      if (field == null) {
88232
        throw new IllegalArgumentException();
88629
        throw new IllegalArgumentException();
88233
      }
88630
      }
88234
 
88631
 
88235
      switch (field) {
88632
      switch (field) {
-
 
88633
      case ITEM:
-
 
88634
        return isSetItem();
88236
      }
88635
      }
88237
      throw new IllegalStateException();
88636
      throw new IllegalStateException();
88238
    }
88637
    }
88239
 
88638
 
88240
    @Override
88639
    @Override
88241
    public boolean equals(Object that) {
88640
    public boolean equals(Object that) {
88242
      if (that == null)
88641
      if (that == null)
88243
        return false;
88642
        return false;
88244
      if (that instanceof getAllSnapdealListedActiveItems_args)
88643
      if (that instanceof updateAsin_args)
88245
        return this.equals((getAllSnapdealListedActiveItems_args)that);
88644
        return this.equals((updateAsin_args)that);
88246
      return false;
88645
      return false;
88247
    }
88646
    }
88248
 
88647
 
88249
    public boolean equals(getAllSnapdealListedActiveItems_args that) {
88648
    public boolean equals(updateAsin_args that) {
88250
      if (that == null)
88649
      if (that == null)
88251
        return false;
88650
        return false;
88252
 
88651
 
-
 
88652
      boolean this_present_item = true && this.isSetItem();
-
 
88653
      boolean that_present_item = true && that.isSetItem();
-
 
88654
      if (this_present_item || that_present_item) {
-
 
88655
        if (!(this_present_item && that_present_item))
-
 
88656
          return false;
-
 
88657
        if (!this.item.equals(that.item))
-
 
88658
          return false;
-
 
88659
      }
-
 
88660
 
88253
      return true;
88661
      return true;
88254
    }
88662
    }
88255
 
88663
 
88256
    @Override
88664
    @Override
88257
    public int hashCode() {
88665
    public int hashCode() {
88258
      return 0;
88666
      return 0;
88259
    }
88667
    }
88260
 
88668
 
88261
    public int compareTo(getAllSnapdealListedActiveItems_args other) {
88669
    public int compareTo(updateAsin_args other) {
88262
      if (!getClass().equals(other.getClass())) {
88670
      if (!getClass().equals(other.getClass())) {
88263
        return getClass().getName().compareTo(other.getClass().getName());
88671
        return getClass().getName().compareTo(other.getClass().getName());
88264
      }
88672
      }
88265
 
88673
 
88266
      int lastComparison = 0;
88674
      int lastComparison = 0;
88267
      getAllSnapdealListedActiveItems_args typedOther = (getAllSnapdealListedActiveItems_args)other;
88675
      updateAsin_args typedOther = (updateAsin_args)other;
88268
 
88676
 
-
 
88677
      lastComparison = Boolean.valueOf(isSetItem()).compareTo(typedOther.isSetItem());
-
 
88678
      if (lastComparison != 0) {
-
 
88679
        return lastComparison;
-
 
88680
      }
-
 
88681
      if (isSetItem()) {
-
 
88682
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item, typedOther.item);
-
 
88683
        if (lastComparison != 0) {
-
 
88684
          return lastComparison;
-
 
88685
        }
-
 
88686
      }
88269
      return 0;
88687
      return 0;
88270
    }
88688
    }
88271
 
88689
 
88272
    public _Fields fieldForId(int fieldId) {
88690
    public _Fields fieldForId(int fieldId) {
88273
      return _Fields.findByThriftId(fieldId);
88691
      return _Fields.findByThriftId(fieldId);
Line 88281... Line 88699...
88281
        field = iprot.readFieldBegin();
88699
        field = iprot.readFieldBegin();
88282
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
88700
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
88283
          break;
88701
          break;
88284
        }
88702
        }
88285
        switch (field.id) {
88703
        switch (field.id) {
-
 
88704
          case 1: // ITEM
-
 
88705
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
88706
              {
-
 
88707
                org.apache.thrift.protocol.TMap _map287 = iprot.readMapBegin();
-
 
88708
                this.item = new HashMap<Long,Item>(2*_map287.size);
-
 
88709
                for (int _i288 = 0; _i288 < _map287.size; ++_i288)
-
 
88710
                {
-
 
88711
                  long _key289; // required
-
 
88712
                  Item _val290; // required
-
 
88713
                  _key289 = iprot.readI64();
-
 
88714
                  _val290 = new Item();
-
 
88715
                  _val290.read(iprot);
-
 
88716
                  this.item.put(_key289, _val290);
-
 
88717
                }
-
 
88718
                iprot.readMapEnd();
-
 
88719
              }
-
 
88720
            } else { 
-
 
88721
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
88722
            }
-
 
88723
            break;
88286
          default:
88724
          default:
88287
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
88725
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
88288
        }
88726
        }
88289
        iprot.readFieldEnd();
88727
        iprot.readFieldEnd();
88290
      }
88728
      }
Line 88294... Line 88732...
88294
 
88732
 
88295
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
88733
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
88296
      validate();
88734
      validate();
88297
 
88735
 
88298
      oprot.writeStructBegin(STRUCT_DESC);
88736
      oprot.writeStructBegin(STRUCT_DESC);
-
 
88737
      if (this.item != null) {
-
 
88738
        oprot.writeFieldBegin(ITEM_FIELD_DESC);
-
 
88739
        {
-
 
88740
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.item.size()));
-
 
88741
          for (Map.Entry<Long, Item> _iter291 : this.item.entrySet())
-
 
88742
          {
-
 
88743
            oprot.writeI64(_iter291.getKey());
-
 
88744
            _iter291.getValue().write(oprot);
-
 
88745
          }
-
 
88746
          oprot.writeMapEnd();
-
 
88747
        }
-
 
88748
        oprot.writeFieldEnd();
-
 
88749
      }
88299
      oprot.writeFieldStop();
88750
      oprot.writeFieldStop();
88300
      oprot.writeStructEnd();
88751
      oprot.writeStructEnd();
88301
    }
88752
    }
88302
 
88753
 
88303
    @Override
88754
    @Override
88304
    public String toString() {
88755
    public String toString() {
88305
      StringBuilder sb = new StringBuilder("getAllSnapdealListedActiveItems_args(");
88756
      StringBuilder sb = new StringBuilder("updateAsin_args(");
88306
      boolean first = true;
88757
      boolean first = true;
88307
 
88758
 
-
 
88759
      sb.append("item:");
-
 
88760
      if (this.item == null) {
-
 
88761
        sb.append("null");
-
 
88762
      } else {
-
 
88763
        sb.append(this.item);
-
 
88764
      }
-
 
88765
      first = false;
88308
      sb.append(")");
88766
      sb.append(")");
88309
      return sb.toString();
88767
      return sb.toString();
88310
    }
88768
    }
88311
 
88769
 
88312
    public void validate() throws org.apache.thrift.TException {
88770
    public void validate() throws org.apache.thrift.TException {
Line 88329... Line 88787...
88329
      }
88787
      }
88330
    }
88788
    }
88331
 
88789
 
88332
  }
88790
  }
88333
 
88791
 
88334
  public static class getAllSnapdealListedActiveItems_result implements org.apache.thrift.TBase<getAllSnapdealListedActiveItems_result, getAllSnapdealListedActiveItems_result._Fields>, java.io.Serializable, Cloneable   {
88792
  public static class updateAsin_result implements org.apache.thrift.TBase<updateAsin_result, updateAsin_result._Fields>, java.io.Serializable, Cloneable   {
88335
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSnapdealListedActiveItems_result");
88793
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAsin_result");
88336
 
88794
 
88337
    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);
-
 
88338
 
88795
 
88339
    private List<Item> success; // required
-
 
88340
 
88796
 
88341
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
88797
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
88342
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
88798
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
88343
      SUCCESS((short)0, "success");
-
 
-
 
88799
;
88344
 
88800
 
88345
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
88801
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
88346
 
88802
 
88347
      static {
88803
      static {
88348
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
88804
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 88353... Line 88809...
88353
      /**
88809
      /**
88354
       * Find the _Fields constant that matches fieldId, or null if its not found.
88810
       * Find the _Fields constant that matches fieldId, or null if its not found.
88355
       */
88811
       */
88356
      public static _Fields findByThriftId(int fieldId) {
88812
      public static _Fields findByThriftId(int fieldId) {
88357
        switch(fieldId) {
88813
        switch(fieldId) {
88358
          case 0: // SUCCESS
-
 
88359
            return SUCCESS;
-
 
88360
          default:
88814
          default:
88361
            return null;
88815
            return null;
88362
        }
88816
        }
88363
      }
88817
      }
88364
 
88818
 
Line 88393... Line 88847...
88393
 
88847
 
88394
      public String getFieldName() {
88848
      public String getFieldName() {
88395
        return _fieldName;
88849
        return _fieldName;
88396
      }
88850
      }
88397
    }
88851
    }
88398
 
-
 
88399
    // isset id assignments
-
 
88400
 
-
 
88401
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
88852
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
88402
    static {
88853
    static {
88403
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
88854
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
88404
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
88405
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
88406
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
-
 
88407
      metaDataMap = Collections.unmodifiableMap(tmpMap);
88855
      metaDataMap = Collections.unmodifiableMap(tmpMap);
88408
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSnapdealListedActiveItems_result.class, metaDataMap);
88856
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAsin_result.class, metaDataMap);
88409
    }
-
 
88410
 
-
 
88411
    public getAllSnapdealListedActiveItems_result() {
-
 
88412
    }
88857
    }
88413
 
88858
 
88414
    public getAllSnapdealListedActiveItems_result(
88859
    public updateAsin_result() {
88415
      List<Item> success)
-
 
88416
    {
-
 
88417
      this();
-
 
88418
      this.success = success;
-
 
88419
    }
88860
    }
88420
 
88861
 
88421
    /**
88862
    /**
88422
     * Performs a deep copy on <i>other</i>.
88863
     * Performs a deep copy on <i>other</i>.
88423
     */
88864
     */
88424
    public getAllSnapdealListedActiveItems_result(getAllSnapdealListedActiveItems_result other) {
88865
    public updateAsin_result(updateAsin_result other) {
88425
      if (other.isSetSuccess()) {
-
 
88426
        List<Item> __this__success = new ArrayList<Item>();
-
 
88427
        for (Item other_element : other.success) {
-
 
88428
          __this__success.add(new Item(other_element));
-
 
88429
        }
-
 
88430
        this.success = __this__success;
-
 
88431
      }
-
 
88432
    }
88866
    }
88433
 
88867
 
88434
    public getAllSnapdealListedActiveItems_result deepCopy() {
88868
    public updateAsin_result deepCopy() {
88435
      return new getAllSnapdealListedActiveItems_result(this);
88869
      return new updateAsin_result(this);
88436
    }
88870
    }
88437
 
88871
 
88438
    @Override
88872
    @Override
88439
    public void clear() {
88873
    public void clear() {
88440
      this.success = null;
-
 
88441
    }
-
 
88442
 
-
 
88443
    public int getSuccessSize() {
-
 
88444
      return (this.success == null) ? 0 : this.success.size();
-
 
88445
    }
-
 
88446
 
-
 
88447
    public java.util.Iterator<Item> getSuccessIterator() {
-
 
88448
      return (this.success == null) ? null : this.success.iterator();
-
 
88449
    }
-
 
88450
 
-
 
88451
    public void addToSuccess(Item elem) {
-
 
88452
      if (this.success == null) {
-
 
88453
        this.success = new ArrayList<Item>();
-
 
88454
      }
-
 
88455
      this.success.add(elem);
-
 
88456
    }
-
 
88457
 
-
 
88458
    public List<Item> getSuccess() {
-
 
88459
      return this.success;
-
 
88460
    }
-
 
88461
 
-
 
88462
    public void setSuccess(List<Item> success) {
-
 
88463
      this.success = success;
-
 
88464
    }
-
 
88465
 
-
 
88466
    public void unsetSuccess() {
-
 
88467
      this.success = null;
-
 
88468
    }
-
 
88469
 
-
 
88470
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
88471
    public boolean isSetSuccess() {
-
 
88472
      return this.success != null;
-
 
88473
    }
-
 
88474
 
-
 
88475
    public void setSuccessIsSet(boolean value) {
-
 
88476
      if (!value) {
-
 
88477
        this.success = null;
-
 
88478
      }
-
 
88479
    }
88874
    }
88480
 
88875
 
88481
    public void setFieldValue(_Fields field, Object value) {
88876
    public void setFieldValue(_Fields field, Object value) {
88482
      switch (field) {
88877
      switch (field) {
88483
      case SUCCESS:
-
 
88484
        if (value == null) {
-
 
88485
          unsetSuccess();
-
 
88486
        } else {
-
 
88487
          setSuccess((List<Item>)value);
-
 
88488
        }
-
 
88489
        break;
-
 
88490
 
-
 
88491
      }
88878
      }
88492
    }
88879
    }
88493
 
88880
 
88494
    public Object getFieldValue(_Fields field) {
88881
    public Object getFieldValue(_Fields field) {
88495
      switch (field) {
88882
      switch (field) {
88496
      case SUCCESS:
-
 
88497
        return getSuccess();
-
 
88498
 
-
 
88499
      }
88883
      }
88500
      throw new IllegalStateException();
88884
      throw new IllegalStateException();
88501
    }
88885
    }
88502
 
88886
 
88503
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
88887
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 88505... Line 88889...
88505
      if (field == null) {
88889
      if (field == null) {
88506
        throw new IllegalArgumentException();
88890
        throw new IllegalArgumentException();
88507
      }
88891
      }
88508
 
88892
 
88509
      switch (field) {
88893
      switch (field) {
88510
      case SUCCESS:
-
 
88511
        return isSetSuccess();
-
 
88512
      }
88894
      }
88513
      throw new IllegalStateException();
88895
      throw new IllegalStateException();
88514
    }
88896
    }
88515
 
88897
 
88516
    @Override
88898
    @Override
88517
    public boolean equals(Object that) {
88899
    public boolean equals(Object that) {
88518
      if (that == null)
88900
      if (that == null)
88519
        return false;
88901
        return false;
88520
      if (that instanceof getAllSnapdealListedActiveItems_result)
88902
      if (that instanceof updateAsin_result)
88521
        return this.equals((getAllSnapdealListedActiveItems_result)that);
88903
        return this.equals((updateAsin_result)that);
88522
      return false;
88904
      return false;
88523
    }
88905
    }
88524
 
88906
 
88525
    public boolean equals(getAllSnapdealListedActiveItems_result that) {
88907
    public boolean equals(updateAsin_result that) {
88526
      if (that == null)
88908
      if (that == null)
88527
        return false;
88909
        return false;
88528
 
88910
 
88529
      boolean this_present_success = true && this.isSetSuccess();
-
 
88530
      boolean that_present_success = true && that.isSetSuccess();
-
 
88531
      if (this_present_success || that_present_success) {
-
 
88532
        if (!(this_present_success && that_present_success))
-
 
88533
          return false;
-
 
88534
        if (!this.success.equals(that.success))
-
 
88535
          return false;
-
 
88536
      }
-
 
88537
 
-
 
88538
      return true;
88911
      return true;
88539
    }
88912
    }
88540
 
88913
 
88541
    @Override
88914
    @Override
88542
    public int hashCode() {
88915
    public int hashCode() {
88543
      return 0;
88916
      return 0;
88544
    }
88917
    }
88545
 
88918
 
88546
    public int compareTo(getAllSnapdealListedActiveItems_result other) {
88919
    public int compareTo(updateAsin_result other) {
88547
      if (!getClass().equals(other.getClass())) {
88920
      if (!getClass().equals(other.getClass())) {
88548
        return getClass().getName().compareTo(other.getClass().getName());
88921
        return getClass().getName().compareTo(other.getClass().getName());
88549
      }
88922
      }
88550
 
88923
 
88551
      int lastComparison = 0;
88924
      int lastComparison = 0;
88552
      getAllSnapdealListedActiveItems_result typedOther = (getAllSnapdealListedActiveItems_result)other;
88925
      updateAsin_result typedOther = (updateAsin_result)other;
88553
 
88926
 
88554
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
88555
      if (lastComparison != 0) {
-
 
88556
        return lastComparison;
-
 
88557
      }
-
 
88558
      if (isSetSuccess()) {
-
 
88559
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
88560
        if (lastComparison != 0) {
-
 
88561
          return lastComparison;
-
 
88562
        }
-
 
88563
      }
-
 
88564
      return 0;
88927
      return 0;
88565
    }
88928
    }
88566
 
88929
 
88567
    public _Fields fieldForId(int fieldId) {
88930
    public _Fields fieldForId(int fieldId) {
88568
      return _Fields.findByThriftId(fieldId);
88931
      return _Fields.findByThriftId(fieldId);
Line 88576... Line 88939...
88576
        field = iprot.readFieldBegin();
88939
        field = iprot.readFieldBegin();
88577
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
88940
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
88578
          break;
88941
          break;
88579
        }
88942
        }
88580
        switch (field.id) {
88943
        switch (field.id) {
88581
          case 0: // SUCCESS
-
 
88582
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
88583
              {
-
 
88584
                org.apache.thrift.protocol.TList _list287 = iprot.readListBegin();
-
 
88585
                this.success = new ArrayList<Item>(_list287.size);
-
 
88586
                for (int _i288 = 0; _i288 < _list287.size; ++_i288)
-
 
88587
                {
-
 
88588
                  Item _elem289; // required
-
 
88589
                  _elem289 = new Item();
-
 
88590
                  _elem289.read(iprot);
-
 
88591
                  this.success.add(_elem289);
-
 
88592
                }
-
 
88593
                iprot.readListEnd();
-
 
88594
              }
-
 
88595
            } else { 
-
 
88596
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
88597
            }
-
 
88598
            break;
-
 
88599
          default:
88944
          default:
88600
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
88945
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
88601
        }
88946
        }
88602
        iprot.readFieldEnd();
88947
        iprot.readFieldEnd();
88603
      }
88948
      }
Line 88606... Line 88951...
88606
    }
88951
    }
88607
 
88952
 
88608
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
88953
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
88609
      oprot.writeStructBegin(STRUCT_DESC);
88954
      oprot.writeStructBegin(STRUCT_DESC);
88610
 
88955
 
88611
      if (this.isSetSuccess()) {
-
 
88612
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
88613
        {
-
 
88614
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
88615
          for (Item _iter290 : this.success)
-
 
88616
          {
-
 
88617
            _iter290.write(oprot);
-
 
88618
          }
-
 
88619
          oprot.writeListEnd();
-
 
88620
        }
-
 
88621
        oprot.writeFieldEnd();
-
 
88622
      }
-
 
88623
      oprot.writeFieldStop();
88956
      oprot.writeFieldStop();
88624
      oprot.writeStructEnd();
88957
      oprot.writeStructEnd();
88625
    }
88958
    }
88626
 
88959
 
88627
    @Override
88960
    @Override
88628
    public String toString() {
88961
    public String toString() {
88629
      StringBuilder sb = new StringBuilder("getAllSnapdealListedActiveItems_result(");
88962
      StringBuilder sb = new StringBuilder("updateAsin_result(");
88630
      boolean first = true;
88963
      boolean first = true;
88631
 
88964
 
88632
      sb.append("success:");
-
 
88633
      if (this.success == null) {
-
 
88634
        sb.append("null");
-
 
88635
      } else {
-
 
88636
        sb.append(this.success);
-
 
88637
      }
-
 
88638
      first = false;
-
 
88639
      sb.append(")");
88965
      sb.append(")");
88640
      return sb.toString();
88966
      return sb.toString();
88641
    }
88967
    }
88642
 
88968
 
88643
    public void validate() throws org.apache.thrift.TException {
88969
    public void validate() throws org.apache.thrift.TException {
Line 88660... Line 88986...
88660
      }
88986
      }
88661
    }
88987
    }
88662
 
88988
 
88663
  }
88989
  }
88664
 
88990
 
88665
  public static class updateAsin_args implements org.apache.thrift.TBase<updateAsin_args, updateAsin_args._Fields>, java.io.Serializable, Cloneable   {
88991
  public static class addOrUpdateSnapdealItem_args implements org.apache.thrift.TBase<addOrUpdateSnapdealItem_args, addOrUpdateSnapdealItem_args._Fields>, java.io.Serializable, Cloneable   {
88666
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAsin_args");
88992
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateSnapdealItem_args");
88667
 
88993
 
88668
    private static final org.apache.thrift.protocol.TField ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("item", org.apache.thrift.protocol.TType.MAP, (short)1);
88994
    private static final org.apache.thrift.protocol.TField SNAPDEALITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("snapdealitem", org.apache.thrift.protocol.TType.STRUCT, (short)-1);
88669
 
88995
 
88670
    private Map<Long,Item> item; // required
88996
    private SnapdealItem snapdealitem; // required
88671
 
88997
 
88672
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
88998
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
88673
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
88999
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
88674
      ITEM((short)1, "item");
89000
      SNAPDEALITEM((short)-1, "snapdealitem");
88675
 
89001
 
88676
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
89002
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
88677
 
89003
 
88678
      static {
89004
      static {
88679
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
89005
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 88684... Line 89010...
88684
      /**
89010
      /**
88685
       * Find the _Fields constant that matches fieldId, or null if its not found.
89011
       * Find the _Fields constant that matches fieldId, or null if its not found.
88686
       */
89012
       */
88687
      public static _Fields findByThriftId(int fieldId) {
89013
      public static _Fields findByThriftId(int fieldId) {
88688
        switch(fieldId) {
89014
        switch(fieldId) {
88689
          case 1: // ITEM
89015
          case -1: // SNAPDEALITEM
88690
            return ITEM;
89016
            return SNAPDEALITEM;
88691
          default:
89017
          default:
88692
            return null;
89018
            return null;
88693
        }
89019
        }
88694
      }
89020
      }
88695
 
89021
 
Line 88730... Line 89056...
88730
    // isset id assignments
89056
    // isset id assignments
88731
 
89057
 
88732
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
89058
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
88733
    static {
89059
    static {
88734
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
89060
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
88735
      tmpMap.put(_Fields.ITEM, new org.apache.thrift.meta_data.FieldMetaData("item", org.apache.thrift.TFieldRequirementType.DEFAULT, 
89061
      tmpMap.put(_Fields.SNAPDEALITEM, new org.apache.thrift.meta_data.FieldMetaData("snapdealitem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
88736
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
88737
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
88738
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
89062
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItem.class)));
88739
      metaDataMap = Collections.unmodifiableMap(tmpMap);
89063
      metaDataMap = Collections.unmodifiableMap(tmpMap);
88740
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAsin_args.class, metaDataMap);
89064
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateSnapdealItem_args.class, metaDataMap);
88741
    }
89065
    }
88742
 
89066
 
88743
    public updateAsin_args() {
89067
    public addOrUpdateSnapdealItem_args() {
88744
    }
89068
    }
88745
 
89069
 
88746
    public updateAsin_args(
89070
    public addOrUpdateSnapdealItem_args(
88747
      Map<Long,Item> item)
89071
      SnapdealItem snapdealitem)
88748
    {
89072
    {
88749
      this();
89073
      this();
88750
      this.item = item;
89074
      this.snapdealitem = snapdealitem;
88751
    }
89075
    }
88752
 
89076
 
88753
    /**
89077
    /**
88754
     * Performs a deep copy on <i>other</i>.
89078
     * Performs a deep copy on <i>other</i>.
88755
     */
89079
     */
88756
    public updateAsin_args(updateAsin_args other) {
89080
    public addOrUpdateSnapdealItem_args(addOrUpdateSnapdealItem_args other) {
88757
      if (other.isSetItem()) {
89081
      if (other.isSetSnapdealitem()) {
88758
        Map<Long,Item> __this__item = new HashMap<Long,Item>();
-
 
88759
        for (Map.Entry<Long, Item> other_element : other.item.entrySet()) {
-
 
88760
 
-
 
88761
          Long other_element_key = other_element.getKey();
-
 
88762
          Item other_element_value = other_element.getValue();
-
 
88763
 
-
 
88764
          Long __this__item_copy_key = other_element_key;
-
 
88765
 
-
 
88766
          Item __this__item_copy_value = new Item(other_element_value);
89082
        this.snapdealitem = new SnapdealItem(other.snapdealitem);
88767
 
-
 
88768
          __this__item.put(__this__item_copy_key, __this__item_copy_value);
-
 
88769
        }
-
 
88770
        this.item = __this__item;
-
 
88771
      }
89083
      }
88772
    }
89084
    }
88773
 
89085
 
88774
    public updateAsin_args deepCopy() {
89086
    public addOrUpdateSnapdealItem_args deepCopy() {
88775
      return new updateAsin_args(this);
89087
      return new addOrUpdateSnapdealItem_args(this);
88776
    }
89088
    }
88777
 
89089
 
88778
    @Override
89090
    @Override
88779
    public void clear() {
89091
    public void clear() {
88780
      this.item = null;
89092
      this.snapdealitem = null;
88781
    }
-
 
88782
 
-
 
88783
    public int getItemSize() {
-
 
88784
      return (this.item == null) ? 0 : this.item.size();
-
 
88785
    }
-
 
88786
 
-
 
88787
    public void putToItem(long key, Item val) {
-
 
88788
      if (this.item == null) {
-
 
88789
        this.item = new HashMap<Long,Item>();
-
 
88790
      }
-
 
88791
      this.item.put(key, val);
-
 
88792
    }
89093
    }
88793
 
89094
 
88794
    public Map<Long,Item> getItem() {
89095
    public SnapdealItem getSnapdealitem() {
88795
      return this.item;
89096
      return this.snapdealitem;
88796
    }
89097
    }
88797
 
89098
 
88798
    public void setItem(Map<Long,Item> item) {
89099
    public void setSnapdealitem(SnapdealItem snapdealitem) {
88799
      this.item = item;
89100
      this.snapdealitem = snapdealitem;
88800
    }
89101
    }
88801
 
89102
 
88802
    public void unsetItem() {
89103
    public void unsetSnapdealitem() {
88803
      this.item = null;
89104
      this.snapdealitem = null;
88804
    }
89105
    }
88805
 
89106
 
88806
    /** Returns true if field item is set (has been assigned a value) and false otherwise */
89107
    /** Returns true if field snapdealitem is set (has been assigned a value) and false otherwise */
88807
    public boolean isSetItem() {
89108
    public boolean isSetSnapdealitem() {
88808
      return this.item != null;
89109
      return this.snapdealitem != null;
88809
    }
89110
    }
88810
 
89111
 
88811
    public void setItemIsSet(boolean value) {
89112
    public void setSnapdealitemIsSet(boolean value) {
88812
      if (!value) {
89113
      if (!value) {
88813
        this.item = null;
89114
        this.snapdealitem = null;
88814
      }
89115
      }
88815
    }
89116
    }
88816
 
89117
 
88817
    public void setFieldValue(_Fields field, Object value) {
89118
    public void setFieldValue(_Fields field, Object value) {
88818
      switch (field) {
89119
      switch (field) {
88819
      case ITEM:
89120
      case SNAPDEALITEM:
88820
        if (value == null) {
89121
        if (value == null) {
88821
          unsetItem();
89122
          unsetSnapdealitem();
88822
        } else {
89123
        } else {
88823
          setItem((Map<Long,Item>)value);
89124
          setSnapdealitem((SnapdealItem)value);
88824
        }
89125
        }
88825
        break;
89126
        break;
88826
 
89127
 
88827
      }
89128
      }
88828
    }
89129
    }
88829
 
89130
 
88830
    public Object getFieldValue(_Fields field) {
89131
    public Object getFieldValue(_Fields field) {
88831
      switch (field) {
89132
      switch (field) {
88832
      case ITEM:
89133
      case SNAPDEALITEM:
88833
        return getItem();
89134
        return getSnapdealitem();
88834
 
89135
 
88835
      }
89136
      }
88836
      throw new IllegalStateException();
89137
      throw new IllegalStateException();
88837
    }
89138
    }
88838
 
89139
 
Line 88841... Line 89142...
88841
      if (field == null) {
89142
      if (field == null) {
88842
        throw new IllegalArgumentException();
89143
        throw new IllegalArgumentException();
88843
      }
89144
      }
88844
 
89145
 
88845
      switch (field) {
89146
      switch (field) {
88846
      case ITEM:
89147
      case SNAPDEALITEM:
88847
        return isSetItem();
89148
        return isSetSnapdealitem();
88848
      }
89149
      }
88849
      throw new IllegalStateException();
89150
      throw new IllegalStateException();
88850
    }
89151
    }
88851
 
89152
 
88852
    @Override
89153
    @Override
88853
    public boolean equals(Object that) {
89154
    public boolean equals(Object that) {
88854
      if (that == null)
89155
      if (that == null)
88855
        return false;
89156
        return false;
88856
      if (that instanceof updateAsin_args)
89157
      if (that instanceof addOrUpdateSnapdealItem_args)
88857
        return this.equals((updateAsin_args)that);
89158
        return this.equals((addOrUpdateSnapdealItem_args)that);
88858
      return false;
89159
      return false;
88859
    }
89160
    }
88860
 
89161
 
88861
    public boolean equals(updateAsin_args that) {
89162
    public boolean equals(addOrUpdateSnapdealItem_args that) {
88862
      if (that == null)
89163
      if (that == null)
88863
        return false;
89164
        return false;
88864
 
89165
 
88865
      boolean this_present_item = true && this.isSetItem();
89166
      boolean this_present_snapdealitem = true && this.isSetSnapdealitem();
88866
      boolean that_present_item = true && that.isSetItem();
89167
      boolean that_present_snapdealitem = true && that.isSetSnapdealitem();
88867
      if (this_present_item || that_present_item) {
89168
      if (this_present_snapdealitem || that_present_snapdealitem) {
88868
        if (!(this_present_item && that_present_item))
89169
        if (!(this_present_snapdealitem && that_present_snapdealitem))
88869
          return false;
89170
          return false;
88870
        if (!this.item.equals(that.item))
89171
        if (!this.snapdealitem.equals(that.snapdealitem))
88871
          return false;
89172
          return false;
88872
      }
89173
      }
88873
 
89174
 
88874
      return true;
89175
      return true;
88875
    }
89176
    }
Line 88877... Line 89178...
88877
    @Override
89178
    @Override
88878
    public int hashCode() {
89179
    public int hashCode() {
88879
      return 0;
89180
      return 0;
88880
    }
89181
    }
88881
 
89182
 
88882
    public int compareTo(updateAsin_args other) {
89183
    public int compareTo(addOrUpdateSnapdealItem_args other) {
88883
      if (!getClass().equals(other.getClass())) {
89184
      if (!getClass().equals(other.getClass())) {
88884
        return getClass().getName().compareTo(other.getClass().getName());
89185
        return getClass().getName().compareTo(other.getClass().getName());
88885
      }
89186
      }
88886
 
89187
 
88887
      int lastComparison = 0;
89188
      int lastComparison = 0;
88888
      updateAsin_args typedOther = (updateAsin_args)other;
89189
      addOrUpdateSnapdealItem_args typedOther = (addOrUpdateSnapdealItem_args)other;
88889
 
89190
 
88890
      lastComparison = Boolean.valueOf(isSetItem()).compareTo(typedOther.isSetItem());
89191
      lastComparison = Boolean.valueOf(isSetSnapdealitem()).compareTo(typedOther.isSetSnapdealitem());
88891
      if (lastComparison != 0) {
89192
      if (lastComparison != 0) {
88892
        return lastComparison;
89193
        return lastComparison;
88893
      }
89194
      }
88894
      if (isSetItem()) {
89195
      if (isSetSnapdealitem()) {
88895
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item, typedOther.item);
89196
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.snapdealitem, typedOther.snapdealitem);
88896
        if (lastComparison != 0) {
89197
        if (lastComparison != 0) {
88897
          return lastComparison;
89198
          return lastComparison;
88898
        }
89199
        }
88899
      }
89200
      }
88900
      return 0;
89201
      return 0;
Line 88912... Line 89213...
88912
        field = iprot.readFieldBegin();
89213
        field = iprot.readFieldBegin();
88913
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
89214
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
88914
          break;
89215
          break;
88915
        }
89216
        }
88916
        switch (field.id) {
89217
        switch (field.id) {
88917
          case 1: // ITEM
89218
          case -1: // SNAPDEALITEM
88918
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
89219
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
88919
              {
-
 
88920
                org.apache.thrift.protocol.TMap _map291 = iprot.readMapBegin();
-
 
88921
                this.item = new HashMap<Long,Item>(2*_map291.size);
-
 
88922
                for (int _i292 = 0; _i292 < _map291.size; ++_i292)
-
 
88923
                {
-
 
88924
                  long _key293; // required
-
 
88925
                  Item _val294; // required
-
 
88926
                  _key293 = iprot.readI64();
-
 
88927
                  _val294 = new Item();
89220
              this.snapdealitem = new SnapdealItem();
88928
                  _val294.read(iprot);
89221
              this.snapdealitem.read(iprot);
88929
                  this.item.put(_key293, _val294);
-
 
88930
                }
-
 
88931
                iprot.readMapEnd();
-
 
88932
              }
-
 
88933
            } else { 
89222
            } else { 
88934
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
89223
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
88935
            }
89224
            }
88936
            break;
89225
            break;
88937
          default:
89226
          default:
Line 88945... Line 89234...
88945
 
89234
 
88946
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
89235
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
88947
      validate();
89236
      validate();
88948
 
89237
 
88949
      oprot.writeStructBegin(STRUCT_DESC);
89238
      oprot.writeStructBegin(STRUCT_DESC);
88950
      if (this.item != null) {
89239
      if (this.snapdealitem != null) {
88951
        oprot.writeFieldBegin(ITEM_FIELD_DESC);
89240
        oprot.writeFieldBegin(SNAPDEALITEM_FIELD_DESC);
88952
        {
-
 
88953
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.item.size()));
-
 
88954
          for (Map.Entry<Long, Item> _iter295 : this.item.entrySet())
-
 
88955
          {
-
 
88956
            oprot.writeI64(_iter295.getKey());
-
 
88957
            _iter295.getValue().write(oprot);
89241
        this.snapdealitem.write(oprot);
88958
          }
-
 
88959
          oprot.writeMapEnd();
-
 
88960
        }
-
 
88961
        oprot.writeFieldEnd();
89242
        oprot.writeFieldEnd();
88962
      }
89243
      }
88963
      oprot.writeFieldStop();
89244
      oprot.writeFieldStop();
88964
      oprot.writeStructEnd();
89245
      oprot.writeStructEnd();
88965
    }
89246
    }
88966
 
89247
 
88967
    @Override
89248
    @Override
88968
    public String toString() {
89249
    public String toString() {
88969
      StringBuilder sb = new StringBuilder("updateAsin_args(");
89250
      StringBuilder sb = new StringBuilder("addOrUpdateSnapdealItem_args(");
88970
      boolean first = true;
89251
      boolean first = true;
88971
 
89252
 
88972
      sb.append("item:");
89253
      sb.append("snapdealitem:");
88973
      if (this.item == null) {
89254
      if (this.snapdealitem == null) {
88974
        sb.append("null");
89255
        sb.append("null");
88975
      } else {
89256
      } else {
88976
        sb.append(this.item);
89257
        sb.append(this.snapdealitem);
88977
      }
89258
      }
88978
      first = false;
89259
      first = false;
88979
      sb.append(")");
89260
      sb.append(")");
88980
      return sb.toString();
89261
      return sb.toString();
88981
    }
89262
    }
Line 89000... Line 89281...
89000
      }
89281
      }
89001
    }
89282
    }
89002
 
89283
 
89003
  }
89284
  }
89004
 
89285
 
89005
  public static class updateAsin_result implements org.apache.thrift.TBase<updateAsin_result, updateAsin_result._Fields>, java.io.Serializable, Cloneable   {
89286
  public static class addOrUpdateSnapdealItem_result implements org.apache.thrift.TBase<addOrUpdateSnapdealItem_result, addOrUpdateSnapdealItem_result._Fields>, java.io.Serializable, Cloneable   {
89006
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAsin_result");
89287
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateSnapdealItem_result");
89007
 
89288
 
-
 
89289
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
89008
 
89290
 
-
 
89291
    private boolean success; // required
89009
 
89292
 
89010
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
89293
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
89011
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
89294
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
89012
;
-
 
-
 
89295
      SUCCESS((short)0, "success");
89013
 
89296
 
89014
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
89297
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
89015
 
89298
 
89016
      static {
89299
      static {
89017
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
89300
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 89022... Line 89305...
89022
      /**
89305
      /**
89023
       * Find the _Fields constant that matches fieldId, or null if its not found.
89306
       * Find the _Fields constant that matches fieldId, or null if its not found.
89024
       */
89307
       */
89025
      public static _Fields findByThriftId(int fieldId) {
89308
      public static _Fields findByThriftId(int fieldId) {
89026
        switch(fieldId) {
89309
        switch(fieldId) {
-
 
89310
          case 0: // SUCCESS
-
 
89311
            return SUCCESS;
89027
          default:
89312
          default:
89028
            return null;
89313
            return null;
89029
        }
89314
        }
89030
      }
89315
      }
89031
 
89316
 
Line 89060... Line 89345...
89060
 
89345
 
89061
      public String getFieldName() {
89346
      public String getFieldName() {
89062
        return _fieldName;
89347
        return _fieldName;
89063
      }
89348
      }
89064
    }
89349
    }
-
 
89350
 
-
 
89351
    // isset id assignments
-
 
89352
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
89353
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
89354
 
89065
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
89355
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
89066
    static {
89356
    static {
89067
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
89357
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
89358
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
89359
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
89068
      metaDataMap = Collections.unmodifiableMap(tmpMap);
89360
      metaDataMap = Collections.unmodifiableMap(tmpMap);
89069
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAsin_result.class, metaDataMap);
89361
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateSnapdealItem_result.class, metaDataMap);
89070
    }
89362
    }
89071
 
89363
 
89072
    public updateAsin_result() {
89364
    public addOrUpdateSnapdealItem_result() {
-
 
89365
    }
-
 
89366
 
-
 
89367
    public addOrUpdateSnapdealItem_result(
-
 
89368
      boolean success)
-
 
89369
    {
-
 
89370
      this();
-
 
89371
      this.success = success;
-
 
89372
      setSuccessIsSet(true);
89073
    }
89373
    }
89074
 
89374
 
89075
    /**
89375
    /**
89076
     * Performs a deep copy on <i>other</i>.
89376
     * Performs a deep copy on <i>other</i>.
89077
     */
89377
     */
89078
    public updateAsin_result(updateAsin_result other) {
89378
    public addOrUpdateSnapdealItem_result(addOrUpdateSnapdealItem_result other) {
-
 
89379
      __isset_bit_vector.clear();
-
 
89380
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
89381
      this.success = other.success;
89079
    }
89382
    }
89080
 
89383
 
89081
    public updateAsin_result deepCopy() {
89384
    public addOrUpdateSnapdealItem_result deepCopy() {
89082
      return new updateAsin_result(this);
89385
      return new addOrUpdateSnapdealItem_result(this);
89083
    }
89386
    }
89084
 
89387
 
89085
    @Override
89388
    @Override
89086
    public void clear() {
89389
    public void clear() {
-
 
89390
      setSuccessIsSet(false);
-
 
89391
      this.success = false;
-
 
89392
    }
-
 
89393
 
-
 
89394
    public boolean isSuccess() {
-
 
89395
      return this.success;
-
 
89396
    }
-
 
89397
 
-
 
89398
    public void setSuccess(boolean success) {
-
 
89399
      this.success = success;
-
 
89400
      setSuccessIsSet(true);
-
 
89401
    }
-
 
89402
 
-
 
89403
    public void unsetSuccess() {
-
 
89404
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
89405
    }
-
 
89406
 
-
 
89407
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
89408
    public boolean isSetSuccess() {
-
 
89409
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
89410
    }
-
 
89411
 
-
 
89412
    public void setSuccessIsSet(boolean value) {
-
 
89413
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
89087
    }
89414
    }
89088
 
89415
 
89089
    public void setFieldValue(_Fields field, Object value) {
89416
    public void setFieldValue(_Fields field, Object value) {
89090
      switch (field) {
89417
      switch (field) {
-
 
89418
      case SUCCESS:
-
 
89419
        if (value == null) {
-
 
89420
          unsetSuccess();
-
 
89421
        } else {
-
 
89422
          setSuccess((Boolean)value);
-
 
89423
        }
-
 
89424
        break;
-
 
89425
 
89091
      }
89426
      }
89092
    }
89427
    }
89093
 
89428
 
89094
    public Object getFieldValue(_Fields field) {
89429
    public Object getFieldValue(_Fields field) {
89095
      switch (field) {
89430
      switch (field) {
-
 
89431
      case SUCCESS:
-
 
89432
        return Boolean.valueOf(isSuccess());
-
 
89433
 
89096
      }
89434
      }
89097
      throw new IllegalStateException();
89435
      throw new IllegalStateException();
89098
    }
89436
    }
89099
 
89437
 
89100
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
89438
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 89102... Line 89440...
89102
      if (field == null) {
89440
      if (field == null) {
89103
        throw new IllegalArgumentException();
89441
        throw new IllegalArgumentException();
89104
      }
89442
      }
89105
 
89443
 
89106
      switch (field) {
89444
      switch (field) {
-
 
89445
      case SUCCESS:
-
 
89446
        return isSetSuccess();
89107
      }
89447
      }
89108
      throw new IllegalStateException();
89448
      throw new IllegalStateException();
89109
    }
89449
    }
89110
 
89450
 
89111
    @Override
89451
    @Override
89112
    public boolean equals(Object that) {
89452
    public boolean equals(Object that) {
89113
      if (that == null)
89453
      if (that == null)
89114
        return false;
89454
        return false;
89115
      if (that instanceof updateAsin_result)
89455
      if (that instanceof addOrUpdateSnapdealItem_result)
89116
        return this.equals((updateAsin_result)that);
89456
        return this.equals((addOrUpdateSnapdealItem_result)that);
89117
      return false;
89457
      return false;
89118
    }
89458
    }
89119
 
89459
 
89120
    public boolean equals(updateAsin_result that) {
89460
    public boolean equals(addOrUpdateSnapdealItem_result that) {
89121
      if (that == null)
89461
      if (that == null)
89122
        return false;
89462
        return false;
89123
 
89463
 
-
 
89464
      boolean this_present_success = true;
-
 
89465
      boolean that_present_success = true;
-
 
89466
      if (this_present_success || that_present_success) {
-
 
89467
        if (!(this_present_success && that_present_success))
-
 
89468
          return false;
-
 
89469
        if (this.success != that.success)
-
 
89470
          return false;
-
 
89471
      }
-
 
89472
 
89124
      return true;
89473
      return true;
89125
    }
89474
    }
89126
 
89475
 
89127
    @Override
89476
    @Override
89128
    public int hashCode() {
89477
    public int hashCode() {
89129
      return 0;
89478
      return 0;
89130
    }
89479
    }
89131
 
89480
 
89132
    public int compareTo(updateAsin_result other) {
89481
    public int compareTo(addOrUpdateSnapdealItem_result other) {
89133
      if (!getClass().equals(other.getClass())) {
89482
      if (!getClass().equals(other.getClass())) {
89134
        return getClass().getName().compareTo(other.getClass().getName());
89483
        return getClass().getName().compareTo(other.getClass().getName());
89135
      }
89484
      }
89136
 
89485
 
89137
      int lastComparison = 0;
89486
      int lastComparison = 0;
89138
      updateAsin_result typedOther = (updateAsin_result)other;
89487
      addOrUpdateSnapdealItem_result typedOther = (addOrUpdateSnapdealItem_result)other;
89139
 
89488
 
-
 
89489
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
89490
      if (lastComparison != 0) {
-
 
89491
        return lastComparison;
-
 
89492
      }
-
 
89493
      if (isSetSuccess()) {
-
 
89494
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
89495
        if (lastComparison != 0) {
-
 
89496
          return lastComparison;
-
 
89497
        }
-
 
89498
      }
89140
      return 0;
89499
      return 0;
89141
    }
89500
    }
89142
 
89501
 
89143
    public _Fields fieldForId(int fieldId) {
89502
    public _Fields fieldForId(int fieldId) {
89144
      return _Fields.findByThriftId(fieldId);
89503
      return _Fields.findByThriftId(fieldId);
Line 89152... Line 89511...
89152
        field = iprot.readFieldBegin();
89511
        field = iprot.readFieldBegin();
89153
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
89512
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
89154
          break;
89513
          break;
89155
        }
89514
        }
89156
        switch (field.id) {
89515
        switch (field.id) {
-
 
89516
          case 0: // SUCCESS
-
 
89517
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
89518
              this.success = iprot.readBool();
-
 
89519
              setSuccessIsSet(true);
-
 
89520
            } else { 
-
 
89521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
89522
            }
-
 
89523
            break;
89157
          default:
89524
          default:
89158
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
89525
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
89159
        }
89526
        }
89160
        iprot.readFieldEnd();
89527
        iprot.readFieldEnd();
89161
      }
89528
      }
Line 89164... Line 89531...
89164
    }
89531
    }
89165
 
89532
 
89166
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
89533
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
89167
      oprot.writeStructBegin(STRUCT_DESC);
89534
      oprot.writeStructBegin(STRUCT_DESC);
89168
 
89535
 
-
 
89536
      if (this.isSetSuccess()) {
-
 
89537
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
89538
        oprot.writeBool(this.success);
-
 
89539
        oprot.writeFieldEnd();
-
 
89540
      }
89169
      oprot.writeFieldStop();
89541
      oprot.writeFieldStop();
89170
      oprot.writeStructEnd();
89542
      oprot.writeStructEnd();
89171
    }
89543
    }
89172
 
89544
 
89173
    @Override
89545
    @Override
89174
    public String toString() {
89546
    public String toString() {
89175
      StringBuilder sb = new StringBuilder("updateAsin_result(");
89547
      StringBuilder sb = new StringBuilder("addOrUpdateSnapdealItem_result(");
89176
      boolean first = true;
89548
      boolean first = true;
89177
 
89549
 
-
 
89550
      sb.append("success:");
-
 
89551
      sb.append(this.success);
-
 
89552
      first = false;
89178
      sb.append(")");
89553
      sb.append(")");
89179
      return sb.toString();
89554
      return sb.toString();
89180
    }
89555
    }
89181
 
89556
 
89182
    public void validate() throws org.apache.thrift.TException {
89557
    public void validate() throws org.apache.thrift.TException {
Line 89199... Line 89574...
89199
      }
89574
      }
89200
    }
89575
    }
89201
 
89576
 
89202
  }
89577
  }
89203
 
89578
 
89204
  public static class addOrUpdateSnapdealItem_args implements org.apache.thrift.TBase<addOrUpdateSnapdealItem_args, addOrUpdateSnapdealItem_args._Fields>, java.io.Serializable, Cloneable   {
89579
  public static class getSnapdealItem_args implements org.apache.thrift.TBase<getSnapdealItem_args, getSnapdealItem_args._Fields>, java.io.Serializable, Cloneable   {
89205
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateSnapdealItem_args");
89580
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItem_args");
89206
 
89581
 
89207
    private static final org.apache.thrift.protocol.TField SNAPDEALITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("snapdealitem", org.apache.thrift.protocol.TType.STRUCT, (short)-1);
89582
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
89208
 
89583
 
89209
    private SnapdealItem snapdealitem; // required
89584
    private long item_id; // required
89210
 
89585
 
89211
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
89586
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
89212
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
89587
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
89213
      SNAPDEALITEM((short)-1, "snapdealitem");
89588
      ITEM_ID((short)1, "item_id");
89214
 
89589
 
89215
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
89590
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
89216
 
89591
 
89217
      static {
89592
      static {
89218
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
89593
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 89223... Line 89598...
89223
      /**
89598
      /**
89224
       * Find the _Fields constant that matches fieldId, or null if its not found.
89599
       * Find the _Fields constant that matches fieldId, or null if its not found.
89225
       */
89600
       */
89226
      public static _Fields findByThriftId(int fieldId) {
89601
      public static _Fields findByThriftId(int fieldId) {
89227
        switch(fieldId) {
89602
        switch(fieldId) {
89228
          case -1: // SNAPDEALITEM
89603
          case 1: // ITEM_ID
89229
            return SNAPDEALITEM;
89604
            return ITEM_ID;
89230
          default:
89605
          default:
89231
            return null;
89606
            return null;
89232
        }
89607
        }
89233
      }
89608
      }
89234
 
89609
 
Line 89265... Line 89640...
89265
        return _fieldName;
89640
        return _fieldName;
89266
      }
89641
      }
89267
    }
89642
    }
89268
 
89643
 
89269
    // isset id assignments
89644
    // isset id assignments
-
 
89645
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
89646
    private BitSet __isset_bit_vector = new BitSet(1);
89270
 
89647
 
89271
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
89648
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
89272
    static {
89649
    static {
89273
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
89650
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
89274
      tmpMap.put(_Fields.SNAPDEALITEM, new org.apache.thrift.meta_data.FieldMetaData("snapdealitem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
89651
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
89275
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItem.class)));
89652
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
89276
      metaDataMap = Collections.unmodifiableMap(tmpMap);
89653
      metaDataMap = Collections.unmodifiableMap(tmpMap);
89277
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateSnapdealItem_args.class, metaDataMap);
89654
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItem_args.class, metaDataMap);
89278
    }
89655
    }
89279
 
89656
 
89280
    public addOrUpdateSnapdealItem_args() {
89657
    public getSnapdealItem_args() {
89281
    }
89658
    }
89282
 
89659
 
89283
    public addOrUpdateSnapdealItem_args(
89660
    public getSnapdealItem_args(
89284
      SnapdealItem snapdealitem)
89661
      long item_id)
89285
    {
89662
    {
89286
      this();
89663
      this();
89287
      this.snapdealitem = snapdealitem;
89664
      this.item_id = item_id;
-
 
89665
      setItem_idIsSet(true);
89288
    }
89666
    }
89289
 
89667
 
89290
    /**
89668
    /**
89291
     * Performs a deep copy on <i>other</i>.
89669
     * Performs a deep copy on <i>other</i>.
89292
     */
89670
     */
89293
    public addOrUpdateSnapdealItem_args(addOrUpdateSnapdealItem_args other) {
89671
    public getSnapdealItem_args(getSnapdealItem_args other) {
89294
      if (other.isSetSnapdealitem()) {
89672
      __isset_bit_vector.clear();
89295
        this.snapdealitem = new SnapdealItem(other.snapdealitem);
89673
      __isset_bit_vector.or(other.__isset_bit_vector);
89296
      }
89674
      this.item_id = other.item_id;
89297
    }
89675
    }
89298
 
89676
 
89299
    public addOrUpdateSnapdealItem_args deepCopy() {
89677
    public getSnapdealItem_args deepCopy() {
89300
      return new addOrUpdateSnapdealItem_args(this);
89678
      return new getSnapdealItem_args(this);
89301
    }
89679
    }
89302
 
89680
 
89303
    @Override
89681
    @Override
89304
    public void clear() {
89682
    public void clear() {
-
 
89683
      setItem_idIsSet(false);
89305
      this.snapdealitem = null;
89684
      this.item_id = 0;
89306
    }
89685
    }
89307
 
89686
 
89308
    public SnapdealItem getSnapdealitem() {
89687
    public long getItem_id() {
89309
      return this.snapdealitem;
89688
      return this.item_id;
89310
    }
89689
    }
89311
 
89690
 
89312
    public void setSnapdealitem(SnapdealItem snapdealitem) {
89691
    public void setItem_id(long item_id) {
89313
      this.snapdealitem = snapdealitem;
89692
      this.item_id = item_id;
-
 
89693
      setItem_idIsSet(true);
89314
    }
89694
    }
89315
 
89695
 
89316
    public void unsetSnapdealitem() {
89696
    public void unsetItem_id() {
89317
      this.snapdealitem = null;
89697
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
89318
    }
89698
    }
89319
 
89699
 
89320
    /** Returns true if field snapdealitem is set (has been assigned a value) and false otherwise */
89700
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
89321
    public boolean isSetSnapdealitem() {
89701
    public boolean isSetItem_id() {
89322
      return this.snapdealitem != null;
89702
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
89323
    }
89703
    }
89324
 
89704
 
89325
    public void setSnapdealitemIsSet(boolean value) {
89705
    public void setItem_idIsSet(boolean value) {
89326
      if (!value) {
-
 
89327
        this.snapdealitem = null;
89706
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
89328
      }
-
 
89329
    }
89707
    }
89330
 
89708
 
89331
    public void setFieldValue(_Fields field, Object value) {
89709
    public void setFieldValue(_Fields field, Object value) {
89332
      switch (field) {
89710
      switch (field) {
89333
      case SNAPDEALITEM:
89711
      case ITEM_ID:
89334
        if (value == null) {
89712
        if (value == null) {
89335
          unsetSnapdealitem();
89713
          unsetItem_id();
89336
        } else {
89714
        } else {
89337
          setSnapdealitem((SnapdealItem)value);
89715
          setItem_id((Long)value);
89338
        }
89716
        }
89339
        break;
89717
        break;
89340
 
89718
 
89341
      }
89719
      }
89342
    }
89720
    }
89343
 
89721
 
89344
    public Object getFieldValue(_Fields field) {
89722
    public Object getFieldValue(_Fields field) {
89345
      switch (field) {
89723
      switch (field) {
89346
      case SNAPDEALITEM:
89724
      case ITEM_ID:
89347
        return getSnapdealitem();
89725
        return Long.valueOf(getItem_id());
89348
 
89726
 
89349
      }
89727
      }
89350
      throw new IllegalStateException();
89728
      throw new IllegalStateException();
89351
    }
89729
    }
89352
 
89730
 
Line 89355... Line 89733...
89355
      if (field == null) {
89733
      if (field == null) {
89356
        throw new IllegalArgumentException();
89734
        throw new IllegalArgumentException();
89357
      }
89735
      }
89358
 
89736
 
89359
      switch (field) {
89737
      switch (field) {
89360
      case SNAPDEALITEM:
89738
      case ITEM_ID:
89361
        return isSetSnapdealitem();
89739
        return isSetItem_id();
89362
      }
89740
      }
89363
      throw new IllegalStateException();
89741
      throw new IllegalStateException();
89364
    }
89742
    }
89365
 
89743
 
89366
    @Override
89744
    @Override
89367
    public boolean equals(Object that) {
89745
    public boolean equals(Object that) {
89368
      if (that == null)
89746
      if (that == null)
89369
        return false;
89747
        return false;
89370
      if (that instanceof addOrUpdateSnapdealItem_args)
89748
      if (that instanceof getSnapdealItem_args)
89371
        return this.equals((addOrUpdateSnapdealItem_args)that);
89749
        return this.equals((getSnapdealItem_args)that);
89372
      return false;
89750
      return false;
89373
    }
89751
    }
89374
 
89752
 
89375
    public boolean equals(addOrUpdateSnapdealItem_args that) {
89753
    public boolean equals(getSnapdealItem_args that) {
89376
      if (that == null)
89754
      if (that == null)
89377
        return false;
89755
        return false;
89378
 
89756
 
89379
      boolean this_present_snapdealitem = true && this.isSetSnapdealitem();
89757
      boolean this_present_item_id = true;
89380
      boolean that_present_snapdealitem = true && that.isSetSnapdealitem();
89758
      boolean that_present_item_id = true;
89381
      if (this_present_snapdealitem || that_present_snapdealitem) {
89759
      if (this_present_item_id || that_present_item_id) {
89382
        if (!(this_present_snapdealitem && that_present_snapdealitem))
89760
        if (!(this_present_item_id && that_present_item_id))
89383
          return false;
89761
          return false;
89384
        if (!this.snapdealitem.equals(that.snapdealitem))
89762
        if (this.item_id != that.item_id)
89385
          return false;
89763
          return false;
89386
      }
89764
      }
89387
 
89765
 
89388
      return true;
89766
      return true;
89389
    }
89767
    }
Line 89391... Line 89769...
89391
    @Override
89769
    @Override
89392
    public int hashCode() {
89770
    public int hashCode() {
89393
      return 0;
89771
      return 0;
89394
    }
89772
    }
89395
 
89773
 
89396
    public int compareTo(addOrUpdateSnapdealItem_args other) {
89774
    public int compareTo(getSnapdealItem_args other) {
89397
      if (!getClass().equals(other.getClass())) {
89775
      if (!getClass().equals(other.getClass())) {
89398
        return getClass().getName().compareTo(other.getClass().getName());
89776
        return getClass().getName().compareTo(other.getClass().getName());
89399
      }
89777
      }
89400
 
89778
 
89401
      int lastComparison = 0;
89779
      int lastComparison = 0;
89402
      addOrUpdateSnapdealItem_args typedOther = (addOrUpdateSnapdealItem_args)other;
89780
      getSnapdealItem_args typedOther = (getSnapdealItem_args)other;
89403
 
89781
 
89404
      lastComparison = Boolean.valueOf(isSetSnapdealitem()).compareTo(typedOther.isSetSnapdealitem());
89782
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
89405
      if (lastComparison != 0) {
89783
      if (lastComparison != 0) {
89406
        return lastComparison;
89784
        return lastComparison;
89407
      }
89785
      }
89408
      if (isSetSnapdealitem()) {
89786
      if (isSetItem_id()) {
89409
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.snapdealitem, typedOther.snapdealitem);
89787
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
89410
        if (lastComparison != 0) {
89788
        if (lastComparison != 0) {
89411
          return lastComparison;
89789
          return lastComparison;
89412
        }
89790
        }
89413
      }
89791
      }
89414
      return 0;
89792
      return 0;
Line 89426... Line 89804...
89426
        field = iprot.readFieldBegin();
89804
        field = iprot.readFieldBegin();
89427
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
89805
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
89428
          break;
89806
          break;
89429
        }
89807
        }
89430
        switch (field.id) {
89808
        switch (field.id) {
89431
          case -1: // SNAPDEALITEM
89809
          case 1: // ITEM_ID
89432
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
89810
            if (field.type == org.apache.thrift.protocol.TType.I64) {
89433
              this.snapdealitem = new SnapdealItem();
89811
              this.item_id = iprot.readI64();
89434
              this.snapdealitem.read(iprot);
89812
              setItem_idIsSet(true);
89435
            } else { 
89813
            } else { 
89436
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
89814
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
89437
            }
89815
            }
89438
            break;
89816
            break;
89439
          default:
89817
          default:
Line 89447... Line 89825...
89447
 
89825
 
89448
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
89826
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
89449
      validate();
89827
      validate();
89450
 
89828
 
89451
      oprot.writeStructBegin(STRUCT_DESC);
89829
      oprot.writeStructBegin(STRUCT_DESC);
89452
      if (this.snapdealitem != null) {
-
 
89453
        oprot.writeFieldBegin(SNAPDEALITEM_FIELD_DESC);
89830
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
89454
        this.snapdealitem.write(oprot);
89831
      oprot.writeI64(this.item_id);
89455
        oprot.writeFieldEnd();
89832
      oprot.writeFieldEnd();
89456
      }
-
 
89457
      oprot.writeFieldStop();
89833
      oprot.writeFieldStop();
89458
      oprot.writeStructEnd();
89834
      oprot.writeStructEnd();
89459
    }
89835
    }
89460
 
89836
 
89461
    @Override
89837
    @Override
89462
    public String toString() {
89838
    public String toString() {
89463
      StringBuilder sb = new StringBuilder("addOrUpdateSnapdealItem_args(");
89839
      StringBuilder sb = new StringBuilder("getSnapdealItem_args(");
89464
      boolean first = true;
89840
      boolean first = true;
89465
 
89841
 
89466
      sb.append("snapdealitem:");
89842
      sb.append("item_id:");
89467
      if (this.snapdealitem == null) {
-
 
89468
        sb.append("null");
-
 
89469
      } else {
-
 
89470
        sb.append(this.snapdealitem);
89843
      sb.append(this.item_id);
89471
      }
-
 
89472
      first = false;
89844
      first = false;
89473
      sb.append(")");
89845
      sb.append(")");
89474
      return sb.toString();
89846
      return sb.toString();
89475
    }
89847
    }
89476
 
89848
 
Line 89486... Line 89858...
89486
      }
89858
      }
89487
    }
89859
    }
89488
 
89860
 
89489
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
89861
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
89490
      try {
89862
      try {
-
 
89863
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
89864
        __isset_bit_vector = new BitSet(1);
89491
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
89865
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
89492
      } catch (org.apache.thrift.TException te) {
89866
      } catch (org.apache.thrift.TException te) {
89493
        throw new java.io.IOException(te);
89867
        throw new java.io.IOException(te);
89494
      }
89868
      }
89495
    }
89869
    }
89496
 
89870
 
89497
  }
89871
  }
89498
 
89872
 
89499
  public static class addOrUpdateSnapdealItem_result implements org.apache.thrift.TBase<addOrUpdateSnapdealItem_result, addOrUpdateSnapdealItem_result._Fields>, java.io.Serializable, Cloneable   {
89873
  public static class getSnapdealItem_result implements org.apache.thrift.TBase<getSnapdealItem_result, getSnapdealItem_result._Fields>, java.io.Serializable, Cloneable   {
89500
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateSnapdealItem_result");
89874
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItem_result");
89501
 
89875
 
89502
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
89876
    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);
89503
 
89877
 
89504
    private boolean success; // required
89878
    private SnapdealItem success; // required
89505
 
89879
 
89506
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
89880
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
89507
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
89881
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
89508
      SUCCESS((short)0, "success");
89882
      SUCCESS((short)0, "success");
89509
 
89883
 
Line 89560... Line 89934...
89560
        return _fieldName;
89934
        return _fieldName;
89561
      }
89935
      }
89562
    }
89936
    }
89563
 
89937
 
89564
    // isset id assignments
89938
    // isset id assignments
89565
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
89566
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
89567
 
89939
 
89568
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
89940
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
89569
    static {
89941
    static {
89570
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
89942
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
89571
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
89943
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
89572
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
89944
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItem.class)));
89573
      metaDataMap = Collections.unmodifiableMap(tmpMap);
89945
      metaDataMap = Collections.unmodifiableMap(tmpMap);
89574
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateSnapdealItem_result.class, metaDataMap);
89946
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItem_result.class, metaDataMap);
89575
    }
89947
    }
89576
 
89948
 
89577
    public addOrUpdateSnapdealItem_result() {
89949
    public getSnapdealItem_result() {
89578
    }
89950
    }
89579
 
89951
 
89580
    public addOrUpdateSnapdealItem_result(
89952
    public getSnapdealItem_result(
89581
      boolean success)
89953
      SnapdealItem success)
89582
    {
89954
    {
89583
      this();
89955
      this();
89584
      this.success = success;
89956
      this.success = success;
89585
      setSuccessIsSet(true);
-
 
89586
    }
89957
    }
89587
 
89958
 
89588
    /**
89959
    /**
89589
     * Performs a deep copy on <i>other</i>.
89960
     * Performs a deep copy on <i>other</i>.
89590
     */
89961
     */
89591
    public addOrUpdateSnapdealItem_result(addOrUpdateSnapdealItem_result other) {
89962
    public getSnapdealItem_result(getSnapdealItem_result other) {
89592
      __isset_bit_vector.clear();
89963
      if (other.isSetSuccess()) {
89593
      __isset_bit_vector.or(other.__isset_bit_vector);
89964
        this.success = new SnapdealItem(other.success);
89594
      this.success = other.success;
89965
      }
89595
    }
89966
    }
89596
 
89967
 
89597
    public addOrUpdateSnapdealItem_result deepCopy() {
89968
    public getSnapdealItem_result deepCopy() {
89598
      return new addOrUpdateSnapdealItem_result(this);
89969
      return new getSnapdealItem_result(this);
89599
    }
89970
    }
89600
 
89971
 
89601
    @Override
89972
    @Override
89602
    public void clear() {
89973
    public void clear() {
89603
      setSuccessIsSet(false);
-
 
89604
      this.success = false;
89974
      this.success = null;
89605
    }
89975
    }
89606
 
89976
 
89607
    public boolean isSuccess() {
89977
    public SnapdealItem getSuccess() {
89608
      return this.success;
89978
      return this.success;
89609
    }
89979
    }
89610
 
89980
 
89611
    public void setSuccess(boolean success) {
89981
    public void setSuccess(SnapdealItem success) {
89612
      this.success = success;
89982
      this.success = success;
89613
      setSuccessIsSet(true);
-
 
89614
    }
89983
    }
89615
 
89984
 
89616
    public void unsetSuccess() {
89985
    public void unsetSuccess() {
89617
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
89986
      this.success = null;
89618
    }
89987
    }
89619
 
89988
 
89620
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
89989
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
89621
    public boolean isSetSuccess() {
89990
    public boolean isSetSuccess() {
89622
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
89991
      return this.success != null;
89623
    }
89992
    }
89624
 
89993
 
89625
    public void setSuccessIsSet(boolean value) {
89994
    public void setSuccessIsSet(boolean value) {
-
 
89995
      if (!value) {
89626
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
89996
        this.success = null;
-
 
89997
      }
89627
    }
89998
    }
89628
 
89999
 
89629
    public void setFieldValue(_Fields field, Object value) {
90000
    public void setFieldValue(_Fields field, Object value) {
89630
      switch (field) {
90001
      switch (field) {
89631
      case SUCCESS:
90002
      case SUCCESS:
89632
        if (value == null) {
90003
        if (value == null) {
89633
          unsetSuccess();
90004
          unsetSuccess();
89634
        } else {
90005
        } else {
89635
          setSuccess((Boolean)value);
90006
          setSuccess((SnapdealItem)value);
89636
        }
90007
        }
89637
        break;
90008
        break;
89638
 
90009
 
89639
      }
90010
      }
89640
    }
90011
    }
89641
 
90012
 
89642
    public Object getFieldValue(_Fields field) {
90013
    public Object getFieldValue(_Fields field) {
89643
      switch (field) {
90014
      switch (field) {
89644
      case SUCCESS:
90015
      case SUCCESS:
89645
        return Boolean.valueOf(isSuccess());
90016
        return getSuccess();
89646
 
90017
 
89647
      }
90018
      }
89648
      throw new IllegalStateException();
90019
      throw new IllegalStateException();
89649
    }
90020
    }
89650
 
90021
 
Line 89663... Line 90034...
89663
 
90034
 
89664
    @Override
90035
    @Override
89665
    public boolean equals(Object that) {
90036
    public boolean equals(Object that) {
89666
      if (that == null)
90037
      if (that == null)
89667
        return false;
90038
        return false;
89668
      if (that instanceof addOrUpdateSnapdealItem_result)
90039
      if (that instanceof getSnapdealItem_result)
89669
        return this.equals((addOrUpdateSnapdealItem_result)that);
90040
        return this.equals((getSnapdealItem_result)that);
89670
      return false;
90041
      return false;
89671
    }
90042
    }
89672
 
90043
 
89673
    public boolean equals(addOrUpdateSnapdealItem_result that) {
90044
    public boolean equals(getSnapdealItem_result that) {
89674
      if (that == null)
90045
      if (that == null)
89675
        return false;
90046
        return false;
89676
 
90047
 
89677
      boolean this_present_success = true;
90048
      boolean this_present_success = true && this.isSetSuccess();
89678
      boolean that_present_success = true;
90049
      boolean that_present_success = true && that.isSetSuccess();
89679
      if (this_present_success || that_present_success) {
90050
      if (this_present_success || that_present_success) {
89680
        if (!(this_present_success && that_present_success))
90051
        if (!(this_present_success && that_present_success))
89681
          return false;
90052
          return false;
89682
        if (this.success != that.success)
90053
        if (!this.success.equals(that.success))
89683
          return false;
90054
          return false;
89684
      }
90055
      }
89685
 
90056
 
89686
      return true;
90057
      return true;
89687
    }
90058
    }
Line 89689... Line 90060...
89689
    @Override
90060
    @Override
89690
    public int hashCode() {
90061
    public int hashCode() {
89691
      return 0;
90062
      return 0;
89692
    }
90063
    }
89693
 
90064
 
89694
    public int compareTo(addOrUpdateSnapdealItem_result other) {
90065
    public int compareTo(getSnapdealItem_result other) {
89695
      if (!getClass().equals(other.getClass())) {
90066
      if (!getClass().equals(other.getClass())) {
89696
        return getClass().getName().compareTo(other.getClass().getName());
90067
        return getClass().getName().compareTo(other.getClass().getName());
89697
      }
90068
      }
89698
 
90069
 
89699
      int lastComparison = 0;
90070
      int lastComparison = 0;
89700
      addOrUpdateSnapdealItem_result typedOther = (addOrUpdateSnapdealItem_result)other;
90071
      getSnapdealItem_result typedOther = (getSnapdealItem_result)other;
89701
 
90072
 
89702
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
90073
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
89703
      if (lastComparison != 0) {
90074
      if (lastComparison != 0) {
89704
        return lastComparison;
90075
        return lastComparison;
89705
      }
90076
      }
Line 89725... Line 90096...
89725
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
90096
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
89726
          break;
90097
          break;
89727
        }
90098
        }
89728
        switch (field.id) {
90099
        switch (field.id) {
89729
          case 0: // SUCCESS
90100
          case 0: // SUCCESS
89730
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
90101
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
89731
              this.success = iprot.readBool();
90102
              this.success = new SnapdealItem();
89732
              setSuccessIsSet(true);
90103
              this.success.read(iprot);
89733
            } else { 
90104
            } else { 
89734
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
90105
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
89735
            }
90106
            }
89736
            break;
90107
            break;
89737
          default:
90108
          default:
Line 89746... Line 90117...
89746
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
90117
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
89747
      oprot.writeStructBegin(STRUCT_DESC);
90118
      oprot.writeStructBegin(STRUCT_DESC);
89748
 
90119
 
89749
      if (this.isSetSuccess()) {
90120
      if (this.isSetSuccess()) {
89750
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
90121
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
89751
        oprot.writeBool(this.success);
90122
        this.success.write(oprot);
89752
        oprot.writeFieldEnd();
90123
        oprot.writeFieldEnd();
89753
      }
90124
      }
89754
      oprot.writeFieldStop();
90125
      oprot.writeFieldStop();
89755
      oprot.writeStructEnd();
90126
      oprot.writeStructEnd();
89756
    }
90127
    }
89757
 
90128
 
89758
    @Override
90129
    @Override
89759
    public String toString() {
90130
    public String toString() {
89760
      StringBuilder sb = new StringBuilder("addOrUpdateSnapdealItem_result(");
90131
      StringBuilder sb = new StringBuilder("getSnapdealItem_result(");
89761
      boolean first = true;
90132
      boolean first = true;
89762
 
90133
 
89763
      sb.append("success:");
90134
      sb.append("success:");
-
 
90135
      if (this.success == null) {
-
 
90136
        sb.append("null");
-
 
90137
      } else {
89764
      sb.append(this.success);
90138
        sb.append(this.success);
-
 
90139
      }
89765
      first = false;
90140
      first = false;
89766
      sb.append(")");
90141
      sb.append(")");
89767
      return sb.toString();
90142
      return sb.toString();
89768
    }
90143
    }
89769
 
90144
 
Line 89787... Line 90162...
89787
      }
90162
      }
89788
    }
90163
    }
89789
 
90164
 
89790
  }
90165
  }
89791
 
90166
 
89792
  public static class getSnapdealItem_args implements org.apache.thrift.TBase<getSnapdealItem_args, getSnapdealItem_args._Fields>, java.io.Serializable, Cloneable   {
90167
  public static class getSnapdealItemDetails_args implements org.apache.thrift.TBase<getSnapdealItemDetails_args, getSnapdealItemDetails_args._Fields>, java.io.Serializable, Cloneable   {
89793
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItem_args");
90168
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItemDetails_args");
89794
 
90169
 
89795
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
90170
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
89796
 
90171
 
89797
    private long item_id; // required
90172
    private long item_id; // required
89798
 
90173
 
Line 89862... Line 90237...
89862
    static {
90237
    static {
89863
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
90238
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
89864
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
90239
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
89865
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
90240
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
89866
      metaDataMap = Collections.unmodifiableMap(tmpMap);
90241
      metaDataMap = Collections.unmodifiableMap(tmpMap);
89867
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItem_args.class, metaDataMap);
90242
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItemDetails_args.class, metaDataMap);
89868
    }
90243
    }
89869
 
90244
 
89870
    public getSnapdealItem_args() {
90245
    public getSnapdealItemDetails_args() {
89871
    }
90246
    }
89872
 
90247
 
89873
    public getSnapdealItem_args(
90248
    public getSnapdealItemDetails_args(
89874
      long item_id)
90249
      long item_id)
89875
    {
90250
    {
89876
      this();
90251
      this();
89877
      this.item_id = item_id;
90252
      this.item_id = item_id;
89878
      setItem_idIsSet(true);
90253
      setItem_idIsSet(true);
89879
    }
90254
    }
89880
 
90255
 
89881
    /**
90256
    /**
89882
     * Performs a deep copy on <i>other</i>.
90257
     * Performs a deep copy on <i>other</i>.
89883
     */
90258
     */
89884
    public getSnapdealItem_args(getSnapdealItem_args other) {
90259
    public getSnapdealItemDetails_args(getSnapdealItemDetails_args other) {
89885
      __isset_bit_vector.clear();
90260
      __isset_bit_vector.clear();
89886
      __isset_bit_vector.or(other.__isset_bit_vector);
90261
      __isset_bit_vector.or(other.__isset_bit_vector);
89887
      this.item_id = other.item_id;
90262
      this.item_id = other.item_id;
89888
    }
90263
    }
89889
 
90264
 
89890
    public getSnapdealItem_args deepCopy() {
90265
    public getSnapdealItemDetails_args deepCopy() {
89891
      return new getSnapdealItem_args(this);
90266
      return new getSnapdealItemDetails_args(this);
89892
    }
90267
    }
89893
 
90268
 
89894
    @Override
90269
    @Override
89895
    public void clear() {
90270
    public void clear() {
89896
      setItem_idIsSet(false);
90271
      setItem_idIsSet(false);
Line 89956... Line 90331...
89956
 
90331
 
89957
    @Override
90332
    @Override
89958
    public boolean equals(Object that) {
90333
    public boolean equals(Object that) {
89959
      if (that == null)
90334
      if (that == null)
89960
        return false;
90335
        return false;
89961
      if (that instanceof getSnapdealItem_args)
90336
      if (that instanceof getSnapdealItemDetails_args)
89962
        return this.equals((getSnapdealItem_args)that);
90337
        return this.equals((getSnapdealItemDetails_args)that);
89963
      return false;
90338
      return false;
89964
    }
90339
    }
89965
 
90340
 
89966
    public boolean equals(getSnapdealItem_args that) {
90341
    public boolean equals(getSnapdealItemDetails_args that) {
89967
      if (that == null)
90342
      if (that == null)
89968
        return false;
90343
        return false;
89969
 
90344
 
89970
      boolean this_present_item_id = true;
90345
      boolean this_present_item_id = true;
89971
      boolean that_present_item_id = true;
90346
      boolean that_present_item_id = true;
Line 89982... Line 90357...
89982
    @Override
90357
    @Override
89983
    public int hashCode() {
90358
    public int hashCode() {
89984
      return 0;
90359
      return 0;
89985
    }
90360
    }
89986
 
90361
 
89987
    public int compareTo(getSnapdealItem_args other) {
90362
    public int compareTo(getSnapdealItemDetails_args other) {
89988
      if (!getClass().equals(other.getClass())) {
90363
      if (!getClass().equals(other.getClass())) {
89989
        return getClass().getName().compareTo(other.getClass().getName());
90364
        return getClass().getName().compareTo(other.getClass().getName());
89990
      }
90365
      }
89991
 
90366
 
89992
      int lastComparison = 0;
90367
      int lastComparison = 0;
89993
      getSnapdealItem_args typedOther = (getSnapdealItem_args)other;
90368
      getSnapdealItemDetails_args typedOther = (getSnapdealItemDetails_args)other;
89994
 
90369
 
89995
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
90370
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
89996
      if (lastComparison != 0) {
90371
      if (lastComparison != 0) {
89997
        return lastComparison;
90372
        return lastComparison;
89998
      }
90373
      }
Line 90047... Line 90422...
90047
      oprot.writeStructEnd();
90422
      oprot.writeStructEnd();
90048
    }
90423
    }
90049
 
90424
 
90050
    @Override
90425
    @Override
90051
    public String toString() {
90426
    public String toString() {
90052
      StringBuilder sb = new StringBuilder("getSnapdealItem_args(");
90427
      StringBuilder sb = new StringBuilder("getSnapdealItemDetails_args(");
90053
      boolean first = true;
90428
      boolean first = true;
90054
 
90429
 
90055
      sb.append("item_id:");
90430
      sb.append("item_id:");
90056
      sb.append(this.item_id);
90431
      sb.append(this.item_id);
90057
      first = false;
90432
      first = false;
Line 90081... Line 90456...
90081
      }
90456
      }
90082
    }
90457
    }
90083
 
90458
 
90084
  }
90459
  }
90085
 
90460
 
90086
  public static class getSnapdealItem_result implements org.apache.thrift.TBase<getSnapdealItem_result, getSnapdealItem_result._Fields>, java.io.Serializable, Cloneable   {
90461
  public static class getSnapdealItemDetails_result implements org.apache.thrift.TBase<getSnapdealItemDetails_result, getSnapdealItemDetails_result._Fields>, java.io.Serializable, Cloneable   {
90087
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItem_result");
90462
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItemDetails_result");
90088
 
90463
 
90089
    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);
90464
    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);
90090
 
90465
 
90091
    private SnapdealItem success; // required
90466
    private SnapdealItemDetails success; // required
90092
 
90467
 
90093
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
90468
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
90094
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
90469
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
90095
      SUCCESS((short)0, "success");
90470
      SUCCESS((short)0, "success");
90096
 
90471
 
Line 90152... Line 90527...
90152
 
90527
 
90153
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
90528
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
90154
    static {
90529
    static {
90155
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
90530
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
90156
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
90531
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
90157
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItem.class)));
90532
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItemDetails.class)));
90158
      metaDataMap = Collections.unmodifiableMap(tmpMap);
90533
      metaDataMap = Collections.unmodifiableMap(tmpMap);
90159
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItem_result.class, metaDataMap);
90534
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItemDetails_result.class, metaDataMap);
90160
    }
90535
    }
90161
 
90536
 
90162
    public getSnapdealItem_result() {
90537
    public getSnapdealItemDetails_result() {
90163
    }
90538
    }
90164
 
90539
 
90165
    public getSnapdealItem_result(
90540
    public getSnapdealItemDetails_result(
90166
      SnapdealItem success)
90541
      SnapdealItemDetails success)
90167
    {
90542
    {
90168
      this();
90543
      this();
90169
      this.success = success;
90544
      this.success = success;
90170
    }
90545
    }
90171
 
90546
 
90172
    /**
90547
    /**
90173
     * Performs a deep copy on <i>other</i>.
90548
     * Performs a deep copy on <i>other</i>.
90174
     */
90549
     */
90175
    public getSnapdealItem_result(getSnapdealItem_result other) {
90550
    public getSnapdealItemDetails_result(getSnapdealItemDetails_result other) {
90176
      if (other.isSetSuccess()) {
90551
      if (other.isSetSuccess()) {
90177
        this.success = new SnapdealItem(other.success);
90552
        this.success = new SnapdealItemDetails(other.success);
90178
      }
90553
      }
90179
    }
90554
    }
90180
 
90555
 
90181
    public getSnapdealItem_result deepCopy() {
90556
    public getSnapdealItemDetails_result deepCopy() {
90182
      return new getSnapdealItem_result(this);
90557
      return new getSnapdealItemDetails_result(this);
90183
    }
90558
    }
90184
 
90559
 
90185
    @Override
90560
    @Override
90186
    public void clear() {
90561
    public void clear() {
90187
      this.success = null;
90562
      this.success = null;
90188
    }
90563
    }
90189
 
90564
 
90190
    public SnapdealItem getSuccess() {
90565
    public SnapdealItemDetails getSuccess() {
90191
      return this.success;
90566
      return this.success;
90192
    }
90567
    }
90193
 
90568
 
90194
    public void setSuccess(SnapdealItem success) {
90569
    public void setSuccess(SnapdealItemDetails success) {
90195
      this.success = success;
90570
      this.success = success;
90196
    }
90571
    }
90197
 
90572
 
90198
    public void unsetSuccess() {
90573
    public void unsetSuccess() {
90199
      this.success = null;
90574
      this.success = null;
Line 90214... Line 90589...
90214
      switch (field) {
90589
      switch (field) {
90215
      case SUCCESS:
90590
      case SUCCESS:
90216
        if (value == null) {
90591
        if (value == null) {
90217
          unsetSuccess();
90592
          unsetSuccess();
90218
        } else {
90593
        } else {
90219
          setSuccess((SnapdealItem)value);
90594
          setSuccess((SnapdealItemDetails)value);
90220
        }
90595
        }
90221
        break;
90596
        break;
90222
 
90597
 
90223
      }
90598
      }
90224
    }
90599
    }
Line 90247... Line 90622...
90247
 
90622
 
90248
    @Override
90623
    @Override
90249
    public boolean equals(Object that) {
90624
    public boolean equals(Object that) {
90250
      if (that == null)
90625
      if (that == null)
90251
        return false;
90626
        return false;
90252
      if (that instanceof getSnapdealItem_result)
90627
      if (that instanceof getSnapdealItemDetails_result)
90253
        return this.equals((getSnapdealItem_result)that);
90628
        return this.equals((getSnapdealItemDetails_result)that);
90254
      return false;
90629
      return false;
90255
    }
90630
    }
90256
 
90631
 
90257
    public boolean equals(getSnapdealItem_result that) {
90632
    public boolean equals(getSnapdealItemDetails_result that) {
90258
      if (that == null)
90633
      if (that == null)
90259
        return false;
90634
        return false;
90260
 
90635
 
90261
      boolean this_present_success = true && this.isSetSuccess();
90636
      boolean this_present_success = true && this.isSetSuccess();
90262
      boolean that_present_success = true && that.isSetSuccess();
90637
      boolean that_present_success = true && that.isSetSuccess();
Line 90273... Line 90648...
90273
    @Override
90648
    @Override
90274
    public int hashCode() {
90649
    public int hashCode() {
90275
      return 0;
90650
      return 0;
90276
    }
90651
    }
90277
 
90652
 
90278
    public int compareTo(getSnapdealItem_result other) {
90653
    public int compareTo(getSnapdealItemDetails_result other) {
90279
      if (!getClass().equals(other.getClass())) {
90654
      if (!getClass().equals(other.getClass())) {
90280
        return getClass().getName().compareTo(other.getClass().getName());
90655
        return getClass().getName().compareTo(other.getClass().getName());
90281
      }
90656
      }
90282
 
90657
 
90283
      int lastComparison = 0;
90658
      int lastComparison = 0;
90284
      getSnapdealItem_result typedOther = (getSnapdealItem_result)other;
90659
      getSnapdealItemDetails_result typedOther = (getSnapdealItemDetails_result)other;
90285
 
90660
 
90286
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
90661
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
90287
      if (lastComparison != 0) {
90662
      if (lastComparison != 0) {
90288
        return lastComparison;
90663
        return lastComparison;
90289
      }
90664
      }
Line 90310... Line 90685...
90310
          break;
90685
          break;
90311
        }
90686
        }
90312
        switch (field.id) {
90687
        switch (field.id) {
90313
          case 0: // SUCCESS
90688
          case 0: // SUCCESS
90314
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
90689
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
90315
              this.success = new SnapdealItem();
90690
              this.success = new SnapdealItemDetails();
90316
              this.success.read(iprot);
90691
              this.success.read(iprot);
90317
            } else { 
90692
            } else { 
90318
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
90693
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
90319
            }
90694
            }
90320
            break;
90695
            break;
Line 90339... Line 90714...
90339
      oprot.writeStructEnd();
90714
      oprot.writeStructEnd();
90340
    }
90715
    }
90341
 
90716
 
90342
    @Override
90717
    @Override
90343
    public String toString() {
90718
    public String toString() {
90344
      StringBuilder sb = new StringBuilder("getSnapdealItem_result(");
90719
      StringBuilder sb = new StringBuilder("getSnapdealItemDetails_result(");
90345
      boolean first = true;
90720
      boolean first = true;
90346
 
90721
 
90347
      sb.append("success:");
90722
      sb.append("success:");
90348
      if (this.success == null) {
90723
      if (this.success == null) {
90349
        sb.append("null");
90724
        sb.append("null");
Line 90580... Line 90955...
90580
  public static class getAllSnapdealItems_result implements org.apache.thrift.TBase<getAllSnapdealItems_result, getAllSnapdealItems_result._Fields>, java.io.Serializable, Cloneable   {
90955
  public static class getAllSnapdealItems_result implements org.apache.thrift.TBase<getAllSnapdealItems_result, getAllSnapdealItems_result._Fields>, java.io.Serializable, Cloneable   {
90581
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSnapdealItems_result");
90956
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllSnapdealItems_result");
90582
 
90957
 
90583
    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);
90958
    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);
90584
 
90959
 
90585
    private List<SnapdealItem> success; // required
90960
    private List<SnapdealItemDetails> success; // required
90586
 
90961
 
90587
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
90962
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
90588
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
90963
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
90589
      SUCCESS((short)0, "success");
90964
      SUCCESS((short)0, "success");
90590
 
90965
 
Line 90647... Line 91022...
90647
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
91022
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
90648
    static {
91023
    static {
90649
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
91024
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
90650
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
91025
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
90651
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
91026
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
90652
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItem.class))));
91027
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItemDetails.class))));
90653
      metaDataMap = Collections.unmodifiableMap(tmpMap);
91028
      metaDataMap = Collections.unmodifiableMap(tmpMap);
90654
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSnapdealItems_result.class, metaDataMap);
91029
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllSnapdealItems_result.class, metaDataMap);
90655
    }
91030
    }
90656
 
91031
 
90657
    public getAllSnapdealItems_result() {
91032
    public getAllSnapdealItems_result() {
90658
    }
91033
    }
90659
 
91034
 
90660
    public getAllSnapdealItems_result(
91035
    public getAllSnapdealItems_result(
90661
      List<SnapdealItem> success)
91036
      List<SnapdealItemDetails> success)
90662
    {
91037
    {
90663
      this();
91038
      this();
90664
      this.success = success;
91039
      this.success = success;
90665
    }
91040
    }
90666
 
91041
 
90667
    /**
91042
    /**
90668
     * Performs a deep copy on <i>other</i>.
91043
     * Performs a deep copy on <i>other</i>.
90669
     */
91044
     */
90670
    public getAllSnapdealItems_result(getAllSnapdealItems_result other) {
91045
    public getAllSnapdealItems_result(getAllSnapdealItems_result other) {
90671
      if (other.isSetSuccess()) {
91046
      if (other.isSetSuccess()) {
90672
        List<SnapdealItem> __this__success = new ArrayList<SnapdealItem>();
91047
        List<SnapdealItemDetails> __this__success = new ArrayList<SnapdealItemDetails>();
90673
        for (SnapdealItem other_element : other.success) {
91048
        for (SnapdealItemDetails other_element : other.success) {
90674
          __this__success.add(new SnapdealItem(other_element));
91049
          __this__success.add(new SnapdealItemDetails(other_element));
90675
        }
91050
        }
90676
        this.success = __this__success;
91051
        this.success = __this__success;
90677
      }
91052
      }
90678
    }
91053
    }
90679
 
91054
 
Line 90688... Line 91063...
90688
 
91063
 
90689
    public int getSuccessSize() {
91064
    public int getSuccessSize() {
90690
      return (this.success == null) ? 0 : this.success.size();
91065
      return (this.success == null) ? 0 : this.success.size();
90691
    }
91066
    }
90692
 
91067
 
90693
    public java.util.Iterator<SnapdealItem> getSuccessIterator() {
91068
    public java.util.Iterator<SnapdealItemDetails> getSuccessIterator() {
90694
      return (this.success == null) ? null : this.success.iterator();
91069
      return (this.success == null) ? null : this.success.iterator();
90695
    }
91070
    }
90696
 
91071
 
90697
    public void addToSuccess(SnapdealItem elem) {
91072
    public void addToSuccess(SnapdealItemDetails elem) {
90698
      if (this.success == null) {
91073
      if (this.success == null) {
90699
        this.success = new ArrayList<SnapdealItem>();
91074
        this.success = new ArrayList<SnapdealItemDetails>();
90700
      }
91075
      }
90701
      this.success.add(elem);
91076
      this.success.add(elem);
90702
    }
91077
    }
90703
 
91078
 
90704
    public List<SnapdealItem> getSuccess() {
91079
    public List<SnapdealItemDetails> getSuccess() {
90705
      return this.success;
91080
      return this.success;
90706
    }
91081
    }
90707
 
91082
 
90708
    public void setSuccess(List<SnapdealItem> success) {
91083
    public void setSuccess(List<SnapdealItemDetails> success) {
90709
      this.success = success;
91084
      this.success = success;
90710
    }
91085
    }
90711
 
91086
 
90712
    public void unsetSuccess() {
91087
    public void unsetSuccess() {
90713
      this.success = null;
91088
      this.success = null;
Line 90728... Line 91103...
90728
      switch (field) {
91103
      switch (field) {
90729
      case SUCCESS:
91104
      case SUCCESS:
90730
        if (value == null) {
91105
        if (value == null) {
90731
          unsetSuccess();
91106
          unsetSuccess();
90732
        } else {
91107
        } else {
90733
          setSuccess((List<SnapdealItem>)value);
91108
          setSuccess((List<SnapdealItemDetails>)value);
90734
        }
91109
        }
90735
        break;
91110
        break;
90736
 
91111
 
90737
      }
91112
      }
90738
    }
91113
    }
Line 90825... Line 91200...
90825
        }
91200
        }
90826
        switch (field.id) {
91201
        switch (field.id) {
90827
          case 0: // SUCCESS
91202
          case 0: // SUCCESS
90828
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
91203
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
90829
              {
91204
              {
-
 
91205
                org.apache.thrift.protocol.TList _list292 = iprot.readListBegin();
-
 
91206
                this.success = new ArrayList<SnapdealItemDetails>(_list292.size);
-
 
91207
                for (int _i293 = 0; _i293 < _list292.size; ++_i293)
-
 
91208
                {
-
 
91209
                  SnapdealItemDetails _elem294; // required
-
 
91210
                  _elem294 = new SnapdealItemDetails();
-
 
91211
                  _elem294.read(iprot);
-
 
91212
                  this.success.add(_elem294);
-
 
91213
                }
-
 
91214
                iprot.readListEnd();
-
 
91215
              }
-
 
91216
            } else { 
-
 
91217
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
91218
            }
-
 
91219
            break;
-
 
91220
          default:
-
 
91221
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
91222
        }
-
 
91223
        iprot.readFieldEnd();
-
 
91224
      }
-
 
91225
      iprot.readStructEnd();
-
 
91226
      validate();
-
 
91227
    }
-
 
91228
 
-
 
91229
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
91230
      oprot.writeStructBegin(STRUCT_DESC);
-
 
91231
 
-
 
91232
      if (this.isSetSuccess()) {
-
 
91233
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
91234
        {
-
 
91235
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
91236
          for (SnapdealItemDetails _iter295 : this.success)
-
 
91237
          {
-
 
91238
            _iter295.write(oprot);
-
 
91239
          }
-
 
91240
          oprot.writeListEnd();
-
 
91241
        }
-
 
91242
        oprot.writeFieldEnd();
-
 
91243
      }
-
 
91244
      oprot.writeFieldStop();
-
 
91245
      oprot.writeStructEnd();
-
 
91246
    }
-
 
91247
 
-
 
91248
    @Override
-
 
91249
    public String toString() {
-
 
91250
      StringBuilder sb = new StringBuilder("getAllSnapdealItems_result(");
-
 
91251
      boolean first = true;
-
 
91252
 
-
 
91253
      sb.append("success:");
-
 
91254
      if (this.success == null) {
-
 
91255
        sb.append("null");
-
 
91256
      } else {
-
 
91257
        sb.append(this.success);
-
 
91258
      }
-
 
91259
      first = false;
-
 
91260
      sb.append(")");
-
 
91261
      return sb.toString();
-
 
91262
    }
-
 
91263
 
-
 
91264
    public void validate() throws org.apache.thrift.TException {
-
 
91265
      // check for required fields
-
 
91266
    }
-
 
91267
 
-
 
91268
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
91269
      try {
-
 
91270
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
91271
      } catch (org.apache.thrift.TException te) {
-
 
91272
        throw new java.io.IOException(te);
-
 
91273
      }
-
 
91274
    }
-
 
91275
 
-
 
91276
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
91277
      try {
-
 
91278
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
91279
      } catch (org.apache.thrift.TException te) {
-
 
91280
        throw new java.io.IOException(te);
-
 
91281
      }
-
 
91282
    }
-
 
91283
 
-
 
91284
  }
-
 
91285
 
-
 
91286
  public static class getSnapdealItems_args implements org.apache.thrift.TBase<getSnapdealItems_args, getSnapdealItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
91287
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItems_args");
-
 
91288
 
-
 
91289
    private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
91290
    private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
91291
 
-
 
91292
    private long offset; // required
-
 
91293
    private long limit; // required
-
 
91294
 
-
 
91295
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
91296
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
91297
      OFFSET((short)1, "offset"),
-
 
91298
      LIMIT((short)2, "limit");
-
 
91299
 
-
 
91300
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
91301
 
-
 
91302
      static {
-
 
91303
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
91304
          byName.put(field.getFieldName(), field);
-
 
91305
        }
-
 
91306
      }
-
 
91307
 
-
 
91308
      /**
-
 
91309
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
91310
       */
-
 
91311
      public static _Fields findByThriftId(int fieldId) {
-
 
91312
        switch(fieldId) {
-
 
91313
          case 1: // OFFSET
-
 
91314
            return OFFSET;
-
 
91315
          case 2: // LIMIT
-
 
91316
            return LIMIT;
-
 
91317
          default:
-
 
91318
            return null;
-
 
91319
        }
-
 
91320
      }
-
 
91321
 
-
 
91322
      /**
-
 
91323
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
91324
       * if it is not found.
-
 
91325
       */
-
 
91326
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
91327
        _Fields fields = findByThriftId(fieldId);
-
 
91328
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
91329
        return fields;
-
 
91330
      }
-
 
91331
 
-
 
91332
      /**
-
 
91333
       * Find the _Fields constant that matches name, or null if its not found.
-
 
91334
       */
-
 
91335
      public static _Fields findByName(String name) {
-
 
91336
        return byName.get(name);
-
 
91337
      }
-
 
91338
 
-
 
91339
      private final short _thriftId;
-
 
91340
      private final String _fieldName;
-
 
91341
 
-
 
91342
      _Fields(short thriftId, String fieldName) {
-
 
91343
        _thriftId = thriftId;
-
 
91344
        _fieldName = fieldName;
-
 
91345
      }
-
 
91346
 
-
 
91347
      public short getThriftFieldId() {
-
 
91348
        return _thriftId;
-
 
91349
      }
-
 
91350
 
-
 
91351
      public String getFieldName() {
-
 
91352
        return _fieldName;
-
 
91353
      }
-
 
91354
    }
-
 
91355
 
-
 
91356
    // isset id assignments
-
 
91357
    private static final int __OFFSET_ISSET_ID = 0;
-
 
91358
    private static final int __LIMIT_ISSET_ID = 1;
-
 
91359
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
91360
 
-
 
91361
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
91362
    static {
-
 
91363
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
91364
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
91365
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
91366
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
91367
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
91368
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
91369
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItems_args.class, metaDataMap);
-
 
91370
    }
-
 
91371
 
-
 
91372
    public getSnapdealItems_args() {
-
 
91373
    }
-
 
91374
 
-
 
91375
    public getSnapdealItems_args(
-
 
91376
      long offset,
-
 
91377
      long limit)
-
 
91378
    {
-
 
91379
      this();
-
 
91380
      this.offset = offset;
-
 
91381
      setOffsetIsSet(true);
-
 
91382
      this.limit = limit;
-
 
91383
      setLimitIsSet(true);
-
 
91384
    }
-
 
91385
 
-
 
91386
    /**
-
 
91387
     * Performs a deep copy on <i>other</i>.
-
 
91388
     */
-
 
91389
    public getSnapdealItems_args(getSnapdealItems_args other) {
-
 
91390
      __isset_bit_vector.clear();
-
 
91391
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
91392
      this.offset = other.offset;
-
 
91393
      this.limit = other.limit;
-
 
91394
    }
-
 
91395
 
-
 
91396
    public getSnapdealItems_args deepCopy() {
-
 
91397
      return new getSnapdealItems_args(this);
-
 
91398
    }
-
 
91399
 
-
 
91400
    @Override
-
 
91401
    public void clear() {
-
 
91402
      setOffsetIsSet(false);
-
 
91403
      this.offset = 0;
-
 
91404
      setLimitIsSet(false);
-
 
91405
      this.limit = 0;
-
 
91406
    }
-
 
91407
 
-
 
91408
    public long getOffset() {
-
 
91409
      return this.offset;
-
 
91410
    }
-
 
91411
 
-
 
91412
    public void setOffset(long offset) {
-
 
91413
      this.offset = offset;
-
 
91414
      setOffsetIsSet(true);
-
 
91415
    }
-
 
91416
 
-
 
91417
    public void unsetOffset() {
-
 
91418
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
-
 
91419
    }
-
 
91420
 
-
 
91421
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
-
 
91422
    public boolean isSetOffset() {
-
 
91423
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
-
 
91424
    }
-
 
91425
 
-
 
91426
    public void setOffsetIsSet(boolean value) {
-
 
91427
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
-
 
91428
    }
-
 
91429
 
-
 
91430
    public long getLimit() {
-
 
91431
      return this.limit;
-
 
91432
    }
-
 
91433
 
-
 
91434
    public void setLimit(long limit) {
-
 
91435
      this.limit = limit;
-
 
91436
      setLimitIsSet(true);
-
 
91437
    }
-
 
91438
 
-
 
91439
    public void unsetLimit() {
-
 
91440
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
-
 
91441
    }
-
 
91442
 
-
 
91443
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
-
 
91444
    public boolean isSetLimit() {
-
 
91445
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
-
 
91446
    }
-
 
91447
 
-
 
91448
    public void setLimitIsSet(boolean value) {
-
 
91449
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
-
 
91450
    }
-
 
91451
 
-
 
91452
    public void setFieldValue(_Fields field, Object value) {
-
 
91453
      switch (field) {
-
 
91454
      case OFFSET:
-
 
91455
        if (value == null) {
-
 
91456
          unsetOffset();
-
 
91457
        } else {
-
 
91458
          setOffset((Long)value);
-
 
91459
        }
-
 
91460
        break;
-
 
91461
 
-
 
91462
      case LIMIT:
-
 
91463
        if (value == null) {
-
 
91464
          unsetLimit();
-
 
91465
        } else {
-
 
91466
          setLimit((Long)value);
-
 
91467
        }
-
 
91468
        break;
-
 
91469
 
-
 
91470
      }
-
 
91471
    }
-
 
91472
 
-
 
91473
    public Object getFieldValue(_Fields field) {
-
 
91474
      switch (field) {
-
 
91475
      case OFFSET:
-
 
91476
        return Long.valueOf(getOffset());
-
 
91477
 
-
 
91478
      case LIMIT:
-
 
91479
        return Long.valueOf(getLimit());
-
 
91480
 
-
 
91481
      }
-
 
91482
      throw new IllegalStateException();
-
 
91483
    }
-
 
91484
 
-
 
91485
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
91486
    public boolean isSet(_Fields field) {
-
 
91487
      if (field == null) {
-
 
91488
        throw new IllegalArgumentException();
-
 
91489
      }
-
 
91490
 
-
 
91491
      switch (field) {
-
 
91492
      case OFFSET:
-
 
91493
        return isSetOffset();
-
 
91494
      case LIMIT:
-
 
91495
        return isSetLimit();
-
 
91496
      }
-
 
91497
      throw new IllegalStateException();
-
 
91498
    }
-
 
91499
 
-
 
91500
    @Override
-
 
91501
    public boolean equals(Object that) {
-
 
91502
      if (that == null)
-
 
91503
        return false;
-
 
91504
      if (that instanceof getSnapdealItems_args)
-
 
91505
        return this.equals((getSnapdealItems_args)that);
-
 
91506
      return false;
-
 
91507
    }
-
 
91508
 
-
 
91509
    public boolean equals(getSnapdealItems_args that) {
-
 
91510
      if (that == null)
-
 
91511
        return false;
-
 
91512
 
-
 
91513
      boolean this_present_offset = true;
-
 
91514
      boolean that_present_offset = true;
-
 
91515
      if (this_present_offset || that_present_offset) {
-
 
91516
        if (!(this_present_offset && that_present_offset))
-
 
91517
          return false;
-
 
91518
        if (this.offset != that.offset)
-
 
91519
          return false;
-
 
91520
      }
-
 
91521
 
-
 
91522
      boolean this_present_limit = true;
-
 
91523
      boolean that_present_limit = true;
-
 
91524
      if (this_present_limit || that_present_limit) {
-
 
91525
        if (!(this_present_limit && that_present_limit))
-
 
91526
          return false;
-
 
91527
        if (this.limit != that.limit)
-
 
91528
          return false;
-
 
91529
      }
-
 
91530
 
-
 
91531
      return true;
-
 
91532
    }
-
 
91533
 
-
 
91534
    @Override
-
 
91535
    public int hashCode() {
-
 
91536
      return 0;
-
 
91537
    }
-
 
91538
 
-
 
91539
    public int compareTo(getSnapdealItems_args other) {
-
 
91540
      if (!getClass().equals(other.getClass())) {
-
 
91541
        return getClass().getName().compareTo(other.getClass().getName());
-
 
91542
      }
-
 
91543
 
-
 
91544
      int lastComparison = 0;
-
 
91545
      getSnapdealItems_args typedOther = (getSnapdealItems_args)other;
-
 
91546
 
-
 
91547
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
-
 
91548
      if (lastComparison != 0) {
-
 
91549
        return lastComparison;
-
 
91550
      }
-
 
91551
      if (isSetOffset()) {
-
 
91552
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
-
 
91553
        if (lastComparison != 0) {
-
 
91554
          return lastComparison;
-
 
91555
        }
-
 
91556
      }
-
 
91557
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
-
 
91558
      if (lastComparison != 0) {
-
 
91559
        return lastComparison;
-
 
91560
      }
-
 
91561
      if (isSetLimit()) {
-
 
91562
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
-
 
91563
        if (lastComparison != 0) {
-
 
91564
          return lastComparison;
-
 
91565
        }
-
 
91566
      }
-
 
91567
      return 0;
-
 
91568
    }
-
 
91569
 
-
 
91570
    public _Fields fieldForId(int fieldId) {
-
 
91571
      return _Fields.findByThriftId(fieldId);
-
 
91572
    }
-
 
91573
 
-
 
91574
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
91575
      org.apache.thrift.protocol.TField field;
-
 
91576
      iprot.readStructBegin();
-
 
91577
      while (true)
-
 
91578
      {
-
 
91579
        field = iprot.readFieldBegin();
-
 
91580
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
91581
          break;
-
 
91582
        }
-
 
91583
        switch (field.id) {
-
 
91584
          case 1: // OFFSET
-
 
91585
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
91586
              this.offset = iprot.readI64();
-
 
91587
              setOffsetIsSet(true);
-
 
91588
            } else { 
-
 
91589
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
91590
            }
-
 
91591
            break;
-
 
91592
          case 2: // LIMIT
-
 
91593
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
91594
              this.limit = iprot.readI64();
-
 
91595
              setLimitIsSet(true);
-
 
91596
            } else { 
-
 
91597
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
91598
            }
-
 
91599
            break;
-
 
91600
          default:
-
 
91601
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
91602
        }
-
 
91603
        iprot.readFieldEnd();
-
 
91604
      }
-
 
91605
      iprot.readStructEnd();
-
 
91606
      validate();
-
 
91607
    }
-
 
91608
 
-
 
91609
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
91610
      validate();
-
 
91611
 
-
 
91612
      oprot.writeStructBegin(STRUCT_DESC);
-
 
91613
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
-
 
91614
      oprot.writeI64(this.offset);
-
 
91615
      oprot.writeFieldEnd();
-
 
91616
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
-
 
91617
      oprot.writeI64(this.limit);
-
 
91618
      oprot.writeFieldEnd();
-
 
91619
      oprot.writeFieldStop();
-
 
91620
      oprot.writeStructEnd();
-
 
91621
    }
-
 
91622
 
-
 
91623
    @Override
-
 
91624
    public String toString() {
-
 
91625
      StringBuilder sb = new StringBuilder("getSnapdealItems_args(");
-
 
91626
      boolean first = true;
-
 
91627
 
-
 
91628
      sb.append("offset:");
-
 
91629
      sb.append(this.offset);
-
 
91630
      first = false;
-
 
91631
      if (!first) sb.append(", ");
-
 
91632
      sb.append("limit:");
-
 
91633
      sb.append(this.limit);
-
 
91634
      first = false;
-
 
91635
      sb.append(")");
-
 
91636
      return sb.toString();
-
 
91637
    }
-
 
91638
 
-
 
91639
    public void validate() throws org.apache.thrift.TException {
-
 
91640
      // check for required fields
-
 
91641
    }
-
 
91642
 
-
 
91643
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
91644
      try {
-
 
91645
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
91646
      } catch (org.apache.thrift.TException te) {
-
 
91647
        throw new java.io.IOException(te);
-
 
91648
      }
-
 
91649
    }
-
 
91650
 
-
 
91651
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
91652
      try {
-
 
91653
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
91654
        __isset_bit_vector = new BitSet(1);
-
 
91655
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
91656
      } catch (org.apache.thrift.TException te) {
-
 
91657
        throw new java.io.IOException(te);
-
 
91658
      }
-
 
91659
    }
-
 
91660
 
-
 
91661
  }
-
 
91662
 
-
 
91663
  public static class getSnapdealItems_result implements org.apache.thrift.TBase<getSnapdealItems_result, getSnapdealItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
91664
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealItems_result");
-
 
91665
 
-
 
91666
    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);
-
 
91667
 
-
 
91668
    private List<SnapdealItemDetails> success; // required
-
 
91669
 
-
 
91670
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
91671
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
91672
      SUCCESS((short)0, "success");
-
 
91673
 
-
 
91674
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
91675
 
-
 
91676
      static {
-
 
91677
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
91678
          byName.put(field.getFieldName(), field);
-
 
91679
        }
-
 
91680
      }
-
 
91681
 
-
 
91682
      /**
-
 
91683
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
91684
       */
-
 
91685
      public static _Fields findByThriftId(int fieldId) {
-
 
91686
        switch(fieldId) {
-
 
91687
          case 0: // SUCCESS
-
 
91688
            return SUCCESS;
-
 
91689
          default:
-
 
91690
            return null;
-
 
91691
        }
-
 
91692
      }
-
 
91693
 
-
 
91694
      /**
-
 
91695
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
91696
       * if it is not found.
-
 
91697
       */
-
 
91698
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
91699
        _Fields fields = findByThriftId(fieldId);
-
 
91700
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
91701
        return fields;
-
 
91702
      }
-
 
91703
 
-
 
91704
      /**
-
 
91705
       * Find the _Fields constant that matches name, or null if its not found.
-
 
91706
       */
-
 
91707
      public static _Fields findByName(String name) {
-
 
91708
        return byName.get(name);
-
 
91709
      }
-
 
91710
 
-
 
91711
      private final short _thriftId;
-
 
91712
      private final String _fieldName;
-
 
91713
 
-
 
91714
      _Fields(short thriftId, String fieldName) {
-
 
91715
        _thriftId = thriftId;
-
 
91716
        _fieldName = fieldName;
-
 
91717
      }
-
 
91718
 
-
 
91719
      public short getThriftFieldId() {
-
 
91720
        return _thriftId;
-
 
91721
      }
-
 
91722
 
-
 
91723
      public String getFieldName() {
-
 
91724
        return _fieldName;
-
 
91725
      }
-
 
91726
    }
-
 
91727
 
-
 
91728
    // isset id assignments
-
 
91729
 
-
 
91730
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
91731
    static {
-
 
91732
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
91733
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
91734
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
91735
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItemDetails.class))));
-
 
91736
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
91737
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealItems_result.class, metaDataMap);
-
 
91738
    }
-
 
91739
 
-
 
91740
    public getSnapdealItems_result() {
-
 
91741
    }
-
 
91742
 
-
 
91743
    public getSnapdealItems_result(
-
 
91744
      List<SnapdealItemDetails> success)
-
 
91745
    {
-
 
91746
      this();
-
 
91747
      this.success = success;
-
 
91748
    }
-
 
91749
 
-
 
91750
    /**
-
 
91751
     * Performs a deep copy on <i>other</i>.
-
 
91752
     */
-
 
91753
    public getSnapdealItems_result(getSnapdealItems_result other) {
-
 
91754
      if (other.isSetSuccess()) {
-
 
91755
        List<SnapdealItemDetails> __this__success = new ArrayList<SnapdealItemDetails>();
-
 
91756
        for (SnapdealItemDetails other_element : other.success) {
-
 
91757
          __this__success.add(new SnapdealItemDetails(other_element));
-
 
91758
        }
-
 
91759
        this.success = __this__success;
-
 
91760
      }
-
 
91761
    }
-
 
91762
 
-
 
91763
    public getSnapdealItems_result deepCopy() {
-
 
91764
      return new getSnapdealItems_result(this);
-
 
91765
    }
-
 
91766
 
-
 
91767
    @Override
-
 
91768
    public void clear() {
-
 
91769
      this.success = null;
-
 
91770
    }
-
 
91771
 
-
 
91772
    public int getSuccessSize() {
-
 
91773
      return (this.success == null) ? 0 : this.success.size();
-
 
91774
    }
-
 
91775
 
-
 
91776
    public java.util.Iterator<SnapdealItemDetails> getSuccessIterator() {
-
 
91777
      return (this.success == null) ? null : this.success.iterator();
-
 
91778
    }
-
 
91779
 
-
 
91780
    public void addToSuccess(SnapdealItemDetails elem) {
-
 
91781
      if (this.success == null) {
-
 
91782
        this.success = new ArrayList<SnapdealItemDetails>();
-
 
91783
      }
-
 
91784
      this.success.add(elem);
-
 
91785
    }
-
 
91786
 
-
 
91787
    public List<SnapdealItemDetails> getSuccess() {
-
 
91788
      return this.success;
-
 
91789
    }
-
 
91790
 
-
 
91791
    public void setSuccess(List<SnapdealItemDetails> success) {
-
 
91792
      this.success = success;
-
 
91793
    }
-
 
91794
 
-
 
91795
    public void unsetSuccess() {
-
 
91796
      this.success = null;
-
 
91797
    }
-
 
91798
 
-
 
91799
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
91800
    public boolean isSetSuccess() {
-
 
91801
      return this.success != null;
-
 
91802
    }
-
 
91803
 
-
 
91804
    public void setSuccessIsSet(boolean value) {
-
 
91805
      if (!value) {
-
 
91806
        this.success = null;
-
 
91807
      }
-
 
91808
    }
-
 
91809
 
-
 
91810
    public void setFieldValue(_Fields field, Object value) {
-
 
91811
      switch (field) {
-
 
91812
      case SUCCESS:
-
 
91813
        if (value == null) {
-
 
91814
          unsetSuccess();
-
 
91815
        } else {
-
 
91816
          setSuccess((List<SnapdealItemDetails>)value);
-
 
91817
        }
-
 
91818
        break;
-
 
91819
 
-
 
91820
      }
-
 
91821
    }
-
 
91822
 
-
 
91823
    public Object getFieldValue(_Fields field) {
-
 
91824
      switch (field) {
-
 
91825
      case SUCCESS:
-
 
91826
        return getSuccess();
-
 
91827
 
-
 
91828
      }
-
 
91829
      throw new IllegalStateException();
-
 
91830
    }
-
 
91831
 
-
 
91832
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
91833
    public boolean isSet(_Fields field) {
-
 
91834
      if (field == null) {
-
 
91835
        throw new IllegalArgumentException();
-
 
91836
      }
-
 
91837
 
-
 
91838
      switch (field) {
-
 
91839
      case SUCCESS:
-
 
91840
        return isSetSuccess();
-
 
91841
      }
-
 
91842
      throw new IllegalStateException();
-
 
91843
    }
-
 
91844
 
-
 
91845
    @Override
-
 
91846
    public boolean equals(Object that) {
-
 
91847
      if (that == null)
-
 
91848
        return false;
-
 
91849
      if (that instanceof getSnapdealItems_result)
-
 
91850
        return this.equals((getSnapdealItems_result)that);
-
 
91851
      return false;
-
 
91852
    }
-
 
91853
 
-
 
91854
    public boolean equals(getSnapdealItems_result that) {
-
 
91855
      if (that == null)
-
 
91856
        return false;
-
 
91857
 
-
 
91858
      boolean this_present_success = true && this.isSetSuccess();
-
 
91859
      boolean that_present_success = true && that.isSetSuccess();
-
 
91860
      if (this_present_success || that_present_success) {
-
 
91861
        if (!(this_present_success && that_present_success))
-
 
91862
          return false;
-
 
91863
        if (!this.success.equals(that.success))
-
 
91864
          return false;
-
 
91865
      }
-
 
91866
 
-
 
91867
      return true;
-
 
91868
    }
-
 
91869
 
-
 
91870
    @Override
-
 
91871
    public int hashCode() {
-
 
91872
      return 0;
-
 
91873
    }
-
 
91874
 
-
 
91875
    public int compareTo(getSnapdealItems_result other) {
-
 
91876
      if (!getClass().equals(other.getClass())) {
-
 
91877
        return getClass().getName().compareTo(other.getClass().getName());
-
 
91878
      }
-
 
91879
 
-
 
91880
      int lastComparison = 0;
-
 
91881
      getSnapdealItems_result typedOther = (getSnapdealItems_result)other;
-
 
91882
 
-
 
91883
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
91884
      if (lastComparison != 0) {
-
 
91885
        return lastComparison;
-
 
91886
      }
-
 
91887
      if (isSetSuccess()) {
-
 
91888
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
91889
        if (lastComparison != 0) {
-
 
91890
          return lastComparison;
-
 
91891
        }
-
 
91892
      }
-
 
91893
      return 0;
-
 
91894
    }
-
 
91895
 
-
 
91896
    public _Fields fieldForId(int fieldId) {
-
 
91897
      return _Fields.findByThriftId(fieldId);
-
 
91898
    }
-
 
91899
 
-
 
91900
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
91901
      org.apache.thrift.protocol.TField field;
-
 
91902
      iprot.readStructBegin();
-
 
91903
      while (true)
-
 
91904
      {
-
 
91905
        field = iprot.readFieldBegin();
-
 
91906
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
91907
          break;
-
 
91908
        }
-
 
91909
        switch (field.id) {
-
 
91910
          case 0: // SUCCESS
-
 
91911
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
91912
              {
90830
                org.apache.thrift.protocol.TList _list296 = iprot.readListBegin();
91913
                org.apache.thrift.protocol.TList _list296 = iprot.readListBegin();
90831
                this.success = new ArrayList<SnapdealItem>(_list296.size);
91914
                this.success = new ArrayList<SnapdealItemDetails>(_list296.size);
90832
                for (int _i297 = 0; _i297 < _list296.size; ++_i297)
91915
                for (int _i297 = 0; _i297 < _list296.size; ++_i297)
90833
                {
91916
                {
90834
                  SnapdealItem _elem298; // required
91917
                  SnapdealItemDetails _elem298; // required
90835
                  _elem298 = new SnapdealItem();
91918
                  _elem298 = new SnapdealItemDetails();
90836
                  _elem298.read(iprot);
91919
                  _elem298.read(iprot);
90837
                  this.success.add(_elem298);
91920
                  this.success.add(_elem298);
90838
                }
91921
                }
90839
                iprot.readListEnd();
91922
                iprot.readListEnd();
90840
              }
91923
              }
Line 90856... Line 91939...
90856
 
91939
 
90857
      if (this.isSetSuccess()) {
91940
      if (this.isSetSuccess()) {
90858
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
91941
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
90859
        {
91942
        {
90860
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
91943
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
90861
          for (SnapdealItem _iter299 : this.success)
91944
          for (SnapdealItemDetails _iter299 : this.success)
90862
          {
91945
          {
90863
            _iter299.write(oprot);
91946
            _iter299.write(oprot);
90864
          }
91947
          }
90865
          oprot.writeListEnd();
91948
          oprot.writeListEnd();
90866
        }
91949
        }
Line 90870... Line 91953...
90870
      oprot.writeStructEnd();
91953
      oprot.writeStructEnd();
90871
    }
91954
    }
90872
 
91955
 
90873
    @Override
91956
    @Override
90874
    public String toString() {
91957
    public String toString() {
90875
      StringBuilder sb = new StringBuilder("getAllSnapdealItems_result(");
91958
      StringBuilder sb = new StringBuilder("getSnapdealItems_result(");
90876
      boolean first = true;
91959
      boolean first = true;
90877
 
91960
 
90878
      sb.append("success:");
91961
      sb.append("success:");
90879
      if (this.success == null) {
91962
      if (this.success == null) {
90880
        sb.append("null");
91963
        sb.append("null");
Line 90884... Line 91967...
90884
      first = false;
91967
      first = false;
90885
      sb.append(")");
91968
      sb.append(")");
90886
      return sb.toString();
91969
      return sb.toString();
90887
    }
91970
    }
90888
 
91971
 
-
 
91972
    public void validate() throws org.apache.thrift.TException {
-
 
91973
      // check for required fields
-
 
91974
    }
-
 
91975
 
-
 
91976
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
91977
      try {
-
 
91978
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
91979
      } catch (org.apache.thrift.TException te) {
-
 
91980
        throw new java.io.IOException(te);
-
 
91981
      }
-
 
91982
    }
-
 
91983
 
-
 
91984
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
91985
      try {
-
 
91986
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
91987
      } catch (org.apache.thrift.TException te) {
-
 
91988
        throw new java.io.IOException(te);
-
 
91989
      }
-
 
91990
    }
-
 
91991
 
-
 
91992
  }
-
 
91993
 
-
 
91994
  public static class searchSnapdealItems_args implements org.apache.thrift.TBase<searchSnapdealItems_args, searchSnapdealItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
91995
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchSnapdealItems_args");
-
 
91996
 
-
 
91997
    private static final org.apache.thrift.protocol.TField SEARCH_TERM_FIELD_DESC = new org.apache.thrift.protocol.TField("searchTerm", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
91998
    private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
91999
    private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
92000
 
-
 
92001
    private List<String> searchTerm; // required
-
 
92002
    private long offset; // required
-
 
92003
    private long limit; // required
-
 
92004
 
-
 
92005
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
92006
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
92007
      SEARCH_TERM((short)1, "searchTerm"),
-
 
92008
      OFFSET((short)2, "offset"),
-
 
92009
      LIMIT((short)3, "limit");
-
 
92010
 
-
 
92011
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
92012
 
-
 
92013
      static {
-
 
92014
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
92015
          byName.put(field.getFieldName(), field);
-
 
92016
        }
-
 
92017
      }
-
 
92018
 
-
 
92019
      /**
-
 
92020
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
92021
       */
-
 
92022
      public static _Fields findByThriftId(int fieldId) {
-
 
92023
        switch(fieldId) {
-
 
92024
          case 1: // SEARCH_TERM
-
 
92025
            return SEARCH_TERM;
-
 
92026
          case 2: // OFFSET
-
 
92027
            return OFFSET;
-
 
92028
          case 3: // LIMIT
-
 
92029
            return LIMIT;
-
 
92030
          default:
-
 
92031
            return null;
-
 
92032
        }
-
 
92033
      }
-
 
92034
 
-
 
92035
      /**
-
 
92036
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
92037
       * if it is not found.
-
 
92038
       */
-
 
92039
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
92040
        _Fields fields = findByThriftId(fieldId);
-
 
92041
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
92042
        return fields;
-
 
92043
      }
-
 
92044
 
-
 
92045
      /**
-
 
92046
       * Find the _Fields constant that matches name, or null if its not found.
-
 
92047
       */
-
 
92048
      public static _Fields findByName(String name) {
-
 
92049
        return byName.get(name);
-
 
92050
      }
-
 
92051
 
-
 
92052
      private final short _thriftId;
-
 
92053
      private final String _fieldName;
-
 
92054
 
-
 
92055
      _Fields(short thriftId, String fieldName) {
-
 
92056
        _thriftId = thriftId;
-
 
92057
        _fieldName = fieldName;
-
 
92058
      }
-
 
92059
 
-
 
92060
      public short getThriftFieldId() {
-
 
92061
        return _thriftId;
-
 
92062
      }
-
 
92063
 
-
 
92064
      public String getFieldName() {
-
 
92065
        return _fieldName;
-
 
92066
      }
-
 
92067
    }
-
 
92068
 
-
 
92069
    // isset id assignments
-
 
92070
    private static final int __OFFSET_ISSET_ID = 0;
-
 
92071
    private static final int __LIMIT_ISSET_ID = 1;
-
 
92072
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
92073
 
-
 
92074
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
92075
    static {
-
 
92076
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
92077
      tmpMap.put(_Fields.SEARCH_TERM, new org.apache.thrift.meta_data.FieldMetaData("searchTerm", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
92078
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
92079
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
92080
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
92081
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
92082
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
92083
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
92084
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
92085
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchSnapdealItems_args.class, metaDataMap);
-
 
92086
    }
-
 
92087
 
-
 
92088
    public searchSnapdealItems_args() {
-
 
92089
    }
-
 
92090
 
-
 
92091
    public searchSnapdealItems_args(
-
 
92092
      List<String> searchTerm,
-
 
92093
      long offset,
-
 
92094
      long limit)
-
 
92095
    {
-
 
92096
      this();
-
 
92097
      this.searchTerm = searchTerm;
-
 
92098
      this.offset = offset;
-
 
92099
      setOffsetIsSet(true);
-
 
92100
      this.limit = limit;
-
 
92101
      setLimitIsSet(true);
-
 
92102
    }
-
 
92103
 
-
 
92104
    /**
-
 
92105
     * Performs a deep copy on <i>other</i>.
-
 
92106
     */
-
 
92107
    public searchSnapdealItems_args(searchSnapdealItems_args other) {
-
 
92108
      __isset_bit_vector.clear();
-
 
92109
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
92110
      if (other.isSetSearchTerm()) {
-
 
92111
        List<String> __this__searchTerm = new ArrayList<String>();
-
 
92112
        for (String other_element : other.searchTerm) {
-
 
92113
          __this__searchTerm.add(other_element);
-
 
92114
        }
-
 
92115
        this.searchTerm = __this__searchTerm;
-
 
92116
      }
-
 
92117
      this.offset = other.offset;
-
 
92118
      this.limit = other.limit;
-
 
92119
    }
-
 
92120
 
-
 
92121
    public searchSnapdealItems_args deepCopy() {
-
 
92122
      return new searchSnapdealItems_args(this);
-
 
92123
    }
-
 
92124
 
-
 
92125
    @Override
-
 
92126
    public void clear() {
-
 
92127
      this.searchTerm = null;
-
 
92128
      setOffsetIsSet(false);
-
 
92129
      this.offset = 0;
-
 
92130
      setLimitIsSet(false);
-
 
92131
      this.limit = 0;
-
 
92132
    }
-
 
92133
 
-
 
92134
    public int getSearchTermSize() {
-
 
92135
      return (this.searchTerm == null) ? 0 : this.searchTerm.size();
-
 
92136
    }
-
 
92137
 
-
 
92138
    public java.util.Iterator<String> getSearchTermIterator() {
-
 
92139
      return (this.searchTerm == null) ? null : this.searchTerm.iterator();
-
 
92140
    }
-
 
92141
 
-
 
92142
    public void addToSearchTerm(String elem) {
-
 
92143
      if (this.searchTerm == null) {
-
 
92144
        this.searchTerm = new ArrayList<String>();
-
 
92145
      }
-
 
92146
      this.searchTerm.add(elem);
-
 
92147
    }
-
 
92148
 
-
 
92149
    public List<String> getSearchTerm() {
-
 
92150
      return this.searchTerm;
-
 
92151
    }
-
 
92152
 
-
 
92153
    public void setSearchTerm(List<String> searchTerm) {
-
 
92154
      this.searchTerm = searchTerm;
-
 
92155
    }
-
 
92156
 
-
 
92157
    public void unsetSearchTerm() {
-
 
92158
      this.searchTerm = null;
-
 
92159
    }
-
 
92160
 
-
 
92161
    /** Returns true if field searchTerm is set (has been assigned a value) and false otherwise */
-
 
92162
    public boolean isSetSearchTerm() {
-
 
92163
      return this.searchTerm != null;
-
 
92164
    }
-
 
92165
 
-
 
92166
    public void setSearchTermIsSet(boolean value) {
-
 
92167
      if (!value) {
-
 
92168
        this.searchTerm = null;
-
 
92169
      }
-
 
92170
    }
-
 
92171
 
-
 
92172
    public long getOffset() {
-
 
92173
      return this.offset;
-
 
92174
    }
-
 
92175
 
-
 
92176
    public void setOffset(long offset) {
-
 
92177
      this.offset = offset;
-
 
92178
      setOffsetIsSet(true);
-
 
92179
    }
-
 
92180
 
-
 
92181
    public void unsetOffset() {
-
 
92182
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
-
 
92183
    }
-
 
92184
 
-
 
92185
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
-
 
92186
    public boolean isSetOffset() {
-
 
92187
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
-
 
92188
    }
-
 
92189
 
-
 
92190
    public void setOffsetIsSet(boolean value) {
-
 
92191
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
-
 
92192
    }
-
 
92193
 
-
 
92194
    public long getLimit() {
-
 
92195
      return this.limit;
-
 
92196
    }
-
 
92197
 
-
 
92198
    public void setLimit(long limit) {
-
 
92199
      this.limit = limit;
-
 
92200
      setLimitIsSet(true);
-
 
92201
    }
-
 
92202
 
-
 
92203
    public void unsetLimit() {
-
 
92204
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
-
 
92205
    }
-
 
92206
 
-
 
92207
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
-
 
92208
    public boolean isSetLimit() {
-
 
92209
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
-
 
92210
    }
-
 
92211
 
-
 
92212
    public void setLimitIsSet(boolean value) {
-
 
92213
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
-
 
92214
    }
-
 
92215
 
-
 
92216
    public void setFieldValue(_Fields field, Object value) {
-
 
92217
      switch (field) {
-
 
92218
      case SEARCH_TERM:
-
 
92219
        if (value == null) {
-
 
92220
          unsetSearchTerm();
-
 
92221
        } else {
-
 
92222
          setSearchTerm((List<String>)value);
-
 
92223
        }
-
 
92224
        break;
-
 
92225
 
-
 
92226
      case OFFSET:
-
 
92227
        if (value == null) {
-
 
92228
          unsetOffset();
-
 
92229
        } else {
-
 
92230
          setOffset((Long)value);
-
 
92231
        }
-
 
92232
        break;
-
 
92233
 
-
 
92234
      case LIMIT:
-
 
92235
        if (value == null) {
-
 
92236
          unsetLimit();
-
 
92237
        } else {
-
 
92238
          setLimit((Long)value);
-
 
92239
        }
-
 
92240
        break;
-
 
92241
 
-
 
92242
      }
-
 
92243
    }
-
 
92244
 
-
 
92245
    public Object getFieldValue(_Fields field) {
-
 
92246
      switch (field) {
-
 
92247
      case SEARCH_TERM:
-
 
92248
        return getSearchTerm();
-
 
92249
 
-
 
92250
      case OFFSET:
-
 
92251
        return Long.valueOf(getOffset());
-
 
92252
 
-
 
92253
      case LIMIT:
-
 
92254
        return Long.valueOf(getLimit());
-
 
92255
 
-
 
92256
      }
-
 
92257
      throw new IllegalStateException();
-
 
92258
    }
-
 
92259
 
-
 
92260
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
92261
    public boolean isSet(_Fields field) {
-
 
92262
      if (field == null) {
-
 
92263
        throw new IllegalArgumentException();
-
 
92264
      }
-
 
92265
 
-
 
92266
      switch (field) {
-
 
92267
      case SEARCH_TERM:
-
 
92268
        return isSetSearchTerm();
-
 
92269
      case OFFSET:
-
 
92270
        return isSetOffset();
-
 
92271
      case LIMIT:
-
 
92272
        return isSetLimit();
-
 
92273
      }
-
 
92274
      throw new IllegalStateException();
-
 
92275
    }
-
 
92276
 
-
 
92277
    @Override
-
 
92278
    public boolean equals(Object that) {
-
 
92279
      if (that == null)
-
 
92280
        return false;
-
 
92281
      if (that instanceof searchSnapdealItems_args)
-
 
92282
        return this.equals((searchSnapdealItems_args)that);
-
 
92283
      return false;
-
 
92284
    }
-
 
92285
 
-
 
92286
    public boolean equals(searchSnapdealItems_args that) {
-
 
92287
      if (that == null)
-
 
92288
        return false;
-
 
92289
 
-
 
92290
      boolean this_present_searchTerm = true && this.isSetSearchTerm();
-
 
92291
      boolean that_present_searchTerm = true && that.isSetSearchTerm();
-
 
92292
      if (this_present_searchTerm || that_present_searchTerm) {
-
 
92293
        if (!(this_present_searchTerm && that_present_searchTerm))
-
 
92294
          return false;
-
 
92295
        if (!this.searchTerm.equals(that.searchTerm))
-
 
92296
          return false;
-
 
92297
      }
-
 
92298
 
-
 
92299
      boolean this_present_offset = true;
-
 
92300
      boolean that_present_offset = true;
-
 
92301
      if (this_present_offset || that_present_offset) {
-
 
92302
        if (!(this_present_offset && that_present_offset))
-
 
92303
          return false;
-
 
92304
        if (this.offset != that.offset)
-
 
92305
          return false;
-
 
92306
      }
-
 
92307
 
-
 
92308
      boolean this_present_limit = true;
-
 
92309
      boolean that_present_limit = true;
-
 
92310
      if (this_present_limit || that_present_limit) {
-
 
92311
        if (!(this_present_limit && that_present_limit))
-
 
92312
          return false;
-
 
92313
        if (this.limit != that.limit)
-
 
92314
          return false;
-
 
92315
      }
-
 
92316
 
-
 
92317
      return true;
-
 
92318
    }
-
 
92319
 
-
 
92320
    @Override
-
 
92321
    public int hashCode() {
-
 
92322
      return 0;
-
 
92323
    }
-
 
92324
 
-
 
92325
    public int compareTo(searchSnapdealItems_args other) {
-
 
92326
      if (!getClass().equals(other.getClass())) {
-
 
92327
        return getClass().getName().compareTo(other.getClass().getName());
-
 
92328
      }
-
 
92329
 
-
 
92330
      int lastComparison = 0;
-
 
92331
      searchSnapdealItems_args typedOther = (searchSnapdealItems_args)other;
-
 
92332
 
-
 
92333
      lastComparison = Boolean.valueOf(isSetSearchTerm()).compareTo(typedOther.isSetSearchTerm());
-
 
92334
      if (lastComparison != 0) {
-
 
92335
        return lastComparison;
-
 
92336
      }
-
 
92337
      if (isSetSearchTerm()) {
-
 
92338
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerm, typedOther.searchTerm);
-
 
92339
        if (lastComparison != 0) {
-
 
92340
          return lastComparison;
-
 
92341
        }
-
 
92342
      }
-
 
92343
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
-
 
92344
      if (lastComparison != 0) {
-
 
92345
        return lastComparison;
-
 
92346
      }
-
 
92347
      if (isSetOffset()) {
-
 
92348
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
-
 
92349
        if (lastComparison != 0) {
-
 
92350
          return lastComparison;
-
 
92351
        }
-
 
92352
      }
-
 
92353
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
-
 
92354
      if (lastComparison != 0) {
-
 
92355
        return lastComparison;
-
 
92356
      }
-
 
92357
      if (isSetLimit()) {
-
 
92358
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
-
 
92359
        if (lastComparison != 0) {
-
 
92360
          return lastComparison;
-
 
92361
        }
-
 
92362
      }
-
 
92363
      return 0;
-
 
92364
    }
-
 
92365
 
-
 
92366
    public _Fields fieldForId(int fieldId) {
-
 
92367
      return _Fields.findByThriftId(fieldId);
-
 
92368
    }
-
 
92369
 
-
 
92370
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
92371
      org.apache.thrift.protocol.TField field;
-
 
92372
      iprot.readStructBegin();
-
 
92373
      while (true)
-
 
92374
      {
-
 
92375
        field = iprot.readFieldBegin();
-
 
92376
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
92377
          break;
-
 
92378
        }
-
 
92379
        switch (field.id) {
-
 
92380
          case 1: // SEARCH_TERM
-
 
92381
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
92382
              {
-
 
92383
                org.apache.thrift.protocol.TList _list300 = iprot.readListBegin();
-
 
92384
                this.searchTerm = new ArrayList<String>(_list300.size);
-
 
92385
                for (int _i301 = 0; _i301 < _list300.size; ++_i301)
-
 
92386
                {
-
 
92387
                  String _elem302; // required
-
 
92388
                  _elem302 = iprot.readString();
-
 
92389
                  this.searchTerm.add(_elem302);
-
 
92390
                }
-
 
92391
                iprot.readListEnd();
-
 
92392
              }
-
 
92393
            } else { 
-
 
92394
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
92395
            }
-
 
92396
            break;
-
 
92397
          case 2: // OFFSET
-
 
92398
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
92399
              this.offset = iprot.readI64();
-
 
92400
              setOffsetIsSet(true);
-
 
92401
            } else { 
-
 
92402
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
92403
            }
-
 
92404
            break;
-
 
92405
          case 3: // LIMIT
-
 
92406
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
92407
              this.limit = iprot.readI64();
-
 
92408
              setLimitIsSet(true);
-
 
92409
            } else { 
-
 
92410
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
92411
            }
-
 
92412
            break;
-
 
92413
          default:
-
 
92414
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
92415
        }
-
 
92416
        iprot.readFieldEnd();
-
 
92417
      }
-
 
92418
      iprot.readStructEnd();
-
 
92419
      validate();
-
 
92420
    }
-
 
92421
 
-
 
92422
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
92423
      validate();
-
 
92424
 
-
 
92425
      oprot.writeStructBegin(STRUCT_DESC);
-
 
92426
      if (this.searchTerm != null) {
-
 
92427
        oprot.writeFieldBegin(SEARCH_TERM_FIELD_DESC);
-
 
92428
        {
-
 
92429
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerm.size()));
-
 
92430
          for (String _iter303 : this.searchTerm)
-
 
92431
          {
-
 
92432
            oprot.writeString(_iter303);
-
 
92433
          }
-
 
92434
          oprot.writeListEnd();
-
 
92435
        }
-
 
92436
        oprot.writeFieldEnd();
-
 
92437
      }
-
 
92438
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
-
 
92439
      oprot.writeI64(this.offset);
-
 
92440
      oprot.writeFieldEnd();
-
 
92441
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
-
 
92442
      oprot.writeI64(this.limit);
-
 
92443
      oprot.writeFieldEnd();
-
 
92444
      oprot.writeFieldStop();
-
 
92445
      oprot.writeStructEnd();
-
 
92446
    }
-
 
92447
 
-
 
92448
    @Override
-
 
92449
    public String toString() {
-
 
92450
      StringBuilder sb = new StringBuilder("searchSnapdealItems_args(");
-
 
92451
      boolean first = true;
-
 
92452
 
-
 
92453
      sb.append("searchTerm:");
-
 
92454
      if (this.searchTerm == null) {
-
 
92455
        sb.append("null");
-
 
92456
      } else {
-
 
92457
        sb.append(this.searchTerm);
-
 
92458
      }
-
 
92459
      first = false;
-
 
92460
      if (!first) sb.append(", ");
-
 
92461
      sb.append("offset:");
-
 
92462
      sb.append(this.offset);
-
 
92463
      first = false;
-
 
92464
      if (!first) sb.append(", ");
-
 
92465
      sb.append("limit:");
-
 
92466
      sb.append(this.limit);
-
 
92467
      first = false;
-
 
92468
      sb.append(")");
-
 
92469
      return sb.toString();
-
 
92470
    }
-
 
92471
 
-
 
92472
    public void validate() throws org.apache.thrift.TException {
-
 
92473
      // check for required fields
-
 
92474
    }
-
 
92475
 
-
 
92476
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
92477
      try {
-
 
92478
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
92479
      } catch (org.apache.thrift.TException te) {
-
 
92480
        throw new java.io.IOException(te);
-
 
92481
      }
-
 
92482
    }
-
 
92483
 
-
 
92484
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
92485
      try {
-
 
92486
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
92487
        __isset_bit_vector = new BitSet(1);
-
 
92488
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
92489
      } catch (org.apache.thrift.TException te) {
-
 
92490
        throw new java.io.IOException(te);
-
 
92491
      }
-
 
92492
    }
-
 
92493
 
-
 
92494
  }
-
 
92495
 
-
 
92496
  public static class searchSnapdealItems_result implements org.apache.thrift.TBase<searchSnapdealItems_result, searchSnapdealItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
92497
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchSnapdealItems_result");
-
 
92498
 
-
 
92499
    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);
-
 
92500
 
-
 
92501
    private List<SnapdealItemDetails> success; // required
-
 
92502
 
-
 
92503
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
92504
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
92505
      SUCCESS((short)0, "success");
-
 
92506
 
-
 
92507
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
92508
 
-
 
92509
      static {
-
 
92510
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
92511
          byName.put(field.getFieldName(), field);
-
 
92512
        }
-
 
92513
      }
-
 
92514
 
-
 
92515
      /**
-
 
92516
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
92517
       */
-
 
92518
      public static _Fields findByThriftId(int fieldId) {
-
 
92519
        switch(fieldId) {
-
 
92520
          case 0: // SUCCESS
-
 
92521
            return SUCCESS;
-
 
92522
          default:
-
 
92523
            return null;
-
 
92524
        }
-
 
92525
      }
-
 
92526
 
-
 
92527
      /**
-
 
92528
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
92529
       * if it is not found.
-
 
92530
       */
-
 
92531
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
92532
        _Fields fields = findByThriftId(fieldId);
-
 
92533
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
92534
        return fields;
-
 
92535
      }
-
 
92536
 
-
 
92537
      /**
-
 
92538
       * Find the _Fields constant that matches name, or null if its not found.
-
 
92539
       */
-
 
92540
      public static _Fields findByName(String name) {
-
 
92541
        return byName.get(name);
-
 
92542
      }
-
 
92543
 
-
 
92544
      private final short _thriftId;
-
 
92545
      private final String _fieldName;
-
 
92546
 
-
 
92547
      _Fields(short thriftId, String fieldName) {
-
 
92548
        _thriftId = thriftId;
-
 
92549
        _fieldName = fieldName;
-
 
92550
      }
-
 
92551
 
-
 
92552
      public short getThriftFieldId() {
-
 
92553
        return _thriftId;
-
 
92554
      }
-
 
92555
 
-
 
92556
      public String getFieldName() {
-
 
92557
        return _fieldName;
-
 
92558
      }
-
 
92559
    }
-
 
92560
 
-
 
92561
    // isset id assignments
-
 
92562
 
-
 
92563
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
92564
    static {
-
 
92565
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
92566
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
92567
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
92568
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealItemDetails.class))));
-
 
92569
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
92570
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchSnapdealItems_result.class, metaDataMap);
-
 
92571
    }
-
 
92572
 
-
 
92573
    public searchSnapdealItems_result() {
-
 
92574
    }
-
 
92575
 
-
 
92576
    public searchSnapdealItems_result(
-
 
92577
      List<SnapdealItemDetails> success)
-
 
92578
    {
-
 
92579
      this();
-
 
92580
      this.success = success;
-
 
92581
    }
-
 
92582
 
-
 
92583
    /**
-
 
92584
     * Performs a deep copy on <i>other</i>.
-
 
92585
     */
-
 
92586
    public searchSnapdealItems_result(searchSnapdealItems_result other) {
-
 
92587
      if (other.isSetSuccess()) {
-
 
92588
        List<SnapdealItemDetails> __this__success = new ArrayList<SnapdealItemDetails>();
-
 
92589
        for (SnapdealItemDetails other_element : other.success) {
-
 
92590
          __this__success.add(new SnapdealItemDetails(other_element));
-
 
92591
        }
-
 
92592
        this.success = __this__success;
-
 
92593
      }
-
 
92594
    }
-
 
92595
 
-
 
92596
    public searchSnapdealItems_result deepCopy() {
-
 
92597
      return new searchSnapdealItems_result(this);
-
 
92598
    }
-
 
92599
 
-
 
92600
    @Override
-
 
92601
    public void clear() {
-
 
92602
      this.success = null;
-
 
92603
    }
-
 
92604
 
-
 
92605
    public int getSuccessSize() {
-
 
92606
      return (this.success == null) ? 0 : this.success.size();
-
 
92607
    }
-
 
92608
 
-
 
92609
    public java.util.Iterator<SnapdealItemDetails> getSuccessIterator() {
-
 
92610
      return (this.success == null) ? null : this.success.iterator();
-
 
92611
    }
-
 
92612
 
-
 
92613
    public void addToSuccess(SnapdealItemDetails elem) {
-
 
92614
      if (this.success == null) {
-
 
92615
        this.success = new ArrayList<SnapdealItemDetails>();
-
 
92616
      }
-
 
92617
      this.success.add(elem);
-
 
92618
    }
-
 
92619
 
-
 
92620
    public List<SnapdealItemDetails> getSuccess() {
-
 
92621
      return this.success;
-
 
92622
    }
-
 
92623
 
-
 
92624
    public void setSuccess(List<SnapdealItemDetails> success) {
-
 
92625
      this.success = success;
-
 
92626
    }
-
 
92627
 
-
 
92628
    public void unsetSuccess() {
-
 
92629
      this.success = null;
-
 
92630
    }
-
 
92631
 
-
 
92632
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
92633
    public boolean isSetSuccess() {
-
 
92634
      return this.success != null;
-
 
92635
    }
-
 
92636
 
-
 
92637
    public void setSuccessIsSet(boolean value) {
-
 
92638
      if (!value) {
-
 
92639
        this.success = null;
-
 
92640
      }
-
 
92641
    }
-
 
92642
 
-
 
92643
    public void setFieldValue(_Fields field, Object value) {
-
 
92644
      switch (field) {
-
 
92645
      case SUCCESS:
-
 
92646
        if (value == null) {
-
 
92647
          unsetSuccess();
-
 
92648
        } else {
-
 
92649
          setSuccess((List<SnapdealItemDetails>)value);
-
 
92650
        }
-
 
92651
        break;
-
 
92652
 
-
 
92653
      }
-
 
92654
    }
-
 
92655
 
-
 
92656
    public Object getFieldValue(_Fields field) {
-
 
92657
      switch (field) {
-
 
92658
      case SUCCESS:
-
 
92659
        return getSuccess();
-
 
92660
 
-
 
92661
      }
-
 
92662
      throw new IllegalStateException();
-
 
92663
    }
-
 
92664
 
-
 
92665
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
92666
    public boolean isSet(_Fields field) {
-
 
92667
      if (field == null) {
-
 
92668
        throw new IllegalArgumentException();
-
 
92669
      }
-
 
92670
 
-
 
92671
      switch (field) {
-
 
92672
      case SUCCESS:
-
 
92673
        return isSetSuccess();
-
 
92674
      }
-
 
92675
      throw new IllegalStateException();
-
 
92676
    }
-
 
92677
 
-
 
92678
    @Override
-
 
92679
    public boolean equals(Object that) {
-
 
92680
      if (that == null)
-
 
92681
        return false;
-
 
92682
      if (that instanceof searchSnapdealItems_result)
-
 
92683
        return this.equals((searchSnapdealItems_result)that);
-
 
92684
      return false;
-
 
92685
    }
-
 
92686
 
-
 
92687
    public boolean equals(searchSnapdealItems_result that) {
-
 
92688
      if (that == null)
-
 
92689
        return false;
-
 
92690
 
-
 
92691
      boolean this_present_success = true && this.isSetSuccess();
-
 
92692
      boolean that_present_success = true && that.isSetSuccess();
-
 
92693
      if (this_present_success || that_present_success) {
-
 
92694
        if (!(this_present_success && that_present_success))
-
 
92695
          return false;
-
 
92696
        if (!this.success.equals(that.success))
-
 
92697
          return false;
-
 
92698
      }
-
 
92699
 
-
 
92700
      return true;
-
 
92701
    }
-
 
92702
 
-
 
92703
    @Override
-
 
92704
    public int hashCode() {
-
 
92705
      return 0;
-
 
92706
    }
-
 
92707
 
-
 
92708
    public int compareTo(searchSnapdealItems_result other) {
-
 
92709
      if (!getClass().equals(other.getClass())) {
-
 
92710
        return getClass().getName().compareTo(other.getClass().getName());
-
 
92711
      }
-
 
92712
 
-
 
92713
      int lastComparison = 0;
-
 
92714
      searchSnapdealItems_result typedOther = (searchSnapdealItems_result)other;
-
 
92715
 
-
 
92716
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
92717
      if (lastComparison != 0) {
-
 
92718
        return lastComparison;
-
 
92719
      }
-
 
92720
      if (isSetSuccess()) {
-
 
92721
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
92722
        if (lastComparison != 0) {
-
 
92723
          return lastComparison;
-
 
92724
        }
-
 
92725
      }
-
 
92726
      return 0;
-
 
92727
    }
-
 
92728
 
-
 
92729
    public _Fields fieldForId(int fieldId) {
-
 
92730
      return _Fields.findByThriftId(fieldId);
-
 
92731
    }
-
 
92732
 
-
 
92733
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
92734
      org.apache.thrift.protocol.TField field;
-
 
92735
      iprot.readStructBegin();
-
 
92736
      while (true)
-
 
92737
      {
-
 
92738
        field = iprot.readFieldBegin();
-
 
92739
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
92740
          break;
-
 
92741
        }
-
 
92742
        switch (field.id) {
-
 
92743
          case 0: // SUCCESS
-
 
92744
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
92745
              {
-
 
92746
                org.apache.thrift.protocol.TList _list304 = iprot.readListBegin();
-
 
92747
                this.success = new ArrayList<SnapdealItemDetails>(_list304.size);
-
 
92748
                for (int _i305 = 0; _i305 < _list304.size; ++_i305)
-
 
92749
                {
-
 
92750
                  SnapdealItemDetails _elem306; // required
-
 
92751
                  _elem306 = new SnapdealItemDetails();
-
 
92752
                  _elem306.read(iprot);
-
 
92753
                  this.success.add(_elem306);
-
 
92754
                }
-
 
92755
                iprot.readListEnd();
-
 
92756
              }
-
 
92757
            } else { 
-
 
92758
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
92759
            }
-
 
92760
            break;
-
 
92761
          default:
-
 
92762
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
92763
        }
-
 
92764
        iprot.readFieldEnd();
-
 
92765
      }
-
 
92766
      iprot.readStructEnd();
-
 
92767
      validate();
-
 
92768
    }
-
 
92769
 
-
 
92770
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
92771
      oprot.writeStructBegin(STRUCT_DESC);
-
 
92772
 
-
 
92773
      if (this.isSetSuccess()) {
-
 
92774
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
92775
        {
-
 
92776
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
92777
          for (SnapdealItemDetails _iter307 : this.success)
-
 
92778
          {
-
 
92779
            _iter307.write(oprot);
-
 
92780
          }
-
 
92781
          oprot.writeListEnd();
-
 
92782
        }
-
 
92783
        oprot.writeFieldEnd();
-
 
92784
      }
-
 
92785
      oprot.writeFieldStop();
-
 
92786
      oprot.writeStructEnd();
-
 
92787
    }
-
 
92788
 
-
 
92789
    @Override
-
 
92790
    public String toString() {
-
 
92791
      StringBuilder sb = new StringBuilder("searchSnapdealItems_result(");
-
 
92792
      boolean first = true;
-
 
92793
 
-
 
92794
      sb.append("success:");
-
 
92795
      if (this.success == null) {
-
 
92796
        sb.append("null");
-
 
92797
      } else {
-
 
92798
        sb.append(this.success);
-
 
92799
      }
-
 
92800
      first = false;
-
 
92801
      sb.append(")");
-
 
92802
      return sb.toString();
-
 
92803
    }
-
 
92804
 
-
 
92805
    public void validate() throws org.apache.thrift.TException {
-
 
92806
      // check for required fields
-
 
92807
    }
-
 
92808
 
-
 
92809
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
92810
      try {
-
 
92811
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
92812
      } catch (org.apache.thrift.TException te) {
-
 
92813
        throw new java.io.IOException(te);
-
 
92814
      }
-
 
92815
    }
-
 
92816
 
-
 
92817
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
92818
      try {
-
 
92819
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
92820
      } catch (org.apache.thrift.TException te) {
-
 
92821
        throw new java.io.IOException(te);
-
 
92822
      }
-
 
92823
    }
-
 
92824
 
-
 
92825
  }
-
 
92826
 
-
 
92827
  public static class getCountForSnapdealItems_args implements org.apache.thrift.TBase<getCountForSnapdealItems_args, getCountForSnapdealItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
92828
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCountForSnapdealItems_args");
-
 
92829
 
-
 
92830
 
-
 
92831
 
-
 
92832
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
92833
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
92834
;
-
 
92835
 
-
 
92836
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
92837
 
-
 
92838
      static {
-
 
92839
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
92840
          byName.put(field.getFieldName(), field);
-
 
92841
        }
-
 
92842
      }
-
 
92843
 
-
 
92844
      /**
-
 
92845
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
92846
       */
-
 
92847
      public static _Fields findByThriftId(int fieldId) {
-
 
92848
        switch(fieldId) {
-
 
92849
          default:
-
 
92850
            return null;
-
 
92851
        }
-
 
92852
      }
-
 
92853
 
-
 
92854
      /**
-
 
92855
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
92856
       * if it is not found.
-
 
92857
       */
-
 
92858
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
92859
        _Fields fields = findByThriftId(fieldId);
-
 
92860
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
92861
        return fields;
-
 
92862
      }
-
 
92863
 
-
 
92864
      /**
-
 
92865
       * Find the _Fields constant that matches name, or null if its not found.
-
 
92866
       */
-
 
92867
      public static _Fields findByName(String name) {
-
 
92868
        return byName.get(name);
-
 
92869
      }
-
 
92870
 
-
 
92871
      private final short _thriftId;
-
 
92872
      private final String _fieldName;
-
 
92873
 
-
 
92874
      _Fields(short thriftId, String fieldName) {
-
 
92875
        _thriftId = thriftId;
-
 
92876
        _fieldName = fieldName;
-
 
92877
      }
-
 
92878
 
-
 
92879
      public short getThriftFieldId() {
-
 
92880
        return _thriftId;
-
 
92881
      }
-
 
92882
 
-
 
92883
      public String getFieldName() {
-
 
92884
        return _fieldName;
-
 
92885
      }
-
 
92886
    }
-
 
92887
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
92888
    static {
-
 
92889
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
92890
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
92891
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCountForSnapdealItems_args.class, metaDataMap);
-
 
92892
    }
-
 
92893
 
-
 
92894
    public getCountForSnapdealItems_args() {
-
 
92895
    }
-
 
92896
 
-
 
92897
    /**
-
 
92898
     * Performs a deep copy on <i>other</i>.
-
 
92899
     */
-
 
92900
    public getCountForSnapdealItems_args(getCountForSnapdealItems_args other) {
-
 
92901
    }
-
 
92902
 
-
 
92903
    public getCountForSnapdealItems_args deepCopy() {
-
 
92904
      return new getCountForSnapdealItems_args(this);
-
 
92905
    }
-
 
92906
 
-
 
92907
    @Override
-
 
92908
    public void clear() {
-
 
92909
    }
-
 
92910
 
-
 
92911
    public void setFieldValue(_Fields field, Object value) {
-
 
92912
      switch (field) {
-
 
92913
      }
-
 
92914
    }
-
 
92915
 
-
 
92916
    public Object getFieldValue(_Fields field) {
-
 
92917
      switch (field) {
-
 
92918
      }
-
 
92919
      throw new IllegalStateException();
-
 
92920
    }
-
 
92921
 
-
 
92922
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
92923
    public boolean isSet(_Fields field) {
-
 
92924
      if (field == null) {
-
 
92925
        throw new IllegalArgumentException();
-
 
92926
      }
-
 
92927
 
-
 
92928
      switch (field) {
-
 
92929
      }
-
 
92930
      throw new IllegalStateException();
-
 
92931
    }
-
 
92932
 
-
 
92933
    @Override
-
 
92934
    public boolean equals(Object that) {
-
 
92935
      if (that == null)
-
 
92936
        return false;
-
 
92937
      if (that instanceof getCountForSnapdealItems_args)
-
 
92938
        return this.equals((getCountForSnapdealItems_args)that);
-
 
92939
      return false;
-
 
92940
    }
-
 
92941
 
-
 
92942
    public boolean equals(getCountForSnapdealItems_args that) {
-
 
92943
      if (that == null)
-
 
92944
        return false;
-
 
92945
 
-
 
92946
      return true;
-
 
92947
    }
-
 
92948
 
-
 
92949
    @Override
-
 
92950
    public int hashCode() {
-
 
92951
      return 0;
-
 
92952
    }
-
 
92953
 
-
 
92954
    public int compareTo(getCountForSnapdealItems_args other) {
-
 
92955
      if (!getClass().equals(other.getClass())) {
-
 
92956
        return getClass().getName().compareTo(other.getClass().getName());
-
 
92957
      }
-
 
92958
 
-
 
92959
      int lastComparison = 0;
-
 
92960
      getCountForSnapdealItems_args typedOther = (getCountForSnapdealItems_args)other;
-
 
92961
 
-
 
92962
      return 0;
-
 
92963
    }
-
 
92964
 
-
 
92965
    public _Fields fieldForId(int fieldId) {
-
 
92966
      return _Fields.findByThriftId(fieldId);
-
 
92967
    }
-
 
92968
 
-
 
92969
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
92970
      org.apache.thrift.protocol.TField field;
-
 
92971
      iprot.readStructBegin();
-
 
92972
      while (true)
-
 
92973
      {
-
 
92974
        field = iprot.readFieldBegin();
-
 
92975
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
92976
          break;
-
 
92977
        }
-
 
92978
        switch (field.id) {
-
 
92979
          default:
-
 
92980
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
92981
        }
-
 
92982
        iprot.readFieldEnd();
-
 
92983
      }
-
 
92984
      iprot.readStructEnd();
-
 
92985
      validate();
-
 
92986
    }
-
 
92987
 
-
 
92988
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
92989
      validate();
-
 
92990
 
-
 
92991
      oprot.writeStructBegin(STRUCT_DESC);
-
 
92992
      oprot.writeFieldStop();
-
 
92993
      oprot.writeStructEnd();
-
 
92994
    }
-
 
92995
 
-
 
92996
    @Override
-
 
92997
    public String toString() {
-
 
92998
      StringBuilder sb = new StringBuilder("getCountForSnapdealItems_args(");
-
 
92999
      boolean first = true;
-
 
93000
 
-
 
93001
      sb.append(")");
-
 
93002
      return sb.toString();
-
 
93003
    }
-
 
93004
 
-
 
93005
    public void validate() throws org.apache.thrift.TException {
-
 
93006
      // check for required fields
-
 
93007
    }
-
 
93008
 
-
 
93009
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
93010
      try {
-
 
93011
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
93012
      } catch (org.apache.thrift.TException te) {
-
 
93013
        throw new java.io.IOException(te);
-
 
93014
      }
-
 
93015
    }
-
 
93016
 
-
 
93017
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
93018
      try {
-
 
93019
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
93020
      } catch (org.apache.thrift.TException te) {
-
 
93021
        throw new java.io.IOException(te);
-
 
93022
      }
-
 
93023
    }
-
 
93024
 
-
 
93025
  }
-
 
93026
 
-
 
93027
  public static class getCountForSnapdealItems_result implements org.apache.thrift.TBase<getCountForSnapdealItems_result, getCountForSnapdealItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
93028
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCountForSnapdealItems_result");
-
 
93029
 
-
 
93030
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
93031
 
-
 
93032
    private long success; // required
-
 
93033
 
-
 
93034
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
93035
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
93036
      SUCCESS((short)0, "success");
-
 
93037
 
-
 
93038
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
93039
 
-
 
93040
      static {
-
 
93041
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
93042
          byName.put(field.getFieldName(), field);
-
 
93043
        }
-
 
93044
      }
-
 
93045
 
-
 
93046
      /**
-
 
93047
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
93048
       */
-
 
93049
      public static _Fields findByThriftId(int fieldId) {
-
 
93050
        switch(fieldId) {
-
 
93051
          case 0: // SUCCESS
-
 
93052
            return SUCCESS;
-
 
93053
          default:
-
 
93054
            return null;
-
 
93055
        }
-
 
93056
      }
-
 
93057
 
-
 
93058
      /**
-
 
93059
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
93060
       * if it is not found.
-
 
93061
       */
-
 
93062
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
93063
        _Fields fields = findByThriftId(fieldId);
-
 
93064
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
93065
        return fields;
-
 
93066
      }
-
 
93067
 
-
 
93068
      /**
-
 
93069
       * Find the _Fields constant that matches name, or null if its not found.
-
 
93070
       */
-
 
93071
      public static _Fields findByName(String name) {
-
 
93072
        return byName.get(name);
-
 
93073
      }
-
 
93074
 
-
 
93075
      private final short _thriftId;
-
 
93076
      private final String _fieldName;
-
 
93077
 
-
 
93078
      _Fields(short thriftId, String fieldName) {
-
 
93079
        _thriftId = thriftId;
-
 
93080
        _fieldName = fieldName;
-
 
93081
      }
-
 
93082
 
-
 
93083
      public short getThriftFieldId() {
-
 
93084
        return _thriftId;
-
 
93085
      }
-
 
93086
 
-
 
93087
      public String getFieldName() {
-
 
93088
        return _fieldName;
-
 
93089
      }
-
 
93090
    }
-
 
93091
 
-
 
93092
    // isset id assignments
-
 
93093
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
93094
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
93095
 
-
 
93096
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
93097
    static {
-
 
93098
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
93099
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
93100
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
93101
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
93102
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCountForSnapdealItems_result.class, metaDataMap);
-
 
93103
    }
-
 
93104
 
-
 
93105
    public getCountForSnapdealItems_result() {
-
 
93106
    }
-
 
93107
 
-
 
93108
    public getCountForSnapdealItems_result(
-
 
93109
      long success)
-
 
93110
    {
-
 
93111
      this();
-
 
93112
      this.success = success;
-
 
93113
      setSuccessIsSet(true);
-
 
93114
    }
-
 
93115
 
-
 
93116
    /**
-
 
93117
     * Performs a deep copy on <i>other</i>.
-
 
93118
     */
-
 
93119
    public getCountForSnapdealItems_result(getCountForSnapdealItems_result other) {
-
 
93120
      __isset_bit_vector.clear();
-
 
93121
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
93122
      this.success = other.success;
-
 
93123
    }
-
 
93124
 
-
 
93125
    public getCountForSnapdealItems_result deepCopy() {
-
 
93126
      return new getCountForSnapdealItems_result(this);
-
 
93127
    }
-
 
93128
 
-
 
93129
    @Override
-
 
93130
    public void clear() {
-
 
93131
      setSuccessIsSet(false);
-
 
93132
      this.success = 0;
-
 
93133
    }
-
 
93134
 
-
 
93135
    public long getSuccess() {
-
 
93136
      return this.success;
-
 
93137
    }
-
 
93138
 
-
 
93139
    public void setSuccess(long success) {
-
 
93140
      this.success = success;
-
 
93141
      setSuccessIsSet(true);
-
 
93142
    }
-
 
93143
 
-
 
93144
    public void unsetSuccess() {
-
 
93145
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
93146
    }
-
 
93147
 
-
 
93148
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
93149
    public boolean isSetSuccess() {
-
 
93150
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
93151
    }
-
 
93152
 
-
 
93153
    public void setSuccessIsSet(boolean value) {
-
 
93154
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
93155
    }
-
 
93156
 
-
 
93157
    public void setFieldValue(_Fields field, Object value) {
-
 
93158
      switch (field) {
-
 
93159
      case SUCCESS:
-
 
93160
        if (value == null) {
-
 
93161
          unsetSuccess();
-
 
93162
        } else {
-
 
93163
          setSuccess((Long)value);
-
 
93164
        }
-
 
93165
        break;
-
 
93166
 
-
 
93167
      }
-
 
93168
    }
-
 
93169
 
-
 
93170
    public Object getFieldValue(_Fields field) {
-
 
93171
      switch (field) {
-
 
93172
      case SUCCESS:
-
 
93173
        return Long.valueOf(getSuccess());
-
 
93174
 
-
 
93175
      }
-
 
93176
      throw new IllegalStateException();
-
 
93177
    }
-
 
93178
 
-
 
93179
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
93180
    public boolean isSet(_Fields field) {
-
 
93181
      if (field == null) {
-
 
93182
        throw new IllegalArgumentException();
-
 
93183
      }
-
 
93184
 
-
 
93185
      switch (field) {
-
 
93186
      case SUCCESS:
-
 
93187
        return isSetSuccess();
-
 
93188
      }
-
 
93189
      throw new IllegalStateException();
-
 
93190
    }
-
 
93191
 
-
 
93192
    @Override
-
 
93193
    public boolean equals(Object that) {
-
 
93194
      if (that == null)
-
 
93195
        return false;
-
 
93196
      if (that instanceof getCountForSnapdealItems_result)
-
 
93197
        return this.equals((getCountForSnapdealItems_result)that);
-
 
93198
      return false;
-
 
93199
    }
-
 
93200
 
-
 
93201
    public boolean equals(getCountForSnapdealItems_result that) {
-
 
93202
      if (that == null)
-
 
93203
        return false;
-
 
93204
 
-
 
93205
      boolean this_present_success = true;
-
 
93206
      boolean that_present_success = true;
-
 
93207
      if (this_present_success || that_present_success) {
-
 
93208
        if (!(this_present_success && that_present_success))
-
 
93209
          return false;
-
 
93210
        if (this.success != that.success)
-
 
93211
          return false;
-
 
93212
      }
-
 
93213
 
-
 
93214
      return true;
-
 
93215
    }
-
 
93216
 
-
 
93217
    @Override
-
 
93218
    public int hashCode() {
-
 
93219
      return 0;
-
 
93220
    }
-
 
93221
 
-
 
93222
    public int compareTo(getCountForSnapdealItems_result other) {
-
 
93223
      if (!getClass().equals(other.getClass())) {
-
 
93224
        return getClass().getName().compareTo(other.getClass().getName());
-
 
93225
      }
-
 
93226
 
-
 
93227
      int lastComparison = 0;
-
 
93228
      getCountForSnapdealItems_result typedOther = (getCountForSnapdealItems_result)other;
-
 
93229
 
-
 
93230
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
93231
      if (lastComparison != 0) {
-
 
93232
        return lastComparison;
-
 
93233
      }
-
 
93234
      if (isSetSuccess()) {
-
 
93235
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
93236
        if (lastComparison != 0) {
-
 
93237
          return lastComparison;
-
 
93238
        }
-
 
93239
      }
-
 
93240
      return 0;
-
 
93241
    }
-
 
93242
 
-
 
93243
    public _Fields fieldForId(int fieldId) {
-
 
93244
      return _Fields.findByThriftId(fieldId);
-
 
93245
    }
-
 
93246
 
-
 
93247
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
93248
      org.apache.thrift.protocol.TField field;
-
 
93249
      iprot.readStructBegin();
-
 
93250
      while (true)
-
 
93251
      {
-
 
93252
        field = iprot.readFieldBegin();
-
 
93253
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
93254
          break;
-
 
93255
        }
-
 
93256
        switch (field.id) {
-
 
93257
          case 0: // SUCCESS
-
 
93258
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
93259
              this.success = iprot.readI64();
-
 
93260
              setSuccessIsSet(true);
-
 
93261
            } else { 
-
 
93262
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
93263
            }
-
 
93264
            break;
-
 
93265
          default:
-
 
93266
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
93267
        }
-
 
93268
        iprot.readFieldEnd();
-
 
93269
      }
-
 
93270
      iprot.readStructEnd();
-
 
93271
      validate();
-
 
93272
    }
-
 
93273
 
-
 
93274
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
93275
      oprot.writeStructBegin(STRUCT_DESC);
-
 
93276
 
-
 
93277
      if (this.isSetSuccess()) {
-
 
93278
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
93279
        oprot.writeI64(this.success);
-
 
93280
        oprot.writeFieldEnd();
-
 
93281
      }
-
 
93282
      oprot.writeFieldStop();
-
 
93283
      oprot.writeStructEnd();
-
 
93284
    }
-
 
93285
 
-
 
93286
    @Override
-
 
93287
    public String toString() {
-
 
93288
      StringBuilder sb = new StringBuilder("getCountForSnapdealItems_result(");
-
 
93289
      boolean first = true;
-
 
93290
 
-
 
93291
      sb.append("success:");
-
 
93292
      sb.append(this.success);
-
 
93293
      first = false;
-
 
93294
      sb.append(")");
-
 
93295
      return sb.toString();
-
 
93296
    }
-
 
93297
 
-
 
93298
    public void validate() throws org.apache.thrift.TException {
-
 
93299
      // check for required fields
-
 
93300
    }
-
 
93301
 
-
 
93302
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
93303
      try {
-
 
93304
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
93305
      } catch (org.apache.thrift.TException te) {
-
 
93306
        throw new java.io.IOException(te);
-
 
93307
      }
-
 
93308
    }
-
 
93309
 
-
 
93310
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
93311
      try {
-
 
93312
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
93313
      } catch (org.apache.thrift.TException te) {
-
 
93314
        throw new java.io.IOException(te);
-
 
93315
      }
-
 
93316
    }
-
 
93317
 
-
 
93318
  }
-
 
93319
 
-
 
93320
  public static class getSnapdealSearchResultCount_args implements org.apache.thrift.TBase<getSnapdealSearchResultCount_args, getSnapdealSearchResultCount_args._Fields>, java.io.Serializable, Cloneable   {
-
 
93321
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealSearchResultCount_args");
-
 
93322
 
-
 
93323
    private static final org.apache.thrift.protocol.TField SEARCH_TERM_FIELD_DESC = new org.apache.thrift.protocol.TField("searchTerm", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
93324
 
-
 
93325
    private List<String> searchTerm; // required
-
 
93326
 
-
 
93327
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
93328
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
93329
      SEARCH_TERM((short)1, "searchTerm");
-
 
93330
 
-
 
93331
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
93332
 
-
 
93333
      static {
-
 
93334
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
93335
          byName.put(field.getFieldName(), field);
-
 
93336
        }
-
 
93337
      }
-
 
93338
 
-
 
93339
      /**
-
 
93340
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
93341
       */
-
 
93342
      public static _Fields findByThriftId(int fieldId) {
-
 
93343
        switch(fieldId) {
-
 
93344
          case 1: // SEARCH_TERM
-
 
93345
            return SEARCH_TERM;
-
 
93346
          default:
-
 
93347
            return null;
-
 
93348
        }
-
 
93349
      }
-
 
93350
 
-
 
93351
      /**
-
 
93352
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
93353
       * if it is not found.
-
 
93354
       */
-
 
93355
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
93356
        _Fields fields = findByThriftId(fieldId);
-
 
93357
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
93358
        return fields;
-
 
93359
      }
-
 
93360
 
-
 
93361
      /**
-
 
93362
       * Find the _Fields constant that matches name, or null if its not found.
-
 
93363
       */
-
 
93364
      public static _Fields findByName(String name) {
-
 
93365
        return byName.get(name);
-
 
93366
      }
-
 
93367
 
-
 
93368
      private final short _thriftId;
-
 
93369
      private final String _fieldName;
-
 
93370
 
-
 
93371
      _Fields(short thriftId, String fieldName) {
-
 
93372
        _thriftId = thriftId;
-
 
93373
        _fieldName = fieldName;
-
 
93374
      }
-
 
93375
 
-
 
93376
      public short getThriftFieldId() {
-
 
93377
        return _thriftId;
-
 
93378
      }
-
 
93379
 
-
 
93380
      public String getFieldName() {
-
 
93381
        return _fieldName;
-
 
93382
      }
-
 
93383
    }
-
 
93384
 
-
 
93385
    // isset id assignments
-
 
93386
 
-
 
93387
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
93388
    static {
-
 
93389
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
93390
      tmpMap.put(_Fields.SEARCH_TERM, new org.apache.thrift.meta_data.FieldMetaData("searchTerm", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
93391
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
93392
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
93393
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
93394
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealSearchResultCount_args.class, metaDataMap);
-
 
93395
    }
-
 
93396
 
-
 
93397
    public getSnapdealSearchResultCount_args() {
-
 
93398
    }
-
 
93399
 
-
 
93400
    public getSnapdealSearchResultCount_args(
-
 
93401
      List<String> searchTerm)
-
 
93402
    {
-
 
93403
      this();
-
 
93404
      this.searchTerm = searchTerm;
-
 
93405
    }
-
 
93406
 
-
 
93407
    /**
-
 
93408
     * Performs a deep copy on <i>other</i>.
-
 
93409
     */
-
 
93410
    public getSnapdealSearchResultCount_args(getSnapdealSearchResultCount_args other) {
-
 
93411
      if (other.isSetSearchTerm()) {
-
 
93412
        List<String> __this__searchTerm = new ArrayList<String>();
-
 
93413
        for (String other_element : other.searchTerm) {
-
 
93414
          __this__searchTerm.add(other_element);
-
 
93415
        }
-
 
93416
        this.searchTerm = __this__searchTerm;
-
 
93417
      }
-
 
93418
    }
-
 
93419
 
-
 
93420
    public getSnapdealSearchResultCount_args deepCopy() {
-
 
93421
      return new getSnapdealSearchResultCount_args(this);
-
 
93422
    }
-
 
93423
 
-
 
93424
    @Override
-
 
93425
    public void clear() {
-
 
93426
      this.searchTerm = null;
-
 
93427
    }
-
 
93428
 
-
 
93429
    public int getSearchTermSize() {
-
 
93430
      return (this.searchTerm == null) ? 0 : this.searchTerm.size();
-
 
93431
    }
-
 
93432
 
-
 
93433
    public java.util.Iterator<String> getSearchTermIterator() {
-
 
93434
      return (this.searchTerm == null) ? null : this.searchTerm.iterator();
-
 
93435
    }
-
 
93436
 
-
 
93437
    public void addToSearchTerm(String elem) {
-
 
93438
      if (this.searchTerm == null) {
-
 
93439
        this.searchTerm = new ArrayList<String>();
-
 
93440
      }
-
 
93441
      this.searchTerm.add(elem);
-
 
93442
    }
-
 
93443
 
-
 
93444
    public List<String> getSearchTerm() {
-
 
93445
      return this.searchTerm;
-
 
93446
    }
-
 
93447
 
-
 
93448
    public void setSearchTerm(List<String> searchTerm) {
-
 
93449
      this.searchTerm = searchTerm;
-
 
93450
    }
-
 
93451
 
-
 
93452
    public void unsetSearchTerm() {
-
 
93453
      this.searchTerm = null;
-
 
93454
    }
-
 
93455
 
-
 
93456
    /** Returns true if field searchTerm is set (has been assigned a value) and false otherwise */
-
 
93457
    public boolean isSetSearchTerm() {
-
 
93458
      return this.searchTerm != null;
-
 
93459
    }
-
 
93460
 
-
 
93461
    public void setSearchTermIsSet(boolean value) {
-
 
93462
      if (!value) {
-
 
93463
        this.searchTerm = null;
-
 
93464
      }
-
 
93465
    }
-
 
93466
 
-
 
93467
    public void setFieldValue(_Fields field, Object value) {
-
 
93468
      switch (field) {
-
 
93469
      case SEARCH_TERM:
-
 
93470
        if (value == null) {
-
 
93471
          unsetSearchTerm();
-
 
93472
        } else {
-
 
93473
          setSearchTerm((List<String>)value);
-
 
93474
        }
-
 
93475
        break;
-
 
93476
 
-
 
93477
      }
-
 
93478
    }
-
 
93479
 
-
 
93480
    public Object getFieldValue(_Fields field) {
-
 
93481
      switch (field) {
-
 
93482
      case SEARCH_TERM:
-
 
93483
        return getSearchTerm();
-
 
93484
 
-
 
93485
      }
-
 
93486
      throw new IllegalStateException();
-
 
93487
    }
-
 
93488
 
-
 
93489
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
93490
    public boolean isSet(_Fields field) {
-
 
93491
      if (field == null) {
-
 
93492
        throw new IllegalArgumentException();
-
 
93493
      }
-
 
93494
 
-
 
93495
      switch (field) {
-
 
93496
      case SEARCH_TERM:
-
 
93497
        return isSetSearchTerm();
-
 
93498
      }
-
 
93499
      throw new IllegalStateException();
-
 
93500
    }
-
 
93501
 
-
 
93502
    @Override
-
 
93503
    public boolean equals(Object that) {
-
 
93504
      if (that == null)
-
 
93505
        return false;
-
 
93506
      if (that instanceof getSnapdealSearchResultCount_args)
-
 
93507
        return this.equals((getSnapdealSearchResultCount_args)that);
-
 
93508
      return false;
-
 
93509
    }
-
 
93510
 
-
 
93511
    public boolean equals(getSnapdealSearchResultCount_args that) {
-
 
93512
      if (that == null)
-
 
93513
        return false;
-
 
93514
 
-
 
93515
      boolean this_present_searchTerm = true && this.isSetSearchTerm();
-
 
93516
      boolean that_present_searchTerm = true && that.isSetSearchTerm();
-
 
93517
      if (this_present_searchTerm || that_present_searchTerm) {
-
 
93518
        if (!(this_present_searchTerm && that_present_searchTerm))
-
 
93519
          return false;
-
 
93520
        if (!this.searchTerm.equals(that.searchTerm))
-
 
93521
          return false;
-
 
93522
      }
-
 
93523
 
-
 
93524
      return true;
-
 
93525
    }
-
 
93526
 
-
 
93527
    @Override
-
 
93528
    public int hashCode() {
-
 
93529
      return 0;
-
 
93530
    }
-
 
93531
 
-
 
93532
    public int compareTo(getSnapdealSearchResultCount_args other) {
-
 
93533
      if (!getClass().equals(other.getClass())) {
-
 
93534
        return getClass().getName().compareTo(other.getClass().getName());
-
 
93535
      }
-
 
93536
 
-
 
93537
      int lastComparison = 0;
-
 
93538
      getSnapdealSearchResultCount_args typedOther = (getSnapdealSearchResultCount_args)other;
-
 
93539
 
-
 
93540
      lastComparison = Boolean.valueOf(isSetSearchTerm()).compareTo(typedOther.isSetSearchTerm());
-
 
93541
      if (lastComparison != 0) {
-
 
93542
        return lastComparison;
-
 
93543
      }
-
 
93544
      if (isSetSearchTerm()) {
-
 
93545
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerm, typedOther.searchTerm);
-
 
93546
        if (lastComparison != 0) {
-
 
93547
          return lastComparison;
-
 
93548
        }
-
 
93549
      }
-
 
93550
      return 0;
-
 
93551
    }
-
 
93552
 
-
 
93553
    public _Fields fieldForId(int fieldId) {
-
 
93554
      return _Fields.findByThriftId(fieldId);
-
 
93555
    }
-
 
93556
 
-
 
93557
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
93558
      org.apache.thrift.protocol.TField field;
-
 
93559
      iprot.readStructBegin();
-
 
93560
      while (true)
-
 
93561
      {
-
 
93562
        field = iprot.readFieldBegin();
-
 
93563
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
93564
          break;
-
 
93565
        }
-
 
93566
        switch (field.id) {
-
 
93567
          case 1: // SEARCH_TERM
-
 
93568
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
93569
              {
-
 
93570
                org.apache.thrift.protocol.TList _list308 = iprot.readListBegin();
-
 
93571
                this.searchTerm = new ArrayList<String>(_list308.size);
-
 
93572
                for (int _i309 = 0; _i309 < _list308.size; ++_i309)
-
 
93573
                {
-
 
93574
                  String _elem310; // required
-
 
93575
                  _elem310 = iprot.readString();
-
 
93576
                  this.searchTerm.add(_elem310);
-
 
93577
                }
-
 
93578
                iprot.readListEnd();
-
 
93579
              }
-
 
93580
            } else { 
-
 
93581
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
93582
            }
-
 
93583
            break;
-
 
93584
          default:
-
 
93585
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
93586
        }
-
 
93587
        iprot.readFieldEnd();
-
 
93588
      }
-
 
93589
      iprot.readStructEnd();
-
 
93590
      validate();
-
 
93591
    }
-
 
93592
 
-
 
93593
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
93594
      validate();
-
 
93595
 
-
 
93596
      oprot.writeStructBegin(STRUCT_DESC);
-
 
93597
      if (this.searchTerm != null) {
-
 
93598
        oprot.writeFieldBegin(SEARCH_TERM_FIELD_DESC);
-
 
93599
        {
-
 
93600
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerm.size()));
-
 
93601
          for (String _iter311 : this.searchTerm)
-
 
93602
          {
-
 
93603
            oprot.writeString(_iter311);
-
 
93604
          }
-
 
93605
          oprot.writeListEnd();
-
 
93606
        }
-
 
93607
        oprot.writeFieldEnd();
-
 
93608
      }
-
 
93609
      oprot.writeFieldStop();
-
 
93610
      oprot.writeStructEnd();
-
 
93611
    }
-
 
93612
 
-
 
93613
    @Override
-
 
93614
    public String toString() {
-
 
93615
      StringBuilder sb = new StringBuilder("getSnapdealSearchResultCount_args(");
-
 
93616
      boolean first = true;
-
 
93617
 
-
 
93618
      sb.append("searchTerm:");
-
 
93619
      if (this.searchTerm == null) {
-
 
93620
        sb.append("null");
-
 
93621
      } else {
-
 
93622
        sb.append(this.searchTerm);
-
 
93623
      }
-
 
93624
      first = false;
-
 
93625
      sb.append(")");
-
 
93626
      return sb.toString();
-
 
93627
    }
-
 
93628
 
-
 
93629
    public void validate() throws org.apache.thrift.TException {
-
 
93630
      // check for required fields
-
 
93631
    }
-
 
93632
 
-
 
93633
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
93634
      try {
-
 
93635
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
93636
      } catch (org.apache.thrift.TException te) {
-
 
93637
        throw new java.io.IOException(te);
-
 
93638
      }
-
 
93639
    }
-
 
93640
 
-
 
93641
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
93642
      try {
-
 
93643
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
93644
      } catch (org.apache.thrift.TException te) {
-
 
93645
        throw new java.io.IOException(te);
-
 
93646
      }
-
 
93647
    }
-
 
93648
 
-
 
93649
  }
-
 
93650
 
-
 
93651
  public static class getSnapdealSearchResultCount_result implements org.apache.thrift.TBase<getSnapdealSearchResultCount_result, getSnapdealSearchResultCount_result._Fields>, java.io.Serializable, Cloneable   {
-
 
93652
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSnapdealSearchResultCount_result");
-
 
93653
 
-
 
93654
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
93655
 
-
 
93656
    private long success; // required
-
 
93657
 
-
 
93658
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
93659
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
93660
      SUCCESS((short)0, "success");
-
 
93661
 
-
 
93662
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
93663
 
-
 
93664
      static {
-
 
93665
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
93666
          byName.put(field.getFieldName(), field);
-
 
93667
        }
-
 
93668
      }
-
 
93669
 
-
 
93670
      /**
-
 
93671
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
93672
       */
-
 
93673
      public static _Fields findByThriftId(int fieldId) {
-
 
93674
        switch(fieldId) {
-
 
93675
          case 0: // SUCCESS
-
 
93676
            return SUCCESS;
-
 
93677
          default:
-
 
93678
            return null;
-
 
93679
        }
-
 
93680
      }
-
 
93681
 
-
 
93682
      /**
-
 
93683
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
93684
       * if it is not found.
-
 
93685
       */
-
 
93686
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
93687
        _Fields fields = findByThriftId(fieldId);
-
 
93688
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
93689
        return fields;
-
 
93690
      }
-
 
93691
 
-
 
93692
      /**
-
 
93693
       * Find the _Fields constant that matches name, or null if its not found.
-
 
93694
       */
-
 
93695
      public static _Fields findByName(String name) {
-
 
93696
        return byName.get(name);
-
 
93697
      }
-
 
93698
 
-
 
93699
      private final short _thriftId;
-
 
93700
      private final String _fieldName;
-
 
93701
 
-
 
93702
      _Fields(short thriftId, String fieldName) {
-
 
93703
        _thriftId = thriftId;
-
 
93704
        _fieldName = fieldName;
-
 
93705
      }
-
 
93706
 
-
 
93707
      public short getThriftFieldId() {
-
 
93708
        return _thriftId;
-
 
93709
      }
-
 
93710
 
-
 
93711
      public String getFieldName() {
-
 
93712
        return _fieldName;
-
 
93713
      }
-
 
93714
    }
-
 
93715
 
-
 
93716
    // isset id assignments
-
 
93717
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
93718
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
93719
 
-
 
93720
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
93721
    static {
-
 
93722
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
93723
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
93724
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
93725
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
93726
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSnapdealSearchResultCount_result.class, metaDataMap);
-
 
93727
    }
-
 
93728
 
-
 
93729
    public getSnapdealSearchResultCount_result() {
-
 
93730
    }
-
 
93731
 
-
 
93732
    public getSnapdealSearchResultCount_result(
-
 
93733
      long success)
-
 
93734
    {
-
 
93735
      this();
-
 
93736
      this.success = success;
-
 
93737
      setSuccessIsSet(true);
-
 
93738
    }
-
 
93739
 
-
 
93740
    /**
-
 
93741
     * Performs a deep copy on <i>other</i>.
-
 
93742
     */
-
 
93743
    public getSnapdealSearchResultCount_result(getSnapdealSearchResultCount_result other) {
-
 
93744
      __isset_bit_vector.clear();
-
 
93745
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
93746
      this.success = other.success;
-
 
93747
    }
-
 
93748
 
-
 
93749
    public getSnapdealSearchResultCount_result deepCopy() {
-
 
93750
      return new getSnapdealSearchResultCount_result(this);
-
 
93751
    }
-
 
93752
 
-
 
93753
    @Override
-
 
93754
    public void clear() {
-
 
93755
      setSuccessIsSet(false);
-
 
93756
      this.success = 0;
-
 
93757
    }
-
 
93758
 
-
 
93759
    public long getSuccess() {
-
 
93760
      return this.success;
-
 
93761
    }
-
 
93762
 
-
 
93763
    public void setSuccess(long success) {
-
 
93764
      this.success = success;
-
 
93765
      setSuccessIsSet(true);
-
 
93766
    }
-
 
93767
 
-
 
93768
    public void unsetSuccess() {
-
 
93769
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
93770
    }
-
 
93771
 
-
 
93772
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
93773
    public boolean isSetSuccess() {
-
 
93774
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
93775
    }
-
 
93776
 
-
 
93777
    public void setSuccessIsSet(boolean value) {
-
 
93778
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
93779
    }
-
 
93780
 
-
 
93781
    public void setFieldValue(_Fields field, Object value) {
-
 
93782
      switch (field) {
-
 
93783
      case SUCCESS:
-
 
93784
        if (value == null) {
-
 
93785
          unsetSuccess();
-
 
93786
        } else {
-
 
93787
          setSuccess((Long)value);
-
 
93788
        }
-
 
93789
        break;
-
 
93790
 
-
 
93791
      }
-
 
93792
    }
-
 
93793
 
-
 
93794
    public Object getFieldValue(_Fields field) {
-
 
93795
      switch (field) {
-
 
93796
      case SUCCESS:
-
 
93797
        return Long.valueOf(getSuccess());
-
 
93798
 
-
 
93799
      }
-
 
93800
      throw new IllegalStateException();
-
 
93801
    }
-
 
93802
 
-
 
93803
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
93804
    public boolean isSet(_Fields field) {
-
 
93805
      if (field == null) {
-
 
93806
        throw new IllegalArgumentException();
-
 
93807
      }
-
 
93808
 
-
 
93809
      switch (field) {
-
 
93810
      case SUCCESS:
-
 
93811
        return isSetSuccess();
-
 
93812
      }
-
 
93813
      throw new IllegalStateException();
-
 
93814
    }
-
 
93815
 
-
 
93816
    @Override
-
 
93817
    public boolean equals(Object that) {
-
 
93818
      if (that == null)
-
 
93819
        return false;
-
 
93820
      if (that instanceof getSnapdealSearchResultCount_result)
-
 
93821
        return this.equals((getSnapdealSearchResultCount_result)that);
-
 
93822
      return false;
-
 
93823
    }
-
 
93824
 
-
 
93825
    public boolean equals(getSnapdealSearchResultCount_result that) {
-
 
93826
      if (that == null)
-
 
93827
        return false;
-
 
93828
 
-
 
93829
      boolean this_present_success = true;
-
 
93830
      boolean that_present_success = true;
-
 
93831
      if (this_present_success || that_present_success) {
-
 
93832
        if (!(this_present_success && that_present_success))
-
 
93833
          return false;
-
 
93834
        if (this.success != that.success)
-
 
93835
          return false;
-
 
93836
      }
-
 
93837
 
-
 
93838
      return true;
-
 
93839
    }
-
 
93840
 
-
 
93841
    @Override
-
 
93842
    public int hashCode() {
-
 
93843
      return 0;
-
 
93844
    }
-
 
93845
 
-
 
93846
    public int compareTo(getSnapdealSearchResultCount_result other) {
-
 
93847
      if (!getClass().equals(other.getClass())) {
-
 
93848
        return getClass().getName().compareTo(other.getClass().getName());
-
 
93849
      }
-
 
93850
 
-
 
93851
      int lastComparison = 0;
-
 
93852
      getSnapdealSearchResultCount_result typedOther = (getSnapdealSearchResultCount_result)other;
-
 
93853
 
-
 
93854
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
93855
      if (lastComparison != 0) {
-
 
93856
        return lastComparison;
-
 
93857
      }
-
 
93858
      if (isSetSuccess()) {
-
 
93859
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
93860
        if (lastComparison != 0) {
-
 
93861
          return lastComparison;
-
 
93862
        }
-
 
93863
      }
-
 
93864
      return 0;
-
 
93865
    }
-
 
93866
 
-
 
93867
    public _Fields fieldForId(int fieldId) {
-
 
93868
      return _Fields.findByThriftId(fieldId);
-
 
93869
    }
-
 
93870
 
-
 
93871
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
93872
      org.apache.thrift.protocol.TField field;
-
 
93873
      iprot.readStructBegin();
-
 
93874
      while (true)
-
 
93875
      {
-
 
93876
        field = iprot.readFieldBegin();
-
 
93877
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
93878
          break;
-
 
93879
        }
-
 
93880
        switch (field.id) {
-
 
93881
          case 0: // SUCCESS
-
 
93882
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
93883
              this.success = iprot.readI64();
-
 
93884
              setSuccessIsSet(true);
-
 
93885
            } else { 
-
 
93886
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
93887
            }
-
 
93888
            break;
-
 
93889
          default:
-
 
93890
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
93891
        }
-
 
93892
        iprot.readFieldEnd();
-
 
93893
      }
-
 
93894
      iprot.readStructEnd();
-
 
93895
      validate();
-
 
93896
    }
-
 
93897
 
-
 
93898
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
93899
      oprot.writeStructBegin(STRUCT_DESC);
-
 
93900
 
-
 
93901
      if (this.isSetSuccess()) {
-
 
93902
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
93903
        oprot.writeI64(this.success);
-
 
93904
        oprot.writeFieldEnd();
-
 
93905
      }
-
 
93906
      oprot.writeFieldStop();
-
 
93907
      oprot.writeStructEnd();
-
 
93908
    }
-
 
93909
 
-
 
93910
    @Override
-
 
93911
    public String toString() {
-
 
93912
      StringBuilder sb = new StringBuilder("getSnapdealSearchResultCount_result(");
-
 
93913
      boolean first = true;
-
 
93914
 
-
 
93915
      sb.append("success:");
-
 
93916
      sb.append(this.success);
-
 
93917
      first = false;
-
 
93918
      sb.append(")");
-
 
93919
      return sb.toString();
-
 
93920
    }
-
 
93921
 
90889
    public void validate() throws org.apache.thrift.TException {
93922
    public void validate() throws org.apache.thrift.TException {
90890
      // check for required fields
93923
      // check for required fields
90891
    }
93924
    }
90892
 
93925
 
90893
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
93926
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {