Subversion Repositories SmartDukaan

Rev

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

Rev 12722 Rev 15251
Line 361... Line 361...
361
 
361
 
362
    public List<Counter> searchCounter(String type1, String searchString) throws org.apache.thrift.TException;
362
    public List<Counter> searchCounter(String type1, String searchString) throws org.apache.thrift.TException;
363
 
363
 
364
    public List<User> getAllUsersByCounter(long counterId) throws org.apache.thrift.TException;
364
    public List<User> getAllUsersByCounter(long counterId) throws org.apache.thrift.TException;
365
 
365
 
-
 
366
    public String getActiveAccessTokenForUser(long userId, String source) throws org.apache.thrift.TException;
-
 
367
 
-
 
368
    public boolean validateAccessToken(String accessToken) throws org.apache.thrift.TException;
-
 
369
 
366
  }
370
  }
367
 
371
 
368
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
372
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
369
 
373
 
370
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
374
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
Line 527... Line 531...
527
 
531
 
528
    public void searchCounter(String type1, String searchString, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.searchCounter_call> resultHandler) throws org.apache.thrift.TException;
532
    public void searchCounter(String type1, String searchString, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.searchCounter_call> resultHandler) throws org.apache.thrift.TException;
529
 
533
 
530
    public void getAllUsersByCounter(long counterId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllUsersByCounter_call> resultHandler) throws org.apache.thrift.TException;
534
    public void getAllUsersByCounter(long counterId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllUsersByCounter_call> resultHandler) throws org.apache.thrift.TException;
531
 
535
 
-
 
536
    public void getActiveAccessTokenForUser(long userId, String source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActiveAccessTokenForUser_call> resultHandler) throws org.apache.thrift.TException;
-
 
537
 
-
 
538
    public void validateAccessToken(String accessToken, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateAccessToken_call> resultHandler) throws org.apache.thrift.TException;
-
 
539
 
532
  }
540
  }
533
 
541
 
534
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
542
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
535
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
543
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
536
      public Factory() {}
544
      public Factory() {}
Line 2617... Line 2625...
2617
        return result.success;
2625
        return result.success;
2618
      }
2626
      }
2619
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUsersByCounter failed: unknown result");
2627
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUsersByCounter failed: unknown result");
2620
    }
2628
    }
2621
 
2629
 
-
 
2630
    public String getActiveAccessTokenForUser(long userId, String source) throws org.apache.thrift.TException
-
 
2631
    {
-
 
2632
      send_getActiveAccessTokenForUser(userId, source);
-
 
2633
      return recv_getActiveAccessTokenForUser();
-
 
2634
    }
-
 
2635
 
-
 
2636
    public void send_getActiveAccessTokenForUser(long userId, String source) throws org.apache.thrift.TException
-
 
2637
    {
-
 
2638
      getActiveAccessTokenForUser_args args = new getActiveAccessTokenForUser_args();
-
 
2639
      args.setUserId(userId);
-
 
2640
      args.setSource(source);
-
 
2641
      sendBase("getActiveAccessTokenForUser", args);
-
 
2642
    }
-
 
2643
 
-
 
2644
    public String recv_getActiveAccessTokenForUser() throws org.apache.thrift.TException
-
 
2645
    {
-
 
2646
      getActiveAccessTokenForUser_result result = new getActiveAccessTokenForUser_result();
-
 
2647
      receiveBase(result, "getActiveAccessTokenForUser");
-
 
2648
      if (result.isSetSuccess()) {
-
 
2649
        return result.success;
-
 
2650
      }
-
 
2651
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActiveAccessTokenForUser failed: unknown result");
-
 
2652
    }
-
 
2653
 
-
 
2654
    public boolean validateAccessToken(String accessToken) throws org.apache.thrift.TException
-
 
2655
    {
-
 
2656
      send_validateAccessToken(accessToken);
-
 
2657
      return recv_validateAccessToken();
-
 
2658
    }
-
 
2659
 
-
 
2660
    public void send_validateAccessToken(String accessToken) throws org.apache.thrift.TException
-
 
2661
    {
-
 
2662
      validateAccessToken_args args = new validateAccessToken_args();
-
 
2663
      args.setAccessToken(accessToken);
-
 
2664
      sendBase("validateAccessToken", args);
-
 
2665
    }
-
 
2666
 
-
 
2667
    public boolean recv_validateAccessToken() throws org.apache.thrift.TException
-
 
2668
    {
-
 
2669
      validateAccessToken_result result = new validateAccessToken_result();
-
 
2670
      receiveBase(result, "validateAccessToken");
-
 
2671
      if (result.isSetSuccess()) {
-
 
2672
        return result.success;
-
 
2673
      }
-
 
2674
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateAccessToken failed: unknown result");
-
 
2675
    }
-
 
2676
 
2622
  }
2677
  }
2623
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2678
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2624
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2679
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2625
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2680
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2626
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2681
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5433... Line 5488...
5433
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5488
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5434
        return (new Client(prot)).recv_getAllUsersByCounter();
5489
        return (new Client(prot)).recv_getAllUsersByCounter();
5435
      }
5490
      }
5436
    }
5491
    }
5437
 
5492
 
-
 
5493
    public void getActiveAccessTokenForUser(long userId, String source, org.apache.thrift.async.AsyncMethodCallback<getActiveAccessTokenForUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
5494
      checkReady();
-
 
5495
      getActiveAccessTokenForUser_call method_call = new getActiveAccessTokenForUser_call(userId, source, resultHandler, this, ___protocolFactory, ___transport);
-
 
5496
      this.___currentMethod = method_call;
-
 
5497
      ___manager.call(method_call);
-
 
5498
    }
-
 
5499
 
-
 
5500
    public static class getActiveAccessTokenForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5501
      private long userId;
-
 
5502
      private String source;
-
 
5503
      public getActiveAccessTokenForUser_call(long userId, String source, org.apache.thrift.async.AsyncMethodCallback<getActiveAccessTokenForUser_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 {
-
 
5504
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5505
        this.userId = userId;
-
 
5506
        this.source = source;
-
 
5507
      }
-
 
5508
 
-
 
5509
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5510
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getActiveAccessTokenForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5511
        getActiveAccessTokenForUser_args args = new getActiveAccessTokenForUser_args();
-
 
5512
        args.setUserId(userId);
-
 
5513
        args.setSource(source);
-
 
5514
        args.write(prot);
-
 
5515
        prot.writeMessageEnd();
-
 
5516
      }
-
 
5517
 
-
 
5518
      public String getResult() throws org.apache.thrift.TException {
-
 
5519
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5520
          throw new IllegalStateException("Method call not finished!");
-
 
5521
        }
-
 
5522
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5523
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5524
        return (new Client(prot)).recv_getActiveAccessTokenForUser();
-
 
5525
      }
-
 
5526
    }
-
 
5527
 
-
 
5528
    public void validateAccessToken(String accessToken, org.apache.thrift.async.AsyncMethodCallback<validateAccessToken_call> resultHandler) throws org.apache.thrift.TException {
-
 
5529
      checkReady();
-
 
5530
      validateAccessToken_call method_call = new validateAccessToken_call(accessToken, resultHandler, this, ___protocolFactory, ___transport);
-
 
5531
      this.___currentMethod = method_call;
-
 
5532
      ___manager.call(method_call);
-
 
5533
    }
-
 
5534
 
-
 
5535
    public static class validateAccessToken_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5536
      private String accessToken;
-
 
5537
      public validateAccessToken_call(String accessToken, org.apache.thrift.async.AsyncMethodCallback<validateAccessToken_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 {
-
 
5538
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5539
        this.accessToken = accessToken;
-
 
5540
      }
-
 
5541
 
-
 
5542
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5543
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateAccessToken", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5544
        validateAccessToken_args args = new validateAccessToken_args();
-
 
5545
        args.setAccessToken(accessToken);
-
 
5546
        args.write(prot);
-
 
5547
        prot.writeMessageEnd();
-
 
5548
      }
-
 
5549
 
-
 
5550
      public boolean getResult() throws org.apache.thrift.TException {
-
 
5551
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5552
          throw new IllegalStateException("Method call not finished!");
-
 
5553
        }
-
 
5554
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5555
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5556
        return (new Client(prot)).recv_validateAccessToken();
-
 
5557
      }
-
 
5558
    }
-
 
5559
 
5438
  }
5560
  }
5439
 
5561
 
5440
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5562
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5441
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5563
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5442
    public Processor(I iface) {
5564
    public Processor(I iface) {
Line 5527... Line 5649...
5527
      processMap.put("changePrivateDealUserStatus", new changePrivateDealUserStatus());
5649
      processMap.put("changePrivateDealUserStatus", new changePrivateDealUserStatus());
5528
      processMap.put("getPrivateDealUser", new getPrivateDealUser());
5650
      processMap.put("getPrivateDealUser", new getPrivateDealUser());
5529
      processMap.put("registerCounter", new registerCounter());
5651
      processMap.put("registerCounter", new registerCounter());
5530
      processMap.put("searchCounter", new searchCounter());
5652
      processMap.put("searchCounter", new searchCounter());
5531
      processMap.put("getAllUsersByCounter", new getAllUsersByCounter());
5653
      processMap.put("getAllUsersByCounter", new getAllUsersByCounter());
-
 
5654
      processMap.put("getActiveAccessTokenForUser", new getActiveAccessTokenForUser());
-
 
5655
      processMap.put("validateAccessToken", new validateAccessToken());
5532
      return processMap;
5656
      return processMap;
5533
    }
5657
    }
5534
 
5658
 
5535
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
5659
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
5536
      public createAnonymousUser() {
5660
      public createAnonymousUser() {
Line 7091... Line 7215...
7091
        result.success = iface.getAllUsersByCounter(args.counterId);
7215
        result.success = iface.getAllUsersByCounter(args.counterId);
7092
        return result;
7216
        return result;
7093
      }
7217
      }
7094
    }
7218
    }
7095
 
7219
 
-
 
7220
    private static class getActiveAccessTokenForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActiveAccessTokenForUser_args> {
-
 
7221
      public getActiveAccessTokenForUser() {
-
 
7222
        super("getActiveAccessTokenForUser");
-
 
7223
      }
-
 
7224
 
-
 
7225
      protected getActiveAccessTokenForUser_args getEmptyArgsInstance() {
-
 
7226
        return new getActiveAccessTokenForUser_args();
-
 
7227
      }
-
 
7228
 
-
 
7229
      protected getActiveAccessTokenForUser_result getResult(I iface, getActiveAccessTokenForUser_args args) throws org.apache.thrift.TException {
-
 
7230
        getActiveAccessTokenForUser_result result = new getActiveAccessTokenForUser_result();
-
 
7231
        result.success = iface.getActiveAccessTokenForUser(args.userId, args.source);
-
 
7232
        return result;
-
 
7233
      }
-
 
7234
    }
-
 
7235
 
-
 
7236
    private static class validateAccessToken<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateAccessToken_args> {
-
 
7237
      public validateAccessToken() {
-
 
7238
        super("validateAccessToken");
-
 
7239
      }
-
 
7240
 
-
 
7241
      protected validateAccessToken_args getEmptyArgsInstance() {
-
 
7242
        return new validateAccessToken_args();
-
 
7243
      }
-
 
7244
 
-
 
7245
      protected validateAccessToken_result getResult(I iface, validateAccessToken_args args) throws org.apache.thrift.TException {
-
 
7246
        validateAccessToken_result result = new validateAccessToken_result();
-
 
7247
        result.success = iface.validateAccessToken(args.accessToken);
-
 
7248
        result.setSuccessIsSet(true);
-
 
7249
        return result;
-
 
7250
      }
-
 
7251
    }
-
 
7252
 
7096
  }
7253
  }
7097
 
7254
 
7098
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
7255
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
7099
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
7256
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
7100
 
7257
 
Line 65351... Line 65508...
65351
      first = false;
65508
      first = false;
65352
      sb.append(")");
65509
      sb.append(")");
65353
      return sb.toString();
65510
      return sb.toString();
65354
    }
65511
    }
65355
 
65512
 
-
 
65513
    public void validate() throws org.apache.thrift.TException {
-
 
65514
      // check for required fields
-
 
65515
    }
-
 
65516
 
-
 
65517
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
65518
      try {
-
 
65519
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
65520
      } catch (org.apache.thrift.TException te) {
-
 
65521
        throw new java.io.IOException(te);
-
 
65522
      }
-
 
65523
    }
-
 
65524
 
-
 
65525
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
65526
      try {
-
 
65527
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
65528
      } catch (org.apache.thrift.TException te) {
-
 
65529
        throw new java.io.IOException(te);
-
 
65530
      }
-
 
65531
    }
-
 
65532
 
-
 
65533
  }
-
 
65534
 
-
 
65535
  public static class getActiveAccessTokenForUser_args implements org.apache.thrift.TBase<getActiveAccessTokenForUser_args, getActiveAccessTokenForUser_args._Fields>, java.io.Serializable, Cloneable   {
-
 
65536
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActiveAccessTokenForUser_args");
-
 
65537
 
-
 
65538
    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);
-
 
65539
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
65540
 
-
 
65541
    private long userId; // required
-
 
65542
    private String source; // required
-
 
65543
 
-
 
65544
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
65545
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
65546
      USER_ID((short)1, "userId"),
-
 
65547
      SOURCE((short)2, "source");
-
 
65548
 
-
 
65549
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
65550
 
-
 
65551
      static {
-
 
65552
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
65553
          byName.put(field.getFieldName(), field);
-
 
65554
        }
-
 
65555
      }
-
 
65556
 
-
 
65557
      /**
-
 
65558
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
65559
       */
-
 
65560
      public static _Fields findByThriftId(int fieldId) {
-
 
65561
        switch(fieldId) {
-
 
65562
          case 1: // USER_ID
-
 
65563
            return USER_ID;
-
 
65564
          case 2: // SOURCE
-
 
65565
            return SOURCE;
-
 
65566
          default:
-
 
65567
            return null;
-
 
65568
        }
-
 
65569
      }
-
 
65570
 
-
 
65571
      /**
-
 
65572
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
65573
       * if it is not found.
-
 
65574
       */
-
 
65575
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
65576
        _Fields fields = findByThriftId(fieldId);
-
 
65577
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
65578
        return fields;
-
 
65579
      }
-
 
65580
 
-
 
65581
      /**
-
 
65582
       * Find the _Fields constant that matches name, or null if its not found.
-
 
65583
       */
-
 
65584
      public static _Fields findByName(String name) {
-
 
65585
        return byName.get(name);
-
 
65586
      }
-
 
65587
 
-
 
65588
      private final short _thriftId;
-
 
65589
      private final String _fieldName;
-
 
65590
 
-
 
65591
      _Fields(short thriftId, String fieldName) {
-
 
65592
        _thriftId = thriftId;
-
 
65593
        _fieldName = fieldName;
-
 
65594
      }
-
 
65595
 
-
 
65596
      public short getThriftFieldId() {
-
 
65597
        return _thriftId;
-
 
65598
      }
-
 
65599
 
-
 
65600
      public String getFieldName() {
-
 
65601
        return _fieldName;
-
 
65602
      }
-
 
65603
    }
-
 
65604
 
-
 
65605
    // isset id assignments
-
 
65606
    private static final int __USERID_ISSET_ID = 0;
-
 
65607
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
65608
 
-
 
65609
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
65610
    static {
-
 
65611
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
65612
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
65613
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
65614
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
65615
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
65616
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
65617
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActiveAccessTokenForUser_args.class, metaDataMap);
-
 
65618
    }
-
 
65619
 
-
 
65620
    public getActiveAccessTokenForUser_args() {
-
 
65621
    }
-
 
65622
 
-
 
65623
    public getActiveAccessTokenForUser_args(
-
 
65624
      long userId,
-
 
65625
      String source)
-
 
65626
    {
-
 
65627
      this();
-
 
65628
      this.userId = userId;
-
 
65629
      setUserIdIsSet(true);
-
 
65630
      this.source = source;
-
 
65631
    }
-
 
65632
 
-
 
65633
    /**
-
 
65634
     * Performs a deep copy on <i>other</i>.
-
 
65635
     */
-
 
65636
    public getActiveAccessTokenForUser_args(getActiveAccessTokenForUser_args other) {
-
 
65637
      __isset_bit_vector.clear();
-
 
65638
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
65639
      this.userId = other.userId;
-
 
65640
      if (other.isSetSource()) {
-
 
65641
        this.source = other.source;
-
 
65642
      }
-
 
65643
    }
-
 
65644
 
-
 
65645
    public getActiveAccessTokenForUser_args deepCopy() {
-
 
65646
      return new getActiveAccessTokenForUser_args(this);
-
 
65647
    }
-
 
65648
 
-
 
65649
    @Override
-
 
65650
    public void clear() {
-
 
65651
      setUserIdIsSet(false);
-
 
65652
      this.userId = 0;
-
 
65653
      this.source = null;
-
 
65654
    }
-
 
65655
 
-
 
65656
    public long getUserId() {
-
 
65657
      return this.userId;
-
 
65658
    }
-
 
65659
 
-
 
65660
    public void setUserId(long userId) {
-
 
65661
      this.userId = userId;
-
 
65662
      setUserIdIsSet(true);
-
 
65663
    }
-
 
65664
 
-
 
65665
    public void unsetUserId() {
-
 
65666
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
65667
    }
-
 
65668
 
-
 
65669
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
65670
    public boolean isSetUserId() {
-
 
65671
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
65672
    }
-
 
65673
 
-
 
65674
    public void setUserIdIsSet(boolean value) {
-
 
65675
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
65676
    }
-
 
65677
 
-
 
65678
    public String getSource() {
-
 
65679
      return this.source;
-
 
65680
    }
-
 
65681
 
-
 
65682
    public void setSource(String source) {
-
 
65683
      this.source = source;
-
 
65684
    }
-
 
65685
 
-
 
65686
    public void unsetSource() {
-
 
65687
      this.source = null;
-
 
65688
    }
-
 
65689
 
-
 
65690
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
-
 
65691
    public boolean isSetSource() {
-
 
65692
      return this.source != null;
-
 
65693
    }
-
 
65694
 
-
 
65695
    public void setSourceIsSet(boolean value) {
-
 
65696
      if (!value) {
-
 
65697
        this.source = null;
-
 
65698
      }
-
 
65699
    }
-
 
65700
 
-
 
65701
    public void setFieldValue(_Fields field, Object value) {
-
 
65702
      switch (field) {
-
 
65703
      case USER_ID:
-
 
65704
        if (value == null) {
-
 
65705
          unsetUserId();
-
 
65706
        } else {
-
 
65707
          setUserId((Long)value);
-
 
65708
        }
-
 
65709
        break;
-
 
65710
 
-
 
65711
      case SOURCE:
-
 
65712
        if (value == null) {
-
 
65713
          unsetSource();
-
 
65714
        } else {
-
 
65715
          setSource((String)value);
-
 
65716
        }
-
 
65717
        break;
-
 
65718
 
-
 
65719
      }
-
 
65720
    }
-
 
65721
 
-
 
65722
    public Object getFieldValue(_Fields field) {
-
 
65723
      switch (field) {
-
 
65724
      case USER_ID:
-
 
65725
        return Long.valueOf(getUserId());
-
 
65726
 
-
 
65727
      case SOURCE:
-
 
65728
        return getSource();
-
 
65729
 
-
 
65730
      }
-
 
65731
      throw new IllegalStateException();
-
 
65732
    }
-
 
65733
 
-
 
65734
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
65735
    public boolean isSet(_Fields field) {
-
 
65736
      if (field == null) {
-
 
65737
        throw new IllegalArgumentException();
-
 
65738
      }
-
 
65739
 
-
 
65740
      switch (field) {
-
 
65741
      case USER_ID:
-
 
65742
        return isSetUserId();
-
 
65743
      case SOURCE:
-
 
65744
        return isSetSource();
-
 
65745
      }
-
 
65746
      throw new IllegalStateException();
-
 
65747
    }
-
 
65748
 
-
 
65749
    @Override
-
 
65750
    public boolean equals(Object that) {
-
 
65751
      if (that == null)
-
 
65752
        return false;
-
 
65753
      if (that instanceof getActiveAccessTokenForUser_args)
-
 
65754
        return this.equals((getActiveAccessTokenForUser_args)that);
-
 
65755
      return false;
-
 
65756
    }
-
 
65757
 
-
 
65758
    public boolean equals(getActiveAccessTokenForUser_args that) {
-
 
65759
      if (that == null)
-
 
65760
        return false;
-
 
65761
 
-
 
65762
      boolean this_present_userId = true;
-
 
65763
      boolean that_present_userId = true;
-
 
65764
      if (this_present_userId || that_present_userId) {
-
 
65765
        if (!(this_present_userId && that_present_userId))
-
 
65766
          return false;
-
 
65767
        if (this.userId != that.userId)
-
 
65768
          return false;
-
 
65769
      }
-
 
65770
 
-
 
65771
      boolean this_present_source = true && this.isSetSource();
-
 
65772
      boolean that_present_source = true && that.isSetSource();
-
 
65773
      if (this_present_source || that_present_source) {
-
 
65774
        if (!(this_present_source && that_present_source))
-
 
65775
          return false;
-
 
65776
        if (!this.source.equals(that.source))
-
 
65777
          return false;
-
 
65778
      }
-
 
65779
 
-
 
65780
      return true;
-
 
65781
    }
-
 
65782
 
-
 
65783
    @Override
-
 
65784
    public int hashCode() {
-
 
65785
      return 0;
-
 
65786
    }
-
 
65787
 
-
 
65788
    public int compareTo(getActiveAccessTokenForUser_args other) {
-
 
65789
      if (!getClass().equals(other.getClass())) {
-
 
65790
        return getClass().getName().compareTo(other.getClass().getName());
-
 
65791
      }
-
 
65792
 
-
 
65793
      int lastComparison = 0;
-
 
65794
      getActiveAccessTokenForUser_args typedOther = (getActiveAccessTokenForUser_args)other;
-
 
65795
 
-
 
65796
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
65797
      if (lastComparison != 0) {
-
 
65798
        return lastComparison;
-
 
65799
      }
-
 
65800
      if (isSetUserId()) {
-
 
65801
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
65802
        if (lastComparison != 0) {
-
 
65803
          return lastComparison;
-
 
65804
        }
-
 
65805
      }
-
 
65806
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
-
 
65807
      if (lastComparison != 0) {
-
 
65808
        return lastComparison;
-
 
65809
      }
-
 
65810
      if (isSetSource()) {
-
 
65811
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
-
 
65812
        if (lastComparison != 0) {
-
 
65813
          return lastComparison;
-
 
65814
        }
-
 
65815
      }
-
 
65816
      return 0;
-
 
65817
    }
-
 
65818
 
-
 
65819
    public _Fields fieldForId(int fieldId) {
-
 
65820
      return _Fields.findByThriftId(fieldId);
-
 
65821
    }
-
 
65822
 
-
 
65823
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
65824
      org.apache.thrift.protocol.TField field;
-
 
65825
      iprot.readStructBegin();
-
 
65826
      while (true)
-
 
65827
      {
-
 
65828
        field = iprot.readFieldBegin();
-
 
65829
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
65830
          break;
-
 
65831
        }
-
 
65832
        switch (field.id) {
-
 
65833
          case 1: // USER_ID
-
 
65834
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
65835
              this.userId = iprot.readI64();
-
 
65836
              setUserIdIsSet(true);
-
 
65837
            } else { 
-
 
65838
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
65839
            }
-
 
65840
            break;
-
 
65841
          case 2: // SOURCE
-
 
65842
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
65843
              this.source = iprot.readString();
-
 
65844
            } else { 
-
 
65845
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
65846
            }
-
 
65847
            break;
-
 
65848
          default:
-
 
65849
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
65850
        }
-
 
65851
        iprot.readFieldEnd();
-
 
65852
      }
-
 
65853
      iprot.readStructEnd();
-
 
65854
      validate();
-
 
65855
    }
-
 
65856
 
-
 
65857
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
65858
      validate();
-
 
65859
 
-
 
65860
      oprot.writeStructBegin(STRUCT_DESC);
-
 
65861
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
65862
      oprot.writeI64(this.userId);
-
 
65863
      oprot.writeFieldEnd();
-
 
65864
      if (this.source != null) {
-
 
65865
        oprot.writeFieldBegin(SOURCE_FIELD_DESC);
-
 
65866
        oprot.writeString(this.source);
-
 
65867
        oprot.writeFieldEnd();
-
 
65868
      }
-
 
65869
      oprot.writeFieldStop();
-
 
65870
      oprot.writeStructEnd();
-
 
65871
    }
-
 
65872
 
-
 
65873
    @Override
-
 
65874
    public String toString() {
-
 
65875
      StringBuilder sb = new StringBuilder("getActiveAccessTokenForUser_args(");
-
 
65876
      boolean first = true;
-
 
65877
 
-
 
65878
      sb.append("userId:");
-
 
65879
      sb.append(this.userId);
-
 
65880
      first = false;
-
 
65881
      if (!first) sb.append(", ");
-
 
65882
      sb.append("source:");
-
 
65883
      if (this.source == null) {
-
 
65884
        sb.append("null");
-
 
65885
      } else {
-
 
65886
        sb.append(this.source);
-
 
65887
      }
-
 
65888
      first = false;
-
 
65889
      sb.append(")");
-
 
65890
      return sb.toString();
-
 
65891
    }
-
 
65892
 
-
 
65893
    public void validate() throws org.apache.thrift.TException {
-
 
65894
      // check for required fields
-
 
65895
    }
-
 
65896
 
-
 
65897
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
65898
      try {
-
 
65899
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
65900
      } catch (org.apache.thrift.TException te) {
-
 
65901
        throw new java.io.IOException(te);
-
 
65902
      }
-
 
65903
    }
-
 
65904
 
-
 
65905
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
65906
      try {
-
 
65907
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
65908
        __isset_bit_vector = new BitSet(1);
-
 
65909
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
65910
      } catch (org.apache.thrift.TException te) {
-
 
65911
        throw new java.io.IOException(te);
-
 
65912
      }
-
 
65913
    }
-
 
65914
 
-
 
65915
  }
-
 
65916
 
-
 
65917
  public static class getActiveAccessTokenForUser_result implements org.apache.thrift.TBase<getActiveAccessTokenForUser_result, getActiveAccessTokenForUser_result._Fields>, java.io.Serializable, Cloneable   {
-
 
65918
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActiveAccessTokenForUser_result");
-
 
65919
 
-
 
65920
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
-
 
65921
 
-
 
65922
    private String success; // required
-
 
65923
 
-
 
65924
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
65925
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
65926
      SUCCESS((short)0, "success");
-
 
65927
 
-
 
65928
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
65929
 
-
 
65930
      static {
-
 
65931
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
65932
          byName.put(field.getFieldName(), field);
-
 
65933
        }
-
 
65934
      }
-
 
65935
 
-
 
65936
      /**
-
 
65937
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
65938
       */
-
 
65939
      public static _Fields findByThriftId(int fieldId) {
-
 
65940
        switch(fieldId) {
-
 
65941
          case 0: // SUCCESS
-
 
65942
            return SUCCESS;
-
 
65943
          default:
-
 
65944
            return null;
-
 
65945
        }
-
 
65946
      }
-
 
65947
 
-
 
65948
      /**
-
 
65949
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
65950
       * if it is not found.
-
 
65951
       */
-
 
65952
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
65953
        _Fields fields = findByThriftId(fieldId);
-
 
65954
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
65955
        return fields;
-
 
65956
      }
-
 
65957
 
-
 
65958
      /**
-
 
65959
       * Find the _Fields constant that matches name, or null if its not found.
-
 
65960
       */
-
 
65961
      public static _Fields findByName(String name) {
-
 
65962
        return byName.get(name);
-
 
65963
      }
-
 
65964
 
-
 
65965
      private final short _thriftId;
-
 
65966
      private final String _fieldName;
-
 
65967
 
-
 
65968
      _Fields(short thriftId, String fieldName) {
-
 
65969
        _thriftId = thriftId;
-
 
65970
        _fieldName = fieldName;
-
 
65971
      }
-
 
65972
 
-
 
65973
      public short getThriftFieldId() {
-
 
65974
        return _thriftId;
-
 
65975
      }
-
 
65976
 
-
 
65977
      public String getFieldName() {
-
 
65978
        return _fieldName;
-
 
65979
      }
-
 
65980
    }
-
 
65981
 
-
 
65982
    // isset id assignments
-
 
65983
 
-
 
65984
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
65985
    static {
-
 
65986
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
65987
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
65988
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
65989
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
65990
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActiveAccessTokenForUser_result.class, metaDataMap);
-
 
65991
    }
-
 
65992
 
-
 
65993
    public getActiveAccessTokenForUser_result() {
-
 
65994
    }
-
 
65995
 
-
 
65996
    public getActiveAccessTokenForUser_result(
-
 
65997
      String success)
-
 
65998
    {
-
 
65999
      this();
-
 
66000
      this.success = success;
-
 
66001
    }
-
 
66002
 
-
 
66003
    /**
-
 
66004
     * Performs a deep copy on <i>other</i>.
-
 
66005
     */
-
 
66006
    public getActiveAccessTokenForUser_result(getActiveAccessTokenForUser_result other) {
-
 
66007
      if (other.isSetSuccess()) {
-
 
66008
        this.success = other.success;
-
 
66009
      }
-
 
66010
    }
-
 
66011
 
-
 
66012
    public getActiveAccessTokenForUser_result deepCopy() {
-
 
66013
      return new getActiveAccessTokenForUser_result(this);
-
 
66014
    }
-
 
66015
 
-
 
66016
    @Override
-
 
66017
    public void clear() {
-
 
66018
      this.success = null;
-
 
66019
    }
-
 
66020
 
-
 
66021
    public String getSuccess() {
-
 
66022
      return this.success;
-
 
66023
    }
-
 
66024
 
-
 
66025
    public void setSuccess(String success) {
-
 
66026
      this.success = success;
-
 
66027
    }
-
 
66028
 
-
 
66029
    public void unsetSuccess() {
-
 
66030
      this.success = null;
-
 
66031
    }
-
 
66032
 
-
 
66033
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
66034
    public boolean isSetSuccess() {
-
 
66035
      return this.success != null;
-
 
66036
    }
-
 
66037
 
-
 
66038
    public void setSuccessIsSet(boolean value) {
-
 
66039
      if (!value) {
-
 
66040
        this.success = null;
-
 
66041
      }
-
 
66042
    }
-
 
66043
 
-
 
66044
    public void setFieldValue(_Fields field, Object value) {
-
 
66045
      switch (field) {
-
 
66046
      case SUCCESS:
-
 
66047
        if (value == null) {
-
 
66048
          unsetSuccess();
-
 
66049
        } else {
-
 
66050
          setSuccess((String)value);
-
 
66051
        }
-
 
66052
        break;
-
 
66053
 
-
 
66054
      }
-
 
66055
    }
-
 
66056
 
-
 
66057
    public Object getFieldValue(_Fields field) {
-
 
66058
      switch (field) {
-
 
66059
      case SUCCESS:
-
 
66060
        return getSuccess();
-
 
66061
 
-
 
66062
      }
-
 
66063
      throw new IllegalStateException();
-
 
66064
    }
-
 
66065
 
-
 
66066
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
66067
    public boolean isSet(_Fields field) {
-
 
66068
      if (field == null) {
-
 
66069
        throw new IllegalArgumentException();
-
 
66070
      }
-
 
66071
 
-
 
66072
      switch (field) {
-
 
66073
      case SUCCESS:
-
 
66074
        return isSetSuccess();
-
 
66075
      }
-
 
66076
      throw new IllegalStateException();
-
 
66077
    }
-
 
66078
 
-
 
66079
    @Override
-
 
66080
    public boolean equals(Object that) {
-
 
66081
      if (that == null)
-
 
66082
        return false;
-
 
66083
      if (that instanceof getActiveAccessTokenForUser_result)
-
 
66084
        return this.equals((getActiveAccessTokenForUser_result)that);
-
 
66085
      return false;
-
 
66086
    }
-
 
66087
 
-
 
66088
    public boolean equals(getActiveAccessTokenForUser_result that) {
-
 
66089
      if (that == null)
-
 
66090
        return false;
-
 
66091
 
-
 
66092
      boolean this_present_success = true && this.isSetSuccess();
-
 
66093
      boolean that_present_success = true && that.isSetSuccess();
-
 
66094
      if (this_present_success || that_present_success) {
-
 
66095
        if (!(this_present_success && that_present_success))
-
 
66096
          return false;
-
 
66097
        if (!this.success.equals(that.success))
-
 
66098
          return false;
-
 
66099
      }
-
 
66100
 
-
 
66101
      return true;
-
 
66102
    }
-
 
66103
 
-
 
66104
    @Override
-
 
66105
    public int hashCode() {
-
 
66106
      return 0;
-
 
66107
    }
-
 
66108
 
-
 
66109
    public int compareTo(getActiveAccessTokenForUser_result other) {
-
 
66110
      if (!getClass().equals(other.getClass())) {
-
 
66111
        return getClass().getName().compareTo(other.getClass().getName());
-
 
66112
      }
-
 
66113
 
-
 
66114
      int lastComparison = 0;
-
 
66115
      getActiveAccessTokenForUser_result typedOther = (getActiveAccessTokenForUser_result)other;
-
 
66116
 
-
 
66117
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
66118
      if (lastComparison != 0) {
-
 
66119
        return lastComparison;
-
 
66120
      }
-
 
66121
      if (isSetSuccess()) {
-
 
66122
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
66123
        if (lastComparison != 0) {
-
 
66124
          return lastComparison;
-
 
66125
        }
-
 
66126
      }
-
 
66127
      return 0;
-
 
66128
    }
-
 
66129
 
-
 
66130
    public _Fields fieldForId(int fieldId) {
-
 
66131
      return _Fields.findByThriftId(fieldId);
-
 
66132
    }
-
 
66133
 
-
 
66134
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
66135
      org.apache.thrift.protocol.TField field;
-
 
66136
      iprot.readStructBegin();
-
 
66137
      while (true)
-
 
66138
      {
-
 
66139
        field = iprot.readFieldBegin();
-
 
66140
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
66141
          break;
-
 
66142
        }
-
 
66143
        switch (field.id) {
-
 
66144
          case 0: // SUCCESS
-
 
66145
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
66146
              this.success = iprot.readString();
-
 
66147
            } else { 
-
 
66148
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
66149
            }
-
 
66150
            break;
-
 
66151
          default:
-
 
66152
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
66153
        }
-
 
66154
        iprot.readFieldEnd();
-
 
66155
      }
-
 
66156
      iprot.readStructEnd();
-
 
66157
      validate();
-
 
66158
    }
-
 
66159
 
-
 
66160
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
66161
      oprot.writeStructBegin(STRUCT_DESC);
-
 
66162
 
-
 
66163
      if (this.isSetSuccess()) {
-
 
66164
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
66165
        oprot.writeString(this.success);
-
 
66166
        oprot.writeFieldEnd();
-
 
66167
      }
-
 
66168
      oprot.writeFieldStop();
-
 
66169
      oprot.writeStructEnd();
-
 
66170
    }
-
 
66171
 
-
 
66172
    @Override
-
 
66173
    public String toString() {
-
 
66174
      StringBuilder sb = new StringBuilder("getActiveAccessTokenForUser_result(");
-
 
66175
      boolean first = true;
-
 
66176
 
-
 
66177
      sb.append("success:");
-
 
66178
      if (this.success == null) {
-
 
66179
        sb.append("null");
-
 
66180
      } else {
-
 
66181
        sb.append(this.success);
-
 
66182
      }
-
 
66183
      first = false;
-
 
66184
      sb.append(")");
-
 
66185
      return sb.toString();
-
 
66186
    }
-
 
66187
 
-
 
66188
    public void validate() throws org.apache.thrift.TException {
-
 
66189
      // check for required fields
-
 
66190
    }
-
 
66191
 
-
 
66192
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
66193
      try {
-
 
66194
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
66195
      } catch (org.apache.thrift.TException te) {
-
 
66196
        throw new java.io.IOException(te);
-
 
66197
      }
-
 
66198
    }
-
 
66199
 
-
 
66200
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
66201
      try {
-
 
66202
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
66203
      } catch (org.apache.thrift.TException te) {
-
 
66204
        throw new java.io.IOException(te);
-
 
66205
      }
-
 
66206
    }
-
 
66207
 
-
 
66208
  }
-
 
66209
 
-
 
66210
  public static class validateAccessToken_args implements org.apache.thrift.TBase<validateAccessToken_args, validateAccessToken_args._Fields>, java.io.Serializable, Cloneable   {
-
 
66211
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateAccessToken_args");
-
 
66212
 
-
 
66213
    private static final org.apache.thrift.protocol.TField ACCESS_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("accessToken", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
66214
 
-
 
66215
    private String accessToken; // required
-
 
66216
 
-
 
66217
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
66218
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
66219
      ACCESS_TOKEN((short)1, "accessToken");
-
 
66220
 
-
 
66221
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
66222
 
-
 
66223
      static {
-
 
66224
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
66225
          byName.put(field.getFieldName(), field);
-
 
66226
        }
-
 
66227
      }
-
 
66228
 
-
 
66229
      /**
-
 
66230
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
66231
       */
-
 
66232
      public static _Fields findByThriftId(int fieldId) {
-
 
66233
        switch(fieldId) {
-
 
66234
          case 1: // ACCESS_TOKEN
-
 
66235
            return ACCESS_TOKEN;
-
 
66236
          default:
-
 
66237
            return null;
-
 
66238
        }
-
 
66239
      }
-
 
66240
 
-
 
66241
      /**
-
 
66242
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
66243
       * if it is not found.
-
 
66244
       */
-
 
66245
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
66246
        _Fields fields = findByThriftId(fieldId);
-
 
66247
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
66248
        return fields;
-
 
66249
      }
-
 
66250
 
-
 
66251
      /**
-
 
66252
       * Find the _Fields constant that matches name, or null if its not found.
-
 
66253
       */
-
 
66254
      public static _Fields findByName(String name) {
-
 
66255
        return byName.get(name);
-
 
66256
      }
-
 
66257
 
-
 
66258
      private final short _thriftId;
-
 
66259
      private final String _fieldName;
-
 
66260
 
-
 
66261
      _Fields(short thriftId, String fieldName) {
-
 
66262
        _thriftId = thriftId;
-
 
66263
        _fieldName = fieldName;
-
 
66264
      }
-
 
66265
 
-
 
66266
      public short getThriftFieldId() {
-
 
66267
        return _thriftId;
-
 
66268
      }
-
 
66269
 
-
 
66270
      public String getFieldName() {
-
 
66271
        return _fieldName;
-
 
66272
      }
-
 
66273
    }
-
 
66274
 
-
 
66275
    // isset id assignments
-
 
66276
 
-
 
66277
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
66278
    static {
-
 
66279
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
66280
      tmpMap.put(_Fields.ACCESS_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("accessToken", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
66281
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
66282
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
66283
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateAccessToken_args.class, metaDataMap);
-
 
66284
    }
-
 
66285
 
-
 
66286
    public validateAccessToken_args() {
-
 
66287
    }
-
 
66288
 
-
 
66289
    public validateAccessToken_args(
-
 
66290
      String accessToken)
-
 
66291
    {
-
 
66292
      this();
-
 
66293
      this.accessToken = accessToken;
-
 
66294
    }
-
 
66295
 
-
 
66296
    /**
-
 
66297
     * Performs a deep copy on <i>other</i>.
-
 
66298
     */
-
 
66299
    public validateAccessToken_args(validateAccessToken_args other) {
-
 
66300
      if (other.isSetAccessToken()) {
-
 
66301
        this.accessToken = other.accessToken;
-
 
66302
      }
-
 
66303
    }
-
 
66304
 
-
 
66305
    public validateAccessToken_args deepCopy() {
-
 
66306
      return new validateAccessToken_args(this);
-
 
66307
    }
-
 
66308
 
-
 
66309
    @Override
-
 
66310
    public void clear() {
-
 
66311
      this.accessToken = null;
-
 
66312
    }
-
 
66313
 
-
 
66314
    public String getAccessToken() {
-
 
66315
      return this.accessToken;
-
 
66316
    }
-
 
66317
 
-
 
66318
    public void setAccessToken(String accessToken) {
-
 
66319
      this.accessToken = accessToken;
-
 
66320
    }
-
 
66321
 
-
 
66322
    public void unsetAccessToken() {
-
 
66323
      this.accessToken = null;
-
 
66324
    }
-
 
66325
 
-
 
66326
    /** Returns true if field accessToken is set (has been assigned a value) and false otherwise */
-
 
66327
    public boolean isSetAccessToken() {
-
 
66328
      return this.accessToken != null;
-
 
66329
    }
-
 
66330
 
-
 
66331
    public void setAccessTokenIsSet(boolean value) {
-
 
66332
      if (!value) {
-
 
66333
        this.accessToken = null;
-
 
66334
      }
-
 
66335
    }
-
 
66336
 
-
 
66337
    public void setFieldValue(_Fields field, Object value) {
-
 
66338
      switch (field) {
-
 
66339
      case ACCESS_TOKEN:
-
 
66340
        if (value == null) {
-
 
66341
          unsetAccessToken();
-
 
66342
        } else {
-
 
66343
          setAccessToken((String)value);
-
 
66344
        }
-
 
66345
        break;
-
 
66346
 
-
 
66347
      }
-
 
66348
    }
-
 
66349
 
-
 
66350
    public Object getFieldValue(_Fields field) {
-
 
66351
      switch (field) {
-
 
66352
      case ACCESS_TOKEN:
-
 
66353
        return getAccessToken();
-
 
66354
 
-
 
66355
      }
-
 
66356
      throw new IllegalStateException();
-
 
66357
    }
-
 
66358
 
-
 
66359
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
66360
    public boolean isSet(_Fields field) {
-
 
66361
      if (field == null) {
-
 
66362
        throw new IllegalArgumentException();
-
 
66363
      }
-
 
66364
 
-
 
66365
      switch (field) {
-
 
66366
      case ACCESS_TOKEN:
-
 
66367
        return isSetAccessToken();
-
 
66368
      }
-
 
66369
      throw new IllegalStateException();
-
 
66370
    }
-
 
66371
 
-
 
66372
    @Override
-
 
66373
    public boolean equals(Object that) {
-
 
66374
      if (that == null)
-
 
66375
        return false;
-
 
66376
      if (that instanceof validateAccessToken_args)
-
 
66377
        return this.equals((validateAccessToken_args)that);
-
 
66378
      return false;
-
 
66379
    }
-
 
66380
 
-
 
66381
    public boolean equals(validateAccessToken_args that) {
-
 
66382
      if (that == null)
-
 
66383
        return false;
-
 
66384
 
-
 
66385
      boolean this_present_accessToken = true && this.isSetAccessToken();
-
 
66386
      boolean that_present_accessToken = true && that.isSetAccessToken();
-
 
66387
      if (this_present_accessToken || that_present_accessToken) {
-
 
66388
        if (!(this_present_accessToken && that_present_accessToken))
-
 
66389
          return false;
-
 
66390
        if (!this.accessToken.equals(that.accessToken))
-
 
66391
          return false;
-
 
66392
      }
-
 
66393
 
-
 
66394
      return true;
-
 
66395
    }
-
 
66396
 
-
 
66397
    @Override
-
 
66398
    public int hashCode() {
-
 
66399
      return 0;
-
 
66400
    }
-
 
66401
 
-
 
66402
    public int compareTo(validateAccessToken_args other) {
-
 
66403
      if (!getClass().equals(other.getClass())) {
-
 
66404
        return getClass().getName().compareTo(other.getClass().getName());
-
 
66405
      }
-
 
66406
 
-
 
66407
      int lastComparison = 0;
-
 
66408
      validateAccessToken_args typedOther = (validateAccessToken_args)other;
-
 
66409
 
-
 
66410
      lastComparison = Boolean.valueOf(isSetAccessToken()).compareTo(typedOther.isSetAccessToken());
-
 
66411
      if (lastComparison != 0) {
-
 
66412
        return lastComparison;
-
 
66413
      }
-
 
66414
      if (isSetAccessToken()) {
-
 
66415
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.accessToken, typedOther.accessToken);
-
 
66416
        if (lastComparison != 0) {
-
 
66417
          return lastComparison;
-
 
66418
        }
-
 
66419
      }
-
 
66420
      return 0;
-
 
66421
    }
-
 
66422
 
-
 
66423
    public _Fields fieldForId(int fieldId) {
-
 
66424
      return _Fields.findByThriftId(fieldId);
-
 
66425
    }
-
 
66426
 
-
 
66427
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
66428
      org.apache.thrift.protocol.TField field;
-
 
66429
      iprot.readStructBegin();
-
 
66430
      while (true)
-
 
66431
      {
-
 
66432
        field = iprot.readFieldBegin();
-
 
66433
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
66434
          break;
-
 
66435
        }
-
 
66436
        switch (field.id) {
-
 
66437
          case 1: // ACCESS_TOKEN
-
 
66438
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
66439
              this.accessToken = iprot.readString();
-
 
66440
            } else { 
-
 
66441
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
66442
            }
-
 
66443
            break;
-
 
66444
          default:
-
 
66445
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
66446
        }
-
 
66447
        iprot.readFieldEnd();
-
 
66448
      }
-
 
66449
      iprot.readStructEnd();
-
 
66450
      validate();
-
 
66451
    }
-
 
66452
 
-
 
66453
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
66454
      validate();
-
 
66455
 
-
 
66456
      oprot.writeStructBegin(STRUCT_DESC);
-
 
66457
      if (this.accessToken != null) {
-
 
66458
        oprot.writeFieldBegin(ACCESS_TOKEN_FIELD_DESC);
-
 
66459
        oprot.writeString(this.accessToken);
-
 
66460
        oprot.writeFieldEnd();
-
 
66461
      }
-
 
66462
      oprot.writeFieldStop();
-
 
66463
      oprot.writeStructEnd();
-
 
66464
    }
-
 
66465
 
-
 
66466
    @Override
-
 
66467
    public String toString() {
-
 
66468
      StringBuilder sb = new StringBuilder("validateAccessToken_args(");
-
 
66469
      boolean first = true;
-
 
66470
 
-
 
66471
      sb.append("accessToken:");
-
 
66472
      if (this.accessToken == null) {
-
 
66473
        sb.append("null");
-
 
66474
      } else {
-
 
66475
        sb.append(this.accessToken);
-
 
66476
      }
-
 
66477
      first = false;
-
 
66478
      sb.append(")");
-
 
66479
      return sb.toString();
-
 
66480
    }
-
 
66481
 
-
 
66482
    public void validate() throws org.apache.thrift.TException {
-
 
66483
      // check for required fields
-
 
66484
    }
-
 
66485
 
-
 
66486
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
66487
      try {
-
 
66488
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
66489
      } catch (org.apache.thrift.TException te) {
-
 
66490
        throw new java.io.IOException(te);
-
 
66491
      }
-
 
66492
    }
-
 
66493
 
-
 
66494
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
66495
      try {
-
 
66496
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
66497
      } catch (org.apache.thrift.TException te) {
-
 
66498
        throw new java.io.IOException(te);
-
 
66499
      }
-
 
66500
    }
-
 
66501
 
-
 
66502
  }
-
 
66503
 
-
 
66504
  public static class validateAccessToken_result implements org.apache.thrift.TBase<validateAccessToken_result, validateAccessToken_result._Fields>, java.io.Serializable, Cloneable   {
-
 
66505
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateAccessToken_result");
-
 
66506
 
-
 
66507
    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);
-
 
66508
 
-
 
66509
    private boolean success; // required
-
 
66510
 
-
 
66511
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
66512
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
66513
      SUCCESS((short)0, "success");
-
 
66514
 
-
 
66515
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
66516
 
-
 
66517
      static {
-
 
66518
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
66519
          byName.put(field.getFieldName(), field);
-
 
66520
        }
-
 
66521
      }
-
 
66522
 
-
 
66523
      /**
-
 
66524
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
66525
       */
-
 
66526
      public static _Fields findByThriftId(int fieldId) {
-
 
66527
        switch(fieldId) {
-
 
66528
          case 0: // SUCCESS
-
 
66529
            return SUCCESS;
-
 
66530
          default:
-
 
66531
            return null;
-
 
66532
        }
-
 
66533
      }
-
 
66534
 
-
 
66535
      /**
-
 
66536
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
66537
       * if it is not found.
-
 
66538
       */
-
 
66539
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
66540
        _Fields fields = findByThriftId(fieldId);
-
 
66541
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
66542
        return fields;
-
 
66543
      }
-
 
66544
 
-
 
66545
      /**
-
 
66546
       * Find the _Fields constant that matches name, or null if its not found.
-
 
66547
       */
-
 
66548
      public static _Fields findByName(String name) {
-
 
66549
        return byName.get(name);
-
 
66550
      }
-
 
66551
 
-
 
66552
      private final short _thriftId;
-
 
66553
      private final String _fieldName;
-
 
66554
 
-
 
66555
      _Fields(short thriftId, String fieldName) {
-
 
66556
        _thriftId = thriftId;
-
 
66557
        _fieldName = fieldName;
-
 
66558
      }
-
 
66559
 
-
 
66560
      public short getThriftFieldId() {
-
 
66561
        return _thriftId;
-
 
66562
      }
-
 
66563
 
-
 
66564
      public String getFieldName() {
-
 
66565
        return _fieldName;
-
 
66566
      }
-
 
66567
    }
-
 
66568
 
-
 
66569
    // isset id assignments
-
 
66570
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
66571
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
66572
 
-
 
66573
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
66574
    static {
-
 
66575
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
66576
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
66577
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
66578
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
66579
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateAccessToken_result.class, metaDataMap);
-
 
66580
    }
-
 
66581
 
-
 
66582
    public validateAccessToken_result() {
-
 
66583
    }
-
 
66584
 
-
 
66585
    public validateAccessToken_result(
-
 
66586
      boolean success)
-
 
66587
    {
-
 
66588
      this();
-
 
66589
      this.success = success;
-
 
66590
      setSuccessIsSet(true);
-
 
66591
    }
-
 
66592
 
-
 
66593
    /**
-
 
66594
     * Performs a deep copy on <i>other</i>.
-
 
66595
     */
-
 
66596
    public validateAccessToken_result(validateAccessToken_result other) {
-
 
66597
      __isset_bit_vector.clear();
-
 
66598
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
66599
      this.success = other.success;
-
 
66600
    }
-
 
66601
 
-
 
66602
    public validateAccessToken_result deepCopy() {
-
 
66603
      return new validateAccessToken_result(this);
-
 
66604
    }
-
 
66605
 
-
 
66606
    @Override
-
 
66607
    public void clear() {
-
 
66608
      setSuccessIsSet(false);
-
 
66609
      this.success = false;
-
 
66610
    }
-
 
66611
 
-
 
66612
    public boolean isSuccess() {
-
 
66613
      return this.success;
-
 
66614
    }
-
 
66615
 
-
 
66616
    public void setSuccess(boolean success) {
-
 
66617
      this.success = success;
-
 
66618
      setSuccessIsSet(true);
-
 
66619
    }
-
 
66620
 
-
 
66621
    public void unsetSuccess() {
-
 
66622
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
66623
    }
-
 
66624
 
-
 
66625
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
66626
    public boolean isSetSuccess() {
-
 
66627
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
66628
    }
-
 
66629
 
-
 
66630
    public void setSuccessIsSet(boolean value) {
-
 
66631
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
66632
    }
-
 
66633
 
-
 
66634
    public void setFieldValue(_Fields field, Object value) {
-
 
66635
      switch (field) {
-
 
66636
      case SUCCESS:
-
 
66637
        if (value == null) {
-
 
66638
          unsetSuccess();
-
 
66639
        } else {
-
 
66640
          setSuccess((Boolean)value);
-
 
66641
        }
-
 
66642
        break;
-
 
66643
 
-
 
66644
      }
-
 
66645
    }
-
 
66646
 
-
 
66647
    public Object getFieldValue(_Fields field) {
-
 
66648
      switch (field) {
-
 
66649
      case SUCCESS:
-
 
66650
        return Boolean.valueOf(isSuccess());
-
 
66651
 
-
 
66652
      }
-
 
66653
      throw new IllegalStateException();
-
 
66654
    }
-
 
66655
 
-
 
66656
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
66657
    public boolean isSet(_Fields field) {
-
 
66658
      if (field == null) {
-
 
66659
        throw new IllegalArgumentException();
-
 
66660
      }
-
 
66661
 
-
 
66662
      switch (field) {
-
 
66663
      case SUCCESS:
-
 
66664
        return isSetSuccess();
-
 
66665
      }
-
 
66666
      throw new IllegalStateException();
-
 
66667
    }
-
 
66668
 
-
 
66669
    @Override
-
 
66670
    public boolean equals(Object that) {
-
 
66671
      if (that == null)
-
 
66672
        return false;
-
 
66673
      if (that instanceof validateAccessToken_result)
-
 
66674
        return this.equals((validateAccessToken_result)that);
-
 
66675
      return false;
-
 
66676
    }
-
 
66677
 
-
 
66678
    public boolean equals(validateAccessToken_result that) {
-
 
66679
      if (that == null)
-
 
66680
        return false;
-
 
66681
 
-
 
66682
      boolean this_present_success = true;
-
 
66683
      boolean that_present_success = true;
-
 
66684
      if (this_present_success || that_present_success) {
-
 
66685
        if (!(this_present_success && that_present_success))
-
 
66686
          return false;
-
 
66687
        if (this.success != that.success)
-
 
66688
          return false;
-
 
66689
      }
-
 
66690
 
-
 
66691
      return true;
-
 
66692
    }
-
 
66693
 
-
 
66694
    @Override
-
 
66695
    public int hashCode() {
-
 
66696
      return 0;
-
 
66697
    }
-
 
66698
 
-
 
66699
    public int compareTo(validateAccessToken_result other) {
-
 
66700
      if (!getClass().equals(other.getClass())) {
-
 
66701
        return getClass().getName().compareTo(other.getClass().getName());
-
 
66702
      }
-
 
66703
 
-
 
66704
      int lastComparison = 0;
-
 
66705
      validateAccessToken_result typedOther = (validateAccessToken_result)other;
-
 
66706
 
-
 
66707
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
66708
      if (lastComparison != 0) {
-
 
66709
        return lastComparison;
-
 
66710
      }
-
 
66711
      if (isSetSuccess()) {
-
 
66712
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
66713
        if (lastComparison != 0) {
-
 
66714
          return lastComparison;
-
 
66715
        }
-
 
66716
      }
-
 
66717
      return 0;
-
 
66718
    }
-
 
66719
 
-
 
66720
    public _Fields fieldForId(int fieldId) {
-
 
66721
      return _Fields.findByThriftId(fieldId);
-
 
66722
    }
-
 
66723
 
-
 
66724
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
66725
      org.apache.thrift.protocol.TField field;
-
 
66726
      iprot.readStructBegin();
-
 
66727
      while (true)
-
 
66728
      {
-
 
66729
        field = iprot.readFieldBegin();
-
 
66730
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
66731
          break;
-
 
66732
        }
-
 
66733
        switch (field.id) {
-
 
66734
          case 0: // SUCCESS
-
 
66735
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
66736
              this.success = iprot.readBool();
-
 
66737
              setSuccessIsSet(true);
-
 
66738
            } else { 
-
 
66739
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
66740
            }
-
 
66741
            break;
-
 
66742
          default:
-
 
66743
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
66744
        }
-
 
66745
        iprot.readFieldEnd();
-
 
66746
      }
-
 
66747
      iprot.readStructEnd();
-
 
66748
      validate();
-
 
66749
    }
-
 
66750
 
-
 
66751
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
66752
      oprot.writeStructBegin(STRUCT_DESC);
-
 
66753
 
-
 
66754
      if (this.isSetSuccess()) {
-
 
66755
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
66756
        oprot.writeBool(this.success);
-
 
66757
        oprot.writeFieldEnd();
-
 
66758
      }
-
 
66759
      oprot.writeFieldStop();
-
 
66760
      oprot.writeStructEnd();
-
 
66761
    }
-
 
66762
 
-
 
66763
    @Override
-
 
66764
    public String toString() {
-
 
66765
      StringBuilder sb = new StringBuilder("validateAccessToken_result(");
-
 
66766
      boolean first = true;
-
 
66767
 
-
 
66768
      sb.append("success:");
-
 
66769
      sb.append(this.success);
-
 
66770
      first = false;
-
 
66771
      sb.append(")");
-
 
66772
      return sb.toString();
-
 
66773
    }
-
 
66774
 
65356
    public void validate() throws org.apache.thrift.TException {
66775
    public void validate() throws org.apache.thrift.TException {
65357
      // check for required fields
66776
      // check for required fields
65358
    }
66777
    }
65359
 
66778
 
65360
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
66779
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {