Subversion Repositories SmartDukaan

Rev

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

Rev 12256 Rev 12363
Line 564... Line 564...
564
 
564
 
565
    public List<CompetitorPricing> getPreviousCompetitorScraping(long delta) throws org.apache.thrift.TException;
565
    public List<CompetitorPricing> getPreviousCompetitorScraping(long delta) throws org.apache.thrift.TException;
566
 
566
 
567
    public List<CompetitorPricing> getUploadResultById(long uploadId) throws org.apache.thrift.TException;
567
    public List<CompetitorPricing> getUploadResultById(long uploadId) throws org.apache.thrift.TException;
568
 
568
 
-
 
569
    public boolean addAmazonPromotion(Map<String,AmazonPromotion> amazonPromotions) throws org.apache.thrift.TException;
-
 
570
 
-
 
571
    public List<AmazonPromotion> getAmazonPromotion(long startDate, long endDate) throws org.apache.thrift.TException;
-
 
572
 
-
 
573
    public boolean updateAmazonPromotion(List<AmazonPromotion> amazonPromotions) throws org.apache.thrift.TException;
-
 
574
 
569
  }
575
  }
570
 
576
 
571
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
577
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
572
 
578
 
573
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
579
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 912... Line 918...
912
 
918
 
913
    public void getPreviousCompetitorScraping(long delta, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPreviousCompetitorScraping_call> resultHandler) throws org.apache.thrift.TException;
919
    public void getPreviousCompetitorScraping(long delta, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPreviousCompetitorScraping_call> resultHandler) throws org.apache.thrift.TException;
914
 
920
 
915
    public void getUploadResultById(long uploadId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUploadResultById_call> resultHandler) throws org.apache.thrift.TException;
921
    public void getUploadResultById(long uploadId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUploadResultById_call> resultHandler) throws org.apache.thrift.TException;
916
 
922
 
-
 
923
    public void addAmazonPromotion(Map<String,AmazonPromotion> amazonPromotions, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAmazonPromotion_call> resultHandler) throws org.apache.thrift.TException;
-
 
924
 
-
 
925
    public void getAmazonPromotion(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonPromotion_call> resultHandler) throws org.apache.thrift.TException;
-
 
926
 
-
 
927
    public void updateAmazonPromotion(List<AmazonPromotion> amazonPromotions, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateAmazonPromotion_call> resultHandler) throws org.apache.thrift.TException;
-
 
928
 
917
  }
929
  }
918
 
930
 
919
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
931
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
920
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
932
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
921
      public Factory() {}
933
      public Factory() {}
Line 4999... Line 5011...
4999
        return result.success;
5011
        return result.success;
5000
      }
5012
      }
5001
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUploadResultById failed: unknown result");
5013
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUploadResultById failed: unknown result");
5002
    }
5014
    }
5003
 
5015
 
-
 
5016
    public boolean addAmazonPromotion(Map<String,AmazonPromotion> amazonPromotions) throws org.apache.thrift.TException
-
 
5017
    {
-
 
5018
      send_addAmazonPromotion(amazonPromotions);
-
 
5019
      return recv_addAmazonPromotion();
-
 
5020
    }
-
 
5021
 
-
 
5022
    public void send_addAmazonPromotion(Map<String,AmazonPromotion> amazonPromotions) throws org.apache.thrift.TException
-
 
5023
    {
-
 
5024
      addAmazonPromotion_args args = new addAmazonPromotion_args();
-
 
5025
      args.setAmazonPromotions(amazonPromotions);
-
 
5026
      sendBase("addAmazonPromotion", args);
-
 
5027
    }
-
 
5028
 
-
 
5029
    public boolean recv_addAmazonPromotion() throws org.apache.thrift.TException
-
 
5030
    {
-
 
5031
      addAmazonPromotion_result result = new addAmazonPromotion_result();
-
 
5032
      receiveBase(result, "addAmazonPromotion");
-
 
5033
      if (result.isSetSuccess()) {
-
 
5034
        return result.success;
-
 
5035
      }
-
 
5036
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addAmazonPromotion failed: unknown result");
-
 
5037
    }
-
 
5038
 
-
 
5039
    public List<AmazonPromotion> getAmazonPromotion(long startDate, long endDate) throws org.apache.thrift.TException
-
 
5040
    {
-
 
5041
      send_getAmazonPromotion(startDate, endDate);
-
 
5042
      return recv_getAmazonPromotion();
-
 
5043
    }
-
 
5044
 
-
 
5045
    public void send_getAmazonPromotion(long startDate, long endDate) throws org.apache.thrift.TException
-
 
5046
    {
-
 
5047
      getAmazonPromotion_args args = new getAmazonPromotion_args();
-
 
5048
      args.setStartDate(startDate);
-
 
5049
      args.setEndDate(endDate);
-
 
5050
      sendBase("getAmazonPromotion", args);
-
 
5051
    }
-
 
5052
 
-
 
5053
    public List<AmazonPromotion> recv_getAmazonPromotion() throws org.apache.thrift.TException
-
 
5054
    {
-
 
5055
      getAmazonPromotion_result result = new getAmazonPromotion_result();
-
 
5056
      receiveBase(result, "getAmazonPromotion");
-
 
5057
      if (result.isSetSuccess()) {
-
 
5058
        return result.success;
-
 
5059
      }
-
 
5060
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonPromotion failed: unknown result");
-
 
5061
    }
-
 
5062
 
-
 
5063
    public boolean updateAmazonPromotion(List<AmazonPromotion> amazonPromotions) throws org.apache.thrift.TException
-
 
5064
    {
-
 
5065
      send_updateAmazonPromotion(amazonPromotions);
-
 
5066
      return recv_updateAmazonPromotion();
-
 
5067
    }
-
 
5068
 
-
 
5069
    public void send_updateAmazonPromotion(List<AmazonPromotion> amazonPromotions) throws org.apache.thrift.TException
-
 
5070
    {
-
 
5071
      updateAmazonPromotion_args args = new updateAmazonPromotion_args();
-
 
5072
      args.setAmazonPromotions(amazonPromotions);
-
 
5073
      sendBase("updateAmazonPromotion", args);
-
 
5074
    }
-
 
5075
 
-
 
5076
    public boolean recv_updateAmazonPromotion() throws org.apache.thrift.TException
-
 
5077
    {
-
 
5078
      updateAmazonPromotion_result result = new updateAmazonPromotion_result();
-
 
5079
      receiveBase(result, "updateAmazonPromotion");
-
 
5080
      if (result.isSetSuccess()) {
-
 
5081
        return result.success;
-
 
5082
      }
-
 
5083
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateAmazonPromotion failed: unknown result");
-
 
5084
    }
-
 
5085
 
5004
  }
5086
  }
5005
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5087
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5006
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5088
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5007
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5089
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5008
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5090
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 10668... Line 10750...
10668
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10750
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10669
        return (new Client(prot)).recv_getUploadResultById();
10751
        return (new Client(prot)).recv_getUploadResultById();
10670
      }
10752
      }
10671
    }
10753
    }
10672
 
10754
 
-
 
10755
    public void addAmazonPromotion(Map<String,AmazonPromotion> amazonPromotions, org.apache.thrift.async.AsyncMethodCallback<addAmazonPromotion_call> resultHandler) throws org.apache.thrift.TException {
-
 
10756
      checkReady();
-
 
10757
      addAmazonPromotion_call method_call = new addAmazonPromotion_call(amazonPromotions, resultHandler, this, ___protocolFactory, ___transport);
-
 
10758
      this.___currentMethod = method_call;
-
 
10759
      ___manager.call(method_call);
-
 
10760
    }
-
 
10761
 
-
 
10762
    public static class addAmazonPromotion_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10763
      private Map<String,AmazonPromotion> amazonPromotions;
-
 
10764
      public addAmazonPromotion_call(Map<String,AmazonPromotion> amazonPromotions, org.apache.thrift.async.AsyncMethodCallback<addAmazonPromotion_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 {
-
 
10765
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10766
        this.amazonPromotions = amazonPromotions;
-
 
10767
      }
-
 
10768
 
-
 
10769
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10770
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAmazonPromotion", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10771
        addAmazonPromotion_args args = new addAmazonPromotion_args();
-
 
10772
        args.setAmazonPromotions(amazonPromotions);
-
 
10773
        args.write(prot);
-
 
10774
        prot.writeMessageEnd();
-
 
10775
      }
-
 
10776
 
-
 
10777
      public boolean getResult() throws org.apache.thrift.TException {
-
 
10778
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10779
          throw new IllegalStateException("Method call not finished!");
-
 
10780
        }
-
 
10781
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10782
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10783
        return (new Client(prot)).recv_addAmazonPromotion();
-
 
10784
      }
-
 
10785
    }
-
 
10786
 
-
 
10787
    public void getAmazonPromotion(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getAmazonPromotion_call> resultHandler) throws org.apache.thrift.TException {
-
 
10788
      checkReady();
-
 
10789
      getAmazonPromotion_call method_call = new getAmazonPromotion_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
-
 
10790
      this.___currentMethod = method_call;
-
 
10791
      ___manager.call(method_call);
-
 
10792
    }
-
 
10793
 
-
 
10794
    public static class getAmazonPromotion_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10795
      private long startDate;
-
 
10796
      private long endDate;
-
 
10797
      public getAmazonPromotion_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getAmazonPromotion_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 {
-
 
10798
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10799
        this.startDate = startDate;
-
 
10800
        this.endDate = endDate;
-
 
10801
      }
-
 
10802
 
-
 
10803
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10804
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonPromotion", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10805
        getAmazonPromotion_args args = new getAmazonPromotion_args();
-
 
10806
        args.setStartDate(startDate);
-
 
10807
        args.setEndDate(endDate);
-
 
10808
        args.write(prot);
-
 
10809
        prot.writeMessageEnd();
-
 
10810
      }
-
 
10811
 
-
 
10812
      public List<AmazonPromotion> getResult() throws org.apache.thrift.TException {
-
 
10813
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10814
          throw new IllegalStateException("Method call not finished!");
-
 
10815
        }
-
 
10816
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10817
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10818
        return (new Client(prot)).recv_getAmazonPromotion();
-
 
10819
      }
-
 
10820
    }
-
 
10821
 
-
 
10822
    public void updateAmazonPromotion(List<AmazonPromotion> amazonPromotions, org.apache.thrift.async.AsyncMethodCallback<updateAmazonPromotion_call> resultHandler) throws org.apache.thrift.TException {
-
 
10823
      checkReady();
-
 
10824
      updateAmazonPromotion_call method_call = new updateAmazonPromotion_call(amazonPromotions, resultHandler, this, ___protocolFactory, ___transport);
-
 
10825
      this.___currentMethod = method_call;
-
 
10826
      ___manager.call(method_call);
-
 
10827
    }
-
 
10828
 
-
 
10829
    public static class updateAmazonPromotion_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10830
      private List<AmazonPromotion> amazonPromotions;
-
 
10831
      public updateAmazonPromotion_call(List<AmazonPromotion> amazonPromotions, org.apache.thrift.async.AsyncMethodCallback<updateAmazonPromotion_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 {
-
 
10832
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10833
        this.amazonPromotions = amazonPromotions;
-
 
10834
      }
-
 
10835
 
-
 
10836
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10837
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateAmazonPromotion", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10838
        updateAmazonPromotion_args args = new updateAmazonPromotion_args();
-
 
10839
        args.setAmazonPromotions(amazonPromotions);
-
 
10840
        args.write(prot);
-
 
10841
        prot.writeMessageEnd();
-
 
10842
      }
-
 
10843
 
-
 
10844
      public boolean getResult() throws org.apache.thrift.TException {
-
 
10845
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10846
          throw new IllegalStateException("Method call not finished!");
-
 
10847
        }
-
 
10848
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10849
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10850
        return (new Client(prot)).recv_updateAmazonPromotion();
-
 
10851
      }
-
 
10852
    }
-
 
10853
 
10673
  }
10854
  }
10674
 
10855
 
10675
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10856
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10676
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10857
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10677
    public Processor(I iface) {
10858
    public Processor(I iface) {
Line 10853... Line 11034...
10853
      processMap.put("getAllSnapdealMarketplaceItem", new getAllSnapdealMarketplaceItem());
11034
      processMap.put("getAllSnapdealMarketplaceItem", new getAllSnapdealMarketplaceItem());
10854
      processMap.put("getAllFlipkartMarketplaceItem", new getAllFlipkartMarketplaceItem());
11035
      processMap.put("getAllFlipkartMarketplaceItem", new getAllFlipkartMarketplaceItem());
10855
      processMap.put("addCompetitorScraping", new addCompetitorScraping());
11036
      processMap.put("addCompetitorScraping", new addCompetitorScraping());
10856
      processMap.put("getPreviousCompetitorScraping", new getPreviousCompetitorScraping());
11037
      processMap.put("getPreviousCompetitorScraping", new getPreviousCompetitorScraping());
10857
      processMap.put("getUploadResultById", new getUploadResultById());
11038
      processMap.put("getUploadResultById", new getUploadResultById());
-
 
11039
      processMap.put("addAmazonPromotion", new addAmazonPromotion());
-
 
11040
      processMap.put("getAmazonPromotion", new getAmazonPromotion());
-
 
11041
      processMap.put("updateAmazonPromotion", new updateAmazonPromotion());
10858
      return processMap;
11042
      return processMap;
10859
    }
11043
    }
10860
 
11044
 
10861
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
11045
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
10862
      public addItem() {
11046
      public addItem() {
Line 13836... Line 14020...
13836
        result.success = iface.getUploadResultById(args.uploadId);
14020
        result.success = iface.getUploadResultById(args.uploadId);
13837
        return result;
14021
        return result;
13838
      }
14022
      }
13839
    }
14023
    }
13840
 
14024
 
-
 
14025
    private static class addAmazonPromotion<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAmazonPromotion_args> {
-
 
14026
      public addAmazonPromotion() {
-
 
14027
        super("addAmazonPromotion");
-
 
14028
      }
-
 
14029
 
-
 
14030
      protected addAmazonPromotion_args getEmptyArgsInstance() {
-
 
14031
        return new addAmazonPromotion_args();
-
 
14032
      }
-
 
14033
 
-
 
14034
      protected addAmazonPromotion_result getResult(I iface, addAmazonPromotion_args args) throws org.apache.thrift.TException {
-
 
14035
        addAmazonPromotion_result result = new addAmazonPromotion_result();
-
 
14036
        result.success = iface.addAmazonPromotion(args.amazonPromotions);
-
 
14037
        result.setSuccessIsSet(true);
-
 
14038
        return result;
-
 
14039
      }
-
 
14040
    }
-
 
14041
 
-
 
14042
    private static class getAmazonPromotion<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonPromotion_args> {
-
 
14043
      public getAmazonPromotion() {
-
 
14044
        super("getAmazonPromotion");
-
 
14045
      }
-
 
14046
 
-
 
14047
      protected getAmazonPromotion_args getEmptyArgsInstance() {
-
 
14048
        return new getAmazonPromotion_args();
-
 
14049
      }
-
 
14050
 
-
 
14051
      protected getAmazonPromotion_result getResult(I iface, getAmazonPromotion_args args) throws org.apache.thrift.TException {
-
 
14052
        getAmazonPromotion_result result = new getAmazonPromotion_result();
-
 
14053
        result.success = iface.getAmazonPromotion(args.startDate, args.endDate);
-
 
14054
        return result;
-
 
14055
      }
-
 
14056
    }
-
 
14057
 
-
 
14058
    private static class updateAmazonPromotion<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateAmazonPromotion_args> {
-
 
14059
      public updateAmazonPromotion() {
-
 
14060
        super("updateAmazonPromotion");
-
 
14061
      }
-
 
14062
 
-
 
14063
      protected updateAmazonPromotion_args getEmptyArgsInstance() {
-
 
14064
        return new updateAmazonPromotion_args();
-
 
14065
      }
-
 
14066
 
-
 
14067
      protected updateAmazonPromotion_result getResult(I iface, updateAmazonPromotion_args args) throws org.apache.thrift.TException {
-
 
14068
        updateAmazonPromotion_result result = new updateAmazonPromotion_result();
-
 
14069
        result.success = iface.updateAmazonPromotion(args.amazonPromotions);
-
 
14070
        result.setSuccessIsSet(true);
-
 
14071
        return result;
-
 
14072
      }
-
 
14073
    }
-
 
14074
 
13841
  }
14075
  }
13842
 
14076
 
13843
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
14077
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
13844
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
14078
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
13845
 
14079
 
Line 123964... Line 124198...
123964
      first = false;
124198
      first = false;
123965
      sb.append(")");
124199
      sb.append(")");
123966
      return sb.toString();
124200
      return sb.toString();
123967
    }
124201
    }
123968
 
124202
 
-
 
124203
    public void validate() throws org.apache.thrift.TException {
-
 
124204
      // check for required fields
-
 
124205
    }
-
 
124206
 
-
 
124207
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
124208
      try {
-
 
124209
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
124210
      } catch (org.apache.thrift.TException te) {
-
 
124211
        throw new java.io.IOException(te);
-
 
124212
      }
-
 
124213
    }
-
 
124214
 
-
 
124215
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
124216
      try {
-
 
124217
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
124218
      } catch (org.apache.thrift.TException te) {
-
 
124219
        throw new java.io.IOException(te);
-
 
124220
      }
-
 
124221
    }
-
 
124222
 
-
 
124223
  }
-
 
124224
 
-
 
124225
  public static class addAmazonPromotion_args implements org.apache.thrift.TBase<addAmazonPromotion_args, addAmazonPromotion_args._Fields>, java.io.Serializable, Cloneable   {
-
 
124226
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAmazonPromotion_args");
-
 
124227
 
-
 
124228
    private static final org.apache.thrift.protocol.TField AMAZON_PROMOTIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonPromotions", org.apache.thrift.protocol.TType.MAP, (short)1);
-
 
124229
 
-
 
124230
    private Map<String,AmazonPromotion> amazonPromotions; // required
-
 
124231
 
-
 
124232
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
124233
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
124234
      AMAZON_PROMOTIONS((short)1, "amazonPromotions");
-
 
124235
 
-
 
124236
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
124237
 
-
 
124238
      static {
-
 
124239
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
124240
          byName.put(field.getFieldName(), field);
-
 
124241
        }
-
 
124242
      }
-
 
124243
 
-
 
124244
      /**
-
 
124245
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
124246
       */
-
 
124247
      public static _Fields findByThriftId(int fieldId) {
-
 
124248
        switch(fieldId) {
-
 
124249
          case 1: // AMAZON_PROMOTIONS
-
 
124250
            return AMAZON_PROMOTIONS;
-
 
124251
          default:
-
 
124252
            return null;
-
 
124253
        }
-
 
124254
      }
-
 
124255
 
-
 
124256
      /**
-
 
124257
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
124258
       * if it is not found.
-
 
124259
       */
-
 
124260
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
124261
        _Fields fields = findByThriftId(fieldId);
-
 
124262
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
124263
        return fields;
-
 
124264
      }
-
 
124265
 
-
 
124266
      /**
-
 
124267
       * Find the _Fields constant that matches name, or null if its not found.
-
 
124268
       */
-
 
124269
      public static _Fields findByName(String name) {
-
 
124270
        return byName.get(name);
-
 
124271
      }
-
 
124272
 
-
 
124273
      private final short _thriftId;
-
 
124274
      private final String _fieldName;
-
 
124275
 
-
 
124276
      _Fields(short thriftId, String fieldName) {
-
 
124277
        _thriftId = thriftId;
-
 
124278
        _fieldName = fieldName;
-
 
124279
      }
-
 
124280
 
-
 
124281
      public short getThriftFieldId() {
-
 
124282
        return _thriftId;
-
 
124283
      }
-
 
124284
 
-
 
124285
      public String getFieldName() {
-
 
124286
        return _fieldName;
-
 
124287
      }
-
 
124288
    }
-
 
124289
 
-
 
124290
    // isset id assignments
-
 
124291
 
-
 
124292
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
124293
    static {
-
 
124294
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
124295
      tmpMap.put(_Fields.AMAZON_PROMOTIONS, new org.apache.thrift.meta_data.FieldMetaData("amazonPromotions", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
124296
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
124297
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
-
 
124298
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonPromotion.class))));
-
 
124299
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
124300
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAmazonPromotion_args.class, metaDataMap);
-
 
124301
    }
-
 
124302
 
-
 
124303
    public addAmazonPromotion_args() {
-
 
124304
    }
-
 
124305
 
-
 
124306
    public addAmazonPromotion_args(
-
 
124307
      Map<String,AmazonPromotion> amazonPromotions)
-
 
124308
    {
-
 
124309
      this();
-
 
124310
      this.amazonPromotions = amazonPromotions;
-
 
124311
    }
-
 
124312
 
-
 
124313
    /**
-
 
124314
     * Performs a deep copy on <i>other</i>.
-
 
124315
     */
-
 
124316
    public addAmazonPromotion_args(addAmazonPromotion_args other) {
-
 
124317
      if (other.isSetAmazonPromotions()) {
-
 
124318
        Map<String,AmazonPromotion> __this__amazonPromotions = new HashMap<String,AmazonPromotion>();
-
 
124319
        for (Map.Entry<String, AmazonPromotion> other_element : other.amazonPromotions.entrySet()) {
-
 
124320
 
-
 
124321
          String other_element_key = other_element.getKey();
-
 
124322
          AmazonPromotion other_element_value = other_element.getValue();
-
 
124323
 
-
 
124324
          String __this__amazonPromotions_copy_key = other_element_key;
-
 
124325
 
-
 
124326
          AmazonPromotion __this__amazonPromotions_copy_value = new AmazonPromotion(other_element_value);
-
 
124327
 
-
 
124328
          __this__amazonPromotions.put(__this__amazonPromotions_copy_key, __this__amazonPromotions_copy_value);
-
 
124329
        }
-
 
124330
        this.amazonPromotions = __this__amazonPromotions;
-
 
124331
      }
-
 
124332
    }
-
 
124333
 
-
 
124334
    public addAmazonPromotion_args deepCopy() {
-
 
124335
      return new addAmazonPromotion_args(this);
-
 
124336
    }
-
 
124337
 
-
 
124338
    @Override
-
 
124339
    public void clear() {
-
 
124340
      this.amazonPromotions = null;
-
 
124341
    }
-
 
124342
 
-
 
124343
    public int getAmazonPromotionsSize() {
-
 
124344
      return (this.amazonPromotions == null) ? 0 : this.amazonPromotions.size();
-
 
124345
    }
-
 
124346
 
-
 
124347
    public void putToAmazonPromotions(String key, AmazonPromotion val) {
-
 
124348
      if (this.amazonPromotions == null) {
-
 
124349
        this.amazonPromotions = new HashMap<String,AmazonPromotion>();
-
 
124350
      }
-
 
124351
      this.amazonPromotions.put(key, val);
-
 
124352
    }
-
 
124353
 
-
 
124354
    public Map<String,AmazonPromotion> getAmazonPromotions() {
-
 
124355
      return this.amazonPromotions;
-
 
124356
    }
-
 
124357
 
-
 
124358
    public void setAmazonPromotions(Map<String,AmazonPromotion> amazonPromotions) {
-
 
124359
      this.amazonPromotions = amazonPromotions;
-
 
124360
    }
-
 
124361
 
-
 
124362
    public void unsetAmazonPromotions() {
-
 
124363
      this.amazonPromotions = null;
-
 
124364
    }
-
 
124365
 
-
 
124366
    /** Returns true if field amazonPromotions is set (has been assigned a value) and false otherwise */
-
 
124367
    public boolean isSetAmazonPromotions() {
-
 
124368
      return this.amazonPromotions != null;
-
 
124369
    }
-
 
124370
 
-
 
124371
    public void setAmazonPromotionsIsSet(boolean value) {
-
 
124372
      if (!value) {
-
 
124373
        this.amazonPromotions = null;
-
 
124374
      }
-
 
124375
    }
-
 
124376
 
-
 
124377
    public void setFieldValue(_Fields field, Object value) {
-
 
124378
      switch (field) {
-
 
124379
      case AMAZON_PROMOTIONS:
-
 
124380
        if (value == null) {
-
 
124381
          unsetAmazonPromotions();
-
 
124382
        } else {
-
 
124383
          setAmazonPromotions((Map<String,AmazonPromotion>)value);
-
 
124384
        }
-
 
124385
        break;
-
 
124386
 
-
 
124387
      }
-
 
124388
    }
-
 
124389
 
-
 
124390
    public Object getFieldValue(_Fields field) {
-
 
124391
      switch (field) {
-
 
124392
      case AMAZON_PROMOTIONS:
-
 
124393
        return getAmazonPromotions();
-
 
124394
 
-
 
124395
      }
-
 
124396
      throw new IllegalStateException();
-
 
124397
    }
-
 
124398
 
-
 
124399
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
124400
    public boolean isSet(_Fields field) {
-
 
124401
      if (field == null) {
-
 
124402
        throw new IllegalArgumentException();
-
 
124403
      }
-
 
124404
 
-
 
124405
      switch (field) {
-
 
124406
      case AMAZON_PROMOTIONS:
-
 
124407
        return isSetAmazonPromotions();
-
 
124408
      }
-
 
124409
      throw new IllegalStateException();
-
 
124410
    }
-
 
124411
 
-
 
124412
    @Override
-
 
124413
    public boolean equals(Object that) {
-
 
124414
      if (that == null)
-
 
124415
        return false;
-
 
124416
      if (that instanceof addAmazonPromotion_args)
-
 
124417
        return this.equals((addAmazonPromotion_args)that);
-
 
124418
      return false;
-
 
124419
    }
-
 
124420
 
-
 
124421
    public boolean equals(addAmazonPromotion_args that) {
-
 
124422
      if (that == null)
-
 
124423
        return false;
-
 
124424
 
-
 
124425
      boolean this_present_amazonPromotions = true && this.isSetAmazonPromotions();
-
 
124426
      boolean that_present_amazonPromotions = true && that.isSetAmazonPromotions();
-
 
124427
      if (this_present_amazonPromotions || that_present_amazonPromotions) {
-
 
124428
        if (!(this_present_amazonPromotions && that_present_amazonPromotions))
-
 
124429
          return false;
-
 
124430
        if (!this.amazonPromotions.equals(that.amazonPromotions))
-
 
124431
          return false;
-
 
124432
      }
-
 
124433
 
-
 
124434
      return true;
-
 
124435
    }
-
 
124436
 
-
 
124437
    @Override
-
 
124438
    public int hashCode() {
-
 
124439
      return 0;
-
 
124440
    }
-
 
124441
 
-
 
124442
    public int compareTo(addAmazonPromotion_args other) {
-
 
124443
      if (!getClass().equals(other.getClass())) {
-
 
124444
        return getClass().getName().compareTo(other.getClass().getName());
-
 
124445
      }
-
 
124446
 
-
 
124447
      int lastComparison = 0;
-
 
124448
      addAmazonPromotion_args typedOther = (addAmazonPromotion_args)other;
-
 
124449
 
-
 
124450
      lastComparison = Boolean.valueOf(isSetAmazonPromotions()).compareTo(typedOther.isSetAmazonPromotions());
-
 
124451
      if (lastComparison != 0) {
-
 
124452
        return lastComparison;
-
 
124453
      }
-
 
124454
      if (isSetAmazonPromotions()) {
-
 
124455
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonPromotions, typedOther.amazonPromotions);
-
 
124456
        if (lastComparison != 0) {
-
 
124457
          return lastComparison;
-
 
124458
        }
-
 
124459
      }
-
 
124460
      return 0;
-
 
124461
    }
-
 
124462
 
-
 
124463
    public _Fields fieldForId(int fieldId) {
-
 
124464
      return _Fields.findByThriftId(fieldId);
-
 
124465
    }
-
 
124466
 
-
 
124467
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
124468
      org.apache.thrift.protocol.TField field;
-
 
124469
      iprot.readStructBegin();
-
 
124470
      while (true)
-
 
124471
      {
-
 
124472
        field = iprot.readFieldBegin();
-
 
124473
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
124474
          break;
-
 
124475
        }
-
 
124476
        switch (field.id) {
-
 
124477
          case 1: // AMAZON_PROMOTIONS
-
 
124478
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
124479
              {
-
 
124480
                org.apache.thrift.protocol.TMap _map411 = iprot.readMapBegin();
-
 
124481
                this.amazonPromotions = new HashMap<String,AmazonPromotion>(2*_map411.size);
-
 
124482
                for (int _i412 = 0; _i412 < _map411.size; ++_i412)
-
 
124483
                {
-
 
124484
                  String _key413; // required
-
 
124485
                  AmazonPromotion _val414; // required
-
 
124486
                  _key413 = iprot.readString();
-
 
124487
                  _val414 = new AmazonPromotion();
-
 
124488
                  _val414.read(iprot);
-
 
124489
                  this.amazonPromotions.put(_key413, _val414);
-
 
124490
                }
-
 
124491
                iprot.readMapEnd();
-
 
124492
              }
-
 
124493
            } else { 
-
 
124494
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
124495
            }
-
 
124496
            break;
-
 
124497
          default:
-
 
124498
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
124499
        }
-
 
124500
        iprot.readFieldEnd();
-
 
124501
      }
-
 
124502
      iprot.readStructEnd();
-
 
124503
      validate();
-
 
124504
    }
-
 
124505
 
-
 
124506
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
124507
      validate();
-
 
124508
 
-
 
124509
      oprot.writeStructBegin(STRUCT_DESC);
-
 
124510
      if (this.amazonPromotions != null) {
-
 
124511
        oprot.writeFieldBegin(AMAZON_PROMOTIONS_FIELD_DESC);
-
 
124512
        {
-
 
124513
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, this.amazonPromotions.size()));
-
 
124514
          for (Map.Entry<String, AmazonPromotion> _iter415 : this.amazonPromotions.entrySet())
-
 
124515
          {
-
 
124516
            oprot.writeString(_iter415.getKey());
-
 
124517
            _iter415.getValue().write(oprot);
-
 
124518
          }
-
 
124519
          oprot.writeMapEnd();
-
 
124520
        }
-
 
124521
        oprot.writeFieldEnd();
-
 
124522
      }
-
 
124523
      oprot.writeFieldStop();
-
 
124524
      oprot.writeStructEnd();
-
 
124525
    }
-
 
124526
 
-
 
124527
    @Override
-
 
124528
    public String toString() {
-
 
124529
      StringBuilder sb = new StringBuilder("addAmazonPromotion_args(");
-
 
124530
      boolean first = true;
-
 
124531
 
-
 
124532
      sb.append("amazonPromotions:");
-
 
124533
      if (this.amazonPromotions == null) {
-
 
124534
        sb.append("null");
-
 
124535
      } else {
-
 
124536
        sb.append(this.amazonPromotions);
-
 
124537
      }
-
 
124538
      first = false;
-
 
124539
      sb.append(")");
-
 
124540
      return sb.toString();
-
 
124541
    }
-
 
124542
 
-
 
124543
    public void validate() throws org.apache.thrift.TException {
-
 
124544
      // check for required fields
-
 
124545
    }
-
 
124546
 
-
 
124547
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
124548
      try {
-
 
124549
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
124550
      } catch (org.apache.thrift.TException te) {
-
 
124551
        throw new java.io.IOException(te);
-
 
124552
      }
-
 
124553
    }
-
 
124554
 
-
 
124555
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
124556
      try {
-
 
124557
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
124558
      } catch (org.apache.thrift.TException te) {
-
 
124559
        throw new java.io.IOException(te);
-
 
124560
      }
-
 
124561
    }
-
 
124562
 
-
 
124563
  }
-
 
124564
 
-
 
124565
  public static class addAmazonPromotion_result implements org.apache.thrift.TBase<addAmazonPromotion_result, addAmazonPromotion_result._Fields>, java.io.Serializable, Cloneable   {
-
 
124566
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAmazonPromotion_result");
-
 
124567
 
-
 
124568
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
124569
 
-
 
124570
    private boolean success; // required
-
 
124571
 
-
 
124572
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
124573
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
124574
      SUCCESS((short)0, "success");
-
 
124575
 
-
 
124576
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
124577
 
-
 
124578
      static {
-
 
124579
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
124580
          byName.put(field.getFieldName(), field);
-
 
124581
        }
-
 
124582
      }
-
 
124583
 
-
 
124584
      /**
-
 
124585
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
124586
       */
-
 
124587
      public static _Fields findByThriftId(int fieldId) {
-
 
124588
        switch(fieldId) {
-
 
124589
          case 0: // SUCCESS
-
 
124590
            return SUCCESS;
-
 
124591
          default:
-
 
124592
            return null;
-
 
124593
        }
-
 
124594
      }
-
 
124595
 
-
 
124596
      /**
-
 
124597
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
124598
       * if it is not found.
-
 
124599
       */
-
 
124600
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
124601
        _Fields fields = findByThriftId(fieldId);
-
 
124602
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
124603
        return fields;
-
 
124604
      }
-
 
124605
 
-
 
124606
      /**
-
 
124607
       * Find the _Fields constant that matches name, or null if its not found.
-
 
124608
       */
-
 
124609
      public static _Fields findByName(String name) {
-
 
124610
        return byName.get(name);
-
 
124611
      }
-
 
124612
 
-
 
124613
      private final short _thriftId;
-
 
124614
      private final String _fieldName;
-
 
124615
 
-
 
124616
      _Fields(short thriftId, String fieldName) {
-
 
124617
        _thriftId = thriftId;
-
 
124618
        _fieldName = fieldName;
-
 
124619
      }
-
 
124620
 
-
 
124621
      public short getThriftFieldId() {
-
 
124622
        return _thriftId;
-
 
124623
      }
-
 
124624
 
-
 
124625
      public String getFieldName() {
-
 
124626
        return _fieldName;
-
 
124627
      }
-
 
124628
    }
-
 
124629
 
-
 
124630
    // isset id assignments
-
 
124631
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
124632
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
124633
 
-
 
124634
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
124635
    static {
-
 
124636
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
124637
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
124638
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
124639
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
124640
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAmazonPromotion_result.class, metaDataMap);
-
 
124641
    }
-
 
124642
 
-
 
124643
    public addAmazonPromotion_result() {
-
 
124644
    }
-
 
124645
 
-
 
124646
    public addAmazonPromotion_result(
-
 
124647
      boolean success)
-
 
124648
    {
-
 
124649
      this();
-
 
124650
      this.success = success;
-
 
124651
      setSuccessIsSet(true);
-
 
124652
    }
-
 
124653
 
-
 
124654
    /**
-
 
124655
     * Performs a deep copy on <i>other</i>.
-
 
124656
     */
-
 
124657
    public addAmazonPromotion_result(addAmazonPromotion_result other) {
-
 
124658
      __isset_bit_vector.clear();
-
 
124659
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
124660
      this.success = other.success;
-
 
124661
    }
-
 
124662
 
-
 
124663
    public addAmazonPromotion_result deepCopy() {
-
 
124664
      return new addAmazonPromotion_result(this);
-
 
124665
    }
-
 
124666
 
-
 
124667
    @Override
-
 
124668
    public void clear() {
-
 
124669
      setSuccessIsSet(false);
-
 
124670
      this.success = false;
-
 
124671
    }
-
 
124672
 
-
 
124673
    public boolean isSuccess() {
-
 
124674
      return this.success;
-
 
124675
    }
-
 
124676
 
-
 
124677
    public void setSuccess(boolean success) {
-
 
124678
      this.success = success;
-
 
124679
      setSuccessIsSet(true);
-
 
124680
    }
-
 
124681
 
-
 
124682
    public void unsetSuccess() {
-
 
124683
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
124684
    }
-
 
124685
 
-
 
124686
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
124687
    public boolean isSetSuccess() {
-
 
124688
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
124689
    }
-
 
124690
 
-
 
124691
    public void setSuccessIsSet(boolean value) {
-
 
124692
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
124693
    }
-
 
124694
 
-
 
124695
    public void setFieldValue(_Fields field, Object value) {
-
 
124696
      switch (field) {
-
 
124697
      case SUCCESS:
-
 
124698
        if (value == null) {
-
 
124699
          unsetSuccess();
-
 
124700
        } else {
-
 
124701
          setSuccess((Boolean)value);
-
 
124702
        }
-
 
124703
        break;
-
 
124704
 
-
 
124705
      }
-
 
124706
    }
-
 
124707
 
-
 
124708
    public Object getFieldValue(_Fields field) {
-
 
124709
      switch (field) {
-
 
124710
      case SUCCESS:
-
 
124711
        return Boolean.valueOf(isSuccess());
-
 
124712
 
-
 
124713
      }
-
 
124714
      throw new IllegalStateException();
-
 
124715
    }
-
 
124716
 
-
 
124717
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
124718
    public boolean isSet(_Fields field) {
-
 
124719
      if (field == null) {
-
 
124720
        throw new IllegalArgumentException();
-
 
124721
      }
-
 
124722
 
-
 
124723
      switch (field) {
-
 
124724
      case SUCCESS:
-
 
124725
        return isSetSuccess();
-
 
124726
      }
-
 
124727
      throw new IllegalStateException();
-
 
124728
    }
-
 
124729
 
-
 
124730
    @Override
-
 
124731
    public boolean equals(Object that) {
-
 
124732
      if (that == null)
-
 
124733
        return false;
-
 
124734
      if (that instanceof addAmazonPromotion_result)
-
 
124735
        return this.equals((addAmazonPromotion_result)that);
-
 
124736
      return false;
-
 
124737
    }
-
 
124738
 
-
 
124739
    public boolean equals(addAmazonPromotion_result that) {
-
 
124740
      if (that == null)
-
 
124741
        return false;
-
 
124742
 
-
 
124743
      boolean this_present_success = true;
-
 
124744
      boolean that_present_success = true;
-
 
124745
      if (this_present_success || that_present_success) {
-
 
124746
        if (!(this_present_success && that_present_success))
-
 
124747
          return false;
-
 
124748
        if (this.success != that.success)
-
 
124749
          return false;
-
 
124750
      }
-
 
124751
 
-
 
124752
      return true;
-
 
124753
    }
-
 
124754
 
-
 
124755
    @Override
-
 
124756
    public int hashCode() {
-
 
124757
      return 0;
-
 
124758
    }
-
 
124759
 
-
 
124760
    public int compareTo(addAmazonPromotion_result other) {
-
 
124761
      if (!getClass().equals(other.getClass())) {
-
 
124762
        return getClass().getName().compareTo(other.getClass().getName());
-
 
124763
      }
-
 
124764
 
-
 
124765
      int lastComparison = 0;
-
 
124766
      addAmazonPromotion_result typedOther = (addAmazonPromotion_result)other;
-
 
124767
 
-
 
124768
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
124769
      if (lastComparison != 0) {
-
 
124770
        return lastComparison;
-
 
124771
      }
-
 
124772
      if (isSetSuccess()) {
-
 
124773
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
124774
        if (lastComparison != 0) {
-
 
124775
          return lastComparison;
-
 
124776
        }
-
 
124777
      }
-
 
124778
      return 0;
-
 
124779
    }
-
 
124780
 
-
 
124781
    public _Fields fieldForId(int fieldId) {
-
 
124782
      return _Fields.findByThriftId(fieldId);
-
 
124783
    }
-
 
124784
 
-
 
124785
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
124786
      org.apache.thrift.protocol.TField field;
-
 
124787
      iprot.readStructBegin();
-
 
124788
      while (true)
-
 
124789
      {
-
 
124790
        field = iprot.readFieldBegin();
-
 
124791
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
124792
          break;
-
 
124793
        }
-
 
124794
        switch (field.id) {
-
 
124795
          case 0: // SUCCESS
-
 
124796
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
124797
              this.success = iprot.readBool();
-
 
124798
              setSuccessIsSet(true);
-
 
124799
            } else { 
-
 
124800
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
124801
            }
-
 
124802
            break;
-
 
124803
          default:
-
 
124804
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
124805
        }
-
 
124806
        iprot.readFieldEnd();
-
 
124807
      }
-
 
124808
      iprot.readStructEnd();
-
 
124809
      validate();
-
 
124810
    }
-
 
124811
 
-
 
124812
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
124813
      oprot.writeStructBegin(STRUCT_DESC);
-
 
124814
 
-
 
124815
      if (this.isSetSuccess()) {
-
 
124816
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
124817
        oprot.writeBool(this.success);
-
 
124818
        oprot.writeFieldEnd();
-
 
124819
      }
-
 
124820
      oprot.writeFieldStop();
-
 
124821
      oprot.writeStructEnd();
-
 
124822
    }
-
 
124823
 
-
 
124824
    @Override
-
 
124825
    public String toString() {
-
 
124826
      StringBuilder sb = new StringBuilder("addAmazonPromotion_result(");
-
 
124827
      boolean first = true;
-
 
124828
 
-
 
124829
      sb.append("success:");
-
 
124830
      sb.append(this.success);
-
 
124831
      first = false;
-
 
124832
      sb.append(")");
-
 
124833
      return sb.toString();
-
 
124834
    }
-
 
124835
 
-
 
124836
    public void validate() throws org.apache.thrift.TException {
-
 
124837
      // check for required fields
-
 
124838
    }
-
 
124839
 
-
 
124840
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
124841
      try {
-
 
124842
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
124843
      } catch (org.apache.thrift.TException te) {
-
 
124844
        throw new java.io.IOException(te);
-
 
124845
      }
-
 
124846
    }
-
 
124847
 
-
 
124848
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
124849
      try {
-
 
124850
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
124851
      } catch (org.apache.thrift.TException te) {
-
 
124852
        throw new java.io.IOException(te);
-
 
124853
      }
-
 
124854
    }
-
 
124855
 
-
 
124856
  }
-
 
124857
 
-
 
124858
  public static class getAmazonPromotion_args implements org.apache.thrift.TBase<getAmazonPromotion_args, getAmazonPromotion_args._Fields>, java.io.Serializable, Cloneable   {
-
 
124859
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonPromotion_args");
-
 
124860
 
-
 
124861
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
124862
    private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
124863
 
-
 
124864
    private long startDate; // required
-
 
124865
    private long endDate; // required
-
 
124866
 
-
 
124867
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
124868
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
124869
      START_DATE((short)1, "startDate"),
-
 
124870
      END_DATE((short)2, "endDate");
-
 
124871
 
-
 
124872
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
124873
 
-
 
124874
      static {
-
 
124875
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
124876
          byName.put(field.getFieldName(), field);
-
 
124877
        }
-
 
124878
      }
-
 
124879
 
-
 
124880
      /**
-
 
124881
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
124882
       */
-
 
124883
      public static _Fields findByThriftId(int fieldId) {
-
 
124884
        switch(fieldId) {
-
 
124885
          case 1: // START_DATE
-
 
124886
            return START_DATE;
-
 
124887
          case 2: // END_DATE
-
 
124888
            return END_DATE;
-
 
124889
          default:
-
 
124890
            return null;
-
 
124891
        }
-
 
124892
      }
-
 
124893
 
-
 
124894
      /**
-
 
124895
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
124896
       * if it is not found.
-
 
124897
       */
-
 
124898
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
124899
        _Fields fields = findByThriftId(fieldId);
-
 
124900
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
124901
        return fields;
-
 
124902
      }
-
 
124903
 
-
 
124904
      /**
-
 
124905
       * Find the _Fields constant that matches name, or null if its not found.
-
 
124906
       */
-
 
124907
      public static _Fields findByName(String name) {
-
 
124908
        return byName.get(name);
-
 
124909
      }
-
 
124910
 
-
 
124911
      private final short _thriftId;
-
 
124912
      private final String _fieldName;
-
 
124913
 
-
 
124914
      _Fields(short thriftId, String fieldName) {
-
 
124915
        _thriftId = thriftId;
-
 
124916
        _fieldName = fieldName;
-
 
124917
      }
-
 
124918
 
-
 
124919
      public short getThriftFieldId() {
-
 
124920
        return _thriftId;
-
 
124921
      }
-
 
124922
 
-
 
124923
      public String getFieldName() {
-
 
124924
        return _fieldName;
-
 
124925
      }
-
 
124926
    }
-
 
124927
 
-
 
124928
    // isset id assignments
-
 
124929
    private static final int __STARTDATE_ISSET_ID = 0;
-
 
124930
    private static final int __ENDDATE_ISSET_ID = 1;
-
 
124931
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
124932
 
-
 
124933
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
124934
    static {
-
 
124935
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
124936
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
124937
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
124938
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
124939
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
124940
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
124941
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonPromotion_args.class, metaDataMap);
-
 
124942
    }
-
 
124943
 
-
 
124944
    public getAmazonPromotion_args() {
-
 
124945
    }
-
 
124946
 
-
 
124947
    public getAmazonPromotion_args(
-
 
124948
      long startDate,
-
 
124949
      long endDate)
-
 
124950
    {
-
 
124951
      this();
-
 
124952
      this.startDate = startDate;
-
 
124953
      setStartDateIsSet(true);
-
 
124954
      this.endDate = endDate;
-
 
124955
      setEndDateIsSet(true);
-
 
124956
    }
-
 
124957
 
-
 
124958
    /**
-
 
124959
     * Performs a deep copy on <i>other</i>.
-
 
124960
     */
-
 
124961
    public getAmazonPromotion_args(getAmazonPromotion_args other) {
-
 
124962
      __isset_bit_vector.clear();
-
 
124963
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
124964
      this.startDate = other.startDate;
-
 
124965
      this.endDate = other.endDate;
-
 
124966
    }
-
 
124967
 
-
 
124968
    public getAmazonPromotion_args deepCopy() {
-
 
124969
      return new getAmazonPromotion_args(this);
-
 
124970
    }
-
 
124971
 
-
 
124972
    @Override
-
 
124973
    public void clear() {
-
 
124974
      setStartDateIsSet(false);
-
 
124975
      this.startDate = 0;
-
 
124976
      setEndDateIsSet(false);
-
 
124977
      this.endDate = 0;
-
 
124978
    }
-
 
124979
 
-
 
124980
    public long getStartDate() {
-
 
124981
      return this.startDate;
-
 
124982
    }
-
 
124983
 
-
 
124984
    public void setStartDate(long startDate) {
-
 
124985
      this.startDate = startDate;
-
 
124986
      setStartDateIsSet(true);
-
 
124987
    }
-
 
124988
 
-
 
124989
    public void unsetStartDate() {
-
 
124990
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
-
 
124991
    }
-
 
124992
 
-
 
124993
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
-
 
124994
    public boolean isSetStartDate() {
-
 
124995
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
-
 
124996
    }
-
 
124997
 
-
 
124998
    public void setStartDateIsSet(boolean value) {
-
 
124999
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
-
 
125000
    }
-
 
125001
 
-
 
125002
    public long getEndDate() {
-
 
125003
      return this.endDate;
-
 
125004
    }
-
 
125005
 
-
 
125006
    public void setEndDate(long endDate) {
-
 
125007
      this.endDate = endDate;
-
 
125008
      setEndDateIsSet(true);
-
 
125009
    }
-
 
125010
 
-
 
125011
    public void unsetEndDate() {
-
 
125012
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
-
 
125013
    }
-
 
125014
 
-
 
125015
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
-
 
125016
    public boolean isSetEndDate() {
-
 
125017
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
-
 
125018
    }
-
 
125019
 
-
 
125020
    public void setEndDateIsSet(boolean value) {
-
 
125021
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
-
 
125022
    }
-
 
125023
 
-
 
125024
    public void setFieldValue(_Fields field, Object value) {
-
 
125025
      switch (field) {
-
 
125026
      case START_DATE:
-
 
125027
        if (value == null) {
-
 
125028
          unsetStartDate();
-
 
125029
        } else {
-
 
125030
          setStartDate((Long)value);
-
 
125031
        }
-
 
125032
        break;
-
 
125033
 
-
 
125034
      case END_DATE:
-
 
125035
        if (value == null) {
-
 
125036
          unsetEndDate();
-
 
125037
        } else {
-
 
125038
          setEndDate((Long)value);
-
 
125039
        }
-
 
125040
        break;
-
 
125041
 
-
 
125042
      }
-
 
125043
    }
-
 
125044
 
-
 
125045
    public Object getFieldValue(_Fields field) {
-
 
125046
      switch (field) {
-
 
125047
      case START_DATE:
-
 
125048
        return Long.valueOf(getStartDate());
-
 
125049
 
-
 
125050
      case END_DATE:
-
 
125051
        return Long.valueOf(getEndDate());
-
 
125052
 
-
 
125053
      }
-
 
125054
      throw new IllegalStateException();
-
 
125055
    }
-
 
125056
 
-
 
125057
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
125058
    public boolean isSet(_Fields field) {
-
 
125059
      if (field == null) {
-
 
125060
        throw new IllegalArgumentException();
-
 
125061
      }
-
 
125062
 
-
 
125063
      switch (field) {
-
 
125064
      case START_DATE:
-
 
125065
        return isSetStartDate();
-
 
125066
      case END_DATE:
-
 
125067
        return isSetEndDate();
-
 
125068
      }
-
 
125069
      throw new IllegalStateException();
-
 
125070
    }
-
 
125071
 
-
 
125072
    @Override
-
 
125073
    public boolean equals(Object that) {
-
 
125074
      if (that == null)
-
 
125075
        return false;
-
 
125076
      if (that instanceof getAmazonPromotion_args)
-
 
125077
        return this.equals((getAmazonPromotion_args)that);
-
 
125078
      return false;
-
 
125079
    }
-
 
125080
 
-
 
125081
    public boolean equals(getAmazonPromotion_args that) {
-
 
125082
      if (that == null)
-
 
125083
        return false;
-
 
125084
 
-
 
125085
      boolean this_present_startDate = true;
-
 
125086
      boolean that_present_startDate = true;
-
 
125087
      if (this_present_startDate || that_present_startDate) {
-
 
125088
        if (!(this_present_startDate && that_present_startDate))
-
 
125089
          return false;
-
 
125090
        if (this.startDate != that.startDate)
-
 
125091
          return false;
-
 
125092
      }
-
 
125093
 
-
 
125094
      boolean this_present_endDate = true;
-
 
125095
      boolean that_present_endDate = true;
-
 
125096
      if (this_present_endDate || that_present_endDate) {
-
 
125097
        if (!(this_present_endDate && that_present_endDate))
-
 
125098
          return false;
-
 
125099
        if (this.endDate != that.endDate)
-
 
125100
          return false;
-
 
125101
      }
-
 
125102
 
-
 
125103
      return true;
-
 
125104
    }
-
 
125105
 
-
 
125106
    @Override
-
 
125107
    public int hashCode() {
-
 
125108
      return 0;
-
 
125109
    }
-
 
125110
 
-
 
125111
    public int compareTo(getAmazonPromotion_args other) {
-
 
125112
      if (!getClass().equals(other.getClass())) {
-
 
125113
        return getClass().getName().compareTo(other.getClass().getName());
-
 
125114
      }
-
 
125115
 
-
 
125116
      int lastComparison = 0;
-
 
125117
      getAmazonPromotion_args typedOther = (getAmazonPromotion_args)other;
-
 
125118
 
-
 
125119
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
-
 
125120
      if (lastComparison != 0) {
-
 
125121
        return lastComparison;
-
 
125122
      }
-
 
125123
      if (isSetStartDate()) {
-
 
125124
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
-
 
125125
        if (lastComparison != 0) {
-
 
125126
          return lastComparison;
-
 
125127
        }
-
 
125128
      }
-
 
125129
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
-
 
125130
      if (lastComparison != 0) {
-
 
125131
        return lastComparison;
-
 
125132
      }
-
 
125133
      if (isSetEndDate()) {
-
 
125134
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
-
 
125135
        if (lastComparison != 0) {
-
 
125136
          return lastComparison;
-
 
125137
        }
-
 
125138
      }
-
 
125139
      return 0;
-
 
125140
    }
-
 
125141
 
-
 
125142
    public _Fields fieldForId(int fieldId) {
-
 
125143
      return _Fields.findByThriftId(fieldId);
-
 
125144
    }
-
 
125145
 
-
 
125146
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
125147
      org.apache.thrift.protocol.TField field;
-
 
125148
      iprot.readStructBegin();
-
 
125149
      while (true)
-
 
125150
      {
-
 
125151
        field = iprot.readFieldBegin();
-
 
125152
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
125153
          break;
-
 
125154
        }
-
 
125155
        switch (field.id) {
-
 
125156
          case 1: // START_DATE
-
 
125157
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
125158
              this.startDate = iprot.readI64();
-
 
125159
              setStartDateIsSet(true);
-
 
125160
            } else { 
-
 
125161
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
125162
            }
-
 
125163
            break;
-
 
125164
          case 2: // END_DATE
-
 
125165
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
125166
              this.endDate = iprot.readI64();
-
 
125167
              setEndDateIsSet(true);
-
 
125168
            } else { 
-
 
125169
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
125170
            }
-
 
125171
            break;
-
 
125172
          default:
-
 
125173
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
125174
        }
-
 
125175
        iprot.readFieldEnd();
-
 
125176
      }
-
 
125177
      iprot.readStructEnd();
-
 
125178
      validate();
-
 
125179
    }
-
 
125180
 
-
 
125181
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
125182
      validate();
-
 
125183
 
-
 
125184
      oprot.writeStructBegin(STRUCT_DESC);
-
 
125185
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
-
 
125186
      oprot.writeI64(this.startDate);
-
 
125187
      oprot.writeFieldEnd();
-
 
125188
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
-
 
125189
      oprot.writeI64(this.endDate);
-
 
125190
      oprot.writeFieldEnd();
-
 
125191
      oprot.writeFieldStop();
-
 
125192
      oprot.writeStructEnd();
-
 
125193
    }
-
 
125194
 
-
 
125195
    @Override
-
 
125196
    public String toString() {
-
 
125197
      StringBuilder sb = new StringBuilder("getAmazonPromotion_args(");
-
 
125198
      boolean first = true;
-
 
125199
 
-
 
125200
      sb.append("startDate:");
-
 
125201
      sb.append(this.startDate);
-
 
125202
      first = false;
-
 
125203
      if (!first) sb.append(", ");
-
 
125204
      sb.append("endDate:");
-
 
125205
      sb.append(this.endDate);
-
 
125206
      first = false;
-
 
125207
      sb.append(")");
-
 
125208
      return sb.toString();
-
 
125209
    }
-
 
125210
 
-
 
125211
    public void validate() throws org.apache.thrift.TException {
-
 
125212
      // check for required fields
-
 
125213
    }
-
 
125214
 
-
 
125215
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
125216
      try {
-
 
125217
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
125218
      } catch (org.apache.thrift.TException te) {
-
 
125219
        throw new java.io.IOException(te);
-
 
125220
      }
-
 
125221
    }
-
 
125222
 
-
 
125223
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
125224
      try {
-
 
125225
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
125226
        __isset_bit_vector = new BitSet(1);
-
 
125227
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
125228
      } catch (org.apache.thrift.TException te) {
-
 
125229
        throw new java.io.IOException(te);
-
 
125230
      }
-
 
125231
    }
-
 
125232
 
-
 
125233
  }
-
 
125234
 
-
 
125235
  public static class getAmazonPromotion_result implements org.apache.thrift.TBase<getAmazonPromotion_result, getAmazonPromotion_result._Fields>, java.io.Serializable, Cloneable   {
-
 
125236
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonPromotion_result");
-
 
125237
 
-
 
125238
    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);
-
 
125239
 
-
 
125240
    private List<AmazonPromotion> success; // required
-
 
125241
 
-
 
125242
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
125243
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
125244
      SUCCESS((short)0, "success");
-
 
125245
 
-
 
125246
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
125247
 
-
 
125248
      static {
-
 
125249
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
125250
          byName.put(field.getFieldName(), field);
-
 
125251
        }
-
 
125252
      }
-
 
125253
 
-
 
125254
      /**
-
 
125255
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
125256
       */
-
 
125257
      public static _Fields findByThriftId(int fieldId) {
-
 
125258
        switch(fieldId) {
-
 
125259
          case 0: // SUCCESS
-
 
125260
            return SUCCESS;
-
 
125261
          default:
-
 
125262
            return null;
-
 
125263
        }
-
 
125264
      }
-
 
125265
 
-
 
125266
      /**
-
 
125267
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
125268
       * if it is not found.
-
 
125269
       */
-
 
125270
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
125271
        _Fields fields = findByThriftId(fieldId);
-
 
125272
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
125273
        return fields;
-
 
125274
      }
-
 
125275
 
-
 
125276
      /**
-
 
125277
       * Find the _Fields constant that matches name, or null if its not found.
-
 
125278
       */
-
 
125279
      public static _Fields findByName(String name) {
-
 
125280
        return byName.get(name);
-
 
125281
      }
-
 
125282
 
-
 
125283
      private final short _thriftId;
-
 
125284
      private final String _fieldName;
-
 
125285
 
-
 
125286
      _Fields(short thriftId, String fieldName) {
-
 
125287
        _thriftId = thriftId;
-
 
125288
        _fieldName = fieldName;
-
 
125289
      }
-
 
125290
 
-
 
125291
      public short getThriftFieldId() {
-
 
125292
        return _thriftId;
-
 
125293
      }
-
 
125294
 
-
 
125295
      public String getFieldName() {
-
 
125296
        return _fieldName;
-
 
125297
      }
-
 
125298
    }
-
 
125299
 
-
 
125300
    // isset id assignments
-
 
125301
 
-
 
125302
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
125303
    static {
-
 
125304
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
125305
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
125306
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
125307
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonPromotion.class))));
-
 
125308
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
125309
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonPromotion_result.class, metaDataMap);
-
 
125310
    }
-
 
125311
 
-
 
125312
    public getAmazonPromotion_result() {
-
 
125313
    }
-
 
125314
 
-
 
125315
    public getAmazonPromotion_result(
-
 
125316
      List<AmazonPromotion> success)
-
 
125317
    {
-
 
125318
      this();
-
 
125319
      this.success = success;
-
 
125320
    }
-
 
125321
 
-
 
125322
    /**
-
 
125323
     * Performs a deep copy on <i>other</i>.
-
 
125324
     */
-
 
125325
    public getAmazonPromotion_result(getAmazonPromotion_result other) {
-
 
125326
      if (other.isSetSuccess()) {
-
 
125327
        List<AmazonPromotion> __this__success = new ArrayList<AmazonPromotion>();
-
 
125328
        for (AmazonPromotion other_element : other.success) {
-
 
125329
          __this__success.add(new AmazonPromotion(other_element));
-
 
125330
        }
-
 
125331
        this.success = __this__success;
-
 
125332
      }
-
 
125333
    }
-
 
125334
 
-
 
125335
    public getAmazonPromotion_result deepCopy() {
-
 
125336
      return new getAmazonPromotion_result(this);
-
 
125337
    }
-
 
125338
 
-
 
125339
    @Override
-
 
125340
    public void clear() {
-
 
125341
      this.success = null;
-
 
125342
    }
-
 
125343
 
-
 
125344
    public int getSuccessSize() {
-
 
125345
      return (this.success == null) ? 0 : this.success.size();
-
 
125346
    }
-
 
125347
 
-
 
125348
    public java.util.Iterator<AmazonPromotion> getSuccessIterator() {
-
 
125349
      return (this.success == null) ? null : this.success.iterator();
-
 
125350
    }
-
 
125351
 
-
 
125352
    public void addToSuccess(AmazonPromotion elem) {
-
 
125353
      if (this.success == null) {
-
 
125354
        this.success = new ArrayList<AmazonPromotion>();
-
 
125355
      }
-
 
125356
      this.success.add(elem);
-
 
125357
    }
-
 
125358
 
-
 
125359
    public List<AmazonPromotion> getSuccess() {
-
 
125360
      return this.success;
-
 
125361
    }
-
 
125362
 
-
 
125363
    public void setSuccess(List<AmazonPromotion> success) {
-
 
125364
      this.success = success;
-
 
125365
    }
-
 
125366
 
-
 
125367
    public void unsetSuccess() {
-
 
125368
      this.success = null;
-
 
125369
    }
-
 
125370
 
-
 
125371
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
125372
    public boolean isSetSuccess() {
-
 
125373
      return this.success != null;
-
 
125374
    }
-
 
125375
 
-
 
125376
    public void setSuccessIsSet(boolean value) {
-
 
125377
      if (!value) {
-
 
125378
        this.success = null;
-
 
125379
      }
-
 
125380
    }
-
 
125381
 
-
 
125382
    public void setFieldValue(_Fields field, Object value) {
-
 
125383
      switch (field) {
-
 
125384
      case SUCCESS:
-
 
125385
        if (value == null) {
-
 
125386
          unsetSuccess();
-
 
125387
        } else {
-
 
125388
          setSuccess((List<AmazonPromotion>)value);
-
 
125389
        }
-
 
125390
        break;
-
 
125391
 
-
 
125392
      }
-
 
125393
    }
-
 
125394
 
-
 
125395
    public Object getFieldValue(_Fields field) {
-
 
125396
      switch (field) {
-
 
125397
      case SUCCESS:
-
 
125398
        return getSuccess();
-
 
125399
 
-
 
125400
      }
-
 
125401
      throw new IllegalStateException();
-
 
125402
    }
-
 
125403
 
-
 
125404
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
125405
    public boolean isSet(_Fields field) {
-
 
125406
      if (field == null) {
-
 
125407
        throw new IllegalArgumentException();
-
 
125408
      }
-
 
125409
 
-
 
125410
      switch (field) {
-
 
125411
      case SUCCESS:
-
 
125412
        return isSetSuccess();
-
 
125413
      }
-
 
125414
      throw new IllegalStateException();
-
 
125415
    }
-
 
125416
 
-
 
125417
    @Override
-
 
125418
    public boolean equals(Object that) {
-
 
125419
      if (that == null)
-
 
125420
        return false;
-
 
125421
      if (that instanceof getAmazonPromotion_result)
-
 
125422
        return this.equals((getAmazonPromotion_result)that);
-
 
125423
      return false;
-
 
125424
    }
-
 
125425
 
-
 
125426
    public boolean equals(getAmazonPromotion_result that) {
-
 
125427
      if (that == null)
-
 
125428
        return false;
-
 
125429
 
-
 
125430
      boolean this_present_success = true && this.isSetSuccess();
-
 
125431
      boolean that_present_success = true && that.isSetSuccess();
-
 
125432
      if (this_present_success || that_present_success) {
-
 
125433
        if (!(this_present_success && that_present_success))
-
 
125434
          return false;
-
 
125435
        if (!this.success.equals(that.success))
-
 
125436
          return false;
-
 
125437
      }
-
 
125438
 
-
 
125439
      return true;
-
 
125440
    }
-
 
125441
 
-
 
125442
    @Override
-
 
125443
    public int hashCode() {
-
 
125444
      return 0;
-
 
125445
    }
-
 
125446
 
-
 
125447
    public int compareTo(getAmazonPromotion_result other) {
-
 
125448
      if (!getClass().equals(other.getClass())) {
-
 
125449
        return getClass().getName().compareTo(other.getClass().getName());
-
 
125450
      }
-
 
125451
 
-
 
125452
      int lastComparison = 0;
-
 
125453
      getAmazonPromotion_result typedOther = (getAmazonPromotion_result)other;
-
 
125454
 
-
 
125455
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
125456
      if (lastComparison != 0) {
-
 
125457
        return lastComparison;
-
 
125458
      }
-
 
125459
      if (isSetSuccess()) {
-
 
125460
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
125461
        if (lastComparison != 0) {
-
 
125462
          return lastComparison;
-
 
125463
        }
-
 
125464
      }
-
 
125465
      return 0;
-
 
125466
    }
-
 
125467
 
-
 
125468
    public _Fields fieldForId(int fieldId) {
-
 
125469
      return _Fields.findByThriftId(fieldId);
-
 
125470
    }
-
 
125471
 
-
 
125472
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
125473
      org.apache.thrift.protocol.TField field;
-
 
125474
      iprot.readStructBegin();
-
 
125475
      while (true)
-
 
125476
      {
-
 
125477
        field = iprot.readFieldBegin();
-
 
125478
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
125479
          break;
-
 
125480
        }
-
 
125481
        switch (field.id) {
-
 
125482
          case 0: // SUCCESS
-
 
125483
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
125484
              {
-
 
125485
                org.apache.thrift.protocol.TList _list416 = iprot.readListBegin();
-
 
125486
                this.success = new ArrayList<AmazonPromotion>(_list416.size);
-
 
125487
                for (int _i417 = 0; _i417 < _list416.size; ++_i417)
-
 
125488
                {
-
 
125489
                  AmazonPromotion _elem418; // required
-
 
125490
                  _elem418 = new AmazonPromotion();
-
 
125491
                  _elem418.read(iprot);
-
 
125492
                  this.success.add(_elem418);
-
 
125493
                }
-
 
125494
                iprot.readListEnd();
-
 
125495
              }
-
 
125496
            } else { 
-
 
125497
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
125498
            }
-
 
125499
            break;
-
 
125500
          default:
-
 
125501
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
125502
        }
-
 
125503
        iprot.readFieldEnd();
-
 
125504
      }
-
 
125505
      iprot.readStructEnd();
-
 
125506
      validate();
-
 
125507
    }
-
 
125508
 
-
 
125509
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
125510
      oprot.writeStructBegin(STRUCT_DESC);
-
 
125511
 
-
 
125512
      if (this.isSetSuccess()) {
-
 
125513
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
125514
        {
-
 
125515
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
125516
          for (AmazonPromotion _iter419 : this.success)
-
 
125517
          {
-
 
125518
            _iter419.write(oprot);
-
 
125519
          }
-
 
125520
          oprot.writeListEnd();
-
 
125521
        }
-
 
125522
        oprot.writeFieldEnd();
-
 
125523
      }
-
 
125524
      oprot.writeFieldStop();
-
 
125525
      oprot.writeStructEnd();
-
 
125526
    }
-
 
125527
 
-
 
125528
    @Override
-
 
125529
    public String toString() {
-
 
125530
      StringBuilder sb = new StringBuilder("getAmazonPromotion_result(");
-
 
125531
      boolean first = true;
-
 
125532
 
-
 
125533
      sb.append("success:");
-
 
125534
      if (this.success == null) {
-
 
125535
        sb.append("null");
-
 
125536
      } else {
-
 
125537
        sb.append(this.success);
-
 
125538
      }
-
 
125539
      first = false;
-
 
125540
      sb.append(")");
-
 
125541
      return sb.toString();
-
 
125542
    }
-
 
125543
 
-
 
125544
    public void validate() throws org.apache.thrift.TException {
-
 
125545
      // check for required fields
-
 
125546
    }
-
 
125547
 
-
 
125548
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
125549
      try {
-
 
125550
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
125551
      } catch (org.apache.thrift.TException te) {
-
 
125552
        throw new java.io.IOException(te);
-
 
125553
      }
-
 
125554
    }
-
 
125555
 
-
 
125556
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
125557
      try {
-
 
125558
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
125559
      } catch (org.apache.thrift.TException te) {
-
 
125560
        throw new java.io.IOException(te);
-
 
125561
      }
-
 
125562
    }
-
 
125563
 
-
 
125564
  }
-
 
125565
 
-
 
125566
  public static class updateAmazonPromotion_args implements org.apache.thrift.TBase<updateAmazonPromotion_args, updateAmazonPromotion_args._Fields>, java.io.Serializable, Cloneable   {
-
 
125567
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAmazonPromotion_args");
-
 
125568
 
-
 
125569
    private static final org.apache.thrift.protocol.TField AMAZON_PROMOTIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonPromotions", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
125570
 
-
 
125571
    private List<AmazonPromotion> amazonPromotions; // required
-
 
125572
 
-
 
125573
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
125574
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
125575
      AMAZON_PROMOTIONS((short)1, "amazonPromotions");
-
 
125576
 
-
 
125577
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
125578
 
-
 
125579
      static {
-
 
125580
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
125581
          byName.put(field.getFieldName(), field);
-
 
125582
        }
-
 
125583
      }
-
 
125584
 
-
 
125585
      /**
-
 
125586
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
125587
       */
-
 
125588
      public static _Fields findByThriftId(int fieldId) {
-
 
125589
        switch(fieldId) {
-
 
125590
          case 1: // AMAZON_PROMOTIONS
-
 
125591
            return AMAZON_PROMOTIONS;
-
 
125592
          default:
-
 
125593
            return null;
-
 
125594
        }
-
 
125595
      }
-
 
125596
 
-
 
125597
      /**
-
 
125598
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
125599
       * if it is not found.
-
 
125600
       */
-
 
125601
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
125602
        _Fields fields = findByThriftId(fieldId);
-
 
125603
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
125604
        return fields;
-
 
125605
      }
-
 
125606
 
-
 
125607
      /**
-
 
125608
       * Find the _Fields constant that matches name, or null if its not found.
-
 
125609
       */
-
 
125610
      public static _Fields findByName(String name) {
-
 
125611
        return byName.get(name);
-
 
125612
      }
-
 
125613
 
-
 
125614
      private final short _thriftId;
-
 
125615
      private final String _fieldName;
-
 
125616
 
-
 
125617
      _Fields(short thriftId, String fieldName) {
-
 
125618
        _thriftId = thriftId;
-
 
125619
        _fieldName = fieldName;
-
 
125620
      }
-
 
125621
 
-
 
125622
      public short getThriftFieldId() {
-
 
125623
        return _thriftId;
-
 
125624
      }
-
 
125625
 
-
 
125626
      public String getFieldName() {
-
 
125627
        return _fieldName;
-
 
125628
      }
-
 
125629
    }
-
 
125630
 
-
 
125631
    // isset id assignments
-
 
125632
 
-
 
125633
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
125634
    static {
-
 
125635
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
125636
      tmpMap.put(_Fields.AMAZON_PROMOTIONS, new org.apache.thrift.meta_data.FieldMetaData("amazonPromotions", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
125637
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
125638
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonPromotion.class))));
-
 
125639
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
125640
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAmazonPromotion_args.class, metaDataMap);
-
 
125641
    }
-
 
125642
 
-
 
125643
    public updateAmazonPromotion_args() {
-
 
125644
    }
-
 
125645
 
-
 
125646
    public updateAmazonPromotion_args(
-
 
125647
      List<AmazonPromotion> amazonPromotions)
-
 
125648
    {
-
 
125649
      this();
-
 
125650
      this.amazonPromotions = amazonPromotions;
-
 
125651
    }
-
 
125652
 
-
 
125653
    /**
-
 
125654
     * Performs a deep copy on <i>other</i>.
-
 
125655
     */
-
 
125656
    public updateAmazonPromotion_args(updateAmazonPromotion_args other) {
-
 
125657
      if (other.isSetAmazonPromotions()) {
-
 
125658
        List<AmazonPromotion> __this__amazonPromotions = new ArrayList<AmazonPromotion>();
-
 
125659
        for (AmazonPromotion other_element : other.amazonPromotions) {
-
 
125660
          __this__amazonPromotions.add(new AmazonPromotion(other_element));
-
 
125661
        }
-
 
125662
        this.amazonPromotions = __this__amazonPromotions;
-
 
125663
      }
-
 
125664
    }
-
 
125665
 
-
 
125666
    public updateAmazonPromotion_args deepCopy() {
-
 
125667
      return new updateAmazonPromotion_args(this);
-
 
125668
    }
-
 
125669
 
-
 
125670
    @Override
-
 
125671
    public void clear() {
-
 
125672
      this.amazonPromotions = null;
-
 
125673
    }
-
 
125674
 
-
 
125675
    public int getAmazonPromotionsSize() {
-
 
125676
      return (this.amazonPromotions == null) ? 0 : this.amazonPromotions.size();
-
 
125677
    }
-
 
125678
 
-
 
125679
    public java.util.Iterator<AmazonPromotion> getAmazonPromotionsIterator() {
-
 
125680
      return (this.amazonPromotions == null) ? null : this.amazonPromotions.iterator();
-
 
125681
    }
-
 
125682
 
-
 
125683
    public void addToAmazonPromotions(AmazonPromotion elem) {
-
 
125684
      if (this.amazonPromotions == null) {
-
 
125685
        this.amazonPromotions = new ArrayList<AmazonPromotion>();
-
 
125686
      }
-
 
125687
      this.amazonPromotions.add(elem);
-
 
125688
    }
-
 
125689
 
-
 
125690
    public List<AmazonPromotion> getAmazonPromotions() {
-
 
125691
      return this.amazonPromotions;
-
 
125692
    }
-
 
125693
 
-
 
125694
    public void setAmazonPromotions(List<AmazonPromotion> amazonPromotions) {
-
 
125695
      this.amazonPromotions = amazonPromotions;
-
 
125696
    }
-
 
125697
 
-
 
125698
    public void unsetAmazonPromotions() {
-
 
125699
      this.amazonPromotions = null;
-
 
125700
    }
-
 
125701
 
-
 
125702
    /** Returns true if field amazonPromotions is set (has been assigned a value) and false otherwise */
-
 
125703
    public boolean isSetAmazonPromotions() {
-
 
125704
      return this.amazonPromotions != null;
-
 
125705
    }
-
 
125706
 
-
 
125707
    public void setAmazonPromotionsIsSet(boolean value) {
-
 
125708
      if (!value) {
-
 
125709
        this.amazonPromotions = null;
-
 
125710
      }
-
 
125711
    }
-
 
125712
 
-
 
125713
    public void setFieldValue(_Fields field, Object value) {
-
 
125714
      switch (field) {
-
 
125715
      case AMAZON_PROMOTIONS:
-
 
125716
        if (value == null) {
-
 
125717
          unsetAmazonPromotions();
-
 
125718
        } else {
-
 
125719
          setAmazonPromotions((List<AmazonPromotion>)value);
-
 
125720
        }
-
 
125721
        break;
-
 
125722
 
-
 
125723
      }
-
 
125724
    }
-
 
125725
 
-
 
125726
    public Object getFieldValue(_Fields field) {
-
 
125727
      switch (field) {
-
 
125728
      case AMAZON_PROMOTIONS:
-
 
125729
        return getAmazonPromotions();
-
 
125730
 
-
 
125731
      }
-
 
125732
      throw new IllegalStateException();
-
 
125733
    }
-
 
125734
 
-
 
125735
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
125736
    public boolean isSet(_Fields field) {
-
 
125737
      if (field == null) {
-
 
125738
        throw new IllegalArgumentException();
-
 
125739
      }
-
 
125740
 
-
 
125741
      switch (field) {
-
 
125742
      case AMAZON_PROMOTIONS:
-
 
125743
        return isSetAmazonPromotions();
-
 
125744
      }
-
 
125745
      throw new IllegalStateException();
-
 
125746
    }
-
 
125747
 
-
 
125748
    @Override
-
 
125749
    public boolean equals(Object that) {
-
 
125750
      if (that == null)
-
 
125751
        return false;
-
 
125752
      if (that instanceof updateAmazonPromotion_args)
-
 
125753
        return this.equals((updateAmazonPromotion_args)that);
-
 
125754
      return false;
-
 
125755
    }
-
 
125756
 
-
 
125757
    public boolean equals(updateAmazonPromotion_args that) {
-
 
125758
      if (that == null)
-
 
125759
        return false;
-
 
125760
 
-
 
125761
      boolean this_present_amazonPromotions = true && this.isSetAmazonPromotions();
-
 
125762
      boolean that_present_amazonPromotions = true && that.isSetAmazonPromotions();
-
 
125763
      if (this_present_amazonPromotions || that_present_amazonPromotions) {
-
 
125764
        if (!(this_present_amazonPromotions && that_present_amazonPromotions))
-
 
125765
          return false;
-
 
125766
        if (!this.amazonPromotions.equals(that.amazonPromotions))
-
 
125767
          return false;
-
 
125768
      }
-
 
125769
 
-
 
125770
      return true;
-
 
125771
    }
-
 
125772
 
-
 
125773
    @Override
-
 
125774
    public int hashCode() {
-
 
125775
      return 0;
-
 
125776
    }
-
 
125777
 
-
 
125778
    public int compareTo(updateAmazonPromotion_args other) {
-
 
125779
      if (!getClass().equals(other.getClass())) {
-
 
125780
        return getClass().getName().compareTo(other.getClass().getName());
-
 
125781
      }
-
 
125782
 
-
 
125783
      int lastComparison = 0;
-
 
125784
      updateAmazonPromotion_args typedOther = (updateAmazonPromotion_args)other;
-
 
125785
 
-
 
125786
      lastComparison = Boolean.valueOf(isSetAmazonPromotions()).compareTo(typedOther.isSetAmazonPromotions());
-
 
125787
      if (lastComparison != 0) {
-
 
125788
        return lastComparison;
-
 
125789
      }
-
 
125790
      if (isSetAmazonPromotions()) {
-
 
125791
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonPromotions, typedOther.amazonPromotions);
-
 
125792
        if (lastComparison != 0) {
-
 
125793
          return lastComparison;
-
 
125794
        }
-
 
125795
      }
-
 
125796
      return 0;
-
 
125797
    }
-
 
125798
 
-
 
125799
    public _Fields fieldForId(int fieldId) {
-
 
125800
      return _Fields.findByThriftId(fieldId);
-
 
125801
    }
-
 
125802
 
-
 
125803
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
125804
      org.apache.thrift.protocol.TField field;
-
 
125805
      iprot.readStructBegin();
-
 
125806
      while (true)
-
 
125807
      {
-
 
125808
        field = iprot.readFieldBegin();
-
 
125809
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
125810
          break;
-
 
125811
        }
-
 
125812
        switch (field.id) {
-
 
125813
          case 1: // AMAZON_PROMOTIONS
-
 
125814
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
125815
              {
-
 
125816
                org.apache.thrift.protocol.TList _list420 = iprot.readListBegin();
-
 
125817
                this.amazonPromotions = new ArrayList<AmazonPromotion>(_list420.size);
-
 
125818
                for (int _i421 = 0; _i421 < _list420.size; ++_i421)
-
 
125819
                {
-
 
125820
                  AmazonPromotion _elem422; // required
-
 
125821
                  _elem422 = new AmazonPromotion();
-
 
125822
                  _elem422.read(iprot);
-
 
125823
                  this.amazonPromotions.add(_elem422);
-
 
125824
                }
-
 
125825
                iprot.readListEnd();
-
 
125826
              }
-
 
125827
            } else { 
-
 
125828
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
125829
            }
-
 
125830
            break;
-
 
125831
          default:
-
 
125832
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
125833
        }
-
 
125834
        iprot.readFieldEnd();
-
 
125835
      }
-
 
125836
      iprot.readStructEnd();
-
 
125837
      validate();
-
 
125838
    }
-
 
125839
 
-
 
125840
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
125841
      validate();
-
 
125842
 
-
 
125843
      oprot.writeStructBegin(STRUCT_DESC);
-
 
125844
      if (this.amazonPromotions != null) {
-
 
125845
        oprot.writeFieldBegin(AMAZON_PROMOTIONS_FIELD_DESC);
-
 
125846
        {
-
 
125847
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.amazonPromotions.size()));
-
 
125848
          for (AmazonPromotion _iter423 : this.amazonPromotions)
-
 
125849
          {
-
 
125850
            _iter423.write(oprot);
-
 
125851
          }
-
 
125852
          oprot.writeListEnd();
-
 
125853
        }
-
 
125854
        oprot.writeFieldEnd();
-
 
125855
      }
-
 
125856
      oprot.writeFieldStop();
-
 
125857
      oprot.writeStructEnd();
-
 
125858
    }
-
 
125859
 
-
 
125860
    @Override
-
 
125861
    public String toString() {
-
 
125862
      StringBuilder sb = new StringBuilder("updateAmazonPromotion_args(");
-
 
125863
      boolean first = true;
-
 
125864
 
-
 
125865
      sb.append("amazonPromotions:");
-
 
125866
      if (this.amazonPromotions == null) {
-
 
125867
        sb.append("null");
-
 
125868
      } else {
-
 
125869
        sb.append(this.amazonPromotions);
-
 
125870
      }
-
 
125871
      first = false;
-
 
125872
      sb.append(")");
-
 
125873
      return sb.toString();
-
 
125874
    }
-
 
125875
 
-
 
125876
    public void validate() throws org.apache.thrift.TException {
-
 
125877
      // check for required fields
-
 
125878
    }
-
 
125879
 
-
 
125880
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
125881
      try {
-
 
125882
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
125883
      } catch (org.apache.thrift.TException te) {
-
 
125884
        throw new java.io.IOException(te);
-
 
125885
      }
-
 
125886
    }
-
 
125887
 
-
 
125888
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
125889
      try {
-
 
125890
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
125891
      } catch (org.apache.thrift.TException te) {
-
 
125892
        throw new java.io.IOException(te);
-
 
125893
      }
-
 
125894
    }
-
 
125895
 
-
 
125896
  }
-
 
125897
 
-
 
125898
  public static class updateAmazonPromotion_result implements org.apache.thrift.TBase<updateAmazonPromotion_result, updateAmazonPromotion_result._Fields>, java.io.Serializable, Cloneable   {
-
 
125899
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateAmazonPromotion_result");
-
 
125900
 
-
 
125901
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
125902
 
-
 
125903
    private boolean success; // required
-
 
125904
 
-
 
125905
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
125906
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
125907
      SUCCESS((short)0, "success");
-
 
125908
 
-
 
125909
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
125910
 
-
 
125911
      static {
-
 
125912
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
125913
          byName.put(field.getFieldName(), field);
-
 
125914
        }
-
 
125915
      }
-
 
125916
 
-
 
125917
      /**
-
 
125918
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
125919
       */
-
 
125920
      public static _Fields findByThriftId(int fieldId) {
-
 
125921
        switch(fieldId) {
-
 
125922
          case 0: // SUCCESS
-
 
125923
            return SUCCESS;
-
 
125924
          default:
-
 
125925
            return null;
-
 
125926
        }
-
 
125927
      }
-
 
125928
 
-
 
125929
      /**
-
 
125930
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
125931
       * if it is not found.
-
 
125932
       */
-
 
125933
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
125934
        _Fields fields = findByThriftId(fieldId);
-
 
125935
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
125936
        return fields;
-
 
125937
      }
-
 
125938
 
-
 
125939
      /**
-
 
125940
       * Find the _Fields constant that matches name, or null if its not found.
-
 
125941
       */
-
 
125942
      public static _Fields findByName(String name) {
-
 
125943
        return byName.get(name);
-
 
125944
      }
-
 
125945
 
-
 
125946
      private final short _thriftId;
-
 
125947
      private final String _fieldName;
-
 
125948
 
-
 
125949
      _Fields(short thriftId, String fieldName) {
-
 
125950
        _thriftId = thriftId;
-
 
125951
        _fieldName = fieldName;
-
 
125952
      }
-
 
125953
 
-
 
125954
      public short getThriftFieldId() {
-
 
125955
        return _thriftId;
-
 
125956
      }
-
 
125957
 
-
 
125958
      public String getFieldName() {
-
 
125959
        return _fieldName;
-
 
125960
      }
-
 
125961
    }
-
 
125962
 
-
 
125963
    // isset id assignments
-
 
125964
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
125965
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
125966
 
-
 
125967
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
125968
    static {
-
 
125969
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
125970
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
125971
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
125972
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
125973
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateAmazonPromotion_result.class, metaDataMap);
-
 
125974
    }
-
 
125975
 
-
 
125976
    public updateAmazonPromotion_result() {
-
 
125977
    }
-
 
125978
 
-
 
125979
    public updateAmazonPromotion_result(
-
 
125980
      boolean success)
-
 
125981
    {
-
 
125982
      this();
-
 
125983
      this.success = success;
-
 
125984
      setSuccessIsSet(true);
-
 
125985
    }
-
 
125986
 
-
 
125987
    /**
-
 
125988
     * Performs a deep copy on <i>other</i>.
-
 
125989
     */
-
 
125990
    public updateAmazonPromotion_result(updateAmazonPromotion_result other) {
-
 
125991
      __isset_bit_vector.clear();
-
 
125992
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
125993
      this.success = other.success;
-
 
125994
    }
-
 
125995
 
-
 
125996
    public updateAmazonPromotion_result deepCopy() {
-
 
125997
      return new updateAmazonPromotion_result(this);
-
 
125998
    }
-
 
125999
 
-
 
126000
    @Override
-
 
126001
    public void clear() {
-
 
126002
      setSuccessIsSet(false);
-
 
126003
      this.success = false;
-
 
126004
    }
-
 
126005
 
-
 
126006
    public boolean isSuccess() {
-
 
126007
      return this.success;
-
 
126008
    }
-
 
126009
 
-
 
126010
    public void setSuccess(boolean success) {
-
 
126011
      this.success = success;
-
 
126012
      setSuccessIsSet(true);
-
 
126013
    }
-
 
126014
 
-
 
126015
    public void unsetSuccess() {
-
 
126016
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
126017
    }
-
 
126018
 
-
 
126019
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
126020
    public boolean isSetSuccess() {
-
 
126021
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
126022
    }
-
 
126023
 
-
 
126024
    public void setSuccessIsSet(boolean value) {
-
 
126025
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
126026
    }
-
 
126027
 
-
 
126028
    public void setFieldValue(_Fields field, Object value) {
-
 
126029
      switch (field) {
-
 
126030
      case SUCCESS:
-
 
126031
        if (value == null) {
-
 
126032
          unsetSuccess();
-
 
126033
        } else {
-
 
126034
          setSuccess((Boolean)value);
-
 
126035
        }
-
 
126036
        break;
-
 
126037
 
-
 
126038
      }
-
 
126039
    }
-
 
126040
 
-
 
126041
    public Object getFieldValue(_Fields field) {
-
 
126042
      switch (field) {
-
 
126043
      case SUCCESS:
-
 
126044
        return Boolean.valueOf(isSuccess());
-
 
126045
 
-
 
126046
      }
-
 
126047
      throw new IllegalStateException();
-
 
126048
    }
-
 
126049
 
-
 
126050
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
126051
    public boolean isSet(_Fields field) {
-
 
126052
      if (field == null) {
-
 
126053
        throw new IllegalArgumentException();
-
 
126054
      }
-
 
126055
 
-
 
126056
      switch (field) {
-
 
126057
      case SUCCESS:
-
 
126058
        return isSetSuccess();
-
 
126059
      }
-
 
126060
      throw new IllegalStateException();
-
 
126061
    }
-
 
126062
 
-
 
126063
    @Override
-
 
126064
    public boolean equals(Object that) {
-
 
126065
      if (that == null)
-
 
126066
        return false;
-
 
126067
      if (that instanceof updateAmazonPromotion_result)
-
 
126068
        return this.equals((updateAmazonPromotion_result)that);
-
 
126069
      return false;
-
 
126070
    }
-
 
126071
 
-
 
126072
    public boolean equals(updateAmazonPromotion_result that) {
-
 
126073
      if (that == null)
-
 
126074
        return false;
-
 
126075
 
-
 
126076
      boolean this_present_success = true;
-
 
126077
      boolean that_present_success = true;
-
 
126078
      if (this_present_success || that_present_success) {
-
 
126079
        if (!(this_present_success && that_present_success))
-
 
126080
          return false;
-
 
126081
        if (this.success != that.success)
-
 
126082
          return false;
-
 
126083
      }
-
 
126084
 
-
 
126085
      return true;
-
 
126086
    }
-
 
126087
 
-
 
126088
    @Override
-
 
126089
    public int hashCode() {
-
 
126090
      return 0;
-
 
126091
    }
-
 
126092
 
-
 
126093
    public int compareTo(updateAmazonPromotion_result other) {
-
 
126094
      if (!getClass().equals(other.getClass())) {
-
 
126095
        return getClass().getName().compareTo(other.getClass().getName());
-
 
126096
      }
-
 
126097
 
-
 
126098
      int lastComparison = 0;
-
 
126099
      updateAmazonPromotion_result typedOther = (updateAmazonPromotion_result)other;
-
 
126100
 
-
 
126101
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
126102
      if (lastComparison != 0) {
-
 
126103
        return lastComparison;
-
 
126104
      }
-
 
126105
      if (isSetSuccess()) {
-
 
126106
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
126107
        if (lastComparison != 0) {
-
 
126108
          return lastComparison;
-
 
126109
        }
-
 
126110
      }
-
 
126111
      return 0;
-
 
126112
    }
-
 
126113
 
-
 
126114
    public _Fields fieldForId(int fieldId) {
-
 
126115
      return _Fields.findByThriftId(fieldId);
-
 
126116
    }
-
 
126117
 
-
 
126118
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
126119
      org.apache.thrift.protocol.TField field;
-
 
126120
      iprot.readStructBegin();
-
 
126121
      while (true)
-
 
126122
      {
-
 
126123
        field = iprot.readFieldBegin();
-
 
126124
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
126125
          break;
-
 
126126
        }
-
 
126127
        switch (field.id) {
-
 
126128
          case 0: // SUCCESS
-
 
126129
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
126130
              this.success = iprot.readBool();
-
 
126131
              setSuccessIsSet(true);
-
 
126132
            } else { 
-
 
126133
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
126134
            }
-
 
126135
            break;
-
 
126136
          default:
-
 
126137
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
126138
        }
-
 
126139
        iprot.readFieldEnd();
-
 
126140
      }
-
 
126141
      iprot.readStructEnd();
-
 
126142
      validate();
-
 
126143
    }
-
 
126144
 
-
 
126145
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
126146
      oprot.writeStructBegin(STRUCT_DESC);
-
 
126147
 
-
 
126148
      if (this.isSetSuccess()) {
-
 
126149
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
126150
        oprot.writeBool(this.success);
-
 
126151
        oprot.writeFieldEnd();
-
 
126152
      }
-
 
126153
      oprot.writeFieldStop();
-
 
126154
      oprot.writeStructEnd();
-
 
126155
    }
-
 
126156
 
-
 
126157
    @Override
-
 
126158
    public String toString() {
-
 
126159
      StringBuilder sb = new StringBuilder("updateAmazonPromotion_result(");
-
 
126160
      boolean first = true;
-
 
126161
 
-
 
126162
      sb.append("success:");
-
 
126163
      sb.append(this.success);
-
 
126164
      first = false;
-
 
126165
      sb.append(")");
-
 
126166
      return sb.toString();
-
 
126167
    }
-
 
126168
 
123969
    public void validate() throws org.apache.thrift.TException {
126169
    public void validate() throws org.apache.thrift.TException {
123970
      // check for required fields
126170
      // check for required fields
123971
    }
126171
    }
123972
 
126172
 
123973
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
126173
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {