Subversion Repositories SmartDukaan

Rev

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

Rev 8616 Rev 8619
Line 418... Line 418...
418
 
418
 
419
    public void updateStorePricing(StorePricing sp, boolean allColors) throws org.apache.thrift.TException;
419
    public void updateStorePricing(StorePricing sp, boolean allColors) throws org.apache.thrift.TException;
420
 
420
 
421
    public List<Amazonlisted> getAllAmazonListedItems() throws org.apache.thrift.TException;
421
    public List<Amazonlisted> getAllAmazonListedItems() throws org.apache.thrift.TException;
422
 
422
 
-
 
423
    public List<Amazonlisted> searchAmazonItems(List<String> searchTerm, long offset, long limit) throws org.apache.thrift.TException;
-
 
424
 
-
 
425
    public long getAmazonSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException;
-
 
426
 
-
 
427
    public long getCountForAmazonlistedItems() throws org.apache.thrift.TException;
-
 
428
 
423
    public Amazonlisted getAmazonItemDetails(long itemId) throws org.apache.thrift.TException;
429
    public Amazonlisted getAmazonItemDetails(long itemId) throws org.apache.thrift.TException;
424
 
430
 
425
    public void updateAmazonItemDetails(Amazonlisted amazonlisted) throws org.apache.thrift.TException;
431
    public void updateAmazonItemDetails(Amazonlisted amazonlisted) throws org.apache.thrift.TException;
426
 
432
 
427
    public void addAmazonItem(Amazonlisted amazonlisted) throws org.apache.thrift.TException;
433
    public void addAmazonItem(Amazonlisted amazonlisted) throws org.apache.thrift.TException;
Line 456... Line 462...
456
 
462
 
457
    public List<Amazonlisted> getAllItemstoListOnNonFba() throws org.apache.thrift.TException;
463
    public List<Amazonlisted> getAllItemstoListOnNonFba() throws org.apache.thrift.TException;
458
 
464
 
459
    public List<Item> getAllSnapdealListedActiveItems() throws org.apache.thrift.TException;
465
    public List<Item> getAllSnapdealListedActiveItems() throws org.apache.thrift.TException;
460
 
466
 
-
 
467
    public void updateAsin(Map<Long,Item> item) throws org.apache.thrift.TException;
-
 
468
 
461
  }
469
  }
462
 
470
 
463
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
471
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
464
 
472
 
465
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
473
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 658... Line 666...
658
 
666
 
659
    public void updateStorePricing(StorePricing sp, boolean allColors, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateStorePricing_call> resultHandler) throws org.apache.thrift.TException;
667
    public void updateStorePricing(StorePricing sp, boolean allColors, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateStorePricing_call> resultHandler) throws org.apache.thrift.TException;
660
 
668
 
661
    public void getAllAmazonListedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAmazonListedItems_call> resultHandler) throws org.apache.thrift.TException;
669
    public void getAllAmazonListedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAmazonListedItems_call> resultHandler) throws org.apache.thrift.TException;
662
 
670
 
-
 
671
    public void searchAmazonItems(List<String> searchTerm, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.searchAmazonItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
672
 
-
 
673
    public void getAmazonSearchResultCount(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonSearchResultCount_call> resultHandler) throws org.apache.thrift.TException;
-
 
674
 
-
 
675
    public void getCountForAmazonlistedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCountForAmazonlistedItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
676
 
663
    public void getAmazonItemDetails(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonItemDetails_call> resultHandler) throws org.apache.thrift.TException;
677
    public void getAmazonItemDetails(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonItemDetails_call> resultHandler) throws org.apache.thrift.TException;
664
 
678
 
665
    public void updateAmazonItemDetails(Amazonlisted amazonlisted, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAmazonItemDetails_call> resultHandler) throws org.apache.thrift.TException;
679
    public void updateAmazonItemDetails(Amazonlisted amazonlisted, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAmazonItemDetails_call> resultHandler) throws org.apache.thrift.TException;
666
 
680
 
667
    public void addAmazonItem(Amazonlisted amazonlisted, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAmazonItem_call> resultHandler) throws org.apache.thrift.TException;
681
    public void addAmazonItem(Amazonlisted amazonlisted, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAmazonItem_call> resultHandler) throws org.apache.thrift.TException;
Line 696... Line 710...
696
 
710
 
697
    public void getAllItemstoListOnNonFba(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnNonFba_call> resultHandler) throws org.apache.thrift.TException;
711
    public void getAllItemstoListOnNonFba(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnNonFba_call> resultHandler) throws org.apache.thrift.TException;
698
 
712
 
699
    public void getAllSnapdealListedActiveItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSnapdealListedActiveItems_call> resultHandler) throws org.apache.thrift.TException;
713
    public void getAllSnapdealListedActiveItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllSnapdealListedActiveItems_call> resultHandler) throws org.apache.thrift.TException;
700
 
714
 
-
 
715
    public void updateAsin(Map<Long,Item> item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAsin_call> resultHandler) throws org.apache.thrift.TException;
-
 
716
 
701
  }
717
  }
702
 
718
 
703
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
719
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
704
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
720
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
705
      public Factory() {}
721
      public Factory() {}
Line 3100... Line 3116...
3100
        return result.success;
3116
        return result.success;
3101
      }
3117
      }
3102
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");
3118
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");
3103
    }
3119
    }
3104
 
3120
 
-
 
3121
    public List<Amazonlisted> searchAmazonItems(List<String> searchTerm, long offset, long limit) throws org.apache.thrift.TException
-
 
3122
    {
-
 
3123
      send_searchAmazonItems(searchTerm, offset, limit);
-
 
3124
      return recv_searchAmazonItems();
-
 
3125
    }
-
 
3126
 
-
 
3127
    public void send_searchAmazonItems(List<String> searchTerm, long offset, long limit) throws org.apache.thrift.TException
-
 
3128
    {
-
 
3129
      searchAmazonItems_args args = new searchAmazonItems_args();
-
 
3130
      args.setSearchTerm(searchTerm);
-
 
3131
      args.setOffset(offset);
-
 
3132
      args.setLimit(limit);
-
 
3133
      sendBase("searchAmazonItems", args);
-
 
3134
    }
-
 
3135
 
-
 
3136
    public List<Amazonlisted> recv_searchAmazonItems() throws org.apache.thrift.TException
-
 
3137
    {
-
 
3138
      searchAmazonItems_result result = new searchAmazonItems_result();
-
 
3139
      receiveBase(result, "searchAmazonItems");
-
 
3140
      if (result.isSetSuccess()) {
-
 
3141
        return result.success;
-
 
3142
      }
-
 
3143
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchAmazonItems failed: unknown result");
-
 
3144
    }
-
 
3145
 
-
 
3146
    public long getAmazonSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException
-
 
3147
    {
-
 
3148
      send_getAmazonSearchResultCount(searchTerm);
-
 
3149
      return recv_getAmazonSearchResultCount();
-
 
3150
    }
-
 
3151
 
-
 
3152
    public void send_getAmazonSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException
-
 
3153
    {
-
 
3154
      getAmazonSearchResultCount_args args = new getAmazonSearchResultCount_args();
-
 
3155
      args.setSearchTerm(searchTerm);
-
 
3156
      sendBase("getAmazonSearchResultCount", args);
-
 
3157
    }
-
 
3158
 
-
 
3159
    public long recv_getAmazonSearchResultCount() throws org.apache.thrift.TException
-
 
3160
    {
-
 
3161
      getAmazonSearchResultCount_result result = new getAmazonSearchResultCount_result();
-
 
3162
      receiveBase(result, "getAmazonSearchResultCount");
-
 
3163
      if (result.isSetSuccess()) {
-
 
3164
        return result.success;
-
 
3165
      }
-
 
3166
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonSearchResultCount failed: unknown result");
-
 
3167
    }
-
 
3168
 
-
 
3169
    public long getCountForAmazonlistedItems() throws org.apache.thrift.TException
-
 
3170
    {
-
 
3171
      send_getCountForAmazonlistedItems();
-
 
3172
      return recv_getCountForAmazonlistedItems();
-
 
3173
    }
-
 
3174
 
-
 
3175
    public void send_getCountForAmazonlistedItems() throws org.apache.thrift.TException
-
 
3176
    {
-
 
3177
      getCountForAmazonlistedItems_args args = new getCountForAmazonlistedItems_args();
-
 
3178
      sendBase("getCountForAmazonlistedItems", args);
-
 
3179
    }
-
 
3180
 
-
 
3181
    public long recv_getCountForAmazonlistedItems() throws org.apache.thrift.TException
-
 
3182
    {
-
 
3183
      getCountForAmazonlistedItems_result result = new getCountForAmazonlistedItems_result();
-
 
3184
      receiveBase(result, "getCountForAmazonlistedItems");
-
 
3185
      if (result.isSetSuccess()) {
-
 
3186
        return result.success;
-
 
3187
      }
-
 
3188
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCountForAmazonlistedItems failed: unknown result");
-
 
3189
    }
-
 
3190
 
3105
    public Amazonlisted getAmazonItemDetails(long itemId) throws org.apache.thrift.TException
3191
    public Amazonlisted getAmazonItemDetails(long itemId) throws org.apache.thrift.TException
3106
    {
3192
    {
3107
      send_getAmazonItemDetails(itemId);
3193
      send_getAmazonItemDetails(itemId);
3108
      return recv_getAmazonItemDetails();
3194
      return recv_getAmazonItemDetails();
3109
    }
3195
    }
Line 3517... Line 3603...
3517
        return result.success;
3603
        return result.success;
3518
      }
3604
      }
3519
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSnapdealListedActiveItems failed: unknown result");
3605
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllSnapdealListedActiveItems failed: unknown result");
3520
    }
3606
    }
3521
 
3607
 
-
 
3608
    public void updateAsin(Map<Long,Item> item) throws org.apache.thrift.TException
-
 
3609
    {
-
 
3610
      send_updateAsin(item);
-
 
3611
      recv_updateAsin();
-
 
3612
    }
-
 
3613
 
-
 
3614
    public void send_updateAsin(Map<Long,Item> item) throws org.apache.thrift.TException
-
 
3615
    {
-
 
3616
      updateAsin_args args = new updateAsin_args();
-
 
3617
      args.setItem(item);
-
 
3618
      sendBase("updateAsin", args);
-
 
3619
    }
-
 
3620
 
-
 
3621
    public void recv_updateAsin() throws org.apache.thrift.TException
-
 
3622
    {
-
 
3623
      updateAsin_result result = new updateAsin_result();
-
 
3624
      receiveBase(result, "updateAsin");
-
 
3625
      return;
-
 
3626
    }
-
 
3627
 
3522
  }
3628
  }
3523
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3629
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3524
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3630
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3525
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3631
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3526
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
3632
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 6802... Line 6908...
6802
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6908
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6803
        return (new Client(prot)).recv_getAllAmazonListedItems();
6909
        return (new Client(prot)).recv_getAllAmazonListedItems();
6804
      }
6910
      }
6805
    }
6911
    }
6806
 
6912
 
-
 
6913
    public void searchAmazonItems(List<String> searchTerm, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<searchAmazonItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
6914
      checkReady();
-
 
6915
      searchAmazonItems_call method_call = new searchAmazonItems_call(searchTerm, offset, limit, resultHandler, this, ___protocolFactory, ___transport);
-
 
6916
      this.___currentMethod = method_call;
-
 
6917
      ___manager.call(method_call);
-
 
6918
    }
-
 
6919
 
-
 
6920
    public static class searchAmazonItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
6921
      private List<String> searchTerm;
-
 
6922
      private long offset;
-
 
6923
      private long limit;
-
 
6924
      public searchAmazonItems_call(List<String> searchTerm, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<searchAmazonItems_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 {
-
 
6925
        super(client, protocolFactory, transport, resultHandler, false);
-
 
6926
        this.searchTerm = searchTerm;
-
 
6927
        this.offset = offset;
-
 
6928
        this.limit = limit;
-
 
6929
      }
-
 
6930
 
-
 
6931
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
6932
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchAmazonItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
6933
        searchAmazonItems_args args = new searchAmazonItems_args();
-
 
6934
        args.setSearchTerm(searchTerm);
-
 
6935
        args.setOffset(offset);
-
 
6936
        args.setLimit(limit);
-
 
6937
        args.write(prot);
-
 
6938
        prot.writeMessageEnd();
-
 
6939
      }
-
 
6940
 
-
 
6941
      public List<Amazonlisted> getResult() throws org.apache.thrift.TException {
-
 
6942
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
6943
          throw new IllegalStateException("Method call not finished!");
-
 
6944
        }
-
 
6945
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
6946
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
6947
        return (new Client(prot)).recv_searchAmazonItems();
-
 
6948
      }
-
 
6949
    }
-
 
6950
 
-
 
6951
    public void getAmazonSearchResultCount(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<getAmazonSearchResultCount_call> resultHandler) throws org.apache.thrift.TException {
-
 
6952
      checkReady();
-
 
6953
      getAmazonSearchResultCount_call method_call = new getAmazonSearchResultCount_call(searchTerm, resultHandler, this, ___protocolFactory, ___transport);
-
 
6954
      this.___currentMethod = method_call;
-
 
6955
      ___manager.call(method_call);
-
 
6956
    }
-
 
6957
 
-
 
6958
    public static class getAmazonSearchResultCount_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
6959
      private List<String> searchTerm;
-
 
6960
      public getAmazonSearchResultCount_call(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<getAmazonSearchResultCount_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 {
-
 
6961
        super(client, protocolFactory, transport, resultHandler, false);
-
 
6962
        this.searchTerm = searchTerm;
-
 
6963
      }
-
 
6964
 
-
 
6965
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
6966
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonSearchResultCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
6967
        getAmazonSearchResultCount_args args = new getAmazonSearchResultCount_args();
-
 
6968
        args.setSearchTerm(searchTerm);
-
 
6969
        args.write(prot);
-
 
6970
        prot.writeMessageEnd();
-
 
6971
      }
-
 
6972
 
-
 
6973
      public long getResult() throws org.apache.thrift.TException {
-
 
6974
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
6975
          throw new IllegalStateException("Method call not finished!");
-
 
6976
        }
-
 
6977
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
6978
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
6979
        return (new Client(prot)).recv_getAmazonSearchResultCount();
-
 
6980
      }
-
 
6981
    }
-
 
6982
 
-
 
6983
    public void getCountForAmazonlistedItems(org.apache.thrift.async.AsyncMethodCallback<getCountForAmazonlistedItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
6984
      checkReady();
-
 
6985
      getCountForAmazonlistedItems_call method_call = new getCountForAmazonlistedItems_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
6986
      this.___currentMethod = method_call;
-
 
6987
      ___manager.call(method_call);
-
 
6988
    }
-
 
6989
 
-
 
6990
    public static class getCountForAmazonlistedItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
6991
      public getCountForAmazonlistedItems_call(org.apache.thrift.async.AsyncMethodCallback<getCountForAmazonlistedItems_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 {
-
 
6992
        super(client, protocolFactory, transport, resultHandler, false);
-
 
6993
      }
-
 
6994
 
-
 
6995
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
6996
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCountForAmazonlistedItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
6997
        getCountForAmazonlistedItems_args args = new getCountForAmazonlistedItems_args();
-
 
6998
        args.write(prot);
-
 
6999
        prot.writeMessageEnd();
-
 
7000
      }
-
 
7001
 
-
 
7002
      public long getResult() throws org.apache.thrift.TException {
-
 
7003
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
7004
          throw new IllegalStateException("Method call not finished!");
-
 
7005
        }
-
 
7006
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
7007
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
7008
        return (new Client(prot)).recv_getCountForAmazonlistedItems();
-
 
7009
      }
-
 
7010
    }
-
 
7011
 
6807
    public void getAmazonItemDetails(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAmazonItemDetails_call> resultHandler) throws org.apache.thrift.TException {
7012
    public void getAmazonItemDetails(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAmazonItemDetails_call> resultHandler) throws org.apache.thrift.TException {
6808
      checkReady();
7013
      checkReady();
6809
      getAmazonItemDetails_call method_call = new getAmazonItemDetails_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
7014
      getAmazonItemDetails_call method_call = new getAmazonItemDetails_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
6810
      this.___currentMethod = method_call;
7015
      this.___currentMethod = method_call;
6811
      ___manager.call(method_call);
7016
      ___manager.call(method_call);
Line 7404... Line 7609...
7404
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7609
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7405
        return (new Client(prot)).recv_getAllSnapdealListedActiveItems();
7610
        return (new Client(prot)).recv_getAllSnapdealListedActiveItems();
7406
      }
7611
      }
7407
    }
7612
    }
7408
 
7613
 
-
 
7614
    public void updateAsin(Map<Long,Item> item, org.apache.thrift.async.AsyncMethodCallback<updateAsin_call> resultHandler) throws org.apache.thrift.TException {
-
 
7615
      checkReady();
-
 
7616
      updateAsin_call method_call = new updateAsin_call(item, resultHandler, this, ___protocolFactory, ___transport);
-
 
7617
      this.___currentMethod = method_call;
-
 
7618
      ___manager.call(method_call);
-
 
7619
    }
-
 
7620
 
-
 
7621
    public static class updateAsin_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
7622
      private Map<Long,Item> item;
-
 
7623
      public updateAsin_call(Map<Long,Item> item, org.apache.thrift.async.AsyncMethodCallback<updateAsin_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 {
-
 
7624
        super(client, protocolFactory, transport, resultHandler, false);
-
 
7625
        this.item = item;
-
 
7626
      }
-
 
7627
 
-
 
7628
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
7629
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAsin", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
7630
        updateAsin_args args = new updateAsin_args();
-
 
7631
        args.setItem(item);
-
 
7632
        args.write(prot);
-
 
7633
        prot.writeMessageEnd();
-
 
7634
      }
-
 
7635
 
-
 
7636
      public void getResult() throws org.apache.thrift.TException {
-
 
7637
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
7638
          throw new IllegalStateException("Method call not finished!");
-
 
7639
        }
-
 
7640
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
7641
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
7642
        (new Client(prot)).recv_updateAsin();
-
 
7643
      }
-
 
7644
    }
-
 
7645
 
7409
  }
7646
  }
7410
 
7647
 
7411
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
7648
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
7412
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
7649
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
7413
    public Processor(I iface) {
7650
    public Processor(I iface) {
Line 7516... Line 7753...
7516
      processMap.put("getBrandInfo", new getBrandInfo());
7753
      processMap.put("getBrandInfo", new getBrandInfo());
7517
      processMap.put("getStorePricing", new getStorePricing());
7754
      processMap.put("getStorePricing", new getStorePricing());
7518
      processMap.put("getStorePricings", new getStorePricings());
7755
      processMap.put("getStorePricings", new getStorePricings());
7519
      processMap.put("updateStorePricing", new updateStorePricing());
7756
      processMap.put("updateStorePricing", new updateStorePricing());
7520
      processMap.put("getAllAmazonListedItems", new getAllAmazonListedItems());
7757
      processMap.put("getAllAmazonListedItems", new getAllAmazonListedItems());
-
 
7758
      processMap.put("searchAmazonItems", new searchAmazonItems());
-
 
7759
      processMap.put("getAmazonSearchResultCount", new getAmazonSearchResultCount());
-
 
7760
      processMap.put("getCountForAmazonlistedItems", new getCountForAmazonlistedItems());
7521
      processMap.put("getAmazonItemDetails", new getAmazonItemDetails());
7761
      processMap.put("getAmazonItemDetails", new getAmazonItemDetails());
7522
      processMap.put("updateAmazonItemDetails", new updateAmazonItemDetails());
7762
      processMap.put("updateAmazonItemDetails", new updateAmazonItemDetails());
7523
      processMap.put("addAmazonItem", new addAmazonItem());
7763
      processMap.put("addAmazonItem", new addAmazonItem());
7524
      processMap.put("getAsinItems", new getAsinItems());
7764
      processMap.put("getAsinItems", new getAsinItems());
7525
      processMap.put("getAllFbaListedItems", new getAllFbaListedItems());
7765
      processMap.put("getAllFbaListedItems", new getAllFbaListedItems());
Line 7535... Line 7775...
7535
      processMap.put("getAmazonListedItems", new getAmazonListedItems());
7775
      processMap.put("getAmazonListedItems", new getAmazonListedItems());
7536
      processMap.put("updateAmazonAttributesInBulk", new updateAmazonAttributesInBulk());
7776
      processMap.put("updateAmazonAttributesInBulk", new updateAmazonAttributesInBulk());
7537
      processMap.put("getAllItemstoListOnFba", new getAllItemstoListOnFba());
7777
      processMap.put("getAllItemstoListOnFba", new getAllItemstoListOnFba());
7538
      processMap.put("getAllItemstoListOnNonFba", new getAllItemstoListOnNonFba());
7778
      processMap.put("getAllItemstoListOnNonFba", new getAllItemstoListOnNonFba());
7539
      processMap.put("getAllSnapdealListedActiveItems", new getAllSnapdealListedActiveItems());
7779
      processMap.put("getAllSnapdealListedActiveItems", new getAllSnapdealListedActiveItems());
-
 
7780
      processMap.put("updateAsin", new updateAsin());
7540
      return processMap;
7781
      return processMap;
7541
    }
7782
    }
7542
 
7783
 
7543
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
7784
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
7544
      public addItem() {
7785
      public addItem() {
Line 9306... Line 9547...
9306
        result.success = iface.getAllAmazonListedItems();
9547
        result.success = iface.getAllAmazonListedItems();
9307
        return result;
9548
        return result;
9308
      }
9549
      }
9309
    }
9550
    }
9310
 
9551
 
-
 
9552
    private static class searchAmazonItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, searchAmazonItems_args> {
-
 
9553
      public searchAmazonItems() {
-
 
9554
        super("searchAmazonItems");
-
 
9555
      }
-
 
9556
 
-
 
9557
      protected searchAmazonItems_args getEmptyArgsInstance() {
-
 
9558
        return new searchAmazonItems_args();
-
 
9559
      }
-
 
9560
 
-
 
9561
      protected searchAmazonItems_result getResult(I iface, searchAmazonItems_args args) throws org.apache.thrift.TException {
-
 
9562
        searchAmazonItems_result result = new searchAmazonItems_result();
-
 
9563
        result.success = iface.searchAmazonItems(args.searchTerm, args.offset, args.limit);
-
 
9564
        return result;
-
 
9565
      }
-
 
9566
    }
-
 
9567
 
-
 
9568
    private static class getAmazonSearchResultCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonSearchResultCount_args> {
-
 
9569
      public getAmazonSearchResultCount() {
-
 
9570
        super("getAmazonSearchResultCount");
-
 
9571
      }
-
 
9572
 
-
 
9573
      protected getAmazonSearchResultCount_args getEmptyArgsInstance() {
-
 
9574
        return new getAmazonSearchResultCount_args();
-
 
9575
      }
-
 
9576
 
-
 
9577
      protected getAmazonSearchResultCount_result getResult(I iface, getAmazonSearchResultCount_args args) throws org.apache.thrift.TException {
-
 
9578
        getAmazonSearchResultCount_result result = new getAmazonSearchResultCount_result();
-
 
9579
        result.success = iface.getAmazonSearchResultCount(args.searchTerm);
-
 
9580
        result.setSuccessIsSet(true);
-
 
9581
        return result;
-
 
9582
      }
-
 
9583
    }
-
 
9584
 
-
 
9585
    private static class getCountForAmazonlistedItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCountForAmazonlistedItems_args> {
-
 
9586
      public getCountForAmazonlistedItems() {
-
 
9587
        super("getCountForAmazonlistedItems");
-
 
9588
      }
-
 
9589
 
-
 
9590
      protected getCountForAmazonlistedItems_args getEmptyArgsInstance() {
-
 
9591
        return new getCountForAmazonlistedItems_args();
-
 
9592
      }
-
 
9593
 
-
 
9594
      protected getCountForAmazonlistedItems_result getResult(I iface, getCountForAmazonlistedItems_args args) throws org.apache.thrift.TException {
-
 
9595
        getCountForAmazonlistedItems_result result = new getCountForAmazonlistedItems_result();
-
 
9596
        result.success = iface.getCountForAmazonlistedItems();
-
 
9597
        result.setSuccessIsSet(true);
-
 
9598
        return result;
-
 
9599
      }
-
 
9600
    }
-
 
9601
 
9311
    private static class getAmazonItemDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonItemDetails_args> {
9602
    private static class getAmazonItemDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonItemDetails_args> {
9312
      public getAmazonItemDetails() {
9603
      public getAmazonItemDetails() {
9313
        super("getAmazonItemDetails");
9604
        super("getAmazonItemDetails");
9314
      }
9605
      }
9315
 
9606
 
Line 9613... Line 9904...
9613
        result.success = iface.getAllSnapdealListedActiveItems();
9904
        result.success = iface.getAllSnapdealListedActiveItems();
9614
        return result;
9905
        return result;
9615
      }
9906
      }
9616
    }
9907
    }
9617
 
9908
 
-
 
9909
    private static class updateAsin<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateAsin_args> {
-
 
9910
      public updateAsin() {
-
 
9911
        super("updateAsin");
-
 
9912
      }
-
 
9913
 
-
 
9914
      protected updateAsin_args getEmptyArgsInstance() {
-
 
9915
        return new updateAsin_args();
-
 
9916
      }
-
 
9917
 
-
 
9918
      protected updateAsin_result getResult(I iface, updateAsin_args args) throws org.apache.thrift.TException {
-
 
9919
        updateAsin_result result = new updateAsin_result();
-
 
9920
        iface.updateAsin(args.item);
-
 
9921
        return result;
-
 
9922
      }
-
 
9923
    }
-
 
9924
 
9618
  }
9925
  }
9619
 
9926
 
9620
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
9927
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
9621
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
9928
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
9622
 
9929
 
Line 49025... Line 49332...
49025
      }
49332
      }
49026
    }
49333
    }
49027
 
49334
 
49028
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49335
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
49029
      try {
49336
      try {
49030
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
49031
        __isset_bit_vector = new BitSet(1);
-
 
49032
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49337
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
49033
      } catch (org.apache.thrift.TException te) {
49338
      } catch (org.apache.thrift.TException te) {
49034
        throw new java.io.IOException(te);
49339
        throw new java.io.IOException(te);
49035
      }
49340
      }
49036
    }
49341
    }
Line 74381... Line 74686...
74381
      }
74686
      }
74382
    }
74687
    }
74383
 
74688
 
74384
  }
74689
  }
74385
 
74690
 
-
 
74691
  public static class searchAmazonItems_args implements org.apache.thrift.TBase<searchAmazonItems_args, searchAmazonItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
74692
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchAmazonItems_args");
-
 
74693
 
-
 
74694
    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);
-
 
74695
    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);
-
 
74696
    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);
-
 
74697
 
-
 
74698
    private List<String> searchTerm; // required
-
 
74699
    private long offset; // required
-
 
74700
    private long limit; // required
-
 
74701
 
-
 
74702
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
74703
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
74704
      SEARCH_TERM((short)1, "searchTerm"),
-
 
74705
      OFFSET((short)2, "offset"),
-
 
74706
      LIMIT((short)3, "limit");
-
 
74707
 
-
 
74708
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
74709
 
-
 
74710
      static {
-
 
74711
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
74712
          byName.put(field.getFieldName(), field);
-
 
74713
        }
-
 
74714
      }
-
 
74715
 
-
 
74716
      /**
-
 
74717
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
74718
       */
-
 
74719
      public static _Fields findByThriftId(int fieldId) {
-
 
74720
        switch(fieldId) {
-
 
74721
          case 1: // SEARCH_TERM
-
 
74722
            return SEARCH_TERM;
-
 
74723
          case 2: // OFFSET
-
 
74724
            return OFFSET;
-
 
74725
          case 3: // LIMIT
-
 
74726
            return LIMIT;
-
 
74727
          default:
-
 
74728
            return null;
-
 
74729
        }
-
 
74730
      }
-
 
74731
 
-
 
74732
      /**
-
 
74733
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
74734
       * if it is not found.
-
 
74735
       */
-
 
74736
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
74737
        _Fields fields = findByThriftId(fieldId);
-
 
74738
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
74739
        return fields;
-
 
74740
      }
-
 
74741
 
-
 
74742
      /**
-
 
74743
       * Find the _Fields constant that matches name, or null if its not found.
-
 
74744
       */
-
 
74745
      public static _Fields findByName(String name) {
-
 
74746
        return byName.get(name);
-
 
74747
      }
-
 
74748
 
-
 
74749
      private final short _thriftId;
-
 
74750
      private final String _fieldName;
-
 
74751
 
-
 
74752
      _Fields(short thriftId, String fieldName) {
-
 
74753
        _thriftId = thriftId;
-
 
74754
        _fieldName = fieldName;
-
 
74755
      }
-
 
74756
 
-
 
74757
      public short getThriftFieldId() {
-
 
74758
        return _thriftId;
-
 
74759
      }
-
 
74760
 
-
 
74761
      public String getFieldName() {
-
 
74762
        return _fieldName;
-
 
74763
      }
-
 
74764
    }
-
 
74765
 
-
 
74766
    // isset id assignments
-
 
74767
    private static final int __OFFSET_ISSET_ID = 0;
-
 
74768
    private static final int __LIMIT_ISSET_ID = 1;
-
 
74769
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
74770
 
-
 
74771
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
74772
    static {
-
 
74773
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
74774
      tmpMap.put(_Fields.SEARCH_TERM, new org.apache.thrift.meta_data.FieldMetaData("searchTerm", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
74775
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
74776
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
74777
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
74778
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
74779
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
74780
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
74781
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
74782
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchAmazonItems_args.class, metaDataMap);
-
 
74783
    }
-
 
74784
 
-
 
74785
    public searchAmazonItems_args() {
-
 
74786
    }
-
 
74787
 
-
 
74788
    public searchAmazonItems_args(
-
 
74789
      List<String> searchTerm,
-
 
74790
      long offset,
-
 
74791
      long limit)
-
 
74792
    {
-
 
74793
      this();
-
 
74794
      this.searchTerm = searchTerm;
-
 
74795
      this.offset = offset;
-
 
74796
      setOffsetIsSet(true);
-
 
74797
      this.limit = limit;
-
 
74798
      setLimitIsSet(true);
-
 
74799
    }
-
 
74800
 
-
 
74801
    /**
-
 
74802
     * Performs a deep copy on <i>other</i>.
-
 
74803
     */
-
 
74804
    public searchAmazonItems_args(searchAmazonItems_args other) {
-
 
74805
      __isset_bit_vector.clear();
-
 
74806
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
74807
      if (other.isSetSearchTerm()) {
-
 
74808
        List<String> __this__searchTerm = new ArrayList<String>();
-
 
74809
        for (String other_element : other.searchTerm) {
-
 
74810
          __this__searchTerm.add(other_element);
-
 
74811
        }
-
 
74812
        this.searchTerm = __this__searchTerm;
-
 
74813
      }
-
 
74814
      this.offset = other.offset;
-
 
74815
      this.limit = other.limit;
-
 
74816
    }
-
 
74817
 
-
 
74818
    public searchAmazonItems_args deepCopy() {
-
 
74819
      return new searchAmazonItems_args(this);
-
 
74820
    }
-
 
74821
 
-
 
74822
    @Override
-
 
74823
    public void clear() {
-
 
74824
      this.searchTerm = null;
-
 
74825
      setOffsetIsSet(false);
-
 
74826
      this.offset = 0;
-
 
74827
      setLimitIsSet(false);
-
 
74828
      this.limit = 0;
-
 
74829
    }
-
 
74830
 
-
 
74831
    public int getSearchTermSize() {
-
 
74832
      return (this.searchTerm == null) ? 0 : this.searchTerm.size();
-
 
74833
    }
-
 
74834
 
-
 
74835
    public java.util.Iterator<String> getSearchTermIterator() {
-
 
74836
      return (this.searchTerm == null) ? null : this.searchTerm.iterator();
-
 
74837
    }
-
 
74838
 
-
 
74839
    public void addToSearchTerm(String elem) {
-
 
74840
      if (this.searchTerm == null) {
-
 
74841
        this.searchTerm = new ArrayList<String>();
-
 
74842
      }
-
 
74843
      this.searchTerm.add(elem);
-
 
74844
    }
-
 
74845
 
-
 
74846
    public List<String> getSearchTerm() {
-
 
74847
      return this.searchTerm;
-
 
74848
    }
-
 
74849
 
-
 
74850
    public void setSearchTerm(List<String> searchTerm) {
-
 
74851
      this.searchTerm = searchTerm;
-
 
74852
    }
-
 
74853
 
-
 
74854
    public void unsetSearchTerm() {
-
 
74855
      this.searchTerm = null;
-
 
74856
    }
-
 
74857
 
-
 
74858
    /** Returns true if field searchTerm is set (has been assigned a value) and false otherwise */
-
 
74859
    public boolean isSetSearchTerm() {
-
 
74860
      return this.searchTerm != null;
-
 
74861
    }
-
 
74862
 
-
 
74863
    public void setSearchTermIsSet(boolean value) {
-
 
74864
      if (!value) {
-
 
74865
        this.searchTerm = null;
-
 
74866
      }
-
 
74867
    }
-
 
74868
 
-
 
74869
    public long getOffset() {
-
 
74870
      return this.offset;
-
 
74871
    }
-
 
74872
 
-
 
74873
    public void setOffset(long offset) {
-
 
74874
      this.offset = offset;
-
 
74875
      setOffsetIsSet(true);
-
 
74876
    }
-
 
74877
 
-
 
74878
    public void unsetOffset() {
-
 
74879
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
-
 
74880
    }
-
 
74881
 
-
 
74882
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
-
 
74883
    public boolean isSetOffset() {
-
 
74884
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
-
 
74885
    }
-
 
74886
 
-
 
74887
    public void setOffsetIsSet(boolean value) {
-
 
74888
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
-
 
74889
    }
-
 
74890
 
-
 
74891
    public long getLimit() {
-
 
74892
      return this.limit;
-
 
74893
    }
-
 
74894
 
-
 
74895
    public void setLimit(long limit) {
-
 
74896
      this.limit = limit;
-
 
74897
      setLimitIsSet(true);
-
 
74898
    }
-
 
74899
 
-
 
74900
    public void unsetLimit() {
-
 
74901
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
-
 
74902
    }
-
 
74903
 
-
 
74904
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
-
 
74905
    public boolean isSetLimit() {
-
 
74906
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
-
 
74907
    }
-
 
74908
 
-
 
74909
    public void setLimitIsSet(boolean value) {
-
 
74910
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
-
 
74911
    }
-
 
74912
 
-
 
74913
    public void setFieldValue(_Fields field, Object value) {
-
 
74914
      switch (field) {
-
 
74915
      case SEARCH_TERM:
-
 
74916
        if (value == null) {
-
 
74917
          unsetSearchTerm();
-
 
74918
        } else {
-
 
74919
          setSearchTerm((List<String>)value);
-
 
74920
        }
-
 
74921
        break;
-
 
74922
 
-
 
74923
      case OFFSET:
-
 
74924
        if (value == null) {
-
 
74925
          unsetOffset();
-
 
74926
        } else {
-
 
74927
          setOffset((Long)value);
-
 
74928
        }
-
 
74929
        break;
-
 
74930
 
-
 
74931
      case LIMIT:
-
 
74932
        if (value == null) {
-
 
74933
          unsetLimit();
-
 
74934
        } else {
-
 
74935
          setLimit((Long)value);
-
 
74936
        }
-
 
74937
        break;
-
 
74938
 
-
 
74939
      }
-
 
74940
    }
-
 
74941
 
-
 
74942
    public Object getFieldValue(_Fields field) {
-
 
74943
      switch (field) {
-
 
74944
      case SEARCH_TERM:
-
 
74945
        return getSearchTerm();
-
 
74946
 
-
 
74947
      case OFFSET:
-
 
74948
        return Long.valueOf(getOffset());
-
 
74949
 
-
 
74950
      case LIMIT:
-
 
74951
        return Long.valueOf(getLimit());
-
 
74952
 
-
 
74953
      }
-
 
74954
      throw new IllegalStateException();
-
 
74955
    }
-
 
74956
 
-
 
74957
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
74958
    public boolean isSet(_Fields field) {
-
 
74959
      if (field == null) {
-
 
74960
        throw new IllegalArgumentException();
-
 
74961
      }
-
 
74962
 
-
 
74963
      switch (field) {
-
 
74964
      case SEARCH_TERM:
-
 
74965
        return isSetSearchTerm();
-
 
74966
      case OFFSET:
-
 
74967
        return isSetOffset();
-
 
74968
      case LIMIT:
-
 
74969
        return isSetLimit();
-
 
74970
      }
-
 
74971
      throw new IllegalStateException();
-
 
74972
    }
-
 
74973
 
-
 
74974
    @Override
-
 
74975
    public boolean equals(Object that) {
-
 
74976
      if (that == null)
-
 
74977
        return false;
-
 
74978
      if (that instanceof searchAmazonItems_args)
-
 
74979
        return this.equals((searchAmazonItems_args)that);
-
 
74980
      return false;
-
 
74981
    }
-
 
74982
 
-
 
74983
    public boolean equals(searchAmazonItems_args that) {
-
 
74984
      if (that == null)
-
 
74985
        return false;
-
 
74986
 
-
 
74987
      boolean this_present_searchTerm = true && this.isSetSearchTerm();
-
 
74988
      boolean that_present_searchTerm = true && that.isSetSearchTerm();
-
 
74989
      if (this_present_searchTerm || that_present_searchTerm) {
-
 
74990
        if (!(this_present_searchTerm && that_present_searchTerm))
-
 
74991
          return false;
-
 
74992
        if (!this.searchTerm.equals(that.searchTerm))
-
 
74993
          return false;
-
 
74994
      }
-
 
74995
 
-
 
74996
      boolean this_present_offset = true;
-
 
74997
      boolean that_present_offset = true;
-
 
74998
      if (this_present_offset || that_present_offset) {
-
 
74999
        if (!(this_present_offset && that_present_offset))
-
 
75000
          return false;
-
 
75001
        if (this.offset != that.offset)
-
 
75002
          return false;
-
 
75003
      }
-
 
75004
 
-
 
75005
      boolean this_present_limit = true;
-
 
75006
      boolean that_present_limit = true;
-
 
75007
      if (this_present_limit || that_present_limit) {
-
 
75008
        if (!(this_present_limit && that_present_limit))
-
 
75009
          return false;
-
 
75010
        if (this.limit != that.limit)
-
 
75011
          return false;
-
 
75012
      }
-
 
75013
 
-
 
75014
      return true;
-
 
75015
    }
-
 
75016
 
-
 
75017
    @Override
-
 
75018
    public int hashCode() {
-
 
75019
      return 0;
-
 
75020
    }
-
 
75021
 
-
 
75022
    public int compareTo(searchAmazonItems_args other) {
-
 
75023
      if (!getClass().equals(other.getClass())) {
-
 
75024
        return getClass().getName().compareTo(other.getClass().getName());
-
 
75025
      }
-
 
75026
 
-
 
75027
      int lastComparison = 0;
-
 
75028
      searchAmazonItems_args typedOther = (searchAmazonItems_args)other;
-
 
75029
 
-
 
75030
      lastComparison = Boolean.valueOf(isSetSearchTerm()).compareTo(typedOther.isSetSearchTerm());
-
 
75031
      if (lastComparison != 0) {
-
 
75032
        return lastComparison;
-
 
75033
      }
-
 
75034
      if (isSetSearchTerm()) {
-
 
75035
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerm, typedOther.searchTerm);
-
 
75036
        if (lastComparison != 0) {
-
 
75037
          return lastComparison;
-
 
75038
        }
-
 
75039
      }
-
 
75040
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
-
 
75041
      if (lastComparison != 0) {
-
 
75042
        return lastComparison;
-
 
75043
      }
-
 
75044
      if (isSetOffset()) {
-
 
75045
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
-
 
75046
        if (lastComparison != 0) {
-
 
75047
          return lastComparison;
-
 
75048
        }
-
 
75049
      }
-
 
75050
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
-
 
75051
      if (lastComparison != 0) {
-
 
75052
        return lastComparison;
-
 
75053
      }
-
 
75054
      if (isSetLimit()) {
-
 
75055
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
-
 
75056
        if (lastComparison != 0) {
-
 
75057
          return lastComparison;
-
 
75058
        }
-
 
75059
      }
-
 
75060
      return 0;
-
 
75061
    }
-
 
75062
 
-
 
75063
    public _Fields fieldForId(int fieldId) {
-
 
75064
      return _Fields.findByThriftId(fieldId);
-
 
75065
    }
-
 
75066
 
-
 
75067
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
75068
      org.apache.thrift.protocol.TField field;
-
 
75069
      iprot.readStructBegin();
-
 
75070
      while (true)
-
 
75071
      {
-
 
75072
        field = iprot.readFieldBegin();
-
 
75073
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
75074
          break;
-
 
75075
        }
-
 
75076
        switch (field.id) {
-
 
75077
          case 1: // SEARCH_TERM
-
 
75078
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
75079
              {
-
 
75080
                org.apache.thrift.protocol.TList _list229 = iprot.readListBegin();
-
 
75081
                this.searchTerm = new ArrayList<String>(_list229.size);
-
 
75082
                for (int _i230 = 0; _i230 < _list229.size; ++_i230)
-
 
75083
                {
-
 
75084
                  String _elem231; // required
-
 
75085
                  _elem231 = iprot.readString();
-
 
75086
                  this.searchTerm.add(_elem231);
-
 
75087
                }
-
 
75088
                iprot.readListEnd();
-
 
75089
              }
-
 
75090
            } else { 
-
 
75091
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
75092
            }
-
 
75093
            break;
-
 
75094
          case 2: // OFFSET
-
 
75095
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
75096
              this.offset = iprot.readI64();
-
 
75097
              setOffsetIsSet(true);
-
 
75098
            } else { 
-
 
75099
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
75100
            }
-
 
75101
            break;
-
 
75102
          case 3: // LIMIT
-
 
75103
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
75104
              this.limit = iprot.readI64();
-
 
75105
              setLimitIsSet(true);
-
 
75106
            } else { 
-
 
75107
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
75108
            }
-
 
75109
            break;
-
 
75110
          default:
-
 
75111
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
75112
        }
-
 
75113
        iprot.readFieldEnd();
-
 
75114
      }
-
 
75115
      iprot.readStructEnd();
-
 
75116
      validate();
-
 
75117
    }
-
 
75118
 
-
 
75119
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
75120
      validate();
-
 
75121
 
-
 
75122
      oprot.writeStructBegin(STRUCT_DESC);
-
 
75123
      if (this.searchTerm != null) {
-
 
75124
        oprot.writeFieldBegin(SEARCH_TERM_FIELD_DESC);
-
 
75125
        {
-
 
75126
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerm.size()));
-
 
75127
          for (String _iter232 : this.searchTerm)
-
 
75128
          {
-
 
75129
            oprot.writeString(_iter232);
-
 
75130
          }
-
 
75131
          oprot.writeListEnd();
-
 
75132
        }
-
 
75133
        oprot.writeFieldEnd();
-
 
75134
      }
-
 
75135
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
-
 
75136
      oprot.writeI64(this.offset);
-
 
75137
      oprot.writeFieldEnd();
-
 
75138
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
-
 
75139
      oprot.writeI64(this.limit);
-
 
75140
      oprot.writeFieldEnd();
-
 
75141
      oprot.writeFieldStop();
-
 
75142
      oprot.writeStructEnd();
-
 
75143
    }
-
 
75144
 
-
 
75145
    @Override
-
 
75146
    public String toString() {
-
 
75147
      StringBuilder sb = new StringBuilder("searchAmazonItems_args(");
-
 
75148
      boolean first = true;
-
 
75149
 
-
 
75150
      sb.append("searchTerm:");
-
 
75151
      if (this.searchTerm == null) {
-
 
75152
        sb.append("null");
-
 
75153
      } else {
-
 
75154
        sb.append(this.searchTerm);
-
 
75155
      }
-
 
75156
      first = false;
-
 
75157
      if (!first) sb.append(", ");
-
 
75158
      sb.append("offset:");
-
 
75159
      sb.append(this.offset);
-
 
75160
      first = false;
-
 
75161
      if (!first) sb.append(", ");
-
 
75162
      sb.append("limit:");
-
 
75163
      sb.append(this.limit);
-
 
75164
      first = false;
-
 
75165
      sb.append(")");
-
 
75166
      return sb.toString();
-
 
75167
    }
-
 
75168
 
-
 
75169
    public void validate() throws org.apache.thrift.TException {
-
 
75170
      // check for required fields
-
 
75171
    }
-
 
75172
 
-
 
75173
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
75174
      try {
-
 
75175
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
75176
      } catch (org.apache.thrift.TException te) {
-
 
75177
        throw new java.io.IOException(te);
-
 
75178
      }
-
 
75179
    }
-
 
75180
 
-
 
75181
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
75182
      try {
-
 
75183
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
75184
        __isset_bit_vector = new BitSet(1);
-
 
75185
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
75186
      } catch (org.apache.thrift.TException te) {
-
 
75187
        throw new java.io.IOException(te);
-
 
75188
      }
-
 
75189
    }
-
 
75190
 
-
 
75191
  }
-
 
75192
 
-
 
75193
  public static class searchAmazonItems_result implements org.apache.thrift.TBase<searchAmazonItems_result, searchAmazonItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
75194
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchAmazonItems_result");
-
 
75195
 
-
 
75196
    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);
-
 
75197
 
-
 
75198
    private List<Amazonlisted> success; // required
-
 
75199
 
-
 
75200
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
75201
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
75202
      SUCCESS((short)0, "success");
-
 
75203
 
-
 
75204
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
75205
 
-
 
75206
      static {
-
 
75207
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
75208
          byName.put(field.getFieldName(), field);
-
 
75209
        }
-
 
75210
      }
-
 
75211
 
-
 
75212
      /**
-
 
75213
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
75214
       */
-
 
75215
      public static _Fields findByThriftId(int fieldId) {
-
 
75216
        switch(fieldId) {
-
 
75217
          case 0: // SUCCESS
-
 
75218
            return SUCCESS;
-
 
75219
          default:
-
 
75220
            return null;
-
 
75221
        }
-
 
75222
      }
-
 
75223
 
-
 
75224
      /**
-
 
75225
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
75226
       * if it is not found.
-
 
75227
       */
-
 
75228
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
75229
        _Fields fields = findByThriftId(fieldId);
-
 
75230
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
75231
        return fields;
-
 
75232
      }
-
 
75233
 
-
 
75234
      /**
-
 
75235
       * Find the _Fields constant that matches name, or null if its not found.
-
 
75236
       */
-
 
75237
      public static _Fields findByName(String name) {
-
 
75238
        return byName.get(name);
-
 
75239
      }
-
 
75240
 
-
 
75241
      private final short _thriftId;
-
 
75242
      private final String _fieldName;
-
 
75243
 
-
 
75244
      _Fields(short thriftId, String fieldName) {
-
 
75245
        _thriftId = thriftId;
-
 
75246
        _fieldName = fieldName;
-
 
75247
      }
-
 
75248
 
-
 
75249
      public short getThriftFieldId() {
-
 
75250
        return _thriftId;
-
 
75251
      }
-
 
75252
 
-
 
75253
      public String getFieldName() {
-
 
75254
        return _fieldName;
-
 
75255
      }
-
 
75256
    }
-
 
75257
 
-
 
75258
    // isset id assignments
-
 
75259
 
-
 
75260
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
75261
    static {
-
 
75262
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
75263
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
75264
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
75265
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Amazonlisted.class))));
-
 
75266
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
75267
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchAmazonItems_result.class, metaDataMap);
-
 
75268
    }
-
 
75269
 
-
 
75270
    public searchAmazonItems_result() {
-
 
75271
    }
-
 
75272
 
-
 
75273
    public searchAmazonItems_result(
-
 
75274
      List<Amazonlisted> success)
-
 
75275
    {
-
 
75276
      this();
-
 
75277
      this.success = success;
-
 
75278
    }
-
 
75279
 
-
 
75280
    /**
-
 
75281
     * Performs a deep copy on <i>other</i>.
-
 
75282
     */
-
 
75283
    public searchAmazonItems_result(searchAmazonItems_result other) {
-
 
75284
      if (other.isSetSuccess()) {
-
 
75285
        List<Amazonlisted> __this__success = new ArrayList<Amazonlisted>();
-
 
75286
        for (Amazonlisted other_element : other.success) {
-
 
75287
          __this__success.add(new Amazonlisted(other_element));
-
 
75288
        }
-
 
75289
        this.success = __this__success;
-
 
75290
      }
-
 
75291
    }
-
 
75292
 
-
 
75293
    public searchAmazonItems_result deepCopy() {
-
 
75294
      return new searchAmazonItems_result(this);
-
 
75295
    }
-
 
75296
 
-
 
75297
    @Override
-
 
75298
    public void clear() {
-
 
75299
      this.success = null;
-
 
75300
    }
-
 
75301
 
-
 
75302
    public int getSuccessSize() {
-
 
75303
      return (this.success == null) ? 0 : this.success.size();
-
 
75304
    }
-
 
75305
 
-
 
75306
    public java.util.Iterator<Amazonlisted> getSuccessIterator() {
-
 
75307
      return (this.success == null) ? null : this.success.iterator();
-
 
75308
    }
-
 
75309
 
-
 
75310
    public void addToSuccess(Amazonlisted elem) {
-
 
75311
      if (this.success == null) {
-
 
75312
        this.success = new ArrayList<Amazonlisted>();
-
 
75313
      }
-
 
75314
      this.success.add(elem);
-
 
75315
    }
-
 
75316
 
-
 
75317
    public List<Amazonlisted> getSuccess() {
-
 
75318
      return this.success;
-
 
75319
    }
-
 
75320
 
-
 
75321
    public void setSuccess(List<Amazonlisted> success) {
-
 
75322
      this.success = success;
-
 
75323
    }
-
 
75324
 
-
 
75325
    public void unsetSuccess() {
-
 
75326
      this.success = null;
-
 
75327
    }
-
 
75328
 
-
 
75329
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
75330
    public boolean isSetSuccess() {
-
 
75331
      return this.success != null;
-
 
75332
    }
-
 
75333
 
-
 
75334
    public void setSuccessIsSet(boolean value) {
-
 
75335
      if (!value) {
-
 
75336
        this.success = null;
-
 
75337
      }
-
 
75338
    }
-
 
75339
 
-
 
75340
    public void setFieldValue(_Fields field, Object value) {
-
 
75341
      switch (field) {
-
 
75342
      case SUCCESS:
-
 
75343
        if (value == null) {
-
 
75344
          unsetSuccess();
-
 
75345
        } else {
-
 
75346
          setSuccess((List<Amazonlisted>)value);
-
 
75347
        }
-
 
75348
        break;
-
 
75349
 
-
 
75350
      }
-
 
75351
    }
-
 
75352
 
-
 
75353
    public Object getFieldValue(_Fields field) {
-
 
75354
      switch (field) {
-
 
75355
      case SUCCESS:
-
 
75356
        return getSuccess();
-
 
75357
 
-
 
75358
      }
-
 
75359
      throw new IllegalStateException();
-
 
75360
    }
-
 
75361
 
-
 
75362
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
75363
    public boolean isSet(_Fields field) {
-
 
75364
      if (field == null) {
-
 
75365
        throw new IllegalArgumentException();
-
 
75366
      }
-
 
75367
 
-
 
75368
      switch (field) {
-
 
75369
      case SUCCESS:
-
 
75370
        return isSetSuccess();
-
 
75371
      }
-
 
75372
      throw new IllegalStateException();
-
 
75373
    }
-
 
75374
 
-
 
75375
    @Override
-
 
75376
    public boolean equals(Object that) {
-
 
75377
      if (that == null)
-
 
75378
        return false;
-
 
75379
      if (that instanceof searchAmazonItems_result)
-
 
75380
        return this.equals((searchAmazonItems_result)that);
-
 
75381
      return false;
-
 
75382
    }
-
 
75383
 
-
 
75384
    public boolean equals(searchAmazonItems_result that) {
-
 
75385
      if (that == null)
-
 
75386
        return false;
-
 
75387
 
-
 
75388
      boolean this_present_success = true && this.isSetSuccess();
-
 
75389
      boolean that_present_success = true && that.isSetSuccess();
-
 
75390
      if (this_present_success || that_present_success) {
-
 
75391
        if (!(this_present_success && that_present_success))
-
 
75392
          return false;
-
 
75393
        if (!this.success.equals(that.success))
-
 
75394
          return false;
-
 
75395
      }
-
 
75396
 
-
 
75397
      return true;
-
 
75398
    }
-
 
75399
 
-
 
75400
    @Override
-
 
75401
    public int hashCode() {
-
 
75402
      return 0;
-
 
75403
    }
-
 
75404
 
-
 
75405
    public int compareTo(searchAmazonItems_result other) {
-
 
75406
      if (!getClass().equals(other.getClass())) {
-
 
75407
        return getClass().getName().compareTo(other.getClass().getName());
-
 
75408
      }
-
 
75409
 
-
 
75410
      int lastComparison = 0;
-
 
75411
      searchAmazonItems_result typedOther = (searchAmazonItems_result)other;
-
 
75412
 
-
 
75413
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
75414
      if (lastComparison != 0) {
-
 
75415
        return lastComparison;
-
 
75416
      }
-
 
75417
      if (isSetSuccess()) {
-
 
75418
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
75419
        if (lastComparison != 0) {
-
 
75420
          return lastComparison;
-
 
75421
        }
-
 
75422
      }
-
 
75423
      return 0;
-
 
75424
    }
-
 
75425
 
-
 
75426
    public _Fields fieldForId(int fieldId) {
-
 
75427
      return _Fields.findByThriftId(fieldId);
-
 
75428
    }
-
 
75429
 
-
 
75430
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
75431
      org.apache.thrift.protocol.TField field;
-
 
75432
      iprot.readStructBegin();
-
 
75433
      while (true)
-
 
75434
      {
-
 
75435
        field = iprot.readFieldBegin();
-
 
75436
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
75437
          break;
-
 
75438
        }
-
 
75439
        switch (field.id) {
-
 
75440
          case 0: // SUCCESS
-
 
75441
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
75442
              {
-
 
75443
                org.apache.thrift.protocol.TList _list233 = iprot.readListBegin();
-
 
75444
                this.success = new ArrayList<Amazonlisted>(_list233.size);
-
 
75445
                for (int _i234 = 0; _i234 < _list233.size; ++_i234)
-
 
75446
                {
-
 
75447
                  Amazonlisted _elem235; // required
-
 
75448
                  _elem235 = new Amazonlisted();
-
 
75449
                  _elem235.read(iprot);
-
 
75450
                  this.success.add(_elem235);
-
 
75451
                }
-
 
75452
                iprot.readListEnd();
-
 
75453
              }
-
 
75454
            } else { 
-
 
75455
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
75456
            }
-
 
75457
            break;
-
 
75458
          default:
-
 
75459
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
75460
        }
-
 
75461
        iprot.readFieldEnd();
-
 
75462
      }
-
 
75463
      iprot.readStructEnd();
-
 
75464
      validate();
-
 
75465
    }
-
 
75466
 
-
 
75467
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
75468
      oprot.writeStructBegin(STRUCT_DESC);
-
 
75469
 
-
 
75470
      if (this.isSetSuccess()) {
-
 
75471
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
75472
        {
-
 
75473
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
75474
          for (Amazonlisted _iter236 : this.success)
-
 
75475
          {
-
 
75476
            _iter236.write(oprot);
-
 
75477
          }
-
 
75478
          oprot.writeListEnd();
-
 
75479
        }
-
 
75480
        oprot.writeFieldEnd();
-
 
75481
      }
-
 
75482
      oprot.writeFieldStop();
-
 
75483
      oprot.writeStructEnd();
-
 
75484
    }
-
 
75485
 
-
 
75486
    @Override
-
 
75487
    public String toString() {
-
 
75488
      StringBuilder sb = new StringBuilder("searchAmazonItems_result(");
-
 
75489
      boolean first = true;
-
 
75490
 
-
 
75491
      sb.append("success:");
-
 
75492
      if (this.success == null) {
-
 
75493
        sb.append("null");
-
 
75494
      } else {
-
 
75495
        sb.append(this.success);
-
 
75496
      }
-
 
75497
      first = false;
-
 
75498
      sb.append(")");
-
 
75499
      return sb.toString();
-
 
75500
    }
-
 
75501
 
-
 
75502
    public void validate() throws org.apache.thrift.TException {
-
 
75503
      // check for required fields
-
 
75504
    }
-
 
75505
 
-
 
75506
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
75507
      try {
-
 
75508
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
75509
      } catch (org.apache.thrift.TException te) {
-
 
75510
        throw new java.io.IOException(te);
-
 
75511
      }
-
 
75512
    }
-
 
75513
 
-
 
75514
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
75515
      try {
-
 
75516
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
75517
      } catch (org.apache.thrift.TException te) {
-
 
75518
        throw new java.io.IOException(te);
-
 
75519
      }
-
 
75520
    }
-
 
75521
 
-
 
75522
  }
-
 
75523
 
-
 
75524
  public static class getAmazonSearchResultCount_args implements org.apache.thrift.TBase<getAmazonSearchResultCount_args, getAmazonSearchResultCount_args._Fields>, java.io.Serializable, Cloneable   {
-
 
75525
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonSearchResultCount_args");
-
 
75526
 
-
 
75527
    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);
-
 
75528
 
-
 
75529
    private List<String> searchTerm; // required
-
 
75530
 
-
 
75531
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
75532
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
75533
      SEARCH_TERM((short)1, "searchTerm");
-
 
75534
 
-
 
75535
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
75536
 
-
 
75537
      static {
-
 
75538
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
75539
          byName.put(field.getFieldName(), field);
-
 
75540
        }
-
 
75541
      }
-
 
75542
 
-
 
75543
      /**
-
 
75544
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
75545
       */
-
 
75546
      public static _Fields findByThriftId(int fieldId) {
-
 
75547
        switch(fieldId) {
-
 
75548
          case 1: // SEARCH_TERM
-
 
75549
            return SEARCH_TERM;
-
 
75550
          default:
-
 
75551
            return null;
-
 
75552
        }
-
 
75553
      }
-
 
75554
 
-
 
75555
      /**
-
 
75556
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
75557
       * if it is not found.
-
 
75558
       */
-
 
75559
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
75560
        _Fields fields = findByThriftId(fieldId);
-
 
75561
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
75562
        return fields;
-
 
75563
      }
-
 
75564
 
-
 
75565
      /**
-
 
75566
       * Find the _Fields constant that matches name, or null if its not found.
-
 
75567
       */
-
 
75568
      public static _Fields findByName(String name) {
-
 
75569
        return byName.get(name);
-
 
75570
      }
-
 
75571
 
-
 
75572
      private final short _thriftId;
-
 
75573
      private final String _fieldName;
-
 
75574
 
-
 
75575
      _Fields(short thriftId, String fieldName) {
-
 
75576
        _thriftId = thriftId;
-
 
75577
        _fieldName = fieldName;
-
 
75578
      }
-
 
75579
 
-
 
75580
      public short getThriftFieldId() {
-
 
75581
        return _thriftId;
-
 
75582
      }
-
 
75583
 
-
 
75584
      public String getFieldName() {
-
 
75585
        return _fieldName;
-
 
75586
      }
-
 
75587
    }
-
 
75588
 
-
 
75589
    // isset id assignments
-
 
75590
 
-
 
75591
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
75592
    static {
-
 
75593
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
75594
      tmpMap.put(_Fields.SEARCH_TERM, new org.apache.thrift.meta_data.FieldMetaData("searchTerm", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
75595
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
75596
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
75597
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
75598
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonSearchResultCount_args.class, metaDataMap);
-
 
75599
    }
-
 
75600
 
-
 
75601
    public getAmazonSearchResultCount_args() {
-
 
75602
    }
-
 
75603
 
-
 
75604
    public getAmazonSearchResultCount_args(
-
 
75605
      List<String> searchTerm)
-
 
75606
    {
-
 
75607
      this();
-
 
75608
      this.searchTerm = searchTerm;
-
 
75609
    }
-
 
75610
 
-
 
75611
    /**
-
 
75612
     * Performs a deep copy on <i>other</i>.
-
 
75613
     */
-
 
75614
    public getAmazonSearchResultCount_args(getAmazonSearchResultCount_args other) {
-
 
75615
      if (other.isSetSearchTerm()) {
-
 
75616
        List<String> __this__searchTerm = new ArrayList<String>();
-
 
75617
        for (String other_element : other.searchTerm) {
-
 
75618
          __this__searchTerm.add(other_element);
-
 
75619
        }
-
 
75620
        this.searchTerm = __this__searchTerm;
-
 
75621
      }
-
 
75622
    }
-
 
75623
 
-
 
75624
    public getAmazonSearchResultCount_args deepCopy() {
-
 
75625
      return new getAmazonSearchResultCount_args(this);
-
 
75626
    }
-
 
75627
 
-
 
75628
    @Override
-
 
75629
    public void clear() {
-
 
75630
      this.searchTerm = null;
-
 
75631
    }
-
 
75632
 
-
 
75633
    public int getSearchTermSize() {
-
 
75634
      return (this.searchTerm == null) ? 0 : this.searchTerm.size();
-
 
75635
    }
-
 
75636
 
-
 
75637
    public java.util.Iterator<String> getSearchTermIterator() {
-
 
75638
      return (this.searchTerm == null) ? null : this.searchTerm.iterator();
-
 
75639
    }
-
 
75640
 
-
 
75641
    public void addToSearchTerm(String elem) {
-
 
75642
      if (this.searchTerm == null) {
-
 
75643
        this.searchTerm = new ArrayList<String>();
-
 
75644
      }
-
 
75645
      this.searchTerm.add(elem);
-
 
75646
    }
-
 
75647
 
-
 
75648
    public List<String> getSearchTerm() {
-
 
75649
      return this.searchTerm;
-
 
75650
    }
-
 
75651
 
-
 
75652
    public void setSearchTerm(List<String> searchTerm) {
-
 
75653
      this.searchTerm = searchTerm;
-
 
75654
    }
-
 
75655
 
-
 
75656
    public void unsetSearchTerm() {
-
 
75657
      this.searchTerm = null;
-
 
75658
    }
-
 
75659
 
-
 
75660
    /** Returns true if field searchTerm is set (has been assigned a value) and false otherwise */
-
 
75661
    public boolean isSetSearchTerm() {
-
 
75662
      return this.searchTerm != null;
-
 
75663
    }
-
 
75664
 
-
 
75665
    public void setSearchTermIsSet(boolean value) {
-
 
75666
      if (!value) {
-
 
75667
        this.searchTerm = null;
-
 
75668
      }
-
 
75669
    }
-
 
75670
 
-
 
75671
    public void setFieldValue(_Fields field, Object value) {
-
 
75672
      switch (field) {
-
 
75673
      case SEARCH_TERM:
-
 
75674
        if (value == null) {
-
 
75675
          unsetSearchTerm();
-
 
75676
        } else {
-
 
75677
          setSearchTerm((List<String>)value);
-
 
75678
        }
-
 
75679
        break;
-
 
75680
 
-
 
75681
      }
-
 
75682
    }
-
 
75683
 
-
 
75684
    public Object getFieldValue(_Fields field) {
-
 
75685
      switch (field) {
-
 
75686
      case SEARCH_TERM:
-
 
75687
        return getSearchTerm();
-
 
75688
 
-
 
75689
      }
-
 
75690
      throw new IllegalStateException();
-
 
75691
    }
-
 
75692
 
-
 
75693
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
75694
    public boolean isSet(_Fields field) {
-
 
75695
      if (field == null) {
-
 
75696
        throw new IllegalArgumentException();
-
 
75697
      }
-
 
75698
 
-
 
75699
      switch (field) {
-
 
75700
      case SEARCH_TERM:
-
 
75701
        return isSetSearchTerm();
-
 
75702
      }
-
 
75703
      throw new IllegalStateException();
-
 
75704
    }
-
 
75705
 
-
 
75706
    @Override
-
 
75707
    public boolean equals(Object that) {
-
 
75708
      if (that == null)
-
 
75709
        return false;
-
 
75710
      if (that instanceof getAmazonSearchResultCount_args)
-
 
75711
        return this.equals((getAmazonSearchResultCount_args)that);
-
 
75712
      return false;
-
 
75713
    }
-
 
75714
 
-
 
75715
    public boolean equals(getAmazonSearchResultCount_args that) {
-
 
75716
      if (that == null)
-
 
75717
        return false;
-
 
75718
 
-
 
75719
      boolean this_present_searchTerm = true && this.isSetSearchTerm();
-
 
75720
      boolean that_present_searchTerm = true && that.isSetSearchTerm();
-
 
75721
      if (this_present_searchTerm || that_present_searchTerm) {
-
 
75722
        if (!(this_present_searchTerm && that_present_searchTerm))
-
 
75723
          return false;
-
 
75724
        if (!this.searchTerm.equals(that.searchTerm))
-
 
75725
          return false;
-
 
75726
      }
-
 
75727
 
-
 
75728
      return true;
-
 
75729
    }
-
 
75730
 
-
 
75731
    @Override
-
 
75732
    public int hashCode() {
-
 
75733
      return 0;
-
 
75734
    }
-
 
75735
 
-
 
75736
    public int compareTo(getAmazonSearchResultCount_args other) {
-
 
75737
      if (!getClass().equals(other.getClass())) {
-
 
75738
        return getClass().getName().compareTo(other.getClass().getName());
-
 
75739
      }
-
 
75740
 
-
 
75741
      int lastComparison = 0;
-
 
75742
      getAmazonSearchResultCount_args typedOther = (getAmazonSearchResultCount_args)other;
-
 
75743
 
-
 
75744
      lastComparison = Boolean.valueOf(isSetSearchTerm()).compareTo(typedOther.isSetSearchTerm());
-
 
75745
      if (lastComparison != 0) {
-
 
75746
        return lastComparison;
-
 
75747
      }
-
 
75748
      if (isSetSearchTerm()) {
-
 
75749
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerm, typedOther.searchTerm);
-
 
75750
        if (lastComparison != 0) {
-
 
75751
          return lastComparison;
-
 
75752
        }
-
 
75753
      }
-
 
75754
      return 0;
-
 
75755
    }
-
 
75756
 
-
 
75757
    public _Fields fieldForId(int fieldId) {
-
 
75758
      return _Fields.findByThriftId(fieldId);
-
 
75759
    }
-
 
75760
 
-
 
75761
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
75762
      org.apache.thrift.protocol.TField field;
-
 
75763
      iprot.readStructBegin();
-
 
75764
      while (true)
-
 
75765
      {
-
 
75766
        field = iprot.readFieldBegin();
-
 
75767
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
75768
          break;
-
 
75769
        }
-
 
75770
        switch (field.id) {
-
 
75771
          case 1: // SEARCH_TERM
-
 
75772
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
75773
              {
-
 
75774
                org.apache.thrift.protocol.TList _list237 = iprot.readListBegin();
-
 
75775
                this.searchTerm = new ArrayList<String>(_list237.size);
-
 
75776
                for (int _i238 = 0; _i238 < _list237.size; ++_i238)
-
 
75777
                {
-
 
75778
                  String _elem239; // required
-
 
75779
                  _elem239 = iprot.readString();
-
 
75780
                  this.searchTerm.add(_elem239);
-
 
75781
                }
-
 
75782
                iprot.readListEnd();
-
 
75783
              }
-
 
75784
            } else { 
-
 
75785
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
75786
            }
-
 
75787
            break;
-
 
75788
          default:
-
 
75789
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
75790
        }
-
 
75791
        iprot.readFieldEnd();
-
 
75792
      }
-
 
75793
      iprot.readStructEnd();
-
 
75794
      validate();
-
 
75795
    }
-
 
75796
 
-
 
75797
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
75798
      validate();
-
 
75799
 
-
 
75800
      oprot.writeStructBegin(STRUCT_DESC);
-
 
75801
      if (this.searchTerm != null) {
-
 
75802
        oprot.writeFieldBegin(SEARCH_TERM_FIELD_DESC);
-
 
75803
        {
-
 
75804
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerm.size()));
-
 
75805
          for (String _iter240 : this.searchTerm)
-
 
75806
          {
-
 
75807
            oprot.writeString(_iter240);
-
 
75808
          }
-
 
75809
          oprot.writeListEnd();
-
 
75810
        }
-
 
75811
        oprot.writeFieldEnd();
-
 
75812
      }
-
 
75813
      oprot.writeFieldStop();
-
 
75814
      oprot.writeStructEnd();
-
 
75815
    }
-
 
75816
 
-
 
75817
    @Override
-
 
75818
    public String toString() {
-
 
75819
      StringBuilder sb = new StringBuilder("getAmazonSearchResultCount_args(");
-
 
75820
      boolean first = true;
-
 
75821
 
-
 
75822
      sb.append("searchTerm:");
-
 
75823
      if (this.searchTerm == null) {
-
 
75824
        sb.append("null");
-
 
75825
      } else {
-
 
75826
        sb.append(this.searchTerm);
-
 
75827
      }
-
 
75828
      first = false;
-
 
75829
      sb.append(")");
-
 
75830
      return sb.toString();
-
 
75831
    }
-
 
75832
 
-
 
75833
    public void validate() throws org.apache.thrift.TException {
-
 
75834
      // check for required fields
-
 
75835
    }
-
 
75836
 
-
 
75837
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
75838
      try {
-
 
75839
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
75840
      } catch (org.apache.thrift.TException te) {
-
 
75841
        throw new java.io.IOException(te);
-
 
75842
      }
-
 
75843
    }
-
 
75844
 
-
 
75845
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
75846
      try {
-
 
75847
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
75848
      } catch (org.apache.thrift.TException te) {
-
 
75849
        throw new java.io.IOException(te);
-
 
75850
      }
-
 
75851
    }
-
 
75852
 
-
 
75853
  }
-
 
75854
 
-
 
75855
  public static class getAmazonSearchResultCount_result implements org.apache.thrift.TBase<getAmazonSearchResultCount_result, getAmazonSearchResultCount_result._Fields>, java.io.Serializable, Cloneable   {
-
 
75856
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonSearchResultCount_result");
-
 
75857
 
-
 
75858
    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);
-
 
75859
 
-
 
75860
    private long success; // required
-
 
75861
 
-
 
75862
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
75863
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
75864
      SUCCESS((short)0, "success");
-
 
75865
 
-
 
75866
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
75867
 
-
 
75868
      static {
-
 
75869
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
75870
          byName.put(field.getFieldName(), field);
-
 
75871
        }
-
 
75872
      }
-
 
75873
 
-
 
75874
      /**
-
 
75875
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
75876
       */
-
 
75877
      public static _Fields findByThriftId(int fieldId) {
-
 
75878
        switch(fieldId) {
-
 
75879
          case 0: // SUCCESS
-
 
75880
            return SUCCESS;
-
 
75881
          default:
-
 
75882
            return null;
-
 
75883
        }
-
 
75884
      }
-
 
75885
 
-
 
75886
      /**
-
 
75887
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
75888
       * if it is not found.
-
 
75889
       */
-
 
75890
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
75891
        _Fields fields = findByThriftId(fieldId);
-
 
75892
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
75893
        return fields;
-
 
75894
      }
-
 
75895
 
-
 
75896
      /**
-
 
75897
       * Find the _Fields constant that matches name, or null if its not found.
-
 
75898
       */
-
 
75899
      public static _Fields findByName(String name) {
-
 
75900
        return byName.get(name);
-
 
75901
      }
-
 
75902
 
-
 
75903
      private final short _thriftId;
-
 
75904
      private final String _fieldName;
-
 
75905
 
-
 
75906
      _Fields(short thriftId, String fieldName) {
-
 
75907
        _thriftId = thriftId;
-
 
75908
        _fieldName = fieldName;
-
 
75909
      }
-
 
75910
 
-
 
75911
      public short getThriftFieldId() {
-
 
75912
        return _thriftId;
-
 
75913
      }
-
 
75914
 
-
 
75915
      public String getFieldName() {
-
 
75916
        return _fieldName;
-
 
75917
      }
-
 
75918
    }
-
 
75919
 
-
 
75920
    // isset id assignments
-
 
75921
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
75922
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
75923
 
-
 
75924
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
75925
    static {
-
 
75926
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
75927
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
75928
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
75929
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
75930
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonSearchResultCount_result.class, metaDataMap);
-
 
75931
    }
-
 
75932
 
-
 
75933
    public getAmazonSearchResultCount_result() {
-
 
75934
    }
-
 
75935
 
-
 
75936
    public getAmazonSearchResultCount_result(
-
 
75937
      long success)
-
 
75938
    {
-
 
75939
      this();
-
 
75940
      this.success = success;
-
 
75941
      setSuccessIsSet(true);
-
 
75942
    }
-
 
75943
 
-
 
75944
    /**
-
 
75945
     * Performs a deep copy on <i>other</i>.
-
 
75946
     */
-
 
75947
    public getAmazonSearchResultCount_result(getAmazonSearchResultCount_result other) {
-
 
75948
      __isset_bit_vector.clear();
-
 
75949
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
75950
      this.success = other.success;
-
 
75951
    }
-
 
75952
 
-
 
75953
    public getAmazonSearchResultCount_result deepCopy() {
-
 
75954
      return new getAmazonSearchResultCount_result(this);
-
 
75955
    }
-
 
75956
 
-
 
75957
    @Override
-
 
75958
    public void clear() {
-
 
75959
      setSuccessIsSet(false);
-
 
75960
      this.success = 0;
-
 
75961
    }
-
 
75962
 
-
 
75963
    public long getSuccess() {
-
 
75964
      return this.success;
-
 
75965
    }
-
 
75966
 
-
 
75967
    public void setSuccess(long success) {
-
 
75968
      this.success = success;
-
 
75969
      setSuccessIsSet(true);
-
 
75970
    }
-
 
75971
 
-
 
75972
    public void unsetSuccess() {
-
 
75973
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
75974
    }
-
 
75975
 
-
 
75976
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
75977
    public boolean isSetSuccess() {
-
 
75978
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
75979
    }
-
 
75980
 
-
 
75981
    public void setSuccessIsSet(boolean value) {
-
 
75982
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
75983
    }
-
 
75984
 
-
 
75985
    public void setFieldValue(_Fields field, Object value) {
-
 
75986
      switch (field) {
-
 
75987
      case SUCCESS:
-
 
75988
        if (value == null) {
-
 
75989
          unsetSuccess();
-
 
75990
        } else {
-
 
75991
          setSuccess((Long)value);
-
 
75992
        }
-
 
75993
        break;
-
 
75994
 
-
 
75995
      }
-
 
75996
    }
-
 
75997
 
-
 
75998
    public Object getFieldValue(_Fields field) {
-
 
75999
      switch (field) {
-
 
76000
      case SUCCESS:
-
 
76001
        return Long.valueOf(getSuccess());
-
 
76002
 
-
 
76003
      }
-
 
76004
      throw new IllegalStateException();
-
 
76005
    }
-
 
76006
 
-
 
76007
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
76008
    public boolean isSet(_Fields field) {
-
 
76009
      if (field == null) {
-
 
76010
        throw new IllegalArgumentException();
-
 
76011
      }
-
 
76012
 
-
 
76013
      switch (field) {
-
 
76014
      case SUCCESS:
-
 
76015
        return isSetSuccess();
-
 
76016
      }
-
 
76017
      throw new IllegalStateException();
-
 
76018
    }
-
 
76019
 
-
 
76020
    @Override
-
 
76021
    public boolean equals(Object that) {
-
 
76022
      if (that == null)
-
 
76023
        return false;
-
 
76024
      if (that instanceof getAmazonSearchResultCount_result)
-
 
76025
        return this.equals((getAmazonSearchResultCount_result)that);
-
 
76026
      return false;
-
 
76027
    }
-
 
76028
 
-
 
76029
    public boolean equals(getAmazonSearchResultCount_result that) {
-
 
76030
      if (that == null)
-
 
76031
        return false;
-
 
76032
 
-
 
76033
      boolean this_present_success = true;
-
 
76034
      boolean that_present_success = true;
-
 
76035
      if (this_present_success || that_present_success) {
-
 
76036
        if (!(this_present_success && that_present_success))
-
 
76037
          return false;
-
 
76038
        if (this.success != that.success)
-
 
76039
          return false;
-
 
76040
      }
-
 
76041
 
-
 
76042
      return true;
-
 
76043
    }
-
 
76044
 
-
 
76045
    @Override
-
 
76046
    public int hashCode() {
-
 
76047
      return 0;
-
 
76048
    }
-
 
76049
 
-
 
76050
    public int compareTo(getAmazonSearchResultCount_result other) {
-
 
76051
      if (!getClass().equals(other.getClass())) {
-
 
76052
        return getClass().getName().compareTo(other.getClass().getName());
-
 
76053
      }
-
 
76054
 
-
 
76055
      int lastComparison = 0;
-
 
76056
      getAmazonSearchResultCount_result typedOther = (getAmazonSearchResultCount_result)other;
-
 
76057
 
-
 
76058
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
76059
      if (lastComparison != 0) {
-
 
76060
        return lastComparison;
-
 
76061
      }
-
 
76062
      if (isSetSuccess()) {
-
 
76063
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
76064
        if (lastComparison != 0) {
-
 
76065
          return lastComparison;
-
 
76066
        }
-
 
76067
      }
-
 
76068
      return 0;
-
 
76069
    }
-
 
76070
 
-
 
76071
    public _Fields fieldForId(int fieldId) {
-
 
76072
      return _Fields.findByThriftId(fieldId);
-
 
76073
    }
-
 
76074
 
-
 
76075
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
76076
      org.apache.thrift.protocol.TField field;
-
 
76077
      iprot.readStructBegin();
-
 
76078
      while (true)
-
 
76079
      {
-
 
76080
        field = iprot.readFieldBegin();
-
 
76081
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
76082
          break;
-
 
76083
        }
-
 
76084
        switch (field.id) {
-
 
76085
          case 0: // SUCCESS
-
 
76086
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
76087
              this.success = iprot.readI64();
-
 
76088
              setSuccessIsSet(true);
-
 
76089
            } else { 
-
 
76090
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
76091
            }
-
 
76092
            break;
-
 
76093
          default:
-
 
76094
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
76095
        }
-
 
76096
        iprot.readFieldEnd();
-
 
76097
      }
-
 
76098
      iprot.readStructEnd();
-
 
76099
      validate();
-
 
76100
    }
-
 
76101
 
-
 
76102
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
76103
      oprot.writeStructBegin(STRUCT_DESC);
-
 
76104
 
-
 
76105
      if (this.isSetSuccess()) {
-
 
76106
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
76107
        oprot.writeI64(this.success);
-
 
76108
        oprot.writeFieldEnd();
-
 
76109
      }
-
 
76110
      oprot.writeFieldStop();
-
 
76111
      oprot.writeStructEnd();
-
 
76112
    }
-
 
76113
 
-
 
76114
    @Override
-
 
76115
    public String toString() {
-
 
76116
      StringBuilder sb = new StringBuilder("getAmazonSearchResultCount_result(");
-
 
76117
      boolean first = true;
-
 
76118
 
-
 
76119
      sb.append("success:");
-
 
76120
      sb.append(this.success);
-
 
76121
      first = false;
-
 
76122
      sb.append(")");
-
 
76123
      return sb.toString();
-
 
76124
    }
-
 
76125
 
-
 
76126
    public void validate() throws org.apache.thrift.TException {
-
 
76127
      // check for required fields
-
 
76128
    }
-
 
76129
 
-
 
76130
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
76131
      try {
-
 
76132
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
76133
      } catch (org.apache.thrift.TException te) {
-
 
76134
        throw new java.io.IOException(te);
-
 
76135
      }
-
 
76136
    }
-
 
76137
 
-
 
76138
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
76139
      try {
-
 
76140
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
76141
      } catch (org.apache.thrift.TException te) {
-
 
76142
        throw new java.io.IOException(te);
-
 
76143
      }
-
 
76144
    }
-
 
76145
 
-
 
76146
  }
-
 
76147
 
-
 
76148
  public static class getCountForAmazonlistedItems_args implements org.apache.thrift.TBase<getCountForAmazonlistedItems_args, getCountForAmazonlistedItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
76149
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCountForAmazonlistedItems_args");
-
 
76150
 
-
 
76151
 
-
 
76152
 
-
 
76153
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
76154
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
76155
;
-
 
76156
 
-
 
76157
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
76158
 
-
 
76159
      static {
-
 
76160
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
76161
          byName.put(field.getFieldName(), field);
-
 
76162
        }
-
 
76163
      }
-
 
76164
 
-
 
76165
      /**
-
 
76166
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
76167
       */
-
 
76168
      public static _Fields findByThriftId(int fieldId) {
-
 
76169
        switch(fieldId) {
-
 
76170
          default:
-
 
76171
            return null;
-
 
76172
        }
-
 
76173
      }
-
 
76174
 
-
 
76175
      /**
-
 
76176
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
76177
       * if it is not found.
-
 
76178
       */
-
 
76179
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
76180
        _Fields fields = findByThriftId(fieldId);
-
 
76181
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
76182
        return fields;
-
 
76183
      }
-
 
76184
 
-
 
76185
      /**
-
 
76186
       * Find the _Fields constant that matches name, or null if its not found.
-
 
76187
       */
-
 
76188
      public static _Fields findByName(String name) {
-
 
76189
        return byName.get(name);
-
 
76190
      }
-
 
76191
 
-
 
76192
      private final short _thriftId;
-
 
76193
      private final String _fieldName;
-
 
76194
 
-
 
76195
      _Fields(short thriftId, String fieldName) {
-
 
76196
        _thriftId = thriftId;
-
 
76197
        _fieldName = fieldName;
-
 
76198
      }
-
 
76199
 
-
 
76200
      public short getThriftFieldId() {
-
 
76201
        return _thriftId;
-
 
76202
      }
-
 
76203
 
-
 
76204
      public String getFieldName() {
-
 
76205
        return _fieldName;
-
 
76206
      }
-
 
76207
    }
-
 
76208
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
76209
    static {
-
 
76210
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
76211
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
76212
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCountForAmazonlistedItems_args.class, metaDataMap);
-
 
76213
    }
-
 
76214
 
-
 
76215
    public getCountForAmazonlistedItems_args() {
-
 
76216
    }
-
 
76217
 
-
 
76218
    /**
-
 
76219
     * Performs a deep copy on <i>other</i>.
-
 
76220
     */
-
 
76221
    public getCountForAmazonlistedItems_args(getCountForAmazonlistedItems_args other) {
-
 
76222
    }
-
 
76223
 
-
 
76224
    public getCountForAmazonlistedItems_args deepCopy() {
-
 
76225
      return new getCountForAmazonlistedItems_args(this);
-
 
76226
    }
-
 
76227
 
-
 
76228
    @Override
-
 
76229
    public void clear() {
-
 
76230
    }
-
 
76231
 
-
 
76232
    public void setFieldValue(_Fields field, Object value) {
-
 
76233
      switch (field) {
-
 
76234
      }
-
 
76235
    }
-
 
76236
 
-
 
76237
    public Object getFieldValue(_Fields field) {
-
 
76238
      switch (field) {
-
 
76239
      }
-
 
76240
      throw new IllegalStateException();
-
 
76241
    }
-
 
76242
 
-
 
76243
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
76244
    public boolean isSet(_Fields field) {
-
 
76245
      if (field == null) {
-
 
76246
        throw new IllegalArgumentException();
-
 
76247
      }
-
 
76248
 
-
 
76249
      switch (field) {
-
 
76250
      }
-
 
76251
      throw new IllegalStateException();
-
 
76252
    }
-
 
76253
 
-
 
76254
    @Override
-
 
76255
    public boolean equals(Object that) {
-
 
76256
      if (that == null)
-
 
76257
        return false;
-
 
76258
      if (that instanceof getCountForAmazonlistedItems_args)
-
 
76259
        return this.equals((getCountForAmazonlistedItems_args)that);
-
 
76260
      return false;
-
 
76261
    }
-
 
76262
 
-
 
76263
    public boolean equals(getCountForAmazonlistedItems_args that) {
-
 
76264
      if (that == null)
-
 
76265
        return false;
-
 
76266
 
-
 
76267
      return true;
-
 
76268
    }
-
 
76269
 
-
 
76270
    @Override
-
 
76271
    public int hashCode() {
-
 
76272
      return 0;
-
 
76273
    }
-
 
76274
 
-
 
76275
    public int compareTo(getCountForAmazonlistedItems_args other) {
-
 
76276
      if (!getClass().equals(other.getClass())) {
-
 
76277
        return getClass().getName().compareTo(other.getClass().getName());
-
 
76278
      }
-
 
76279
 
-
 
76280
      int lastComparison = 0;
-
 
76281
      getCountForAmazonlistedItems_args typedOther = (getCountForAmazonlistedItems_args)other;
-
 
76282
 
-
 
76283
      return 0;
-
 
76284
    }
-
 
76285
 
-
 
76286
    public _Fields fieldForId(int fieldId) {
-
 
76287
      return _Fields.findByThriftId(fieldId);
-
 
76288
    }
-
 
76289
 
-
 
76290
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
76291
      org.apache.thrift.protocol.TField field;
-
 
76292
      iprot.readStructBegin();
-
 
76293
      while (true)
-
 
76294
      {
-
 
76295
        field = iprot.readFieldBegin();
-
 
76296
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
76297
          break;
-
 
76298
        }
-
 
76299
        switch (field.id) {
-
 
76300
          default:
-
 
76301
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
76302
        }
-
 
76303
        iprot.readFieldEnd();
-
 
76304
      }
-
 
76305
      iprot.readStructEnd();
-
 
76306
      validate();
-
 
76307
    }
-
 
76308
 
-
 
76309
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
76310
      validate();
-
 
76311
 
-
 
76312
      oprot.writeStructBegin(STRUCT_DESC);
-
 
76313
      oprot.writeFieldStop();
-
 
76314
      oprot.writeStructEnd();
-
 
76315
    }
-
 
76316
 
-
 
76317
    @Override
-
 
76318
    public String toString() {
-
 
76319
      StringBuilder sb = new StringBuilder("getCountForAmazonlistedItems_args(");
-
 
76320
      boolean first = true;
-
 
76321
 
-
 
76322
      sb.append(")");
-
 
76323
      return sb.toString();
-
 
76324
    }
-
 
76325
 
-
 
76326
    public void validate() throws org.apache.thrift.TException {
-
 
76327
      // check for required fields
-
 
76328
    }
-
 
76329
 
-
 
76330
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
76331
      try {
-
 
76332
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
76333
      } catch (org.apache.thrift.TException te) {
-
 
76334
        throw new java.io.IOException(te);
-
 
76335
      }
-
 
76336
    }
-
 
76337
 
-
 
76338
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
76339
      try {
-
 
76340
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
76341
      } catch (org.apache.thrift.TException te) {
-
 
76342
        throw new java.io.IOException(te);
-
 
76343
      }
-
 
76344
    }
-
 
76345
 
-
 
76346
  }
-
 
76347
 
-
 
76348
  public static class getCountForAmazonlistedItems_result implements org.apache.thrift.TBase<getCountForAmazonlistedItems_result, getCountForAmazonlistedItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
76349
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCountForAmazonlistedItems_result");
-
 
76350
 
-
 
76351
    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);
-
 
76352
 
-
 
76353
    private long success; // required
-
 
76354
 
-
 
76355
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
76356
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
76357
      SUCCESS((short)0, "success");
-
 
76358
 
-
 
76359
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
76360
 
-
 
76361
      static {
-
 
76362
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
76363
          byName.put(field.getFieldName(), field);
-
 
76364
        }
-
 
76365
      }
-
 
76366
 
-
 
76367
      /**
-
 
76368
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
76369
       */
-
 
76370
      public static _Fields findByThriftId(int fieldId) {
-
 
76371
        switch(fieldId) {
-
 
76372
          case 0: // SUCCESS
-
 
76373
            return SUCCESS;
-
 
76374
          default:
-
 
76375
            return null;
-
 
76376
        }
-
 
76377
      }
-
 
76378
 
-
 
76379
      /**
-
 
76380
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
76381
       * if it is not found.
-
 
76382
       */
-
 
76383
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
76384
        _Fields fields = findByThriftId(fieldId);
-
 
76385
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
76386
        return fields;
-
 
76387
      }
-
 
76388
 
-
 
76389
      /**
-
 
76390
       * Find the _Fields constant that matches name, or null if its not found.
-
 
76391
       */
-
 
76392
      public static _Fields findByName(String name) {
-
 
76393
        return byName.get(name);
-
 
76394
      }
-
 
76395
 
-
 
76396
      private final short _thriftId;
-
 
76397
      private final String _fieldName;
-
 
76398
 
-
 
76399
      _Fields(short thriftId, String fieldName) {
-
 
76400
        _thriftId = thriftId;
-
 
76401
        _fieldName = fieldName;
-
 
76402
      }
-
 
76403
 
-
 
76404
      public short getThriftFieldId() {
-
 
76405
        return _thriftId;
-
 
76406
      }
-
 
76407
 
-
 
76408
      public String getFieldName() {
-
 
76409
        return _fieldName;
-
 
76410
      }
-
 
76411
    }
-
 
76412
 
-
 
76413
    // isset id assignments
-
 
76414
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
76415
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
76416
 
-
 
76417
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
76418
    static {
-
 
76419
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
76420
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
76421
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
76422
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
76423
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCountForAmazonlistedItems_result.class, metaDataMap);
-
 
76424
    }
-
 
76425
 
-
 
76426
    public getCountForAmazonlistedItems_result() {
-
 
76427
    }
-
 
76428
 
-
 
76429
    public getCountForAmazonlistedItems_result(
-
 
76430
      long success)
-
 
76431
    {
-
 
76432
      this();
-
 
76433
      this.success = success;
-
 
76434
      setSuccessIsSet(true);
-
 
76435
    }
-
 
76436
 
-
 
76437
    /**
-
 
76438
     * Performs a deep copy on <i>other</i>.
-
 
76439
     */
-
 
76440
    public getCountForAmazonlistedItems_result(getCountForAmazonlistedItems_result other) {
-
 
76441
      __isset_bit_vector.clear();
-
 
76442
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
76443
      this.success = other.success;
-
 
76444
    }
-
 
76445
 
-
 
76446
    public getCountForAmazonlistedItems_result deepCopy() {
-
 
76447
      return new getCountForAmazonlistedItems_result(this);
-
 
76448
    }
-
 
76449
 
-
 
76450
    @Override
-
 
76451
    public void clear() {
-
 
76452
      setSuccessIsSet(false);
-
 
76453
      this.success = 0;
-
 
76454
    }
-
 
76455
 
-
 
76456
    public long getSuccess() {
-
 
76457
      return this.success;
-
 
76458
    }
-
 
76459
 
-
 
76460
    public void setSuccess(long success) {
-
 
76461
      this.success = success;
-
 
76462
      setSuccessIsSet(true);
-
 
76463
    }
-
 
76464
 
-
 
76465
    public void unsetSuccess() {
-
 
76466
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
76467
    }
-
 
76468
 
-
 
76469
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
76470
    public boolean isSetSuccess() {
-
 
76471
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
76472
    }
-
 
76473
 
-
 
76474
    public void setSuccessIsSet(boolean value) {
-
 
76475
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
76476
    }
-
 
76477
 
-
 
76478
    public void setFieldValue(_Fields field, Object value) {
-
 
76479
      switch (field) {
-
 
76480
      case SUCCESS:
-
 
76481
        if (value == null) {
-
 
76482
          unsetSuccess();
-
 
76483
        } else {
-
 
76484
          setSuccess((Long)value);
-
 
76485
        }
-
 
76486
        break;
-
 
76487
 
-
 
76488
      }
-
 
76489
    }
-
 
76490
 
-
 
76491
    public Object getFieldValue(_Fields field) {
-
 
76492
      switch (field) {
-
 
76493
      case SUCCESS:
-
 
76494
        return Long.valueOf(getSuccess());
-
 
76495
 
-
 
76496
      }
-
 
76497
      throw new IllegalStateException();
-
 
76498
    }
-
 
76499
 
-
 
76500
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
76501
    public boolean isSet(_Fields field) {
-
 
76502
      if (field == null) {
-
 
76503
        throw new IllegalArgumentException();
-
 
76504
      }
-
 
76505
 
-
 
76506
      switch (field) {
-
 
76507
      case SUCCESS:
-
 
76508
        return isSetSuccess();
-
 
76509
      }
-
 
76510
      throw new IllegalStateException();
-
 
76511
    }
-
 
76512
 
-
 
76513
    @Override
-
 
76514
    public boolean equals(Object that) {
-
 
76515
      if (that == null)
-
 
76516
        return false;
-
 
76517
      if (that instanceof getCountForAmazonlistedItems_result)
-
 
76518
        return this.equals((getCountForAmazonlistedItems_result)that);
-
 
76519
      return false;
-
 
76520
    }
-
 
76521
 
-
 
76522
    public boolean equals(getCountForAmazonlistedItems_result that) {
-
 
76523
      if (that == null)
-
 
76524
        return false;
-
 
76525
 
-
 
76526
      boolean this_present_success = true;
-
 
76527
      boolean that_present_success = true;
-
 
76528
      if (this_present_success || that_present_success) {
-
 
76529
        if (!(this_present_success && that_present_success))
-
 
76530
          return false;
-
 
76531
        if (this.success != that.success)
-
 
76532
          return false;
-
 
76533
      }
-
 
76534
 
-
 
76535
      return true;
-
 
76536
    }
-
 
76537
 
-
 
76538
    @Override
-
 
76539
    public int hashCode() {
-
 
76540
      return 0;
-
 
76541
    }
-
 
76542
 
-
 
76543
    public int compareTo(getCountForAmazonlistedItems_result other) {
-
 
76544
      if (!getClass().equals(other.getClass())) {
-
 
76545
        return getClass().getName().compareTo(other.getClass().getName());
-
 
76546
      }
-
 
76547
 
-
 
76548
      int lastComparison = 0;
-
 
76549
      getCountForAmazonlistedItems_result typedOther = (getCountForAmazonlistedItems_result)other;
-
 
76550
 
-
 
76551
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
76552
      if (lastComparison != 0) {
-
 
76553
        return lastComparison;
-
 
76554
      }
-
 
76555
      if (isSetSuccess()) {
-
 
76556
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
76557
        if (lastComparison != 0) {
-
 
76558
          return lastComparison;
-
 
76559
        }
-
 
76560
      }
-
 
76561
      return 0;
-
 
76562
    }
-
 
76563
 
-
 
76564
    public _Fields fieldForId(int fieldId) {
-
 
76565
      return _Fields.findByThriftId(fieldId);
-
 
76566
    }
-
 
76567
 
-
 
76568
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
76569
      org.apache.thrift.protocol.TField field;
-
 
76570
      iprot.readStructBegin();
-
 
76571
      while (true)
-
 
76572
      {
-
 
76573
        field = iprot.readFieldBegin();
-
 
76574
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
76575
          break;
-
 
76576
        }
-
 
76577
        switch (field.id) {
-
 
76578
          case 0: // SUCCESS
-
 
76579
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
76580
              this.success = iprot.readI64();
-
 
76581
              setSuccessIsSet(true);
-
 
76582
            } else { 
-
 
76583
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
76584
            }
-
 
76585
            break;
-
 
76586
          default:
-
 
76587
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
76588
        }
-
 
76589
        iprot.readFieldEnd();
-
 
76590
      }
-
 
76591
      iprot.readStructEnd();
-
 
76592
      validate();
-
 
76593
    }
-
 
76594
 
-
 
76595
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
76596
      oprot.writeStructBegin(STRUCT_DESC);
-
 
76597
 
-
 
76598
      if (this.isSetSuccess()) {
-
 
76599
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
76600
        oprot.writeI64(this.success);
-
 
76601
        oprot.writeFieldEnd();
-
 
76602
      }
-
 
76603
      oprot.writeFieldStop();
-
 
76604
      oprot.writeStructEnd();
-
 
76605
    }
-
 
76606
 
-
 
76607
    @Override
-
 
76608
    public String toString() {
-
 
76609
      StringBuilder sb = new StringBuilder("getCountForAmazonlistedItems_result(");
-
 
76610
      boolean first = true;
-
 
76611
 
-
 
76612
      sb.append("success:");
-
 
76613
      sb.append(this.success);
-
 
76614
      first = false;
-
 
76615
      sb.append(")");
-
 
76616
      return sb.toString();
-
 
76617
    }
-
 
76618
 
-
 
76619
    public void validate() throws org.apache.thrift.TException {
-
 
76620
      // check for required fields
-
 
76621
    }
-
 
76622
 
-
 
76623
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
76624
      try {
-
 
76625
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
76626
      } catch (org.apache.thrift.TException te) {
-
 
76627
        throw new java.io.IOException(te);
-
 
76628
      }
-
 
76629
    }
-
 
76630
 
-
 
76631
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
76632
      try {
-
 
76633
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
76634
      } catch (org.apache.thrift.TException te) {
-
 
76635
        throw new java.io.IOException(te);
-
 
76636
      }
-
 
76637
    }
-
 
76638
 
-
 
76639
  }
-
 
76640
 
74386
  public static class getAmazonItemDetails_args implements org.apache.thrift.TBase<getAmazonItemDetails_args, getAmazonItemDetails_args._Fields>, java.io.Serializable, Cloneable   {
76641
  public static class getAmazonItemDetails_args implements org.apache.thrift.TBase<getAmazonItemDetails_args, getAmazonItemDetails_args._Fields>, java.io.Serializable, Cloneable   {
74387
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonItemDetails_args");
76642
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonItemDetails_args");
74388
 
76643
 
74389
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
76644
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
74390
 
76645
 
Line 76407... Line 78662...
76407
        }
78662
        }
76408
        switch (field.id) {
78663
        switch (field.id) {
76409
          case 0: // SUCCESS
78664
          case 0: // SUCCESS
76410
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
78665
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
76411
              {
78666
              {
76412
                org.apache.thrift.protocol.TList _list229 = iprot.readListBegin();
78667
                org.apache.thrift.protocol.TList _list241 = iprot.readListBegin();
76413
                this.success = new ArrayList<Item>(_list229.size);
78668
                this.success = new ArrayList<Item>(_list241.size);
76414
                for (int _i230 = 0; _i230 < _list229.size; ++_i230)
78669
                for (int _i242 = 0; _i242 < _list241.size; ++_i242)
76415
                {
78670
                {
76416
                  Item _elem231; // required
78671
                  Item _elem243; // required
76417
                  _elem231 = new Item();
78672
                  _elem243 = new Item();
76418
                  _elem231.read(iprot);
78673
                  _elem243.read(iprot);
76419
                  this.success.add(_elem231);
78674
                  this.success.add(_elem243);
76420
                }
78675
                }
76421
                iprot.readListEnd();
78676
                iprot.readListEnd();
76422
              }
78677
              }
76423
            } else { 
78678
            } else { 
76424
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
78679
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 76438... Line 78693...
76438
 
78693
 
76439
      if (this.isSetSuccess()) {
78694
      if (this.isSetSuccess()) {
76440
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
78695
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
76441
        {
78696
        {
76442
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
78697
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
76443
          for (Item _iter232 : this.success)
78698
          for (Item _iter244 : this.success)
76444
          {
78699
          {
76445
            _iter232.write(oprot);
78700
            _iter244.write(oprot);
76446
          }
78701
          }
76447
          oprot.writeListEnd();
78702
          oprot.writeListEnd();
76448
        }
78703
        }
76449
        oprot.writeFieldEnd();
78704
        oprot.writeFieldEnd();
76450
      }
78705
      }
Line 76938... Line 79193...
76938
        }
79193
        }
76939
        switch (field.id) {
79194
        switch (field.id) {
76940
          case 0: // SUCCESS
79195
          case 0: // SUCCESS
76941
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
79196
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
76942
              {
79197
              {
76943
                org.apache.thrift.protocol.TList _list233 = iprot.readListBegin();
79198
                org.apache.thrift.protocol.TList _list245 = iprot.readListBegin();
76944
                this.success = new ArrayList<Amazonlisted>(_list233.size);
79199
                this.success = new ArrayList<Amazonlisted>(_list245.size);
76945
                for (int _i234 = 0; _i234 < _list233.size; ++_i234)
79200
                for (int _i246 = 0; _i246 < _list245.size; ++_i246)
76946
                {
79201
                {
76947
                  Amazonlisted _elem235; // required
79202
                  Amazonlisted _elem247; // required
76948
                  _elem235 = new Amazonlisted();
79203
                  _elem247 = new Amazonlisted();
76949
                  _elem235.read(iprot);
79204
                  _elem247.read(iprot);
76950
                  this.success.add(_elem235);
79205
                  this.success.add(_elem247);
76951
                }
79206
                }
76952
                iprot.readListEnd();
79207
                iprot.readListEnd();
76953
              }
79208
              }
76954
            } else { 
79209
            } else { 
76955
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
79210
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 76969... Line 79224...
76969
 
79224
 
76970
      if (this.isSetSuccess()) {
79225
      if (this.isSetSuccess()) {
76971
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
79226
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
76972
        {
79227
        {
76973
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
79228
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
76974
          for (Amazonlisted _iter236 : this.success)
79229
          for (Amazonlisted _iter248 : this.success)
76975
          {
79230
          {
76976
            _iter236.write(oprot);
79231
            _iter248.write(oprot);
76977
          }
79232
          }
76978
          oprot.writeListEnd();
79233
          oprot.writeListEnd();
76979
        }
79234
        }
76980
        oprot.writeFieldEnd();
79235
        oprot.writeFieldEnd();
76981
      }
79236
      }
Line 77469... Line 79724...
77469
        }
79724
        }
77470
        switch (field.id) {
79725
        switch (field.id) {
77471
          case 0: // SUCCESS
79726
          case 0: // SUCCESS
77472
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
79727
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
77473
              {
79728
              {
77474
                org.apache.thrift.protocol.TList _list237 = iprot.readListBegin();
79729
                org.apache.thrift.protocol.TList _list249 = iprot.readListBegin();
77475
                this.success = new ArrayList<Amazonlisted>(_list237.size);
79730
                this.success = new ArrayList<Amazonlisted>(_list249.size);
77476
                for (int _i238 = 0; _i238 < _list237.size; ++_i238)
79731
                for (int _i250 = 0; _i250 < _list249.size; ++_i250)
77477
                {
79732
                {
77478
                  Amazonlisted _elem239; // required
79733
                  Amazonlisted _elem251; // required
77479
                  _elem239 = new Amazonlisted();
79734
                  _elem251 = new Amazonlisted();
77480
                  _elem239.read(iprot);
79735
                  _elem251.read(iprot);
77481
                  this.success.add(_elem239);
79736
                  this.success.add(_elem251);
77482
                }
79737
                }
77483
                iprot.readListEnd();
79738
                iprot.readListEnd();
77484
              }
79739
              }
77485
            } else { 
79740
            } else { 
77486
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
79741
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 77500... Line 79755...
77500
 
79755
 
77501
      if (this.isSetSuccess()) {
79756
      if (this.isSetSuccess()) {
77502
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
79757
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
77503
        {
79758
        {
77504
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
79759
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
77505
          for (Amazonlisted _iter240 : this.success)
79760
          for (Amazonlisted _iter252 : this.success)
77506
          {
79761
          {
77507
            _iter240.write(oprot);
79762
            _iter252.write(oprot);
77508
          }
79763
          }
77509
          oprot.writeListEnd();
79764
          oprot.writeListEnd();
77510
        }
79765
        }
77511
        oprot.writeFieldEnd();
79766
        oprot.writeFieldEnd();
77512
      }
79767
      }
Line 78699... Line 80954...
78699
            }
80954
            }
78700
            break;
80955
            break;
78701
          case 2: // SKU
80956
          case 2: // SKU
78702
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
80957
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
78703
              {
80958
              {
78704
                org.apache.thrift.protocol.TList _list241 = iprot.readListBegin();
80959
                org.apache.thrift.protocol.TList _list253 = iprot.readListBegin();
78705
                this.sku = new ArrayList<Long>(_list241.size);
80960
                this.sku = new ArrayList<Long>(_list253.size);
78706
                for (int _i242 = 0; _i242 < _list241.size; ++_i242)
80961
                for (int _i254 = 0; _i254 < _list253.size; ++_i254)
78707
                {
80962
                {
78708
                  long _elem243; // required
80963
                  long _elem255; // required
78709
                  _elem243 = iprot.readI64();
80964
                  _elem255 = iprot.readI64();
78710
                  this.sku.add(_elem243);
80965
                  this.sku.add(_elem255);
78711
                }
80966
                }
78712
                iprot.readListEnd();
80967
                iprot.readListEnd();
78713
              }
80968
              }
78714
            } else { 
80969
            } else { 
78715
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
80970
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 78743... Line 80998...
78743
      }
80998
      }
78744
      if (this.sku != null) {
80999
      if (this.sku != null) {
78745
        oprot.writeFieldBegin(SKU_FIELD_DESC);
81000
        oprot.writeFieldBegin(SKU_FIELD_DESC);
78746
        {
81001
        {
78747
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.sku.size()));
81002
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.sku.size()));
78748
          for (long _iter244 : this.sku)
81003
          for (long _iter256 : this.sku)
78749
          {
81004
          {
78750
            oprot.writeI64(_iter244);
81005
            oprot.writeI64(_iter256);
78751
          }
81006
          }
78752
          oprot.writeListEnd();
81007
          oprot.writeListEnd();
78753
        }
81008
        }
78754
        oprot.writeFieldEnd();
81009
        oprot.writeFieldEnd();
78755
      }
81010
      }
Line 79553... Line 81808...
79553
        }
81808
        }
79554
        switch (field.id) {
81809
        switch (field.id) {
79555
          case 0: // SUCCESS
81810
          case 0: // SUCCESS
79556
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
81811
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
79557
              {
81812
              {
79558
                org.apache.thrift.protocol.TList _list245 = iprot.readListBegin();
81813
                org.apache.thrift.protocol.TList _list257 = iprot.readListBegin();
79559
                this.success = new ArrayList<Category>(_list245.size);
81814
                this.success = new ArrayList<Category>(_list257.size);
79560
                for (int _i246 = 0; _i246 < _list245.size; ++_i246)
81815
                for (int _i258 = 0; _i258 < _list257.size; ++_i258)
79561
                {
81816
                {
79562
                  Category _elem247; // required
81817
                  Category _elem259; // required
79563
                  _elem247 = new Category();
81818
                  _elem259 = new Category();
79564
                  _elem247.read(iprot);
81819
                  _elem259.read(iprot);
79565
                  this.success.add(_elem247);
81820
                  this.success.add(_elem259);
79566
                }
81821
                }
79567
                iprot.readListEnd();
81822
                iprot.readListEnd();
79568
              }
81823
              }
79569
            } else { 
81824
            } else { 
79570
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
81825
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 79584... Line 81839...
79584
 
81839
 
79585
      if (this.isSetSuccess()) {
81840
      if (this.isSetSuccess()) {
79586
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
81841
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
79587
        {
81842
        {
79588
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
81843
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
79589
          for (Category _iter248 : this.success)
81844
          for (Category _iter260 : this.success)
79590
          {
81845
          {
79591
            _iter248.write(oprot);
81846
            _iter260.write(oprot);
79592
          }
81847
          }
79593
          oprot.writeListEnd();
81848
          oprot.writeListEnd();
79594
        }
81849
        }
79595
        oprot.writeFieldEnd();
81850
        oprot.writeFieldEnd();
79596
      }
81851
      }
Line 82825... Line 85080...
82825
        }
85080
        }
82826
        switch (field.id) {
85081
        switch (field.id) {
82827
          case 0: // SUCCESS
85082
          case 0: // SUCCESS
82828
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
85083
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
82829
              {
85084
              {
82830
                org.apache.thrift.protocol.TList _list249 = iprot.readListBegin();
85085
                org.apache.thrift.protocol.TList _list261 = iprot.readListBegin();
82831
                this.success = new ArrayList<Amazonlisted>(_list249.size);
85086
                this.success = new ArrayList<Amazonlisted>(_list261.size);
82832
                for (int _i250 = 0; _i250 < _list249.size; ++_i250)
85087
                for (int _i262 = 0; _i262 < _list261.size; ++_i262)
82833
                {
85088
                {
82834
                  Amazonlisted _elem251; // required
85089
                  Amazonlisted _elem263; // required
82835
                  _elem251 = new Amazonlisted();
85090
                  _elem263 = new Amazonlisted();
82836
                  _elem251.read(iprot);
85091
                  _elem263.read(iprot);
82837
                  this.success.add(_elem251);
85092
                  this.success.add(_elem263);
82838
                }
85093
                }
82839
                iprot.readListEnd();
85094
                iprot.readListEnd();
82840
              }
85095
              }
82841
            } else { 
85096
            } else { 
82842
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
85097
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 82856... Line 85111...
82856
 
85111
 
82857
      if (this.isSetSuccess()) {
85112
      if (this.isSetSuccess()) {
82858
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
85113
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
82859
        {
85114
        {
82860
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
85115
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
82861
          for (Amazonlisted _iter252 : this.success)
85116
          for (Amazonlisted _iter264 : this.success)
82862
          {
85117
          {
82863
            _iter252.write(oprot);
85118
            _iter264.write(oprot);
82864
          }
85119
          }
82865
          oprot.writeListEnd();
85120
          oprot.writeListEnd();
82866
        }
85121
        }
82867
        oprot.writeFieldEnd();
85122
        oprot.writeFieldEnd();
82868
      }
85123
      }
Line 83161... Line 85416...
83161
        }
85416
        }
83162
        switch (field.id) {
85417
        switch (field.id) {
83163
          case 1: // AMAZONLISTED
85418
          case 1: // AMAZONLISTED
83164
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
85419
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
83165
              {
85420
              {
83166
                org.apache.thrift.protocol.TMap _map253 = iprot.readMapBegin();
85421
                org.apache.thrift.protocol.TMap _map265 = iprot.readMapBegin();
83167
                this.amazonlisted = new HashMap<Long,Amazonlisted>(2*_map253.size);
85422
                this.amazonlisted = new HashMap<Long,Amazonlisted>(2*_map265.size);
83168
                for (int _i254 = 0; _i254 < _map253.size; ++_i254)
85423
                for (int _i266 = 0; _i266 < _map265.size; ++_i266)
83169
                {
85424
                {
83170
                  long _key255; // required
85425
                  long _key267; // required
83171
                  Amazonlisted _val256; // required
85426
                  Amazonlisted _val268; // required
83172
                  _key255 = iprot.readI64();
85427
                  _key267 = iprot.readI64();
83173
                  _val256 = new Amazonlisted();
85428
                  _val268 = new Amazonlisted();
83174
                  _val256.read(iprot);
85429
                  _val268.read(iprot);
83175
                  this.amazonlisted.put(_key255, _val256);
85430
                  this.amazonlisted.put(_key267, _val268);
83176
                }
85431
                }
83177
                iprot.readMapEnd();
85432
                iprot.readMapEnd();
83178
              }
85433
              }
83179
            } else { 
85434
            } else { 
83180
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
85435
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 83195... Line 85450...
83195
      oprot.writeStructBegin(STRUCT_DESC);
85450
      oprot.writeStructBegin(STRUCT_DESC);
83196
      if (this.amazonlisted != null) {
85451
      if (this.amazonlisted != null) {
83197
        oprot.writeFieldBegin(AMAZONLISTED_FIELD_DESC);
85452
        oprot.writeFieldBegin(AMAZONLISTED_FIELD_DESC);
83198
        {
85453
        {
83199
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.amazonlisted.size()));
85454
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.amazonlisted.size()));
83200
          for (Map.Entry<Long, Amazonlisted> _iter257 : this.amazonlisted.entrySet())
85455
          for (Map.Entry<Long, Amazonlisted> _iter269 : this.amazonlisted.entrySet())
83201
          {
85456
          {
83202
            oprot.writeI64(_iter257.getKey());
85457
            oprot.writeI64(_iter269.getKey());
83203
            _iter257.getValue().write(oprot);
85458
            _iter269.getValue().write(oprot);
83204
          }
85459
          }
83205
          oprot.writeMapEnd();
85460
          oprot.writeMapEnd();
83206
        }
85461
        }
83207
        oprot.writeFieldEnd();
85462
        oprot.writeFieldEnd();
83208
      }
85463
      }
Line 83989... Line 86244...
83989
        }
86244
        }
83990
        switch (field.id) {
86245
        switch (field.id) {
83991
          case 0: // SUCCESS
86246
          case 0: // SUCCESS
83992
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
86247
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
83993
              {
86248
              {
83994
                org.apache.thrift.protocol.TList _list258 = iprot.readListBegin();
86249
                org.apache.thrift.protocol.TList _list270 = iprot.readListBegin();
83995
                this.success = new ArrayList<Amazonlisted>(_list258.size);
86250
                this.success = new ArrayList<Amazonlisted>(_list270.size);
83996
                for (int _i259 = 0; _i259 < _list258.size; ++_i259)
86251
                for (int _i271 = 0; _i271 < _list270.size; ++_i271)
83997
                {
86252
                {
83998
                  Amazonlisted _elem260; // required
86253
                  Amazonlisted _elem272; // required
83999
                  _elem260 = new Amazonlisted();
86254
                  _elem272 = new Amazonlisted();
84000
                  _elem260.read(iprot);
86255
                  _elem272.read(iprot);
84001
                  this.success.add(_elem260);
86256
                  this.success.add(_elem272);
84002
                }
86257
                }
84003
                iprot.readListEnd();
86258
                iprot.readListEnd();
84004
              }
86259
              }
84005
            } else { 
86260
            } else { 
84006
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
86261
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 84020... Line 86275...
84020
 
86275
 
84021
      if (this.isSetSuccess()) {
86276
      if (this.isSetSuccess()) {
84022
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
86277
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
84023
        {
86278
        {
84024
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
86279
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
84025
          for (Amazonlisted _iter261 : this.success)
86280
          for (Amazonlisted _iter273 : this.success)
84026
          {
86281
          {
84027
            _iter261.write(oprot);
86282
            _iter273.write(oprot);
84028
          }
86283
          }
84029
          oprot.writeListEnd();
86284
          oprot.writeListEnd();
84030
        }
86285
        }
84031
        oprot.writeFieldEnd();
86286
        oprot.writeFieldEnd();
84032
      }
86287
      }
Line 84520... Line 86775...
84520
        }
86775
        }
84521
        switch (field.id) {
86776
        switch (field.id) {
84522
          case 0: // SUCCESS
86777
          case 0: // SUCCESS
84523
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
86778
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
84524
              {
86779
              {
84525
                org.apache.thrift.protocol.TList _list262 = iprot.readListBegin();
86780
                org.apache.thrift.protocol.TList _list274 = iprot.readListBegin();
84526
                this.success = new ArrayList<Amazonlisted>(_list262.size);
86781
                this.success = new ArrayList<Amazonlisted>(_list274.size);
84527
                for (int _i263 = 0; _i263 < _list262.size; ++_i263)
86782
                for (int _i275 = 0; _i275 < _list274.size; ++_i275)
84528
                {
86783
                {
84529
                  Amazonlisted _elem264; // required
86784
                  Amazonlisted _elem276; // required
84530
                  _elem264 = new Amazonlisted();
86785
                  _elem276 = new Amazonlisted();
84531
                  _elem264.read(iprot);
86786
                  _elem276.read(iprot);
84532
                  this.success.add(_elem264);
86787
                  this.success.add(_elem276);
84533
                }
86788
                }
84534
                iprot.readListEnd();
86789
                iprot.readListEnd();
84535
              }
86790
              }
84536
            } else { 
86791
            } else { 
84537
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
86792
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 84551... Line 86806...
84551
 
86806
 
84552
      if (this.isSetSuccess()) {
86807
      if (this.isSetSuccess()) {
84553
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
86808
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
84554
        {
86809
        {
84555
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
86810
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
84556
          for (Amazonlisted _iter265 : this.success)
86811
          for (Amazonlisted _iter277 : this.success)
84557
          {
86812
          {
84558
            _iter265.write(oprot);
86813
            _iter277.write(oprot);
84559
          }
86814
          }
84560
          oprot.writeListEnd();
86815
          oprot.writeListEnd();
84561
        }
86816
        }
84562
        oprot.writeFieldEnd();
86817
        oprot.writeFieldEnd();
84563
      }
86818
      }
Line 85051... Line 87306...
85051
        }
87306
        }
85052
        switch (field.id) {
87307
        switch (field.id) {
85053
          case 0: // SUCCESS
87308
          case 0: // SUCCESS
85054
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
87309
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
85055
              {
87310
              {
85056
                org.apache.thrift.protocol.TList _list266 = iprot.readListBegin();
87311
                org.apache.thrift.protocol.TList _list278 = iprot.readListBegin();
85057
                this.success = new ArrayList<Item>(_list266.size);
87312
                this.success = new ArrayList<Item>(_list278.size);
85058
                for (int _i267 = 0; _i267 < _list266.size; ++_i267)
87313
                for (int _i279 = 0; _i279 < _list278.size; ++_i279)
85059
                {
87314
                {
85060
                  Item _elem268; // required
87315
                  Item _elem280; // required
85061
                  _elem268 = new Item();
87316
                  _elem280 = new Item();
85062
                  _elem268.read(iprot);
87317
                  _elem280.read(iprot);
85063
                  this.success.add(_elem268);
87318
                  this.success.add(_elem280);
85064
                }
87319
                }
85065
                iprot.readListEnd();
87320
                iprot.readListEnd();
85066
              }
87321
              }
85067
            } else { 
87322
            } else { 
85068
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
87323
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 85082... Line 87337...
85082
 
87337
 
85083
      if (this.isSetSuccess()) {
87338
      if (this.isSetSuccess()) {
85084
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
87339
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
85085
        {
87340
        {
85086
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
87341
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
85087
          for (Item _iter269 : this.success)
87342
          for (Item _iter281 : this.success)
85088
          {
87343
          {
85089
            _iter269.write(oprot);
87344
            _iter281.write(oprot);
85090
          }
87345
          }
85091
          oprot.writeListEnd();
87346
          oprot.writeListEnd();
85092
        }
87347
        }
85093
        oprot.writeFieldEnd();
87348
        oprot.writeFieldEnd();
85094
      }
87349
      }
Line 85111... Line 87366...
85111
      sb.append(")");
87366
      sb.append(")");
85112
      return sb.toString();
87367
      return sb.toString();
85113
    }
87368
    }
85114
 
87369
 
85115
    public void validate() throws org.apache.thrift.TException {
87370
    public void validate() throws org.apache.thrift.TException {
-
 
87371
      // check for required fields
-
 
87372
    }
-
 
87373
 
-
 
87374
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
87375
      try {
-
 
87376
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
87377
      } catch (org.apache.thrift.TException te) {
-
 
87378
        throw new java.io.IOException(te);
-
 
87379
      }
-
 
87380
    }
-
 
87381
 
-
 
87382
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
87383
      try {
-
 
87384
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
87385
      } catch (org.apache.thrift.TException te) {
-
 
87386
        throw new java.io.IOException(te);
-
 
87387
      }
-
 
87388
    }
-
 
87389
 
-
 
87390
  }
-
 
87391
 
-
 
87392
  public static class updateAsin_args implements org.apache.thrift.TBase<updateAsin_args, updateAsin_args._Fields>, java.io.Serializable, Cloneable   {
-
 
87393
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAsin_args");
-
 
87394
 
-
 
87395
    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);
-
 
87396
 
-
 
87397
    private Map<Long,Item> item; // required
-
 
87398
 
-
 
87399
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
87400
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
87401
      ITEM((short)1, "item");
-
 
87402
 
-
 
87403
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
87404
 
-
 
87405
      static {
-
 
87406
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
87407
          byName.put(field.getFieldName(), field);
-
 
87408
        }
-
 
87409
      }
-
 
87410
 
-
 
87411
      /**
-
 
87412
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
87413
       */
-
 
87414
      public static _Fields findByThriftId(int fieldId) {
-
 
87415
        switch(fieldId) {
-
 
87416
          case 1: // ITEM
-
 
87417
            return ITEM;
-
 
87418
          default:
-
 
87419
            return null;
-
 
87420
        }
-
 
87421
      }
-
 
87422
 
-
 
87423
      /**
-
 
87424
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
87425
       * if it is not found.
-
 
87426
       */
-
 
87427
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
87428
        _Fields fields = findByThriftId(fieldId);
-
 
87429
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
87430
        return fields;
-
 
87431
      }
-
 
87432
 
-
 
87433
      /**
-
 
87434
       * Find the _Fields constant that matches name, or null if its not found.
-
 
87435
       */
-
 
87436
      public static _Fields findByName(String name) {
-
 
87437
        return byName.get(name);
-
 
87438
      }
-
 
87439
 
-
 
87440
      private final short _thriftId;
-
 
87441
      private final String _fieldName;
-
 
87442
 
-
 
87443
      _Fields(short thriftId, String fieldName) {
-
 
87444
        _thriftId = thriftId;
-
 
87445
        _fieldName = fieldName;
-
 
87446
      }
-
 
87447
 
-
 
87448
      public short getThriftFieldId() {
-
 
87449
        return _thriftId;
-
 
87450
      }
-
 
87451
 
-
 
87452
      public String getFieldName() {
-
 
87453
        return _fieldName;
-
 
87454
      }
-
 
87455
    }
-
 
87456
 
-
 
87457
    // isset id assignments
-
 
87458
 
-
 
87459
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
87460
    static {
-
 
87461
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
87462
      tmpMap.put(_Fields.ITEM, new org.apache.thrift.meta_data.FieldMetaData("item", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
87463
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
87464
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
87465
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
-
 
87466
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
87467
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAsin_args.class, metaDataMap);
-
 
87468
    }
-
 
87469
 
-
 
87470
    public updateAsin_args() {
-
 
87471
    }
-
 
87472
 
-
 
87473
    public updateAsin_args(
-
 
87474
      Map<Long,Item> item)
-
 
87475
    {
-
 
87476
      this();
-
 
87477
      this.item = item;
-
 
87478
    }
-
 
87479
 
-
 
87480
    /**
-
 
87481
     * Performs a deep copy on <i>other</i>.
-
 
87482
     */
-
 
87483
    public updateAsin_args(updateAsin_args other) {
-
 
87484
      if (other.isSetItem()) {
-
 
87485
        Map<Long,Item> __this__item = new HashMap<Long,Item>();
-
 
87486
        for (Map.Entry<Long, Item> other_element : other.item.entrySet()) {
-
 
87487
 
-
 
87488
          Long other_element_key = other_element.getKey();
-
 
87489
          Item other_element_value = other_element.getValue();
-
 
87490
 
-
 
87491
          Long __this__item_copy_key = other_element_key;
-
 
87492
 
-
 
87493
          Item __this__item_copy_value = new Item(other_element_value);
-
 
87494
 
-
 
87495
          __this__item.put(__this__item_copy_key, __this__item_copy_value);
-
 
87496
        }
-
 
87497
        this.item = __this__item;
-
 
87498
      }
-
 
87499
    }
-
 
87500
 
-
 
87501
    public updateAsin_args deepCopy() {
-
 
87502
      return new updateAsin_args(this);
-
 
87503
    }
-
 
87504
 
-
 
87505
    @Override
-
 
87506
    public void clear() {
-
 
87507
      this.item = null;
-
 
87508
    }
-
 
87509
 
-
 
87510
    public int getItemSize() {
-
 
87511
      return (this.item == null) ? 0 : this.item.size();
-
 
87512
    }
-
 
87513
 
-
 
87514
    public void putToItem(long key, Item val) {
-
 
87515
      if (this.item == null) {
-
 
87516
        this.item = new HashMap<Long,Item>();
-
 
87517
      }
-
 
87518
      this.item.put(key, val);
-
 
87519
    }
-
 
87520
 
-
 
87521
    public Map<Long,Item> getItem() {
-
 
87522
      return this.item;
-
 
87523
    }
-
 
87524
 
-
 
87525
    public void setItem(Map<Long,Item> item) {
-
 
87526
      this.item = item;
-
 
87527
    }
-
 
87528
 
-
 
87529
    public void unsetItem() {
-
 
87530
      this.item = null;
-
 
87531
    }
-
 
87532
 
-
 
87533
    /** Returns true if field item is set (has been assigned a value) and false otherwise */
-
 
87534
    public boolean isSetItem() {
-
 
87535
      return this.item != null;
-
 
87536
    }
-
 
87537
 
-
 
87538
    public void setItemIsSet(boolean value) {
-
 
87539
      if (!value) {
-
 
87540
        this.item = null;
-
 
87541
      }
-
 
87542
    }
-
 
87543
 
-
 
87544
    public void setFieldValue(_Fields field, Object value) {
-
 
87545
      switch (field) {
-
 
87546
      case ITEM:
-
 
87547
        if (value == null) {
-
 
87548
          unsetItem();
-
 
87549
        } else {
-
 
87550
          setItem((Map<Long,Item>)value);
-
 
87551
        }
-
 
87552
        break;
-
 
87553
 
-
 
87554
      }
-
 
87555
    }
-
 
87556
 
-
 
87557
    public Object getFieldValue(_Fields field) {
-
 
87558
      switch (field) {
-
 
87559
      case ITEM:
-
 
87560
        return getItem();
-
 
87561
 
-
 
87562
      }
-
 
87563
      throw new IllegalStateException();
-
 
87564
    }
-
 
87565
 
-
 
87566
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
87567
    public boolean isSet(_Fields field) {
-
 
87568
      if (field == null) {
-
 
87569
        throw new IllegalArgumentException();
-
 
87570
      }
-
 
87571
 
-
 
87572
      switch (field) {
-
 
87573
      case ITEM:
-
 
87574
        return isSetItem();
-
 
87575
      }
-
 
87576
      throw new IllegalStateException();
-
 
87577
    }
-
 
87578
 
-
 
87579
    @Override
-
 
87580
    public boolean equals(Object that) {
-
 
87581
      if (that == null)
-
 
87582
        return false;
-
 
87583
      if (that instanceof updateAsin_args)
-
 
87584
        return this.equals((updateAsin_args)that);
-
 
87585
      return false;
-
 
87586
    }
-
 
87587
 
-
 
87588
    public boolean equals(updateAsin_args that) {
-
 
87589
      if (that == null)
-
 
87590
        return false;
-
 
87591
 
-
 
87592
      boolean this_present_item = true && this.isSetItem();
-
 
87593
      boolean that_present_item = true && that.isSetItem();
-
 
87594
      if (this_present_item || that_present_item) {
-
 
87595
        if (!(this_present_item && that_present_item))
-
 
87596
          return false;
-
 
87597
        if (!this.item.equals(that.item))
-
 
87598
          return false;
-
 
87599
      }
-
 
87600
 
-
 
87601
      return true;
-
 
87602
    }
-
 
87603
 
-
 
87604
    @Override
-
 
87605
    public int hashCode() {
-
 
87606
      return 0;
-
 
87607
    }
-
 
87608
 
-
 
87609
    public int compareTo(updateAsin_args other) {
-
 
87610
      if (!getClass().equals(other.getClass())) {
-
 
87611
        return getClass().getName().compareTo(other.getClass().getName());
-
 
87612
      }
-
 
87613
 
-
 
87614
      int lastComparison = 0;
-
 
87615
      updateAsin_args typedOther = (updateAsin_args)other;
-
 
87616
 
-
 
87617
      lastComparison = Boolean.valueOf(isSetItem()).compareTo(typedOther.isSetItem());
-
 
87618
      if (lastComparison != 0) {
-
 
87619
        return lastComparison;
-
 
87620
      }
-
 
87621
      if (isSetItem()) {
-
 
87622
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item, typedOther.item);
-
 
87623
        if (lastComparison != 0) {
-
 
87624
          return lastComparison;
-
 
87625
        }
-
 
87626
      }
-
 
87627
      return 0;
-
 
87628
    }
-
 
87629
 
-
 
87630
    public _Fields fieldForId(int fieldId) {
-
 
87631
      return _Fields.findByThriftId(fieldId);
-
 
87632
    }
-
 
87633
 
-
 
87634
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
87635
      org.apache.thrift.protocol.TField field;
-
 
87636
      iprot.readStructBegin();
-
 
87637
      while (true)
-
 
87638
      {
-
 
87639
        field = iprot.readFieldBegin();
-
 
87640
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
87641
          break;
-
 
87642
        }
-
 
87643
        switch (field.id) {
-
 
87644
          case 1: // ITEM
-
 
87645
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
87646
              {
-
 
87647
                org.apache.thrift.protocol.TMap _map282 = iprot.readMapBegin();
-
 
87648
                this.item = new HashMap<Long,Item>(2*_map282.size);
-
 
87649
                for (int _i283 = 0; _i283 < _map282.size; ++_i283)
-
 
87650
                {
-
 
87651
                  long _key284; // required
-
 
87652
                  Item _val285; // required
-
 
87653
                  _key284 = iprot.readI64();
-
 
87654
                  _val285 = new Item();
-
 
87655
                  _val285.read(iprot);
-
 
87656
                  this.item.put(_key284, _val285);
-
 
87657
                }
-
 
87658
                iprot.readMapEnd();
-
 
87659
              }
-
 
87660
            } else { 
-
 
87661
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
87662
            }
-
 
87663
            break;
-
 
87664
          default:
-
 
87665
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
87666
        }
-
 
87667
        iprot.readFieldEnd();
-
 
87668
      }
-
 
87669
      iprot.readStructEnd();
-
 
87670
      validate();
-
 
87671
    }
-
 
87672
 
-
 
87673
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
87674
      validate();
-
 
87675
 
-
 
87676
      oprot.writeStructBegin(STRUCT_DESC);
-
 
87677
      if (this.item != null) {
-
 
87678
        oprot.writeFieldBegin(ITEM_FIELD_DESC);
-
 
87679
        {
-
 
87680
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.item.size()));
-
 
87681
          for (Map.Entry<Long, Item> _iter286 : this.item.entrySet())
-
 
87682
          {
-
 
87683
            oprot.writeI64(_iter286.getKey());
-
 
87684
            _iter286.getValue().write(oprot);
-
 
87685
          }
-
 
87686
          oprot.writeMapEnd();
-
 
87687
        }
-
 
87688
        oprot.writeFieldEnd();
-
 
87689
      }
-
 
87690
      oprot.writeFieldStop();
-
 
87691
      oprot.writeStructEnd();
-
 
87692
    }
-
 
87693
 
-
 
87694
    @Override
-
 
87695
    public String toString() {
-
 
87696
      StringBuilder sb = new StringBuilder("updateAsin_args(");
-
 
87697
      boolean first = true;
-
 
87698
 
-
 
87699
      sb.append("item:");
-
 
87700
      if (this.item == null) {
-
 
87701
        sb.append("null");
-
 
87702
      } else {
-
 
87703
        sb.append(this.item);
-
 
87704
      }
-
 
87705
      first = false;
-
 
87706
      sb.append(")");
-
 
87707
      return sb.toString();
-
 
87708
    }
-
 
87709
 
-
 
87710
    public void validate() throws org.apache.thrift.TException {
-
 
87711
      // check for required fields
-
 
87712
    }
-
 
87713
 
-
 
87714
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
87715
      try {
-
 
87716
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
87717
      } catch (org.apache.thrift.TException te) {
-
 
87718
        throw new java.io.IOException(te);
-
 
87719
      }
-
 
87720
    }
-
 
87721
 
-
 
87722
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
87723
      try {
-
 
87724
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
87725
      } catch (org.apache.thrift.TException te) {
-
 
87726
        throw new java.io.IOException(te);
-
 
87727
      }
-
 
87728
    }
-
 
87729
 
-
 
87730
  }
-
 
87731
 
-
 
87732
  public static class updateAsin_result implements org.apache.thrift.TBase<updateAsin_result, updateAsin_result._Fields>, java.io.Serializable, Cloneable   {
-
 
87733
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAsin_result");
-
 
87734
 
-
 
87735
 
-
 
87736
 
-
 
87737
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
87738
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
87739
;
-
 
87740
 
-
 
87741
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
87742
 
-
 
87743
      static {
-
 
87744
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
87745
          byName.put(field.getFieldName(), field);
-
 
87746
        }
-
 
87747
      }
-
 
87748
 
-
 
87749
      /**
-
 
87750
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
87751
       */
-
 
87752
      public static _Fields findByThriftId(int fieldId) {
-
 
87753
        switch(fieldId) {
-
 
87754
          default:
-
 
87755
            return null;
-
 
87756
        }
-
 
87757
      }
-
 
87758
 
-
 
87759
      /**
-
 
87760
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
87761
       * if it is not found.
-
 
87762
       */
-
 
87763
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
87764
        _Fields fields = findByThriftId(fieldId);
-
 
87765
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
87766
        return fields;
-
 
87767
      }
-
 
87768
 
-
 
87769
      /**
-
 
87770
       * Find the _Fields constant that matches name, or null if its not found.
-
 
87771
       */
-
 
87772
      public static _Fields findByName(String name) {
-
 
87773
        return byName.get(name);
-
 
87774
      }
-
 
87775
 
-
 
87776
      private final short _thriftId;
-
 
87777
      private final String _fieldName;
-
 
87778
 
-
 
87779
      _Fields(short thriftId, String fieldName) {
-
 
87780
        _thriftId = thriftId;
-
 
87781
        _fieldName = fieldName;
-
 
87782
      }
-
 
87783
 
-
 
87784
      public short getThriftFieldId() {
-
 
87785
        return _thriftId;
-
 
87786
      }
-
 
87787
 
-
 
87788
      public String getFieldName() {
-
 
87789
        return _fieldName;
-
 
87790
      }
-
 
87791
    }
-
 
87792
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
87793
    static {
-
 
87794
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
87795
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
87796
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAsin_result.class, metaDataMap);
-
 
87797
    }
-
 
87798
 
-
 
87799
    public updateAsin_result() {
-
 
87800
    }
-
 
87801
 
-
 
87802
    /**
-
 
87803
     * Performs a deep copy on <i>other</i>.
-
 
87804
     */
-
 
87805
    public updateAsin_result(updateAsin_result other) {
-
 
87806
    }
-
 
87807
 
-
 
87808
    public updateAsin_result deepCopy() {
-
 
87809
      return new updateAsin_result(this);
-
 
87810
    }
-
 
87811
 
-
 
87812
    @Override
-
 
87813
    public void clear() {
-
 
87814
    }
-
 
87815
 
-
 
87816
    public void setFieldValue(_Fields field, Object value) {
-
 
87817
      switch (field) {
-
 
87818
      }
-
 
87819
    }
-
 
87820
 
-
 
87821
    public Object getFieldValue(_Fields field) {
-
 
87822
      switch (field) {
-
 
87823
      }
-
 
87824
      throw new IllegalStateException();
-
 
87825
    }
-
 
87826
 
-
 
87827
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
87828
    public boolean isSet(_Fields field) {
-
 
87829
      if (field == null) {
-
 
87830
        throw new IllegalArgumentException();
-
 
87831
      }
-
 
87832
 
-
 
87833
      switch (field) {
-
 
87834
      }
-
 
87835
      throw new IllegalStateException();
-
 
87836
    }
-
 
87837
 
-
 
87838
    @Override
-
 
87839
    public boolean equals(Object that) {
-
 
87840
      if (that == null)
-
 
87841
        return false;
-
 
87842
      if (that instanceof updateAsin_result)
-
 
87843
        return this.equals((updateAsin_result)that);
-
 
87844
      return false;
-
 
87845
    }
-
 
87846
 
-
 
87847
    public boolean equals(updateAsin_result that) {
-
 
87848
      if (that == null)
-
 
87849
        return false;
-
 
87850
 
-
 
87851
      return true;
-
 
87852
    }
-
 
87853
 
-
 
87854
    @Override
-
 
87855
    public int hashCode() {
-
 
87856
      return 0;
-
 
87857
    }
-
 
87858
 
-
 
87859
    public int compareTo(updateAsin_result other) {
-
 
87860
      if (!getClass().equals(other.getClass())) {
-
 
87861
        return getClass().getName().compareTo(other.getClass().getName());
-
 
87862
      }
-
 
87863
 
-
 
87864
      int lastComparison = 0;
-
 
87865
      updateAsin_result typedOther = (updateAsin_result)other;
-
 
87866
 
-
 
87867
      return 0;
-
 
87868
    }
-
 
87869
 
-
 
87870
    public _Fields fieldForId(int fieldId) {
-
 
87871
      return _Fields.findByThriftId(fieldId);
-
 
87872
    }
-
 
87873
 
-
 
87874
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
87875
      org.apache.thrift.protocol.TField field;
-
 
87876
      iprot.readStructBegin();
-
 
87877
      while (true)
-
 
87878
      {
-
 
87879
        field = iprot.readFieldBegin();
-
 
87880
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
87881
          break;
-
 
87882
        }
-
 
87883
        switch (field.id) {
-
 
87884
          default:
-
 
87885
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
87886
        }
-
 
87887
        iprot.readFieldEnd();
-
 
87888
      }
-
 
87889
      iprot.readStructEnd();
-
 
87890
      validate();
-
 
87891
    }
-
 
87892
 
-
 
87893
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
87894
      oprot.writeStructBegin(STRUCT_DESC);
-
 
87895
 
-
 
87896
      oprot.writeFieldStop();
-
 
87897
      oprot.writeStructEnd();
-
 
87898
    }
-
 
87899
 
-
 
87900
    @Override
-
 
87901
    public String toString() {
-
 
87902
      StringBuilder sb = new StringBuilder("updateAsin_result(");
-
 
87903
      boolean first = true;
-
 
87904
 
-
 
87905
      sb.append(")");
-
 
87906
      return sb.toString();
-
 
87907
    }
-
 
87908
 
-
 
87909
    public void validate() throws org.apache.thrift.TException {
85116
      // check for required fields
87910
      // check for required fields
85117
    }
87911
    }
85118
 
87912
 
85119
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
87913
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
85120
      try {
87914
      try {