Subversion Repositories SmartDukaan

Rev

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

Rev 12892 Rev 12947
Line 566... Line 566...
566
 
566
 
567
    public List<CompetitorPricing> getPreviousCompetitorScraping(long delta) throws org.apache.thrift.TException;
567
    public List<CompetitorPricing> getPreviousCompetitorScraping(long delta) throws org.apache.thrift.TException;
568
 
568
 
569
    public List<CompetitorPricing> getUploadResultById(long uploadId) throws org.apache.thrift.TException;
569
    public List<CompetitorPricing> getUploadResultById(long uploadId) throws org.apache.thrift.TException;
570
 
570
 
571
    public boolean addAmazonPromotion(Map<String,AmazonPromotion> amazonPromotions) throws org.apache.thrift.TException;
571
    public List<String> addAmazonPromotion(Map<String,AmazonPromotion> amazonPromotions) throws CatalogServiceException, org.apache.thrift.TException;
572
 
572
 
573
    public List<AmazonPromotion> getAmazonPromotion(long startDate, long endDate) throws org.apache.thrift.TException;
573
    public List<AmazonPromotion> getAmazonPromotion(long startDate, long endDate) throws org.apache.thrift.TException;
574
 
574
 
575
    public boolean updateAmazonPromotion(List<AmazonPromotion> amazonPromotions) throws org.apache.thrift.TException;
575
    public boolean updateAmazonPromotion(List<AmazonPromotion> amazonPromotions) throws org.apache.thrift.TException;
576
 
576
 
Line 5062... Line 5062...
5062
        return result.success;
5062
        return result.success;
5063
      }
5063
      }
5064
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUploadResultById failed: unknown result");
5064
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUploadResultById failed: unknown result");
5065
    }
5065
    }
5066
 
5066
 
5067
    public boolean addAmazonPromotion(Map<String,AmazonPromotion> amazonPromotions) throws org.apache.thrift.TException
5067
    public List<String> addAmazonPromotion(Map<String,AmazonPromotion> amazonPromotions) throws CatalogServiceException, org.apache.thrift.TException
5068
    {
5068
    {
5069
      send_addAmazonPromotion(amazonPromotions);
5069
      send_addAmazonPromotion(amazonPromotions);
5070
      return recv_addAmazonPromotion();
5070
      return recv_addAmazonPromotion();
5071
    }
5071
    }
5072
 
5072
 
Line 5075... Line 5075...
5075
      addAmazonPromotion_args args = new addAmazonPromotion_args();
5075
      addAmazonPromotion_args args = new addAmazonPromotion_args();
5076
      args.setAmazonPromotions(amazonPromotions);
5076
      args.setAmazonPromotions(amazonPromotions);
5077
      sendBase("addAmazonPromotion", args);
5077
      sendBase("addAmazonPromotion", args);
5078
    }
5078
    }
5079
 
5079
 
5080
    public boolean recv_addAmazonPromotion() throws org.apache.thrift.TException
5080
    public List<String> recv_addAmazonPromotion() throws CatalogServiceException, org.apache.thrift.TException
5081
    {
5081
    {
5082
      addAmazonPromotion_result result = new addAmazonPromotion_result();
5082
      addAmazonPromotion_result result = new addAmazonPromotion_result();
5083
      receiveBase(result, "addAmazonPromotion");
5083
      receiveBase(result, "addAmazonPromotion");
5084
      if (result.isSetSuccess()) {
5084
      if (result.isSetSuccess()) {
5085
        return result.success;
5085
        return result.success;
5086
      }
5086
      }
-
 
5087
      if (result.cex != null) {
-
 
5088
        throw result.cex;
-
 
5089
      }
5087
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addAmazonPromotion failed: unknown result");
5090
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addAmazonPromotion failed: unknown result");
5088
    }
5091
    }
5089
 
5092
 
5090
    public List<AmazonPromotion> getAmazonPromotion(long startDate, long endDate) throws org.apache.thrift.TException
5093
    public List<AmazonPromotion> getAmazonPromotion(long startDate, long endDate) throws org.apache.thrift.TException
5091
    {
5094
    {
Line 10972... Line 10975...
10972
        args.setAmazonPromotions(amazonPromotions);
10975
        args.setAmazonPromotions(amazonPromotions);
10973
        args.write(prot);
10976
        args.write(prot);
10974
        prot.writeMessageEnd();
10977
        prot.writeMessageEnd();
10975
      }
10978
      }
10976
 
10979
 
10977
      public boolean getResult() throws org.apache.thrift.TException {
10980
      public List<String> getResult() throws CatalogServiceException, org.apache.thrift.TException {
10978
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
10981
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
10979
          throw new IllegalStateException("Method call not finished!");
10982
          throw new IllegalStateException("Method call not finished!");
10980
        }
10983
        }
10981
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
10984
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
10982
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10985
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
Line 14414... Line 14417...
14414
        return new addAmazonPromotion_args();
14417
        return new addAmazonPromotion_args();
14415
      }
14418
      }
14416
 
14419
 
14417
      protected addAmazonPromotion_result getResult(I iface, addAmazonPromotion_args args) throws org.apache.thrift.TException {
14420
      protected addAmazonPromotion_result getResult(I iface, addAmazonPromotion_args args) throws org.apache.thrift.TException {
14418
        addAmazonPromotion_result result = new addAmazonPromotion_result();
14421
        addAmazonPromotion_result result = new addAmazonPromotion_result();
-
 
14422
        try {
14419
        result.success = iface.addAmazonPromotion(args.amazonPromotions);
14423
          result.success = iface.addAmazonPromotion(args.amazonPromotions);
-
 
14424
        } catch (CatalogServiceException cex) {
14420
        result.setSuccessIsSet(true);
14425
          result.cex = cex;
-
 
14426
        }
14421
        return result;
14427
        return result;
14422
      }
14428
      }
14423
    }
14429
    }
14424
 
14430
 
14425
    private static class getAmazonPromotion<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonPromotion_args> {
14431
    private static class getAmazonPromotion<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonPromotion_args> {
Line 125833... Line 125839...
125833
  }
125839
  }
125834
 
125840
 
125835
  public static class addAmazonPromotion_result implements org.apache.thrift.TBase<addAmazonPromotion_result, addAmazonPromotion_result._Fields>, java.io.Serializable, Cloneable   {
125841
  public static class addAmazonPromotion_result implements org.apache.thrift.TBase<addAmazonPromotion_result, addAmazonPromotion_result._Fields>, java.io.Serializable, Cloneable   {
125836
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAmazonPromotion_result");
125842
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAmazonPromotion_result");
125837
 
125843
 
125838
    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);
125844
    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);
-
 
125845
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
125839
 
125846
 
125840
    private boolean success; // required
125847
    private List<String> success; // required
-
 
125848
    private CatalogServiceException cex; // required
125841
 
125849
 
125842
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
125850
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
125843
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
125851
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
125844
      SUCCESS((short)0, "success");
125852
      SUCCESS((short)0, "success"),
-
 
125853
      CEX((short)1, "cex");
125845
 
125854
 
125846
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
125855
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
125847
 
125856
 
125848
      static {
125857
      static {
125849
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
125858
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 125856... Line 125865...
125856
       */
125865
       */
125857
      public static _Fields findByThriftId(int fieldId) {
125866
      public static _Fields findByThriftId(int fieldId) {
125858
        switch(fieldId) {
125867
        switch(fieldId) {
125859
          case 0: // SUCCESS
125868
          case 0: // SUCCESS
125860
            return SUCCESS;
125869
            return SUCCESS;
-
 
125870
          case 1: // CEX
-
 
125871
            return CEX;
125861
          default:
125872
          default:
125862
            return null;
125873
            return null;
125863
        }
125874
        }
125864
      }
125875
      }
125865
 
125876
 
Line 125896... Line 125907...
125896
        return _fieldName;
125907
        return _fieldName;
125897
      }
125908
      }
125898
    }
125909
    }
125899
 
125910
 
125900
    // isset id assignments
125911
    // isset id assignments
125901
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
125902
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
125903
 
125912
 
125904
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
125913
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
125905
    static {
125914
    static {
125906
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
125915
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
125907
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
125916
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
125917
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
125918
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
125919
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
125908
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
125920
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
125909
      metaDataMap = Collections.unmodifiableMap(tmpMap);
125921
      metaDataMap = Collections.unmodifiableMap(tmpMap);
125910
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAmazonPromotion_result.class, metaDataMap);
125922
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAmazonPromotion_result.class, metaDataMap);
125911
    }
125923
    }
125912
 
125924
 
125913
    public addAmazonPromotion_result() {
125925
    public addAmazonPromotion_result() {
125914
    }
125926
    }
125915
 
125927
 
125916
    public addAmazonPromotion_result(
125928
    public addAmazonPromotion_result(
125917
      boolean success)
125929
      List<String> success,
-
 
125930
      CatalogServiceException cex)
125918
    {
125931
    {
125919
      this();
125932
      this();
125920
      this.success = success;
125933
      this.success = success;
125921
      setSuccessIsSet(true);
125934
      this.cex = cex;
125922
    }
125935
    }
125923
 
125936
 
125924
    /**
125937
    /**
125925
     * Performs a deep copy on <i>other</i>.
125938
     * Performs a deep copy on <i>other</i>.
125926
     */
125939
     */
125927
    public addAmazonPromotion_result(addAmazonPromotion_result other) {
125940
    public addAmazonPromotion_result(addAmazonPromotion_result other) {
125928
      __isset_bit_vector.clear();
125941
      if (other.isSetSuccess()) {
-
 
125942
        List<String> __this__success = new ArrayList<String>();
-
 
125943
        for (String other_element : other.success) {
125929
      __isset_bit_vector.or(other.__isset_bit_vector);
125944
          __this__success.add(other_element);
-
 
125945
        }
125930
      this.success = other.success;
125946
        this.success = __this__success;
-
 
125947
      }
-
 
125948
      if (other.isSetCex()) {
-
 
125949
        this.cex = new CatalogServiceException(other.cex);
-
 
125950
      }
125931
    }
125951
    }
125932
 
125952
 
125933
    public addAmazonPromotion_result deepCopy() {
125953
    public addAmazonPromotion_result deepCopy() {
125934
      return new addAmazonPromotion_result(this);
125954
      return new addAmazonPromotion_result(this);
125935
    }
125955
    }
125936
 
125956
 
125937
    @Override
125957
    @Override
125938
    public void clear() {
125958
    public void clear() {
125939
      setSuccessIsSet(false);
125959
      this.success = null;
125940
      this.success = false;
125960
      this.cex = null;
125941
    }
125961
    }
125942
 
125962
 
-
 
125963
    public int getSuccessSize() {
-
 
125964
      return (this.success == null) ? 0 : this.success.size();
-
 
125965
    }
-
 
125966
 
-
 
125967
    public java.util.Iterator<String> getSuccessIterator() {
-
 
125968
      return (this.success == null) ? null : this.success.iterator();
-
 
125969
    }
-
 
125970
 
-
 
125971
    public void addToSuccess(String elem) {
-
 
125972
      if (this.success == null) {
-
 
125973
        this.success = new ArrayList<String>();
-
 
125974
      }
-
 
125975
      this.success.add(elem);
-
 
125976
    }
-
 
125977
 
125943
    public boolean isSuccess() {
125978
    public List<String> getSuccess() {
125944
      return this.success;
125979
      return this.success;
125945
    }
125980
    }
125946
 
125981
 
125947
    public void setSuccess(boolean success) {
125982
    public void setSuccess(List<String> success) {
125948
      this.success = success;
125983
      this.success = success;
125949
      setSuccessIsSet(true);
-
 
125950
    }
125984
    }
125951
 
125985
 
125952
    public void unsetSuccess() {
125986
    public void unsetSuccess() {
125953
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
125987
      this.success = null;
125954
    }
125988
    }
125955
 
125989
 
125956
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
125990
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
125957
    public boolean isSetSuccess() {
125991
    public boolean isSetSuccess() {
125958
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
125992
      return this.success != null;
125959
    }
125993
    }
125960
 
125994
 
125961
    public void setSuccessIsSet(boolean value) {
125995
    public void setSuccessIsSet(boolean value) {
-
 
125996
      if (!value) {
-
 
125997
        this.success = null;
-
 
125998
      }
-
 
125999
    }
-
 
126000
 
-
 
126001
    public CatalogServiceException getCex() {
-
 
126002
      return this.cex;
-
 
126003
    }
-
 
126004
 
-
 
126005
    public void setCex(CatalogServiceException cex) {
-
 
126006
      this.cex = cex;
-
 
126007
    }
-
 
126008
 
-
 
126009
    public void unsetCex() {
-
 
126010
      this.cex = null;
-
 
126011
    }
-
 
126012
 
-
 
126013
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
126014
    public boolean isSetCex() {
-
 
126015
      return this.cex != null;
-
 
126016
    }
-
 
126017
 
125962
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
126018
    public void setCexIsSet(boolean value) {
-
 
126019
      if (!value) {
-
 
126020
        this.cex = null;
-
 
126021
      }
125963
    }
126022
    }
125964
 
126023
 
125965
    public void setFieldValue(_Fields field, Object value) {
126024
    public void setFieldValue(_Fields field, Object value) {
125966
      switch (field) {
126025
      switch (field) {
125967
      case SUCCESS:
126026
      case SUCCESS:
125968
        if (value == null) {
126027
        if (value == null) {
125969
          unsetSuccess();
126028
          unsetSuccess();
125970
        } else {
126029
        } else {
125971
          setSuccess((Boolean)value);
126030
          setSuccess((List<String>)value);
-
 
126031
        }
-
 
126032
        break;
-
 
126033
 
-
 
126034
      case CEX:
-
 
126035
        if (value == null) {
-
 
126036
          unsetCex();
-
 
126037
        } else {
-
 
126038
          setCex((CatalogServiceException)value);
125972
        }
126039
        }
125973
        break;
126040
        break;
125974
 
126041
 
125975
      }
126042
      }
125976
    }
126043
    }
125977
 
126044
 
125978
    public Object getFieldValue(_Fields field) {
126045
    public Object getFieldValue(_Fields field) {
125979
      switch (field) {
126046
      switch (field) {
125980
      case SUCCESS:
126047
      case SUCCESS:
125981
        return Boolean.valueOf(isSuccess());
126048
        return getSuccess();
-
 
126049
 
-
 
126050
      case CEX:
-
 
126051
        return getCex();
125982
 
126052
 
125983
      }
126053
      }
125984
      throw new IllegalStateException();
126054
      throw new IllegalStateException();
125985
    }
126055
    }
125986
 
126056
 
Line 125991... Line 126061...
125991
      }
126061
      }
125992
 
126062
 
125993
      switch (field) {
126063
      switch (field) {
125994
      case SUCCESS:
126064
      case SUCCESS:
125995
        return isSetSuccess();
126065
        return isSetSuccess();
-
 
126066
      case CEX:
-
 
126067
        return isSetCex();
125996
      }
126068
      }
125997
      throw new IllegalStateException();
126069
      throw new IllegalStateException();
125998
    }
126070
    }
125999
 
126071
 
126000
    @Override
126072
    @Override
Line 126008... Line 126080...
126008
 
126080
 
126009
    public boolean equals(addAmazonPromotion_result that) {
126081
    public boolean equals(addAmazonPromotion_result that) {
126010
      if (that == null)
126082
      if (that == null)
126011
        return false;
126083
        return false;
126012
 
126084
 
126013
      boolean this_present_success = true;
126085
      boolean this_present_success = true && this.isSetSuccess();
126014
      boolean that_present_success = true;
126086
      boolean that_present_success = true && that.isSetSuccess();
126015
      if (this_present_success || that_present_success) {
126087
      if (this_present_success || that_present_success) {
126016
        if (!(this_present_success && that_present_success))
126088
        if (!(this_present_success && that_present_success))
126017
          return false;
126089
          return false;
126018
        if (this.success != that.success)
126090
        if (!this.success.equals(that.success))
-
 
126091
          return false;
-
 
126092
      }
-
 
126093
 
-
 
126094
      boolean this_present_cex = true && this.isSetCex();
-
 
126095
      boolean that_present_cex = true && that.isSetCex();
-
 
126096
      if (this_present_cex || that_present_cex) {
-
 
126097
        if (!(this_present_cex && that_present_cex))
-
 
126098
          return false;
-
 
126099
        if (!this.cex.equals(that.cex))
126019
          return false;
126100
          return false;
126020
      }
126101
      }
126021
 
126102
 
126022
      return true;
126103
      return true;
126023
    }
126104
    }
Line 126043... Line 126124...
126043
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
126124
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
126044
        if (lastComparison != 0) {
126125
        if (lastComparison != 0) {
126045
          return lastComparison;
126126
          return lastComparison;
126046
        }
126127
        }
126047
      }
126128
      }
-
 
126129
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
126130
      if (lastComparison != 0) {
-
 
126131
        return lastComparison;
-
 
126132
      }
-
 
126133
      if (isSetCex()) {
-
 
126134
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
126135
        if (lastComparison != 0) {
-
 
126136
          return lastComparison;
-
 
126137
        }
-
 
126138
      }
126048
      return 0;
126139
      return 0;
126049
    }
126140
    }
126050
 
126141
 
126051
    public _Fields fieldForId(int fieldId) {
126142
    public _Fields fieldForId(int fieldId) {
126052
      return _Fields.findByThriftId(fieldId);
126143
      return _Fields.findByThriftId(fieldId);
Line 126061... Line 126152...
126061
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
126152
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
126062
          break;
126153
          break;
126063
        }
126154
        }
126064
        switch (field.id) {
126155
        switch (field.id) {
126065
          case 0: // SUCCESS
126156
          case 0: // SUCCESS
126066
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
126157
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
126158
              {
-
 
126159
                org.apache.thrift.protocol.TList _list421 = iprot.readListBegin();
-
 
126160
                this.success = new ArrayList<String>(_list421.size);
-
 
126161
                for (int _i422 = 0; _i422 < _list421.size; ++_i422)
-
 
126162
                {
-
 
126163
                  String _elem423; // required
126067
              this.success = iprot.readBool();
126164
                  _elem423 = iprot.readString();
-
 
126165
                  this.success.add(_elem423);
-
 
126166
                }
-
 
126167
                iprot.readListEnd();
-
 
126168
              }
-
 
126169
            } else { 
-
 
126170
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
126171
            }
-
 
126172
            break;
-
 
126173
          case 1: // CEX
-
 
126174
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
126175
              this.cex = new CatalogServiceException();
126068
              setSuccessIsSet(true);
126176
              this.cex.read(iprot);
126069
            } else { 
126177
            } else { 
126070
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
126178
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
126071
            }
126179
            }
126072
            break;
126180
            break;
126073
          default:
126181
          default:
Line 126082... Line 126190...
126082
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
126190
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
126083
      oprot.writeStructBegin(STRUCT_DESC);
126191
      oprot.writeStructBegin(STRUCT_DESC);
126084
 
126192
 
126085
      if (this.isSetSuccess()) {
126193
      if (this.isSetSuccess()) {
126086
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
126194
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
126195
        {
-
 
126196
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
-
 
126197
          for (String _iter424 : this.success)
-
 
126198
          {
-
 
126199
            oprot.writeString(_iter424);
-
 
126200
          }
-
 
126201
          oprot.writeListEnd();
-
 
126202
        }
126087
        oprot.writeBool(this.success);
126203
        oprot.writeFieldEnd();
-
 
126204
      } else if (this.isSetCex()) {
-
 
126205
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
126206
        this.cex.write(oprot);
126088
        oprot.writeFieldEnd();
126207
        oprot.writeFieldEnd();
126089
      }
126208
      }
126090
      oprot.writeFieldStop();
126209
      oprot.writeFieldStop();
126091
      oprot.writeStructEnd();
126210
      oprot.writeStructEnd();
126092
    }
126211
    }
Line 126095... Line 126214...
126095
    public String toString() {
126214
    public String toString() {
126096
      StringBuilder sb = new StringBuilder("addAmazonPromotion_result(");
126215
      StringBuilder sb = new StringBuilder("addAmazonPromotion_result(");
126097
      boolean first = true;
126216
      boolean first = true;
126098
 
126217
 
126099
      sb.append("success:");
126218
      sb.append("success:");
-
 
126219
      if (this.success == null) {
-
 
126220
        sb.append("null");
-
 
126221
      } else {
126100
      sb.append(this.success);
126222
        sb.append(this.success);
-
 
126223
      }
-
 
126224
      first = false;
-
 
126225
      if (!first) sb.append(", ");
-
 
126226
      sb.append("cex:");
-
 
126227
      if (this.cex == null) {
-
 
126228
        sb.append("null");
-
 
126229
      } else {
-
 
126230
        sb.append(this.cex);
-
 
126231
      }
126101
      first = false;
126232
      first = false;
126102
      sb.append(")");
126233
      sb.append(")");
126103
      return sb.toString();
126234
      return sb.toString();
126104
    }
126235
    }
126105
 
126236
 
Line 126750... Line 126881...
126750
        }
126881
        }
126751
        switch (field.id) {
126882
        switch (field.id) {
126752
          case 0: // SUCCESS
126883
          case 0: // SUCCESS
126753
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
126884
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
126754
              {
126885
              {
126755
                org.apache.thrift.protocol.TList _list421 = iprot.readListBegin();
126886
                org.apache.thrift.protocol.TList _list425 = iprot.readListBegin();
126756
                this.success = new ArrayList<AmazonPromotion>(_list421.size);
126887
                this.success = new ArrayList<AmazonPromotion>(_list425.size);
126757
                for (int _i422 = 0; _i422 < _list421.size; ++_i422)
126888
                for (int _i426 = 0; _i426 < _list425.size; ++_i426)
126758
                {
126889
                {
126759
                  AmazonPromotion _elem423; // required
126890
                  AmazonPromotion _elem427; // required
126760
                  _elem423 = new AmazonPromotion();
126891
                  _elem427 = new AmazonPromotion();
126761
                  _elem423.read(iprot);
126892
                  _elem427.read(iprot);
126762
                  this.success.add(_elem423);
126893
                  this.success.add(_elem427);
126763
                }
126894
                }
126764
                iprot.readListEnd();
126895
                iprot.readListEnd();
126765
              }
126896
              }
126766
            } else { 
126897
            } else { 
126767
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
126898
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 126781... Line 126912...
126781
 
126912
 
126782
      if (this.isSetSuccess()) {
126913
      if (this.isSetSuccess()) {
126783
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
126914
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
126784
        {
126915
        {
126785
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
126916
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
126786
          for (AmazonPromotion _iter424 : this.success)
126917
          for (AmazonPromotion _iter428 : this.success)
126787
          {
126918
          {
126788
            _iter424.write(oprot);
126919
            _iter428.write(oprot);
126789
          }
126920
          }
126790
          oprot.writeListEnd();
126921
          oprot.writeListEnd();
126791
        }
126922
        }
126792
        oprot.writeFieldEnd();
126923
        oprot.writeFieldEnd();
126793
      }
126924
      }
Line 127081... Line 127212...
127081
        }
127212
        }
127082
        switch (field.id) {
127213
        switch (field.id) {
127083
          case 1: // AMAZON_PROMOTIONS
127214
          case 1: // AMAZON_PROMOTIONS
127084
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
127215
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
127085
              {
127216
              {
127086
                org.apache.thrift.protocol.TList _list425 = iprot.readListBegin();
127217
                org.apache.thrift.protocol.TList _list429 = iprot.readListBegin();
127087
                this.amazonPromotions = new ArrayList<AmazonPromotion>(_list425.size);
127218
                this.amazonPromotions = new ArrayList<AmazonPromotion>(_list429.size);
127088
                for (int _i426 = 0; _i426 < _list425.size; ++_i426)
127219
                for (int _i430 = 0; _i430 < _list429.size; ++_i430)
127089
                {
127220
                {
127090
                  AmazonPromotion _elem427; // required
127221
                  AmazonPromotion _elem431; // required
127091
                  _elem427 = new AmazonPromotion();
127222
                  _elem431 = new AmazonPromotion();
127092
                  _elem427.read(iprot);
127223
                  _elem431.read(iprot);
127093
                  this.amazonPromotions.add(_elem427);
127224
                  this.amazonPromotions.add(_elem431);
127094
                }
127225
                }
127095
                iprot.readListEnd();
127226
                iprot.readListEnd();
127096
              }
127227
              }
127097
            } else { 
127228
            } else { 
127098
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
127229
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 127113... Line 127244...
127113
      oprot.writeStructBegin(STRUCT_DESC);
127244
      oprot.writeStructBegin(STRUCT_DESC);
127114
      if (this.amazonPromotions != null) {
127245
      if (this.amazonPromotions != null) {
127115
        oprot.writeFieldBegin(AMAZON_PROMOTIONS_FIELD_DESC);
127246
        oprot.writeFieldBegin(AMAZON_PROMOTIONS_FIELD_DESC);
127116
        {
127247
        {
127117
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.amazonPromotions.size()));
127248
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.amazonPromotions.size()));
127118
          for (AmazonPromotion _iter428 : this.amazonPromotions)
127249
          for (AmazonPromotion _iter432 : this.amazonPromotions)
127119
          {
127250
          {
127120
            _iter428.write(oprot);
127251
            _iter432.write(oprot);
127121
          }
127252
          }
127122
          oprot.writeListEnd();
127253
          oprot.writeListEnd();
127123
        }
127254
        }
127124
        oprot.writeFieldEnd();
127255
        oprot.writeFieldEnd();
127125
      }
127256
      }
Line 128460... Line 128591...
128460
            }
128591
            }
128461
            break;
128592
            break;
128462
          case 2: // STATEVAT
128593
          case 2: // STATEVAT
128463
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
128594
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
128464
              {
128595
              {
128465
                org.apache.thrift.protocol.TMap _map429 = iprot.readMapBegin();
128596
                org.apache.thrift.protocol.TMap _map433 = iprot.readMapBegin();
128466
                this.statevat = new HashMap<Long,Double>(2*_map429.size);
128597
                this.statevat = new HashMap<Long,Double>(2*_map433.size);
128467
                for (int _i430 = 0; _i430 < _map429.size; ++_i430)
128598
                for (int _i434 = 0; _i434 < _map433.size; ++_i434)
128468
                {
128599
                {
128469
                  long _key431; // required
128600
                  long _key435; // required
128470
                  double _val432; // required
128601
                  double _val436; // required
128471
                  _key431 = iprot.readI64();
128602
                  _key435 = iprot.readI64();
128472
                  _val432 = iprot.readDouble();
128603
                  _val436 = iprot.readDouble();
128473
                  this.statevat.put(_key431, _val432);
128604
                  this.statevat.put(_key435, _val436);
128474
                }
128605
                }
128475
                iprot.readMapEnd();
128606
                iprot.readMapEnd();
128476
              }
128607
              }
128477
            } else { 
128608
            } else { 
128478
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
128609
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 128496... Line 128627...
128496
      oprot.writeFieldEnd();
128627
      oprot.writeFieldEnd();
128497
      if (this.statevat != null) {
128628
      if (this.statevat != null) {
128498
        oprot.writeFieldBegin(STATEVAT_FIELD_DESC);
128629
        oprot.writeFieldBegin(STATEVAT_FIELD_DESC);
128499
        {
128630
        {
128500
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.statevat.size()));
128631
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.statevat.size()));
128501
          for (Map.Entry<Long, Double> _iter433 : this.statevat.entrySet())
128632
          for (Map.Entry<Long, Double> _iter437 : this.statevat.entrySet())
128502
          {
128633
          {
128503
            oprot.writeI64(_iter433.getKey());
128634
            oprot.writeI64(_iter437.getKey());
128504
            oprot.writeDouble(_iter433.getValue());
128635
            oprot.writeDouble(_iter437.getValue());
128505
          }
128636
          }
128506
          oprot.writeMapEnd();
128637
          oprot.writeMapEnd();
128507
        }
128638
        }
128508
        oprot.writeFieldEnd();
128639
        oprot.writeFieldEnd();
128509
      }
128640
      }
Line 129301... Line 129432...
129301
        }
129432
        }
129302
        switch (field.id) {
129433
        switch (field.id) {
129303
          case 0: // SUCCESS
129434
          case 0: // SUCCESS
129304
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
129435
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
129305
              {
129436
              {
129306
                org.apache.thrift.protocol.TMap _map434 = iprot.readMapBegin();
129437
                org.apache.thrift.protocol.TMap _map438 = iprot.readMapBegin();
129307
                this.success = new HashMap<Long,ExclusiveAffiliateItemInfo>(2*_map434.size);
129438
                this.success = new HashMap<Long,ExclusiveAffiliateItemInfo>(2*_map438.size);
129308
                for (int _i435 = 0; _i435 < _map434.size; ++_i435)
129439
                for (int _i439 = 0; _i439 < _map438.size; ++_i439)
129309
                {
129440
                {
129310
                  long _key436; // required
129441
                  long _key440; // required
129311
                  ExclusiveAffiliateItemInfo _val437; // required
129442
                  ExclusiveAffiliateItemInfo _val441; // required
129312
                  _key436 = iprot.readI64();
129443
                  _key440 = iprot.readI64();
129313
                  _val437 = new ExclusiveAffiliateItemInfo();
129444
                  _val441 = new ExclusiveAffiliateItemInfo();
129314
                  _val437.read(iprot);
129445
                  _val441.read(iprot);
129315
                  this.success.put(_key436, _val437);
129446
                  this.success.put(_key440, _val441);
129316
                }
129447
                }
129317
                iprot.readMapEnd();
129448
                iprot.readMapEnd();
129318
              }
129449
              }
129319
            } else { 
129450
            } else { 
129320
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
129451
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 129334... Line 129465...
129334
 
129465
 
129335
      if (this.isSetSuccess()) {
129466
      if (this.isSetSuccess()) {
129336
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
129467
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
129337
        {
129468
        {
129338
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
129469
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
129339
          for (Map.Entry<Long, ExclusiveAffiliateItemInfo> _iter438 : this.success.entrySet())
129470
          for (Map.Entry<Long, ExclusiveAffiliateItemInfo> _iter442 : this.success.entrySet())
129340
          {
129471
          {
129341
            oprot.writeI64(_iter438.getKey());
129472
            oprot.writeI64(_iter442.getKey());
129342
            _iter438.getValue().write(oprot);
129473
            _iter442.getValue().write(oprot);
129343
          }
129474
          }
129344
          oprot.writeMapEnd();
129475
          oprot.writeMapEnd();
129345
        }
129476
        }
129346
        oprot.writeFieldEnd();
129477
        oprot.writeFieldEnd();
129347
      }
129478
      }
Line 129835... Line 129966...
129835
        }
129966
        }
129836
        switch (field.id) {
129967
        switch (field.id) {
129837
          case 0: // SUCCESS
129968
          case 0: // SUCCESS
129838
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
129969
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
129839
              {
129970
              {
129840
                org.apache.thrift.protocol.TList _list439 = iprot.readListBegin();
129971
                org.apache.thrift.protocol.TList _list443 = iprot.readListBegin();
129841
                this.success = new ArrayList<Amazonlisted>(_list439.size);
129972
                this.success = new ArrayList<Amazonlisted>(_list443.size);
129842
                for (int _i440 = 0; _i440 < _list439.size; ++_i440)
129973
                for (int _i444 = 0; _i444 < _list443.size; ++_i444)
129843
                {
129974
                {
129844
                  Amazonlisted _elem441; // required
129975
                  Amazonlisted _elem445; // required
129845
                  _elem441 = new Amazonlisted();
129976
                  _elem445 = new Amazonlisted();
129846
                  _elem441.read(iprot);
129977
                  _elem445.read(iprot);
129847
                  this.success.add(_elem441);
129978
                  this.success.add(_elem445);
129848
                }
129979
                }
129849
                iprot.readListEnd();
129980
                iprot.readListEnd();
129850
              }
129981
              }
129851
            } else { 
129982
            } else { 
129852
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
129983
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 129866... Line 129997...
129866
 
129997
 
129867
      if (this.isSetSuccess()) {
129998
      if (this.isSetSuccess()) {
129868
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
129999
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
129869
        {
130000
        {
129870
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
130001
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
129871
          for (Amazonlisted _iter442 : this.success)
130002
          for (Amazonlisted _iter446 : this.success)
129872
          {
130003
          {
129873
            _iter442.write(oprot);
130004
            _iter446.write(oprot);
129874
          }
130005
          }
129875
          oprot.writeListEnd();
130006
          oprot.writeListEnd();
129876
        }
130007
        }
129877
        oprot.writeFieldEnd();
130008
        oprot.writeFieldEnd();
129878
      }
130009
      }
Line 130366... Line 130497...
130366
        }
130497
        }
130367
        switch (field.id) {
130498
        switch (field.id) {
130368
          case 0: // SUCCESS
130499
          case 0: // SUCCESS
130369
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
130500
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
130370
              {
130501
              {
130371
                org.apache.thrift.protocol.TList _list443 = iprot.readListBegin();
130502
                org.apache.thrift.protocol.TList _list447 = iprot.readListBegin();
130372
                this.success = new ArrayList<Amazonlisted>(_list443.size);
130503
                this.success = new ArrayList<Amazonlisted>(_list447.size);
130373
                for (int _i444 = 0; _i444 < _list443.size; ++_i444)
130504
                for (int _i448 = 0; _i448 < _list447.size; ++_i448)
130374
                {
130505
                {
130375
                  Amazonlisted _elem445; // required
130506
                  Amazonlisted _elem449; // required
130376
                  _elem445 = new Amazonlisted();
130507
                  _elem449 = new Amazonlisted();
130377
                  _elem445.read(iprot);
130508
                  _elem449.read(iprot);
130378
                  this.success.add(_elem445);
130509
                  this.success.add(_elem449);
130379
                }
130510
                }
130380
                iprot.readListEnd();
130511
                iprot.readListEnd();
130381
              }
130512
              }
130382
            } else { 
130513
            } else { 
130383
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
130514
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 130397... Line 130528...
130397
 
130528
 
130398
      if (this.isSetSuccess()) {
130529
      if (this.isSetSuccess()) {
130399
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
130530
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
130400
        {
130531
        {
130401
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
130532
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
130402
          for (Amazonlisted _iter446 : this.success)
130533
          for (Amazonlisted _iter450 : this.success)
130403
          {
130534
          {
130404
            _iter446.write(oprot);
130535
            _iter450.write(oprot);
130405
          }
130536
          }
130406
          oprot.writeListEnd();
130537
          oprot.writeListEnd();
130407
        }
130538
        }
130408
        oprot.writeFieldEnd();
130539
        oprot.writeFieldEnd();
130409
      }
130540
      }