Subversion Repositories SmartDukaan

Rev

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

Rev 21090 Rev 21092
Line 1272... Line 1272...
1272
 
1272
 
1273
    public List<Pmsa> getPendingAssociates(String associateEmail) throws org.apache.thrift.TException;
1273
    public List<Pmsa> getPendingAssociates(String associateEmail) throws org.apache.thrift.TException;
1274
 
1274
 
1275
    public List<Long> getStatsForAssociates(String associateEmail) throws org.apache.thrift.TException;
1275
    public List<Long> getStatsForAssociates(String associateEmail) throws org.apache.thrift.TException;
1276
 
1276
 
-
 
1277
    public Pmsa getmypmsaprofile(String associateEmail) throws org.apache.thrift.TException;
-
 
1278
 
1277
  }
1279
  }
1278
 
1280
 
1279
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1281
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1280
 
1282
 
1281
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1283
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1912... Line 1914...
1912
 
1914
 
1913
    public void getPendingAssociates(String associateEmail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPendingAssociates_call> resultHandler) throws org.apache.thrift.TException;
1915
    public void getPendingAssociates(String associateEmail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPendingAssociates_call> resultHandler) throws org.apache.thrift.TException;
1914
 
1916
 
1915
    public void getStatsForAssociates(String associateEmail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStatsForAssociates_call> resultHandler) throws org.apache.thrift.TException;
1917
    public void getStatsForAssociates(String associateEmail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStatsForAssociates_call> resultHandler) throws org.apache.thrift.TException;
1916
 
1918
 
-
 
1919
    public void getmypmsaprofile(String associateEmail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getmypmsaprofile_call> resultHandler) throws org.apache.thrift.TException;
-
 
1920
 
1917
  }
1921
  }
1918
 
1922
 
1919
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1923
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1920
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1924
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1921
      public Factory() {}
1925
      public Factory() {}
Line 9793... Line 9797...
9793
        return result.success;
9797
        return result.success;
9794
      }
9798
      }
9795
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStatsForAssociates failed: unknown result");
9799
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStatsForAssociates failed: unknown result");
9796
    }
9800
    }
9797
 
9801
 
-
 
9802
    public Pmsa getmypmsaprofile(String associateEmail) throws org.apache.thrift.TException
-
 
9803
    {
-
 
9804
      send_getmypmsaprofile(associateEmail);
-
 
9805
      return recv_getmypmsaprofile();
-
 
9806
    }
-
 
9807
 
-
 
9808
    public void send_getmypmsaprofile(String associateEmail) throws org.apache.thrift.TException
-
 
9809
    {
-
 
9810
      getmypmsaprofile_args args = new getmypmsaprofile_args();
-
 
9811
      args.setAssociateEmail(associateEmail);
-
 
9812
      sendBase("getmypmsaprofile", args);
-
 
9813
    }
-
 
9814
 
-
 
9815
    public Pmsa recv_getmypmsaprofile() throws org.apache.thrift.TException
-
 
9816
    {
-
 
9817
      getmypmsaprofile_result result = new getmypmsaprofile_result();
-
 
9818
      receiveBase(result, "getmypmsaprofile");
-
 
9819
      if (result.isSetSuccess()) {
-
 
9820
        return result.success;
-
 
9821
      }
-
 
9822
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getmypmsaprofile failed: unknown result");
-
 
9823
    }
-
 
9824
 
9798
  }
9825
  }
9799
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9826
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9800
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9827
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9801
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9828
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9802
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
9829
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 20884... Line 20911...
20884
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
20911
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
20885
        return (new Client(prot)).recv_getStatsForAssociates();
20912
        return (new Client(prot)).recv_getStatsForAssociates();
20886
      }
20913
      }
20887
    }
20914
    }
20888
 
20915
 
-
 
20916
    public void getmypmsaprofile(String associateEmail, org.apache.thrift.async.AsyncMethodCallback<getmypmsaprofile_call> resultHandler) throws org.apache.thrift.TException {
-
 
20917
      checkReady();
-
 
20918
      getmypmsaprofile_call method_call = new getmypmsaprofile_call(associateEmail, resultHandler, this, ___protocolFactory, ___transport);
-
 
20919
      this.___currentMethod = method_call;
-
 
20920
      ___manager.call(method_call);
-
 
20921
    }
-
 
20922
 
-
 
20923
    public static class getmypmsaprofile_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
20924
      private String associateEmail;
-
 
20925
      public getmypmsaprofile_call(String associateEmail, org.apache.thrift.async.AsyncMethodCallback<getmypmsaprofile_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 {
-
 
20926
        super(client, protocolFactory, transport, resultHandler, false);
-
 
20927
        this.associateEmail = associateEmail;
-
 
20928
      }
-
 
20929
 
-
 
20930
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
20931
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getmypmsaprofile", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
20932
        getmypmsaprofile_args args = new getmypmsaprofile_args();
-
 
20933
        args.setAssociateEmail(associateEmail);
-
 
20934
        args.write(prot);
-
 
20935
        prot.writeMessageEnd();
-
 
20936
      }
-
 
20937
 
-
 
20938
      public Pmsa getResult() throws org.apache.thrift.TException {
-
 
20939
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
20940
          throw new IllegalStateException("Method call not finished!");
-
 
20941
        }
-
 
20942
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
20943
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
20944
        return (new Client(prot)).recv_getmypmsaprofile();
-
 
20945
      }
-
 
20946
    }
-
 
20947
 
20889
  }
20948
  }
20890
 
20949
 
20891
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
20950
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
20892
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
20951
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
20893
    public Processor(I iface) {
20952
    public Processor(I iface) {
Line 21215... Line 21274...
21215
      processMap.put("getPmsaUser", new getPmsaUser());
21274
      processMap.put("getPmsaUser", new getPmsaUser());
21216
      processMap.put("updatePmsaUser", new updatePmsaUser());
21275
      processMap.put("updatePmsaUser", new updatePmsaUser());
21217
      processMap.put("getPmsaUsers", new getPmsaUsers());
21276
      processMap.put("getPmsaUsers", new getPmsaUsers());
21218
      processMap.put("getPendingAssociates", new getPendingAssociates());
21277
      processMap.put("getPendingAssociates", new getPendingAssociates());
21219
      processMap.put("getStatsForAssociates", new getStatsForAssociates());
21278
      processMap.put("getStatsForAssociates", new getStatsForAssociates());
-
 
21279
      processMap.put("getmypmsaprofile", new getmypmsaprofile());
21220
      return processMap;
21280
      return processMap;
21221
    }
21281
    }
21222
 
21282
 
21223
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
21283
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
21224
      public createTransaction() {
21284
      public createTransaction() {
Line 26945... Line 27005...
26945
        result.success = iface.getStatsForAssociates(args.associateEmail);
27005
        result.success = iface.getStatsForAssociates(args.associateEmail);
26946
        return result;
27006
        return result;
26947
      }
27007
      }
26948
    }
27008
    }
26949
 
27009
 
-
 
27010
    private static class getmypmsaprofile<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getmypmsaprofile_args> {
-
 
27011
      public getmypmsaprofile() {
-
 
27012
        super("getmypmsaprofile");
-
 
27013
      }
-
 
27014
 
-
 
27015
      protected getmypmsaprofile_args getEmptyArgsInstance() {
-
 
27016
        return new getmypmsaprofile_args();
-
 
27017
      }
-
 
27018
 
-
 
27019
      protected getmypmsaprofile_result getResult(I iface, getmypmsaprofile_args args) throws org.apache.thrift.TException {
-
 
27020
        getmypmsaprofile_result result = new getmypmsaprofile_result();
-
 
27021
        result.success = iface.getmypmsaprofile(args.associateEmail);
-
 
27022
        return result;
-
 
27023
      }
-
 
27024
    }
-
 
27025
 
26950
  }
27026
  }
26951
 
27027
 
26952
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
27028
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
26953
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
27029
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
26954
 
27030
 
Line 253532... Line 253608...
253532
      boolean first = true;
253608
      boolean first = true;
253533
 
253609
 
253534
      sb.append("success:");
253610
      sb.append("success:");
253535
      if (this.success == null) {
253611
      if (this.success == null) {
253536
        sb.append("null");
253612
        sb.append("null");
-
 
253613
      } else {
-
 
253614
        sb.append(this.success);
-
 
253615
      }
-
 
253616
      first = false;
-
 
253617
      sb.append(")");
-
 
253618
      return sb.toString();
-
 
253619
    }
-
 
253620
 
-
 
253621
    public void validate() throws org.apache.thrift.TException {
-
 
253622
      // check for required fields
-
 
253623
    }
-
 
253624
 
-
 
253625
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
253626
      try {
-
 
253627
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
253628
      } catch (org.apache.thrift.TException te) {
-
 
253629
        throw new java.io.IOException(te);
-
 
253630
      }
-
 
253631
    }
-
 
253632
 
-
 
253633
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
253634
      try {
-
 
253635
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
253636
      } catch (org.apache.thrift.TException te) {
-
 
253637
        throw new java.io.IOException(te);
-
 
253638
      }
-
 
253639
    }
-
 
253640
 
-
 
253641
  }
-
 
253642
 
-
 
253643
  public static class getmypmsaprofile_args implements org.apache.thrift.TBase<getmypmsaprofile_args, getmypmsaprofile_args._Fields>, java.io.Serializable, Cloneable   {
-
 
253644
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getmypmsaprofile_args");
-
 
253645
 
-
 
253646
    private static final org.apache.thrift.protocol.TField ASSOCIATE_EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("associateEmail", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
253647
 
-
 
253648
    private String associateEmail; // required
-
 
253649
 
-
 
253650
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
253651
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
253652
      ASSOCIATE_EMAIL((short)1, "associateEmail");
-
 
253653
 
-
 
253654
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
253655
 
-
 
253656
      static {
-
 
253657
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
253658
          byName.put(field.getFieldName(), field);
-
 
253659
        }
-
 
253660
      }
-
 
253661
 
-
 
253662
      /**
-
 
253663
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
253664
       */
-
 
253665
      public static _Fields findByThriftId(int fieldId) {
-
 
253666
        switch(fieldId) {
-
 
253667
          case 1: // ASSOCIATE_EMAIL
-
 
253668
            return ASSOCIATE_EMAIL;
-
 
253669
          default:
-
 
253670
            return null;
-
 
253671
        }
-
 
253672
      }
-
 
253673
 
-
 
253674
      /**
-
 
253675
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
253676
       * if it is not found.
-
 
253677
       */
-
 
253678
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
253679
        _Fields fields = findByThriftId(fieldId);
-
 
253680
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
253681
        return fields;
-
 
253682
      }
-
 
253683
 
-
 
253684
      /**
-
 
253685
       * Find the _Fields constant that matches name, or null if its not found.
-
 
253686
       */
-
 
253687
      public static _Fields findByName(String name) {
-
 
253688
        return byName.get(name);
-
 
253689
      }
-
 
253690
 
-
 
253691
      private final short _thriftId;
-
 
253692
      private final String _fieldName;
-
 
253693
 
-
 
253694
      _Fields(short thriftId, String fieldName) {
-
 
253695
        _thriftId = thriftId;
-
 
253696
        _fieldName = fieldName;
-
 
253697
      }
-
 
253698
 
-
 
253699
      public short getThriftFieldId() {
-
 
253700
        return _thriftId;
-
 
253701
      }
-
 
253702
 
-
 
253703
      public String getFieldName() {
-
 
253704
        return _fieldName;
-
 
253705
      }
-
 
253706
    }
-
 
253707
 
-
 
253708
    // isset id assignments
-
 
253709
 
-
 
253710
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
253711
    static {
-
 
253712
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
253713
      tmpMap.put(_Fields.ASSOCIATE_EMAIL, new org.apache.thrift.meta_data.FieldMetaData("associateEmail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
253714
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
253715
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
253716
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getmypmsaprofile_args.class, metaDataMap);
-
 
253717
    }
-
 
253718
 
-
 
253719
    public getmypmsaprofile_args() {
-
 
253720
    }
-
 
253721
 
-
 
253722
    public getmypmsaprofile_args(
-
 
253723
      String associateEmail)
-
 
253724
    {
-
 
253725
      this();
-
 
253726
      this.associateEmail = associateEmail;
-
 
253727
    }
-
 
253728
 
-
 
253729
    /**
-
 
253730
     * Performs a deep copy on <i>other</i>.
-
 
253731
     */
-
 
253732
    public getmypmsaprofile_args(getmypmsaprofile_args other) {
-
 
253733
      if (other.isSetAssociateEmail()) {
-
 
253734
        this.associateEmail = other.associateEmail;
-
 
253735
      }
-
 
253736
    }
-
 
253737
 
-
 
253738
    public getmypmsaprofile_args deepCopy() {
-
 
253739
      return new getmypmsaprofile_args(this);
-
 
253740
    }
-
 
253741
 
-
 
253742
    @Override
-
 
253743
    public void clear() {
-
 
253744
      this.associateEmail = null;
-
 
253745
    }
-
 
253746
 
-
 
253747
    public String getAssociateEmail() {
-
 
253748
      return this.associateEmail;
-
 
253749
    }
-
 
253750
 
-
 
253751
    public void setAssociateEmail(String associateEmail) {
-
 
253752
      this.associateEmail = associateEmail;
-
 
253753
    }
-
 
253754
 
-
 
253755
    public void unsetAssociateEmail() {
-
 
253756
      this.associateEmail = null;
-
 
253757
    }
-
 
253758
 
-
 
253759
    /** Returns true if field associateEmail is set (has been assigned a value) and false otherwise */
-
 
253760
    public boolean isSetAssociateEmail() {
-
 
253761
      return this.associateEmail != null;
-
 
253762
    }
-
 
253763
 
-
 
253764
    public void setAssociateEmailIsSet(boolean value) {
-
 
253765
      if (!value) {
-
 
253766
        this.associateEmail = null;
-
 
253767
      }
-
 
253768
    }
-
 
253769
 
-
 
253770
    public void setFieldValue(_Fields field, Object value) {
-
 
253771
      switch (field) {
-
 
253772
      case ASSOCIATE_EMAIL:
-
 
253773
        if (value == null) {
-
 
253774
          unsetAssociateEmail();
-
 
253775
        } else {
-
 
253776
          setAssociateEmail((String)value);
-
 
253777
        }
-
 
253778
        break;
-
 
253779
 
-
 
253780
      }
-
 
253781
    }
-
 
253782
 
-
 
253783
    public Object getFieldValue(_Fields field) {
-
 
253784
      switch (field) {
-
 
253785
      case ASSOCIATE_EMAIL:
-
 
253786
        return getAssociateEmail();
-
 
253787
 
-
 
253788
      }
-
 
253789
      throw new IllegalStateException();
-
 
253790
    }
-
 
253791
 
-
 
253792
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
253793
    public boolean isSet(_Fields field) {
-
 
253794
      if (field == null) {
-
 
253795
        throw new IllegalArgumentException();
-
 
253796
      }
-
 
253797
 
-
 
253798
      switch (field) {
-
 
253799
      case ASSOCIATE_EMAIL:
-
 
253800
        return isSetAssociateEmail();
-
 
253801
      }
-
 
253802
      throw new IllegalStateException();
-
 
253803
    }
-
 
253804
 
-
 
253805
    @Override
-
 
253806
    public boolean equals(Object that) {
-
 
253807
      if (that == null)
-
 
253808
        return false;
-
 
253809
      if (that instanceof getmypmsaprofile_args)
-
 
253810
        return this.equals((getmypmsaprofile_args)that);
-
 
253811
      return false;
-
 
253812
    }
-
 
253813
 
-
 
253814
    public boolean equals(getmypmsaprofile_args that) {
-
 
253815
      if (that == null)
-
 
253816
        return false;
-
 
253817
 
-
 
253818
      boolean this_present_associateEmail = true && this.isSetAssociateEmail();
-
 
253819
      boolean that_present_associateEmail = true && that.isSetAssociateEmail();
-
 
253820
      if (this_present_associateEmail || that_present_associateEmail) {
-
 
253821
        if (!(this_present_associateEmail && that_present_associateEmail))
-
 
253822
          return false;
-
 
253823
        if (!this.associateEmail.equals(that.associateEmail))
-
 
253824
          return false;
-
 
253825
      }
-
 
253826
 
-
 
253827
      return true;
-
 
253828
    }
-
 
253829
 
-
 
253830
    @Override
-
 
253831
    public int hashCode() {
-
 
253832
      return 0;
-
 
253833
    }
-
 
253834
 
-
 
253835
    public int compareTo(getmypmsaprofile_args other) {
-
 
253836
      if (!getClass().equals(other.getClass())) {
-
 
253837
        return getClass().getName().compareTo(other.getClass().getName());
-
 
253838
      }
-
 
253839
 
-
 
253840
      int lastComparison = 0;
-
 
253841
      getmypmsaprofile_args typedOther = (getmypmsaprofile_args)other;
-
 
253842
 
-
 
253843
      lastComparison = Boolean.valueOf(isSetAssociateEmail()).compareTo(typedOther.isSetAssociateEmail());
-
 
253844
      if (lastComparison != 0) {
-
 
253845
        return lastComparison;
-
 
253846
      }
-
 
253847
      if (isSetAssociateEmail()) {
-
 
253848
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.associateEmail, typedOther.associateEmail);
-
 
253849
        if (lastComparison != 0) {
-
 
253850
          return lastComparison;
-
 
253851
        }
-
 
253852
      }
-
 
253853
      return 0;
-
 
253854
    }
-
 
253855
 
-
 
253856
    public _Fields fieldForId(int fieldId) {
-
 
253857
      return _Fields.findByThriftId(fieldId);
-
 
253858
    }
-
 
253859
 
-
 
253860
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
253861
      org.apache.thrift.protocol.TField field;
-
 
253862
      iprot.readStructBegin();
-
 
253863
      while (true)
-
 
253864
      {
-
 
253865
        field = iprot.readFieldBegin();
-
 
253866
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
253867
          break;
-
 
253868
        }
-
 
253869
        switch (field.id) {
-
 
253870
          case 1: // ASSOCIATE_EMAIL
-
 
253871
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
253872
              this.associateEmail = iprot.readString();
-
 
253873
            } else { 
-
 
253874
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
253875
            }
-
 
253876
            break;
-
 
253877
          default:
-
 
253878
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
253879
        }
-
 
253880
        iprot.readFieldEnd();
-
 
253881
      }
-
 
253882
      iprot.readStructEnd();
-
 
253883
      validate();
-
 
253884
    }
-
 
253885
 
-
 
253886
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
253887
      validate();
-
 
253888
 
-
 
253889
      oprot.writeStructBegin(STRUCT_DESC);
-
 
253890
      if (this.associateEmail != null) {
-
 
253891
        oprot.writeFieldBegin(ASSOCIATE_EMAIL_FIELD_DESC);
-
 
253892
        oprot.writeString(this.associateEmail);
-
 
253893
        oprot.writeFieldEnd();
-
 
253894
      }
-
 
253895
      oprot.writeFieldStop();
-
 
253896
      oprot.writeStructEnd();
-
 
253897
    }
-
 
253898
 
-
 
253899
    @Override
-
 
253900
    public String toString() {
-
 
253901
      StringBuilder sb = new StringBuilder("getmypmsaprofile_args(");
-
 
253902
      boolean first = true;
-
 
253903
 
-
 
253904
      sb.append("associateEmail:");
-
 
253905
      if (this.associateEmail == null) {
-
 
253906
        sb.append("null");
-
 
253907
      } else {
-
 
253908
        sb.append(this.associateEmail);
-
 
253909
      }
-
 
253910
      first = false;
-
 
253911
      sb.append(")");
-
 
253912
      return sb.toString();
-
 
253913
    }
-
 
253914
 
-
 
253915
    public void validate() throws org.apache.thrift.TException {
-
 
253916
      // check for required fields
-
 
253917
    }
-
 
253918
 
-
 
253919
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
253920
      try {
-
 
253921
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
253922
      } catch (org.apache.thrift.TException te) {
-
 
253923
        throw new java.io.IOException(te);
-
 
253924
      }
-
 
253925
    }
-
 
253926
 
-
 
253927
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
253928
      try {
-
 
253929
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
253930
      } catch (org.apache.thrift.TException te) {
-
 
253931
        throw new java.io.IOException(te);
-
 
253932
      }
-
 
253933
    }
-
 
253934
 
-
 
253935
  }
-
 
253936
 
-
 
253937
  public static class getmypmsaprofile_result implements org.apache.thrift.TBase<getmypmsaprofile_result, getmypmsaprofile_result._Fields>, java.io.Serializable, Cloneable   {
-
 
253938
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getmypmsaprofile_result");
-
 
253939
 
-
 
253940
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
253941
 
-
 
253942
    private Pmsa success; // required
-
 
253943
 
-
 
253944
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
253945
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
253946
      SUCCESS((short)0, "success");
-
 
253947
 
-
 
253948
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
253949
 
-
 
253950
      static {
-
 
253951
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
253952
          byName.put(field.getFieldName(), field);
-
 
253953
        }
-
 
253954
      }
-
 
253955
 
-
 
253956
      /**
-
 
253957
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
253958
       */
-
 
253959
      public static _Fields findByThriftId(int fieldId) {
-
 
253960
        switch(fieldId) {
-
 
253961
          case 0: // SUCCESS
-
 
253962
            return SUCCESS;
-
 
253963
          default:
-
 
253964
            return null;
-
 
253965
        }
-
 
253966
      }
-
 
253967
 
-
 
253968
      /**
-
 
253969
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
253970
       * if it is not found.
-
 
253971
       */
-
 
253972
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
253973
        _Fields fields = findByThriftId(fieldId);
-
 
253974
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
253975
        return fields;
-
 
253976
      }
-
 
253977
 
-
 
253978
      /**
-
 
253979
       * Find the _Fields constant that matches name, or null if its not found.
-
 
253980
       */
-
 
253981
      public static _Fields findByName(String name) {
-
 
253982
        return byName.get(name);
-
 
253983
      }
-
 
253984
 
-
 
253985
      private final short _thriftId;
-
 
253986
      private final String _fieldName;
-
 
253987
 
-
 
253988
      _Fields(short thriftId, String fieldName) {
-
 
253989
        _thriftId = thriftId;
-
 
253990
        _fieldName = fieldName;
-
 
253991
      }
-
 
253992
 
-
 
253993
      public short getThriftFieldId() {
-
 
253994
        return _thriftId;
-
 
253995
      }
-
 
253996
 
-
 
253997
      public String getFieldName() {
-
 
253998
        return _fieldName;
-
 
253999
      }
-
 
254000
    }
-
 
254001
 
-
 
254002
    // isset id assignments
-
 
254003
 
-
 
254004
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
254005
    static {
-
 
254006
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
254007
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
254008
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Pmsa.class)));
-
 
254009
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
254010
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getmypmsaprofile_result.class, metaDataMap);
-
 
254011
    }
-
 
254012
 
-
 
254013
    public getmypmsaprofile_result() {
-
 
254014
    }
-
 
254015
 
-
 
254016
    public getmypmsaprofile_result(
-
 
254017
      Pmsa success)
-
 
254018
    {
-
 
254019
      this();
-
 
254020
      this.success = success;
-
 
254021
    }
-
 
254022
 
-
 
254023
    /**
-
 
254024
     * Performs a deep copy on <i>other</i>.
-
 
254025
     */
-
 
254026
    public getmypmsaprofile_result(getmypmsaprofile_result other) {
-
 
254027
      if (other.isSetSuccess()) {
-
 
254028
        this.success = new Pmsa(other.success);
-
 
254029
      }
-
 
254030
    }
-
 
254031
 
-
 
254032
    public getmypmsaprofile_result deepCopy() {
-
 
254033
      return new getmypmsaprofile_result(this);
-
 
254034
    }
-
 
254035
 
-
 
254036
    @Override
-
 
254037
    public void clear() {
-
 
254038
      this.success = null;
-
 
254039
    }
-
 
254040
 
-
 
254041
    public Pmsa getSuccess() {
-
 
254042
      return this.success;
-
 
254043
    }
-
 
254044
 
-
 
254045
    public void setSuccess(Pmsa success) {
-
 
254046
      this.success = success;
-
 
254047
    }
-
 
254048
 
-
 
254049
    public void unsetSuccess() {
-
 
254050
      this.success = null;
-
 
254051
    }
-
 
254052
 
-
 
254053
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
254054
    public boolean isSetSuccess() {
-
 
254055
      return this.success != null;
-
 
254056
    }
-
 
254057
 
-
 
254058
    public void setSuccessIsSet(boolean value) {
-
 
254059
      if (!value) {
-
 
254060
        this.success = null;
-
 
254061
      }
-
 
254062
    }
-
 
254063
 
-
 
254064
    public void setFieldValue(_Fields field, Object value) {
-
 
254065
      switch (field) {
-
 
254066
      case SUCCESS:
-
 
254067
        if (value == null) {
-
 
254068
          unsetSuccess();
-
 
254069
        } else {
-
 
254070
          setSuccess((Pmsa)value);
-
 
254071
        }
-
 
254072
        break;
-
 
254073
 
-
 
254074
      }
-
 
254075
    }
-
 
254076
 
-
 
254077
    public Object getFieldValue(_Fields field) {
-
 
254078
      switch (field) {
-
 
254079
      case SUCCESS:
-
 
254080
        return getSuccess();
-
 
254081
 
-
 
254082
      }
-
 
254083
      throw new IllegalStateException();
-
 
254084
    }
-
 
254085
 
-
 
254086
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
254087
    public boolean isSet(_Fields field) {
-
 
254088
      if (field == null) {
-
 
254089
        throw new IllegalArgumentException();
-
 
254090
      }
-
 
254091
 
-
 
254092
      switch (field) {
-
 
254093
      case SUCCESS:
-
 
254094
        return isSetSuccess();
-
 
254095
      }
-
 
254096
      throw new IllegalStateException();
-
 
254097
    }
-
 
254098
 
-
 
254099
    @Override
-
 
254100
    public boolean equals(Object that) {
-
 
254101
      if (that == null)
-
 
254102
        return false;
-
 
254103
      if (that instanceof getmypmsaprofile_result)
-
 
254104
        return this.equals((getmypmsaprofile_result)that);
-
 
254105
      return false;
-
 
254106
    }
-
 
254107
 
-
 
254108
    public boolean equals(getmypmsaprofile_result that) {
-
 
254109
      if (that == null)
-
 
254110
        return false;
-
 
254111
 
-
 
254112
      boolean this_present_success = true && this.isSetSuccess();
-
 
254113
      boolean that_present_success = true && that.isSetSuccess();
-
 
254114
      if (this_present_success || that_present_success) {
-
 
254115
        if (!(this_present_success && that_present_success))
-
 
254116
          return false;
-
 
254117
        if (!this.success.equals(that.success))
-
 
254118
          return false;
-
 
254119
      }
-
 
254120
 
-
 
254121
      return true;
-
 
254122
    }
-
 
254123
 
-
 
254124
    @Override
-
 
254125
    public int hashCode() {
-
 
254126
      return 0;
-
 
254127
    }
-
 
254128
 
-
 
254129
    public int compareTo(getmypmsaprofile_result other) {
-
 
254130
      if (!getClass().equals(other.getClass())) {
-
 
254131
        return getClass().getName().compareTo(other.getClass().getName());
-
 
254132
      }
-
 
254133
 
-
 
254134
      int lastComparison = 0;
-
 
254135
      getmypmsaprofile_result typedOther = (getmypmsaprofile_result)other;
-
 
254136
 
-
 
254137
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
254138
      if (lastComparison != 0) {
-
 
254139
        return lastComparison;
-
 
254140
      }
-
 
254141
      if (isSetSuccess()) {
-
 
254142
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
254143
        if (lastComparison != 0) {
-
 
254144
          return lastComparison;
-
 
254145
        }
-
 
254146
      }
-
 
254147
      return 0;
-
 
254148
    }
-
 
254149
 
-
 
254150
    public _Fields fieldForId(int fieldId) {
-
 
254151
      return _Fields.findByThriftId(fieldId);
-
 
254152
    }
-
 
254153
 
-
 
254154
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
254155
      org.apache.thrift.protocol.TField field;
-
 
254156
      iprot.readStructBegin();
-
 
254157
      while (true)
-
 
254158
      {
-
 
254159
        field = iprot.readFieldBegin();
-
 
254160
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
254161
          break;
-
 
254162
        }
-
 
254163
        switch (field.id) {
-
 
254164
          case 0: // SUCCESS
-
 
254165
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
254166
              this.success = new Pmsa();
-
 
254167
              this.success.read(iprot);
-
 
254168
            } else { 
-
 
254169
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
254170
            }
-
 
254171
            break;
-
 
254172
          default:
-
 
254173
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
254174
        }
-
 
254175
        iprot.readFieldEnd();
-
 
254176
      }
-
 
254177
      iprot.readStructEnd();
-
 
254178
      validate();
-
 
254179
    }
-
 
254180
 
-
 
254181
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
254182
      oprot.writeStructBegin(STRUCT_DESC);
-
 
254183
 
-
 
254184
      if (this.isSetSuccess()) {
-
 
254185
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
254186
        this.success.write(oprot);
-
 
254187
        oprot.writeFieldEnd();
-
 
254188
      }
-
 
254189
      oprot.writeFieldStop();
-
 
254190
      oprot.writeStructEnd();
-
 
254191
    }
-
 
254192
 
-
 
254193
    @Override
-
 
254194
    public String toString() {
-
 
254195
      StringBuilder sb = new StringBuilder("getmypmsaprofile_result(");
-
 
254196
      boolean first = true;
-
 
254197
 
-
 
254198
      sb.append("success:");
-
 
254199
      if (this.success == null) {
-
 
254200
        sb.append("null");
253537
      } else {
254201
      } else {
253538
        sb.append(this.success);
254202
        sb.append(this.success);
253539
      }
254203
      }
253540
      first = false;
254204
      first = false;
253541
      sb.append(")");
254205
      sb.append(")");