Subversion Repositories SmartDukaan

Rev

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

Rev 20954 Rev 21044
Line 1256... Line 1256...
1256
 
1256
 
1257
    public double calculatePaymentAmount(long txnId) throws org.apache.thrift.TException;
1257
    public double calculatePaymentAmount(long txnId) throws org.apache.thrift.TException;
1258
 
1258
 
1259
    public List<Order> getBilledOrdersForManifestGen(long warehouse_id, long logistics_provider_id, boolean cod) throws org.apache.thrift.TException;
1259
    public List<Order> getBilledOrdersForManifestGen(long warehouse_id, long logistics_provider_id, boolean cod) throws org.apache.thrift.TException;
1260
 
1260
 
-
 
1261
    public boolean registerRsa(long userId, String activation_code) throws org.apache.thrift.TException;
-
 
1262
 
1261
  }
1263
  }
1262
 
1264
 
1263
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1265
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1264
 
1266
 
1265
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1267
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1880... Line 1882...
1880
 
1882
 
1881
    public void calculatePaymentAmount(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.calculatePaymentAmount_call> resultHandler) throws org.apache.thrift.TException;
1883
    public void calculatePaymentAmount(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.calculatePaymentAmount_call> resultHandler) throws org.apache.thrift.TException;
1882
 
1884
 
1883
    public void getBilledOrdersForManifestGen(long warehouse_id, long logistics_provider_id, boolean cod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBilledOrdersForManifestGen_call> resultHandler) throws org.apache.thrift.TException;
1885
    public void getBilledOrdersForManifestGen(long warehouse_id, long logistics_provider_id, boolean cod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBilledOrdersForManifestGen_call> resultHandler) throws org.apache.thrift.TException;
1884
 
1886
 
-
 
1887
    public void registerRsa(long userId, String activation_code, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.registerRsa_call> resultHandler) throws org.apache.thrift.TException;
-
 
1888
 
1885
  }
1889
  }
1886
 
1890
 
1887
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1891
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1888
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1892
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1889
      public Factory() {}
1893
      public Factory() {}
Line 9571... Line 9575...
9571
        return result.success;
9575
        return result.success;
9572
      }
9576
      }
9573
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBilledOrdersForManifestGen failed: unknown result");
9577
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBilledOrdersForManifestGen failed: unknown result");
9574
    }
9578
    }
9575
 
9579
 
-
 
9580
    public boolean registerRsa(long userId, String activation_code) throws org.apache.thrift.TException
-
 
9581
    {
-
 
9582
      send_registerRsa(userId, activation_code);
-
 
9583
      return recv_registerRsa();
-
 
9584
    }
-
 
9585
 
-
 
9586
    public void send_registerRsa(long userId, String activation_code) throws org.apache.thrift.TException
-
 
9587
    {
-
 
9588
      registerRsa_args args = new registerRsa_args();
-
 
9589
      args.setUserId(userId);
-
 
9590
      args.setActivation_code(activation_code);
-
 
9591
      sendBase("registerRsa", args);
-
 
9592
    }
-
 
9593
 
-
 
9594
    public boolean recv_registerRsa() throws org.apache.thrift.TException
-
 
9595
    {
-
 
9596
      registerRsa_result result = new registerRsa_result();
-
 
9597
      receiveBase(result, "registerRsa");
-
 
9598
      if (result.isSetSuccess()) {
-
 
9599
        return result.success;
-
 
9600
      }
-
 
9601
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "registerRsa failed: unknown result");
-
 
9602
    }
-
 
9603
 
9576
  }
9604
  }
9577
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9605
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9578
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9606
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9579
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9607
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9580
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
9608
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 20388... Line 20416...
20388
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
20416
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
20389
        return (new Client(prot)).recv_getBilledOrdersForManifestGen();
20417
        return (new Client(prot)).recv_getBilledOrdersForManifestGen();
20390
      }
20418
      }
20391
    }
20419
    }
20392
 
20420
 
-
 
20421
    public void registerRsa(long userId, String activation_code, org.apache.thrift.async.AsyncMethodCallback<registerRsa_call> resultHandler) throws org.apache.thrift.TException {
-
 
20422
      checkReady();
-
 
20423
      registerRsa_call method_call = new registerRsa_call(userId, activation_code, resultHandler, this, ___protocolFactory, ___transport);
-
 
20424
      this.___currentMethod = method_call;
-
 
20425
      ___manager.call(method_call);
-
 
20426
    }
-
 
20427
 
-
 
20428
    public static class registerRsa_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
20429
      private long userId;
-
 
20430
      private String activation_code;
-
 
20431
      public registerRsa_call(long userId, String activation_code, org.apache.thrift.async.AsyncMethodCallback<registerRsa_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 {
-
 
20432
        super(client, protocolFactory, transport, resultHandler, false);
-
 
20433
        this.userId = userId;
-
 
20434
        this.activation_code = activation_code;
-
 
20435
      }
-
 
20436
 
-
 
20437
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
20438
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("registerRsa", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
20439
        registerRsa_args args = new registerRsa_args();
-
 
20440
        args.setUserId(userId);
-
 
20441
        args.setActivation_code(activation_code);
-
 
20442
        args.write(prot);
-
 
20443
        prot.writeMessageEnd();
-
 
20444
      }
-
 
20445
 
-
 
20446
      public boolean getResult() throws org.apache.thrift.TException {
-
 
20447
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
20448
          throw new IllegalStateException("Method call not finished!");
-
 
20449
        }
-
 
20450
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
20451
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
20452
        return (new Client(prot)).recv_registerRsa();
-
 
20453
      }
-
 
20454
    }
-
 
20455
 
20393
  }
20456
  }
20394
 
20457
 
20395
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
20458
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
20396
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
20459
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
20397
    public Processor(I iface) {
20460
    public Processor(I iface) {
Line 20711... Line 20774...
20711
      processMap.put("getCostDetailForLogisticsTxnId", new getCostDetailForLogisticsTxnId());
20774
      processMap.put("getCostDetailForLogisticsTxnId", new getCostDetailForLogisticsTxnId());
20712
      processMap.put("addShipmentLogisticDetail", new addShipmentLogisticDetail());
20775
      processMap.put("addShipmentLogisticDetail", new addShipmentLogisticDetail());
20713
      processMap.put("createPayment", new createPayment());
20776
      processMap.put("createPayment", new createPayment());
20714
      processMap.put("calculatePaymentAmount", new calculatePaymentAmount());
20777
      processMap.put("calculatePaymentAmount", new calculatePaymentAmount());
20715
      processMap.put("getBilledOrdersForManifestGen", new getBilledOrdersForManifestGen());
20778
      processMap.put("getBilledOrdersForManifestGen", new getBilledOrdersForManifestGen());
-
 
20779
      processMap.put("registerRsa", new registerRsa());
20716
      return processMap;
20780
      return processMap;
20717
    }
20781
    }
20718
 
20782
 
20719
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
20783
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
20720
      public createTransaction() {
20784
      public createTransaction() {
Line 26312... Line 26376...
26312
        result.success = iface.getBilledOrdersForManifestGen(args.warehouse_id, args.logistics_provider_id, args.cod);
26376
        result.success = iface.getBilledOrdersForManifestGen(args.warehouse_id, args.logistics_provider_id, args.cod);
26313
        return result;
26377
        return result;
26314
      }
26378
      }
26315
    }
26379
    }
26316
 
26380
 
-
 
26381
    private static class registerRsa<I extends Iface> extends org.apache.thrift.ProcessFunction<I, registerRsa_args> {
-
 
26382
      public registerRsa() {
-
 
26383
        super("registerRsa");
-
 
26384
      }
-
 
26385
 
-
 
26386
      protected registerRsa_args getEmptyArgsInstance() {
-
 
26387
        return new registerRsa_args();
-
 
26388
      }
-
 
26389
 
-
 
26390
      protected registerRsa_result getResult(I iface, registerRsa_args args) throws org.apache.thrift.TException {
-
 
26391
        registerRsa_result result = new registerRsa_result();
-
 
26392
        result.success = iface.registerRsa(args.userId, args.activation_code);
-
 
26393
        result.setSuccessIsSet(true);
-
 
26394
        return result;
-
 
26395
      }
-
 
26396
    }
-
 
26397
 
26317
  }
26398
  }
26318
 
26399
 
26319
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
26400
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
26320
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
26401
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
26321
 
26402
 
Line 54419... Line 54500...
54419
      }
54500
      }
54420
    }
54501
    }
54421
 
54502
 
54422
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54503
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
54423
      try {
54504
      try {
-
 
54505
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
54506
        __isset_bit_vector = new BitSet(1);
54424
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54507
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
54425
      } catch (org.apache.thrift.TException te) {
54508
      } catch (org.apache.thrift.TException te) {
54426
        throw new java.io.IOException(te);
54509
        throw new java.io.IOException(te);
54427
      }
54510
      }
54428
    }
54511
    }
Line 77848... Line 77931...
77848
      }
77931
      }
77849
    }
77932
    }
77850
 
77933
 
77851
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
77934
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
77852
      try {
77935
      try {
-
 
77936
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
77937
        __isset_bit_vector = new BitSet(1);
77853
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
77938
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
77854
      } catch (org.apache.thrift.TException te) {
77939
      } catch (org.apache.thrift.TException te) {
77855
        throw new java.io.IOException(te);
77940
        throw new java.io.IOException(te);
77856
      }
77941
      }
77857
    }
77942
    }
Line 78521... Line 78606...
78521
      }
78606
      }
78522
    }
78607
    }
78523
 
78608
 
78524
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
78609
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
78525
      try {
78610
      try {
-
 
78611
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
78612
        __isset_bit_vector = new BitSet(1);
78526
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
78613
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
78527
      } catch (org.apache.thrift.TException te) {
78614
      } catch (org.apache.thrift.TException te) {
78528
        throw new java.io.IOException(te);
78615
        throw new java.io.IOException(te);
78529
      }
78616
      }
78530
    }
78617
    }
Line 120878... Line 120965...
120878
      }
120965
      }
120879
    }
120966
    }
120880
 
120967
 
120881
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
120968
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
120882
      try {
120969
      try {
-
 
120970
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
120971
        __isset_bit_vector = new BitSet(1);
120883
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
120972
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
120884
      } catch (org.apache.thrift.TException te) {
120973
      } catch (org.apache.thrift.TException te) {
120885
        throw new java.io.IOException(te);
120974
        throw new java.io.IOException(te);
120886
      }
120975
      }
120887
    }
120976
    }
Line 182486... Line 182575...
182486
      }
182575
      }
182487
    }
182576
    }
182488
 
182577
 
182489
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
182578
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
182490
      try {
182579
      try {
-
 
182580
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
182581
        __isset_bit_vector = new BitSet(1);
182491
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
182582
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
182492
      } catch (org.apache.thrift.TException te) {
182583
      } catch (org.apache.thrift.TException te) {
182493
        throw new java.io.IOException(te);
182584
        throw new java.io.IOException(te);
182494
      }
182585
      }
182495
    }
182586
    }
Line 187579... Line 187670...
187579
      }
187670
      }
187580
    }
187671
    }
187581
 
187672
 
187582
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
187673
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
187583
      try {
187674
      try {
-
 
187675
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
187676
        __isset_bit_vector = new BitSet(1);
187584
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
187677
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
187585
      } catch (org.apache.thrift.TException te) {
187678
      } catch (org.apache.thrift.TException te) {
187586
        throw new java.io.IOException(te);
187679
        throw new java.io.IOException(te);
187587
      }
187680
      }
187588
    }
187681
    }
Line 202841... Line 202934...
202841
      }
202934
      }
202842
    }
202935
    }
202843
 
202936
 
202844
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
202937
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
202845
      try {
202938
      try {
-
 
202939
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
202940
        __isset_bit_vector = new BitSet(1);
202846
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
202941
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
202847
      } catch (org.apache.thrift.TException te) {
202942
      } catch (org.apache.thrift.TException te) {
202848
        throw new java.io.IOException(te);
202943
        throw new java.io.IOException(te);
202849
      }
202944
      }
202850
    }
202945
    }
Line 247528... Line 247623...
247528
      first = false;
247623
      first = false;
247529
      sb.append(")");
247624
      sb.append(")");
247530
      return sb.toString();
247625
      return sb.toString();
247531
    }
247626
    }
247532
 
247627
 
-
 
247628
    public void validate() throws org.apache.thrift.TException {
-
 
247629
      // check for required fields
-
 
247630
    }
-
 
247631
 
-
 
247632
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
247633
      try {
-
 
247634
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
247635
      } catch (org.apache.thrift.TException te) {
-
 
247636
        throw new java.io.IOException(te);
-
 
247637
      }
-
 
247638
    }
-
 
247639
 
-
 
247640
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
247641
      try {
-
 
247642
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
247643
      } catch (org.apache.thrift.TException te) {
-
 
247644
        throw new java.io.IOException(te);
-
 
247645
      }
-
 
247646
    }
-
 
247647
 
-
 
247648
  }
-
 
247649
 
-
 
247650
  public static class registerRsa_args implements org.apache.thrift.TBase<registerRsa_args, registerRsa_args._Fields>, java.io.Serializable, Cloneable   {
-
 
247651
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("registerRsa_args");
-
 
247652
 
-
 
247653
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
247654
    private static final org.apache.thrift.protocol.TField ACTIVATION_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("activation_code", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
247655
 
-
 
247656
    private long userId; // required
-
 
247657
    private String activation_code; // required
-
 
247658
 
-
 
247659
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
247660
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
247661
      USER_ID((short)1, "userId"),
-
 
247662
      ACTIVATION_CODE((short)2, "activation_code");
-
 
247663
 
-
 
247664
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
247665
 
-
 
247666
      static {
-
 
247667
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
247668
          byName.put(field.getFieldName(), field);
-
 
247669
        }
-
 
247670
      }
-
 
247671
 
-
 
247672
      /**
-
 
247673
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
247674
       */
-
 
247675
      public static _Fields findByThriftId(int fieldId) {
-
 
247676
        switch(fieldId) {
-
 
247677
          case 1: // USER_ID
-
 
247678
            return USER_ID;
-
 
247679
          case 2: // ACTIVATION_CODE
-
 
247680
            return ACTIVATION_CODE;
-
 
247681
          default:
-
 
247682
            return null;
-
 
247683
        }
-
 
247684
      }
-
 
247685
 
-
 
247686
      /**
-
 
247687
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
247688
       * if it is not found.
-
 
247689
       */
-
 
247690
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
247691
        _Fields fields = findByThriftId(fieldId);
-
 
247692
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
247693
        return fields;
-
 
247694
      }
-
 
247695
 
-
 
247696
      /**
-
 
247697
       * Find the _Fields constant that matches name, or null if its not found.
-
 
247698
       */
-
 
247699
      public static _Fields findByName(String name) {
-
 
247700
        return byName.get(name);
-
 
247701
      }
-
 
247702
 
-
 
247703
      private final short _thriftId;
-
 
247704
      private final String _fieldName;
-
 
247705
 
-
 
247706
      _Fields(short thriftId, String fieldName) {
-
 
247707
        _thriftId = thriftId;
-
 
247708
        _fieldName = fieldName;
-
 
247709
      }
-
 
247710
 
-
 
247711
      public short getThriftFieldId() {
-
 
247712
        return _thriftId;
-
 
247713
      }
-
 
247714
 
-
 
247715
      public String getFieldName() {
-
 
247716
        return _fieldName;
-
 
247717
      }
-
 
247718
    }
-
 
247719
 
-
 
247720
    // isset id assignments
-
 
247721
    private static final int __USERID_ISSET_ID = 0;
-
 
247722
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
247723
 
-
 
247724
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
247725
    static {
-
 
247726
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
247727
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
247728
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
247729
      tmpMap.put(_Fields.ACTIVATION_CODE, new org.apache.thrift.meta_data.FieldMetaData("activation_code", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
247730
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
247731
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
247732
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(registerRsa_args.class, metaDataMap);
-
 
247733
    }
-
 
247734
 
-
 
247735
    public registerRsa_args() {
-
 
247736
    }
-
 
247737
 
-
 
247738
    public registerRsa_args(
-
 
247739
      long userId,
-
 
247740
      String activation_code)
-
 
247741
    {
-
 
247742
      this();
-
 
247743
      this.userId = userId;
-
 
247744
      setUserIdIsSet(true);
-
 
247745
      this.activation_code = activation_code;
-
 
247746
    }
-
 
247747
 
-
 
247748
    /**
-
 
247749
     * Performs a deep copy on <i>other</i>.
-
 
247750
     */
-
 
247751
    public registerRsa_args(registerRsa_args other) {
-
 
247752
      __isset_bit_vector.clear();
-
 
247753
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
247754
      this.userId = other.userId;
-
 
247755
      if (other.isSetActivation_code()) {
-
 
247756
        this.activation_code = other.activation_code;
-
 
247757
      }
-
 
247758
    }
-
 
247759
 
-
 
247760
    public registerRsa_args deepCopy() {
-
 
247761
      return new registerRsa_args(this);
-
 
247762
    }
-
 
247763
 
-
 
247764
    @Override
-
 
247765
    public void clear() {
-
 
247766
      setUserIdIsSet(false);
-
 
247767
      this.userId = 0;
-
 
247768
      this.activation_code = null;
-
 
247769
    }
-
 
247770
 
-
 
247771
    public long getUserId() {
-
 
247772
      return this.userId;
-
 
247773
    }
-
 
247774
 
-
 
247775
    public void setUserId(long userId) {
-
 
247776
      this.userId = userId;
-
 
247777
      setUserIdIsSet(true);
-
 
247778
    }
-
 
247779
 
-
 
247780
    public void unsetUserId() {
-
 
247781
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
247782
    }
-
 
247783
 
-
 
247784
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
247785
    public boolean isSetUserId() {
-
 
247786
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
247787
    }
-
 
247788
 
-
 
247789
    public void setUserIdIsSet(boolean value) {
-
 
247790
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
247791
    }
-
 
247792
 
-
 
247793
    public String getActivation_code() {
-
 
247794
      return this.activation_code;
-
 
247795
    }
-
 
247796
 
-
 
247797
    public void setActivation_code(String activation_code) {
-
 
247798
      this.activation_code = activation_code;
-
 
247799
    }
-
 
247800
 
-
 
247801
    public void unsetActivation_code() {
-
 
247802
      this.activation_code = null;
-
 
247803
    }
-
 
247804
 
-
 
247805
    /** Returns true if field activation_code is set (has been assigned a value) and false otherwise */
-
 
247806
    public boolean isSetActivation_code() {
-
 
247807
      return this.activation_code != null;
-
 
247808
    }
-
 
247809
 
-
 
247810
    public void setActivation_codeIsSet(boolean value) {
-
 
247811
      if (!value) {
-
 
247812
        this.activation_code = null;
-
 
247813
      }
-
 
247814
    }
-
 
247815
 
-
 
247816
    public void setFieldValue(_Fields field, Object value) {
-
 
247817
      switch (field) {
-
 
247818
      case USER_ID:
-
 
247819
        if (value == null) {
-
 
247820
          unsetUserId();
-
 
247821
        } else {
-
 
247822
          setUserId((Long)value);
-
 
247823
        }
-
 
247824
        break;
-
 
247825
 
-
 
247826
      case ACTIVATION_CODE:
-
 
247827
        if (value == null) {
-
 
247828
          unsetActivation_code();
-
 
247829
        } else {
-
 
247830
          setActivation_code((String)value);
-
 
247831
        }
-
 
247832
        break;
-
 
247833
 
-
 
247834
      }
-
 
247835
    }
-
 
247836
 
-
 
247837
    public Object getFieldValue(_Fields field) {
-
 
247838
      switch (field) {
-
 
247839
      case USER_ID:
-
 
247840
        return Long.valueOf(getUserId());
-
 
247841
 
-
 
247842
      case ACTIVATION_CODE:
-
 
247843
        return getActivation_code();
-
 
247844
 
-
 
247845
      }
-
 
247846
      throw new IllegalStateException();
-
 
247847
    }
-
 
247848
 
-
 
247849
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
247850
    public boolean isSet(_Fields field) {
-
 
247851
      if (field == null) {
-
 
247852
        throw new IllegalArgumentException();
-
 
247853
      }
-
 
247854
 
-
 
247855
      switch (field) {
-
 
247856
      case USER_ID:
-
 
247857
        return isSetUserId();
-
 
247858
      case ACTIVATION_CODE:
-
 
247859
        return isSetActivation_code();
-
 
247860
      }
-
 
247861
      throw new IllegalStateException();
-
 
247862
    }
-
 
247863
 
-
 
247864
    @Override
-
 
247865
    public boolean equals(Object that) {
-
 
247866
      if (that == null)
-
 
247867
        return false;
-
 
247868
      if (that instanceof registerRsa_args)
-
 
247869
        return this.equals((registerRsa_args)that);
-
 
247870
      return false;
-
 
247871
    }
-
 
247872
 
-
 
247873
    public boolean equals(registerRsa_args that) {
-
 
247874
      if (that == null)
-
 
247875
        return false;
-
 
247876
 
-
 
247877
      boolean this_present_userId = true;
-
 
247878
      boolean that_present_userId = true;
-
 
247879
      if (this_present_userId || that_present_userId) {
-
 
247880
        if (!(this_present_userId && that_present_userId))
-
 
247881
          return false;
-
 
247882
        if (this.userId != that.userId)
-
 
247883
          return false;
-
 
247884
      }
-
 
247885
 
-
 
247886
      boolean this_present_activation_code = true && this.isSetActivation_code();
-
 
247887
      boolean that_present_activation_code = true && that.isSetActivation_code();
-
 
247888
      if (this_present_activation_code || that_present_activation_code) {
-
 
247889
        if (!(this_present_activation_code && that_present_activation_code))
-
 
247890
          return false;
-
 
247891
        if (!this.activation_code.equals(that.activation_code))
-
 
247892
          return false;
-
 
247893
      }
-
 
247894
 
-
 
247895
      return true;
-
 
247896
    }
-
 
247897
 
-
 
247898
    @Override
-
 
247899
    public int hashCode() {
-
 
247900
      return 0;
-
 
247901
    }
-
 
247902
 
-
 
247903
    public int compareTo(registerRsa_args other) {
-
 
247904
      if (!getClass().equals(other.getClass())) {
-
 
247905
        return getClass().getName().compareTo(other.getClass().getName());
-
 
247906
      }
-
 
247907
 
-
 
247908
      int lastComparison = 0;
-
 
247909
      registerRsa_args typedOther = (registerRsa_args)other;
-
 
247910
 
-
 
247911
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
247912
      if (lastComparison != 0) {
-
 
247913
        return lastComparison;
-
 
247914
      }
-
 
247915
      if (isSetUserId()) {
-
 
247916
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
247917
        if (lastComparison != 0) {
-
 
247918
          return lastComparison;
-
 
247919
        }
-
 
247920
      }
-
 
247921
      lastComparison = Boolean.valueOf(isSetActivation_code()).compareTo(typedOther.isSetActivation_code());
-
 
247922
      if (lastComparison != 0) {
-
 
247923
        return lastComparison;
-
 
247924
      }
-
 
247925
      if (isSetActivation_code()) {
-
 
247926
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activation_code, typedOther.activation_code);
-
 
247927
        if (lastComparison != 0) {
-
 
247928
          return lastComparison;
-
 
247929
        }
-
 
247930
      }
-
 
247931
      return 0;
-
 
247932
    }
-
 
247933
 
-
 
247934
    public _Fields fieldForId(int fieldId) {
-
 
247935
      return _Fields.findByThriftId(fieldId);
-
 
247936
    }
-
 
247937
 
-
 
247938
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
247939
      org.apache.thrift.protocol.TField field;
-
 
247940
      iprot.readStructBegin();
-
 
247941
      while (true)
-
 
247942
      {
-
 
247943
        field = iprot.readFieldBegin();
-
 
247944
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
247945
          break;
-
 
247946
        }
-
 
247947
        switch (field.id) {
-
 
247948
          case 1: // USER_ID
-
 
247949
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
247950
              this.userId = iprot.readI64();
-
 
247951
              setUserIdIsSet(true);
-
 
247952
            } else { 
-
 
247953
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
247954
            }
-
 
247955
            break;
-
 
247956
          case 2: // ACTIVATION_CODE
-
 
247957
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
247958
              this.activation_code = iprot.readString();
-
 
247959
            } else { 
-
 
247960
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
247961
            }
-
 
247962
            break;
-
 
247963
          default:
-
 
247964
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
247965
        }
-
 
247966
        iprot.readFieldEnd();
-
 
247967
      }
-
 
247968
      iprot.readStructEnd();
-
 
247969
      validate();
-
 
247970
    }
-
 
247971
 
-
 
247972
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
247973
      validate();
-
 
247974
 
-
 
247975
      oprot.writeStructBegin(STRUCT_DESC);
-
 
247976
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
247977
      oprot.writeI64(this.userId);
-
 
247978
      oprot.writeFieldEnd();
-
 
247979
      if (this.activation_code != null) {
-
 
247980
        oprot.writeFieldBegin(ACTIVATION_CODE_FIELD_DESC);
-
 
247981
        oprot.writeString(this.activation_code);
-
 
247982
        oprot.writeFieldEnd();
-
 
247983
      }
-
 
247984
      oprot.writeFieldStop();
-
 
247985
      oprot.writeStructEnd();
-
 
247986
    }
-
 
247987
 
-
 
247988
    @Override
-
 
247989
    public String toString() {
-
 
247990
      StringBuilder sb = new StringBuilder("registerRsa_args(");
-
 
247991
      boolean first = true;
-
 
247992
 
-
 
247993
      sb.append("userId:");
-
 
247994
      sb.append(this.userId);
-
 
247995
      first = false;
-
 
247996
      if (!first) sb.append(", ");
-
 
247997
      sb.append("activation_code:");
-
 
247998
      if (this.activation_code == null) {
-
 
247999
        sb.append("null");
-
 
248000
      } else {
-
 
248001
        sb.append(this.activation_code);
-
 
248002
      }
-
 
248003
      first = false;
-
 
248004
      sb.append(")");
-
 
248005
      return sb.toString();
-
 
248006
    }
-
 
248007
 
-
 
248008
    public void validate() throws org.apache.thrift.TException {
-
 
248009
      // check for required fields
-
 
248010
    }
-
 
248011
 
-
 
248012
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
248013
      try {
-
 
248014
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
248015
      } catch (org.apache.thrift.TException te) {
-
 
248016
        throw new java.io.IOException(te);
-
 
248017
      }
-
 
248018
    }
-
 
248019
 
-
 
248020
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
248021
      try {
-
 
248022
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
248023
        __isset_bit_vector = new BitSet(1);
-
 
248024
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
248025
      } catch (org.apache.thrift.TException te) {
-
 
248026
        throw new java.io.IOException(te);
-
 
248027
      }
-
 
248028
    }
-
 
248029
 
-
 
248030
  }
-
 
248031
 
-
 
248032
  public static class registerRsa_result implements org.apache.thrift.TBase<registerRsa_result, registerRsa_result._Fields>, java.io.Serializable, Cloneable   {
-
 
248033
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("registerRsa_result");
-
 
248034
 
-
 
248035
    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);
-
 
248036
 
-
 
248037
    private boolean success; // required
-
 
248038
 
-
 
248039
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
248040
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
248041
      SUCCESS((short)0, "success");
-
 
248042
 
-
 
248043
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
248044
 
-
 
248045
      static {
-
 
248046
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
248047
          byName.put(field.getFieldName(), field);
-
 
248048
        }
-
 
248049
      }
-
 
248050
 
-
 
248051
      /**
-
 
248052
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
248053
       */
-
 
248054
      public static _Fields findByThriftId(int fieldId) {
-
 
248055
        switch(fieldId) {
-
 
248056
          case 0: // SUCCESS
-
 
248057
            return SUCCESS;
-
 
248058
          default:
-
 
248059
            return null;
-
 
248060
        }
-
 
248061
      }
-
 
248062
 
-
 
248063
      /**
-
 
248064
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
248065
       * if it is not found.
-
 
248066
       */
-
 
248067
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
248068
        _Fields fields = findByThriftId(fieldId);
-
 
248069
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
248070
        return fields;
-
 
248071
      }
-
 
248072
 
-
 
248073
      /**
-
 
248074
       * Find the _Fields constant that matches name, or null if its not found.
-
 
248075
       */
-
 
248076
      public static _Fields findByName(String name) {
-
 
248077
        return byName.get(name);
-
 
248078
      }
-
 
248079
 
-
 
248080
      private final short _thriftId;
-
 
248081
      private final String _fieldName;
-
 
248082
 
-
 
248083
      _Fields(short thriftId, String fieldName) {
-
 
248084
        _thriftId = thriftId;
-
 
248085
        _fieldName = fieldName;
-
 
248086
      }
-
 
248087
 
-
 
248088
      public short getThriftFieldId() {
-
 
248089
        return _thriftId;
-
 
248090
      }
-
 
248091
 
-
 
248092
      public String getFieldName() {
-
 
248093
        return _fieldName;
-
 
248094
      }
-
 
248095
    }
-
 
248096
 
-
 
248097
    // isset id assignments
-
 
248098
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
248099
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
248100
 
-
 
248101
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
248102
    static {
-
 
248103
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
248104
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
248105
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
248106
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
248107
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(registerRsa_result.class, metaDataMap);
-
 
248108
    }
-
 
248109
 
-
 
248110
    public registerRsa_result() {
-
 
248111
    }
-
 
248112
 
-
 
248113
    public registerRsa_result(
-
 
248114
      boolean success)
-
 
248115
    {
-
 
248116
      this();
-
 
248117
      this.success = success;
-
 
248118
      setSuccessIsSet(true);
-
 
248119
    }
-
 
248120
 
-
 
248121
    /**
-
 
248122
     * Performs a deep copy on <i>other</i>.
-
 
248123
     */
-
 
248124
    public registerRsa_result(registerRsa_result other) {
-
 
248125
      __isset_bit_vector.clear();
-
 
248126
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
248127
      this.success = other.success;
-
 
248128
    }
-
 
248129
 
-
 
248130
    public registerRsa_result deepCopy() {
-
 
248131
      return new registerRsa_result(this);
-
 
248132
    }
-
 
248133
 
-
 
248134
    @Override
-
 
248135
    public void clear() {
-
 
248136
      setSuccessIsSet(false);
-
 
248137
      this.success = false;
-
 
248138
    }
-
 
248139
 
-
 
248140
    public boolean isSuccess() {
-
 
248141
      return this.success;
-
 
248142
    }
-
 
248143
 
-
 
248144
    public void setSuccess(boolean success) {
-
 
248145
      this.success = success;
-
 
248146
      setSuccessIsSet(true);
-
 
248147
    }
-
 
248148
 
-
 
248149
    public void unsetSuccess() {
-
 
248150
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
248151
    }
-
 
248152
 
-
 
248153
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
248154
    public boolean isSetSuccess() {
-
 
248155
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
248156
    }
-
 
248157
 
-
 
248158
    public void setSuccessIsSet(boolean value) {
-
 
248159
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
248160
    }
-
 
248161
 
-
 
248162
    public void setFieldValue(_Fields field, Object value) {
-
 
248163
      switch (field) {
-
 
248164
      case SUCCESS:
-
 
248165
        if (value == null) {
-
 
248166
          unsetSuccess();
-
 
248167
        } else {
-
 
248168
          setSuccess((Boolean)value);
-
 
248169
        }
-
 
248170
        break;
-
 
248171
 
-
 
248172
      }
-
 
248173
    }
-
 
248174
 
-
 
248175
    public Object getFieldValue(_Fields field) {
-
 
248176
      switch (field) {
-
 
248177
      case SUCCESS:
-
 
248178
        return Boolean.valueOf(isSuccess());
-
 
248179
 
-
 
248180
      }
-
 
248181
      throw new IllegalStateException();
-
 
248182
    }
-
 
248183
 
-
 
248184
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
248185
    public boolean isSet(_Fields field) {
-
 
248186
      if (field == null) {
-
 
248187
        throw new IllegalArgumentException();
-
 
248188
      }
-
 
248189
 
-
 
248190
      switch (field) {
-
 
248191
      case SUCCESS:
-
 
248192
        return isSetSuccess();
-
 
248193
      }
-
 
248194
      throw new IllegalStateException();
-
 
248195
    }
-
 
248196
 
-
 
248197
    @Override
-
 
248198
    public boolean equals(Object that) {
-
 
248199
      if (that == null)
-
 
248200
        return false;
-
 
248201
      if (that instanceof registerRsa_result)
-
 
248202
        return this.equals((registerRsa_result)that);
-
 
248203
      return false;
-
 
248204
    }
-
 
248205
 
-
 
248206
    public boolean equals(registerRsa_result that) {
-
 
248207
      if (that == null)
-
 
248208
        return false;
-
 
248209
 
-
 
248210
      boolean this_present_success = true;
-
 
248211
      boolean that_present_success = true;
-
 
248212
      if (this_present_success || that_present_success) {
-
 
248213
        if (!(this_present_success && that_present_success))
-
 
248214
          return false;
-
 
248215
        if (this.success != that.success)
-
 
248216
          return false;
-
 
248217
      }
-
 
248218
 
-
 
248219
      return true;
-
 
248220
    }
-
 
248221
 
-
 
248222
    @Override
-
 
248223
    public int hashCode() {
-
 
248224
      return 0;
-
 
248225
    }
-
 
248226
 
-
 
248227
    public int compareTo(registerRsa_result other) {
-
 
248228
      if (!getClass().equals(other.getClass())) {
-
 
248229
        return getClass().getName().compareTo(other.getClass().getName());
-
 
248230
      }
-
 
248231
 
-
 
248232
      int lastComparison = 0;
-
 
248233
      registerRsa_result typedOther = (registerRsa_result)other;
-
 
248234
 
-
 
248235
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
248236
      if (lastComparison != 0) {
-
 
248237
        return lastComparison;
-
 
248238
      }
-
 
248239
      if (isSetSuccess()) {
-
 
248240
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
248241
        if (lastComparison != 0) {
-
 
248242
          return lastComparison;
-
 
248243
        }
-
 
248244
      }
-
 
248245
      return 0;
-
 
248246
    }
-
 
248247
 
-
 
248248
    public _Fields fieldForId(int fieldId) {
-
 
248249
      return _Fields.findByThriftId(fieldId);
-
 
248250
    }
-
 
248251
 
-
 
248252
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
248253
      org.apache.thrift.protocol.TField field;
-
 
248254
      iprot.readStructBegin();
-
 
248255
      while (true)
-
 
248256
      {
-
 
248257
        field = iprot.readFieldBegin();
-
 
248258
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
248259
          break;
-
 
248260
        }
-
 
248261
        switch (field.id) {
-
 
248262
          case 0: // SUCCESS
-
 
248263
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
248264
              this.success = iprot.readBool();
-
 
248265
              setSuccessIsSet(true);
-
 
248266
            } else { 
-
 
248267
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
248268
            }
-
 
248269
            break;
-
 
248270
          default:
-
 
248271
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
248272
        }
-
 
248273
        iprot.readFieldEnd();
-
 
248274
      }
-
 
248275
      iprot.readStructEnd();
-
 
248276
      validate();
-
 
248277
    }
-
 
248278
 
-
 
248279
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
248280
      oprot.writeStructBegin(STRUCT_DESC);
-
 
248281
 
-
 
248282
      if (this.isSetSuccess()) {
-
 
248283
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
248284
        oprot.writeBool(this.success);
-
 
248285
        oprot.writeFieldEnd();
-
 
248286
      }
-
 
248287
      oprot.writeFieldStop();
-
 
248288
      oprot.writeStructEnd();
-
 
248289
    }
-
 
248290
 
-
 
248291
    @Override
-
 
248292
    public String toString() {
-
 
248293
      StringBuilder sb = new StringBuilder("registerRsa_result(");
-
 
248294
      boolean first = true;
-
 
248295
 
-
 
248296
      sb.append("success:");
-
 
248297
      sb.append(this.success);
-
 
248298
      first = false;
-
 
248299
      sb.append(")");
-
 
248300
      return sb.toString();
-
 
248301
    }
-
 
248302
 
247533
    public void validate() throws org.apache.thrift.TException {
248303
    public void validate() throws org.apache.thrift.TException {
247534
      // check for required fields
248304
      // check for required fields
247535
    }
248305
    }
247536
 
248306
 
247537
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
248307
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {