Subversion Repositories SmartDukaan

Rev

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

Rev 12696 Rev 12722
Line 357... Line 357...
357
 
357
 
358
    public PrivateDealUser getPrivateDealUser(long userId) throws org.apache.thrift.TException;
358
    public PrivateDealUser getPrivateDealUser(long userId) throws org.apache.thrift.TException;
359
 
359
 
360
    public Map<String,String> registerCounter(Counter counter, long userId) throws org.apache.thrift.TException;
360
    public Map<String,String> registerCounter(Counter counter, long userId) throws org.apache.thrift.TException;
361
 
361
 
-
 
362
    public List<Counter> searchCounter(String type1, String searchString) throws org.apache.thrift.TException;
-
 
363
 
-
 
364
    public List<User> getAllUsersByCounter(long counterId) throws org.apache.thrift.TException;
-
 
365
 
362
  }
366
  }
363
 
367
 
364
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
368
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
365
 
369
 
366
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
370
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
Line 519... Line 523...
519
 
523
 
520
    public void getPrivateDealUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealUser_call> resultHandler) throws org.apache.thrift.TException;
524
    public void getPrivateDealUser(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealUser_call> resultHandler) throws org.apache.thrift.TException;
521
 
525
 
522
    public void registerCounter(Counter counter, long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.registerCounter_call> resultHandler) throws org.apache.thrift.TException;
526
    public void registerCounter(Counter counter, long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.registerCounter_call> resultHandler) throws org.apache.thrift.TException;
523
 
527
 
-
 
528
    public void searchCounter(String type1, String searchString, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.searchCounter_call> resultHandler) throws org.apache.thrift.TException;
-
 
529
 
-
 
530
    public void getAllUsersByCounter(long counterId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllUsersByCounter_call> resultHandler) throws org.apache.thrift.TException;
-
 
531
 
524
  }
532
  }
525
 
533
 
526
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
534
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
527
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
535
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
528
      public Factory() {}
536
      public Factory() {}
Line 2562... Line 2570...
2562
        return result.success;
2570
        return result.success;
2563
      }
2571
      }
2564
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "registerCounter failed: unknown result");
2572
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "registerCounter failed: unknown result");
2565
    }
2573
    }
2566
 
2574
 
-
 
2575
    public List<Counter> searchCounter(String type1, String searchString) throws org.apache.thrift.TException
-
 
2576
    {
-
 
2577
      send_searchCounter(type1, searchString);
-
 
2578
      return recv_searchCounter();
-
 
2579
    }
-
 
2580
 
-
 
2581
    public void send_searchCounter(String type1, String searchString) throws org.apache.thrift.TException
-
 
2582
    {
-
 
2583
      searchCounter_args args = new searchCounter_args();
-
 
2584
      args.setType1(type1);
-
 
2585
      args.setSearchString(searchString);
-
 
2586
      sendBase("searchCounter", args);
-
 
2587
    }
-
 
2588
 
-
 
2589
    public List<Counter> recv_searchCounter() throws org.apache.thrift.TException
-
 
2590
    {
-
 
2591
      searchCounter_result result = new searchCounter_result();
-
 
2592
      receiveBase(result, "searchCounter");
-
 
2593
      if (result.isSetSuccess()) {
-
 
2594
        return result.success;
-
 
2595
      }
-
 
2596
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchCounter failed: unknown result");
-
 
2597
    }
-
 
2598
 
-
 
2599
    public List<User> getAllUsersByCounter(long counterId) throws org.apache.thrift.TException
-
 
2600
    {
-
 
2601
      send_getAllUsersByCounter(counterId);
-
 
2602
      return recv_getAllUsersByCounter();
-
 
2603
    }
-
 
2604
 
-
 
2605
    public void send_getAllUsersByCounter(long counterId) throws org.apache.thrift.TException
-
 
2606
    {
-
 
2607
      getAllUsersByCounter_args args = new getAllUsersByCounter_args();
-
 
2608
      args.setCounterId(counterId);
-
 
2609
      sendBase("getAllUsersByCounter", args);
-
 
2610
    }
-
 
2611
 
-
 
2612
    public List<User> recv_getAllUsersByCounter() throws org.apache.thrift.TException
-
 
2613
    {
-
 
2614
      getAllUsersByCounter_result result = new getAllUsersByCounter_result();
-
 
2615
      receiveBase(result, "getAllUsersByCounter");
-
 
2616
      if (result.isSetSuccess()) {
-
 
2617
        return result.success;
-
 
2618
      }
-
 
2619
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUsersByCounter failed: unknown result");
-
 
2620
    }
-
 
2621
 
2567
  }
2622
  }
2568
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2623
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2569
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2624
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2570
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2625
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2571
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2626
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5311... Line 5366...
5311
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5366
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5312
        return (new Client(prot)).recv_registerCounter();
5367
        return (new Client(prot)).recv_registerCounter();
5313
      }
5368
      }
5314
    }
5369
    }
5315
 
5370
 
-
 
5371
    public void searchCounter(String type1, String searchString, org.apache.thrift.async.AsyncMethodCallback<searchCounter_call> resultHandler) throws org.apache.thrift.TException {
-
 
5372
      checkReady();
-
 
5373
      searchCounter_call method_call = new searchCounter_call(type1, searchString, resultHandler, this, ___protocolFactory, ___transport);
-
 
5374
      this.___currentMethod = method_call;
-
 
5375
      ___manager.call(method_call);
-
 
5376
    }
-
 
5377
 
-
 
5378
    public static class searchCounter_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5379
      private String type1;
-
 
5380
      private String searchString;
-
 
5381
      public searchCounter_call(String type1, String searchString, org.apache.thrift.async.AsyncMethodCallback<searchCounter_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 {
-
 
5382
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5383
        this.type1 = type1;
-
 
5384
        this.searchString = searchString;
-
 
5385
      }
-
 
5386
 
-
 
5387
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5388
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchCounter", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5389
        searchCounter_args args = new searchCounter_args();
-
 
5390
        args.setType1(type1);
-
 
5391
        args.setSearchString(searchString);
-
 
5392
        args.write(prot);
-
 
5393
        prot.writeMessageEnd();
-
 
5394
      }
-
 
5395
 
-
 
5396
      public List<Counter> getResult() throws org.apache.thrift.TException {
-
 
5397
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5398
          throw new IllegalStateException("Method call not finished!");
-
 
5399
        }
-
 
5400
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5401
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5402
        return (new Client(prot)).recv_searchCounter();
-
 
5403
      }
-
 
5404
    }
-
 
5405
 
-
 
5406
    public void getAllUsersByCounter(long counterId, org.apache.thrift.async.AsyncMethodCallback<getAllUsersByCounter_call> resultHandler) throws org.apache.thrift.TException {
-
 
5407
      checkReady();
-
 
5408
      getAllUsersByCounter_call method_call = new getAllUsersByCounter_call(counterId, resultHandler, this, ___protocolFactory, ___transport);
-
 
5409
      this.___currentMethod = method_call;
-
 
5410
      ___manager.call(method_call);
-
 
5411
    }
-
 
5412
 
-
 
5413
    public static class getAllUsersByCounter_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5414
      private long counterId;
-
 
5415
      public getAllUsersByCounter_call(long counterId, org.apache.thrift.async.AsyncMethodCallback<getAllUsersByCounter_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 {
-
 
5416
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5417
        this.counterId = counterId;
-
 
5418
      }
-
 
5419
 
-
 
5420
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5421
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUsersByCounter", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5422
        getAllUsersByCounter_args args = new getAllUsersByCounter_args();
-
 
5423
        args.setCounterId(counterId);
-
 
5424
        args.write(prot);
-
 
5425
        prot.writeMessageEnd();
-
 
5426
      }
-
 
5427
 
-
 
5428
      public List<User> getResult() throws org.apache.thrift.TException {
-
 
5429
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5430
          throw new IllegalStateException("Method call not finished!");
-
 
5431
        }
-
 
5432
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5433
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5434
        return (new Client(prot)).recv_getAllUsersByCounter();
-
 
5435
      }
-
 
5436
    }
-
 
5437
 
5316
  }
5438
  }
5317
 
5439
 
5318
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5440
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5319
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5441
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5320
    public Processor(I iface) {
5442
    public Processor(I iface) {
Line 5403... Line 5525...
5403
      processMap.put("isPrivateDealUser", new isPrivateDealUser());
5525
      processMap.put("isPrivateDealUser", new isPrivateDealUser());
5404
      processMap.put("addPrivateDealUser", new addPrivateDealUser());
5526
      processMap.put("addPrivateDealUser", new addPrivateDealUser());
5405
      processMap.put("changePrivateDealUserStatus", new changePrivateDealUserStatus());
5527
      processMap.put("changePrivateDealUserStatus", new changePrivateDealUserStatus());
5406
      processMap.put("getPrivateDealUser", new getPrivateDealUser());
5528
      processMap.put("getPrivateDealUser", new getPrivateDealUser());
5407
      processMap.put("registerCounter", new registerCounter());
5529
      processMap.put("registerCounter", new registerCounter());
-
 
5530
      processMap.put("searchCounter", new searchCounter());
-
 
5531
      processMap.put("getAllUsersByCounter", new getAllUsersByCounter());
5408
      return processMap;
5532
      return processMap;
5409
    }
5533
    }
5410
 
5534
 
5411
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
5535
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
5412
      public createAnonymousUser() {
5536
      public createAnonymousUser() {
Line 6935... Line 7059...
6935
        result.success = iface.registerCounter(args.counter, args.userId);
7059
        result.success = iface.registerCounter(args.counter, args.userId);
6936
        return result;
7060
        return result;
6937
      }
7061
      }
6938
    }
7062
    }
6939
 
7063
 
-
 
7064
    private static class searchCounter<I extends Iface> extends org.apache.thrift.ProcessFunction<I, searchCounter_args> {
-
 
7065
      public searchCounter() {
-
 
7066
        super("searchCounter");
-
 
7067
      }
-
 
7068
 
-
 
7069
      protected searchCounter_args getEmptyArgsInstance() {
-
 
7070
        return new searchCounter_args();
-
 
7071
      }
-
 
7072
 
-
 
7073
      protected searchCounter_result getResult(I iface, searchCounter_args args) throws org.apache.thrift.TException {
-
 
7074
        searchCounter_result result = new searchCounter_result();
-
 
7075
        result.success = iface.searchCounter(args.type1, args.searchString);
-
 
7076
        return result;
-
 
7077
      }
-
 
7078
    }
-
 
7079
 
-
 
7080
    private static class getAllUsersByCounter<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllUsersByCounter_args> {
-
 
7081
      public getAllUsersByCounter() {
-
 
7082
        super("getAllUsersByCounter");
-
 
7083
      }
-
 
7084
 
-
 
7085
      protected getAllUsersByCounter_args getEmptyArgsInstance() {
-
 
7086
        return new getAllUsersByCounter_args();
-
 
7087
      }
-
 
7088
 
-
 
7089
      protected getAllUsersByCounter_result getResult(I iface, getAllUsersByCounter_args args) throws org.apache.thrift.TException {
-
 
7090
        getAllUsersByCounter_result result = new getAllUsersByCounter_result();
-
 
7091
        result.success = iface.getAllUsersByCounter(args.counterId);
-
 
7092
        return result;
-
 
7093
      }
-
 
7094
    }
-
 
7095
 
6940
  }
7096
  }
6941
 
7097
 
6942
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
7098
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
6943
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
7099
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
6944
 
7100
 
Line 63849... Line 64005...
63849
      boolean first = true;
64005
      boolean first = true;
63850
 
64006
 
63851
      sb.append("success:");
64007
      sb.append("success:");
63852
      if (this.success == null) {
64008
      if (this.success == null) {
63853
        sb.append("null");
64009
        sb.append("null");
-
 
64010
      } else {
-
 
64011
        sb.append(this.success);
-
 
64012
      }
-
 
64013
      first = false;
-
 
64014
      sb.append(")");
-
 
64015
      return sb.toString();
-
 
64016
    }
-
 
64017
 
-
 
64018
    public void validate() throws org.apache.thrift.TException {
-
 
64019
      // check for required fields
-
 
64020
    }
-
 
64021
 
-
 
64022
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
64023
      try {
-
 
64024
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
64025
      } catch (org.apache.thrift.TException te) {
-
 
64026
        throw new java.io.IOException(te);
-
 
64027
      }
-
 
64028
    }
-
 
64029
 
-
 
64030
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
64031
      try {
-
 
64032
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
64033
      } catch (org.apache.thrift.TException te) {
-
 
64034
        throw new java.io.IOException(te);
-
 
64035
      }
-
 
64036
    }
-
 
64037
 
-
 
64038
  }
-
 
64039
 
-
 
64040
  public static class searchCounter_args implements org.apache.thrift.TBase<searchCounter_args, searchCounter_args._Fields>, java.io.Serializable, Cloneable   {
-
 
64041
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchCounter_args");
-
 
64042
 
-
 
64043
    private static final org.apache.thrift.protocol.TField TYPE1_FIELD_DESC = new org.apache.thrift.protocol.TField("type1", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
64044
    private static final org.apache.thrift.protocol.TField SEARCH_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("searchString", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
64045
 
-
 
64046
    private String type1; // required
-
 
64047
    private String searchString; // required
-
 
64048
 
-
 
64049
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
64050
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
64051
      TYPE1((short)1, "type1"),
-
 
64052
      SEARCH_STRING((short)2, "searchString");
-
 
64053
 
-
 
64054
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
64055
 
-
 
64056
      static {
-
 
64057
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
64058
          byName.put(field.getFieldName(), field);
-
 
64059
        }
-
 
64060
      }
-
 
64061
 
-
 
64062
      /**
-
 
64063
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
64064
       */
-
 
64065
      public static _Fields findByThriftId(int fieldId) {
-
 
64066
        switch(fieldId) {
-
 
64067
          case 1: // TYPE1
-
 
64068
            return TYPE1;
-
 
64069
          case 2: // SEARCH_STRING
-
 
64070
            return SEARCH_STRING;
-
 
64071
          default:
-
 
64072
            return null;
-
 
64073
        }
-
 
64074
      }
-
 
64075
 
-
 
64076
      /**
-
 
64077
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
64078
       * if it is not found.
-
 
64079
       */
-
 
64080
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
64081
        _Fields fields = findByThriftId(fieldId);
-
 
64082
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
64083
        return fields;
-
 
64084
      }
-
 
64085
 
-
 
64086
      /**
-
 
64087
       * Find the _Fields constant that matches name, or null if its not found.
-
 
64088
       */
-
 
64089
      public static _Fields findByName(String name) {
-
 
64090
        return byName.get(name);
-
 
64091
      }
-
 
64092
 
-
 
64093
      private final short _thriftId;
-
 
64094
      private final String _fieldName;
-
 
64095
 
-
 
64096
      _Fields(short thriftId, String fieldName) {
-
 
64097
        _thriftId = thriftId;
-
 
64098
        _fieldName = fieldName;
-
 
64099
      }
-
 
64100
 
-
 
64101
      public short getThriftFieldId() {
-
 
64102
        return _thriftId;
-
 
64103
      }
-
 
64104
 
-
 
64105
      public String getFieldName() {
-
 
64106
        return _fieldName;
-
 
64107
      }
-
 
64108
    }
-
 
64109
 
-
 
64110
    // isset id assignments
-
 
64111
 
-
 
64112
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
64113
    static {
-
 
64114
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
64115
      tmpMap.put(_Fields.TYPE1, new org.apache.thrift.meta_data.FieldMetaData("type1", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
64116
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
64117
      tmpMap.put(_Fields.SEARCH_STRING, new org.apache.thrift.meta_data.FieldMetaData("searchString", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
64118
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
64119
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
64120
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchCounter_args.class, metaDataMap);
-
 
64121
    }
-
 
64122
 
-
 
64123
    public searchCounter_args() {
-
 
64124
    }
-
 
64125
 
-
 
64126
    public searchCounter_args(
-
 
64127
      String type1,
-
 
64128
      String searchString)
-
 
64129
    {
-
 
64130
      this();
-
 
64131
      this.type1 = type1;
-
 
64132
      this.searchString = searchString;
-
 
64133
    }
-
 
64134
 
-
 
64135
    /**
-
 
64136
     * Performs a deep copy on <i>other</i>.
-
 
64137
     */
-
 
64138
    public searchCounter_args(searchCounter_args other) {
-
 
64139
      if (other.isSetType1()) {
-
 
64140
        this.type1 = other.type1;
-
 
64141
      }
-
 
64142
      if (other.isSetSearchString()) {
-
 
64143
        this.searchString = other.searchString;
-
 
64144
      }
-
 
64145
    }
-
 
64146
 
-
 
64147
    public searchCounter_args deepCopy() {
-
 
64148
      return new searchCounter_args(this);
-
 
64149
    }
-
 
64150
 
-
 
64151
    @Override
-
 
64152
    public void clear() {
-
 
64153
      this.type1 = null;
-
 
64154
      this.searchString = null;
-
 
64155
    }
-
 
64156
 
-
 
64157
    public String getType1() {
-
 
64158
      return this.type1;
-
 
64159
    }
-
 
64160
 
-
 
64161
    public void setType1(String type1) {
-
 
64162
      this.type1 = type1;
-
 
64163
    }
-
 
64164
 
-
 
64165
    public void unsetType1() {
-
 
64166
      this.type1 = null;
-
 
64167
    }
-
 
64168
 
-
 
64169
    /** Returns true if field type1 is set (has been assigned a value) and false otherwise */
-
 
64170
    public boolean isSetType1() {
-
 
64171
      return this.type1 != null;
-
 
64172
    }
-
 
64173
 
-
 
64174
    public void setType1IsSet(boolean value) {
-
 
64175
      if (!value) {
-
 
64176
        this.type1 = null;
-
 
64177
      }
-
 
64178
    }
-
 
64179
 
-
 
64180
    public String getSearchString() {
-
 
64181
      return this.searchString;
-
 
64182
    }
-
 
64183
 
-
 
64184
    public void setSearchString(String searchString) {
-
 
64185
      this.searchString = searchString;
-
 
64186
    }
-
 
64187
 
-
 
64188
    public void unsetSearchString() {
-
 
64189
      this.searchString = null;
-
 
64190
    }
-
 
64191
 
-
 
64192
    /** Returns true if field searchString is set (has been assigned a value) and false otherwise */
-
 
64193
    public boolean isSetSearchString() {
-
 
64194
      return this.searchString != null;
-
 
64195
    }
-
 
64196
 
-
 
64197
    public void setSearchStringIsSet(boolean value) {
-
 
64198
      if (!value) {
-
 
64199
        this.searchString = null;
-
 
64200
      }
-
 
64201
    }
-
 
64202
 
-
 
64203
    public void setFieldValue(_Fields field, Object value) {
-
 
64204
      switch (field) {
-
 
64205
      case TYPE1:
-
 
64206
        if (value == null) {
-
 
64207
          unsetType1();
-
 
64208
        } else {
-
 
64209
          setType1((String)value);
-
 
64210
        }
-
 
64211
        break;
-
 
64212
 
-
 
64213
      case SEARCH_STRING:
-
 
64214
        if (value == null) {
-
 
64215
          unsetSearchString();
-
 
64216
        } else {
-
 
64217
          setSearchString((String)value);
-
 
64218
        }
-
 
64219
        break;
-
 
64220
 
-
 
64221
      }
-
 
64222
    }
-
 
64223
 
-
 
64224
    public Object getFieldValue(_Fields field) {
-
 
64225
      switch (field) {
-
 
64226
      case TYPE1:
-
 
64227
        return getType1();
-
 
64228
 
-
 
64229
      case SEARCH_STRING:
-
 
64230
        return getSearchString();
-
 
64231
 
-
 
64232
      }
-
 
64233
      throw new IllegalStateException();
-
 
64234
    }
-
 
64235
 
-
 
64236
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
64237
    public boolean isSet(_Fields field) {
-
 
64238
      if (field == null) {
-
 
64239
        throw new IllegalArgumentException();
-
 
64240
      }
-
 
64241
 
-
 
64242
      switch (field) {
-
 
64243
      case TYPE1:
-
 
64244
        return isSetType1();
-
 
64245
      case SEARCH_STRING:
-
 
64246
        return isSetSearchString();
-
 
64247
      }
-
 
64248
      throw new IllegalStateException();
-
 
64249
    }
-
 
64250
 
-
 
64251
    @Override
-
 
64252
    public boolean equals(Object that) {
-
 
64253
      if (that == null)
-
 
64254
        return false;
-
 
64255
      if (that instanceof searchCounter_args)
-
 
64256
        return this.equals((searchCounter_args)that);
-
 
64257
      return false;
-
 
64258
    }
-
 
64259
 
-
 
64260
    public boolean equals(searchCounter_args that) {
-
 
64261
      if (that == null)
-
 
64262
        return false;
-
 
64263
 
-
 
64264
      boolean this_present_type1 = true && this.isSetType1();
-
 
64265
      boolean that_present_type1 = true && that.isSetType1();
-
 
64266
      if (this_present_type1 || that_present_type1) {
-
 
64267
        if (!(this_present_type1 && that_present_type1))
-
 
64268
          return false;
-
 
64269
        if (!this.type1.equals(that.type1))
-
 
64270
          return false;
-
 
64271
      }
-
 
64272
 
-
 
64273
      boolean this_present_searchString = true && this.isSetSearchString();
-
 
64274
      boolean that_present_searchString = true && that.isSetSearchString();
-
 
64275
      if (this_present_searchString || that_present_searchString) {
-
 
64276
        if (!(this_present_searchString && that_present_searchString))
-
 
64277
          return false;
-
 
64278
        if (!this.searchString.equals(that.searchString))
-
 
64279
          return false;
-
 
64280
      }
-
 
64281
 
-
 
64282
      return true;
-
 
64283
    }
-
 
64284
 
-
 
64285
    @Override
-
 
64286
    public int hashCode() {
-
 
64287
      return 0;
-
 
64288
    }
-
 
64289
 
-
 
64290
    public int compareTo(searchCounter_args other) {
-
 
64291
      if (!getClass().equals(other.getClass())) {
-
 
64292
        return getClass().getName().compareTo(other.getClass().getName());
-
 
64293
      }
-
 
64294
 
-
 
64295
      int lastComparison = 0;
-
 
64296
      searchCounter_args typedOther = (searchCounter_args)other;
-
 
64297
 
-
 
64298
      lastComparison = Boolean.valueOf(isSetType1()).compareTo(typedOther.isSetType1());
-
 
64299
      if (lastComparison != 0) {
-
 
64300
        return lastComparison;
-
 
64301
      }
-
 
64302
      if (isSetType1()) {
-
 
64303
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type1, typedOther.type1);
-
 
64304
        if (lastComparison != 0) {
-
 
64305
          return lastComparison;
-
 
64306
        }
-
 
64307
      }
-
 
64308
      lastComparison = Boolean.valueOf(isSetSearchString()).compareTo(typedOther.isSetSearchString());
-
 
64309
      if (lastComparison != 0) {
-
 
64310
        return lastComparison;
-
 
64311
      }
-
 
64312
      if (isSetSearchString()) {
-
 
64313
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchString, typedOther.searchString);
-
 
64314
        if (lastComparison != 0) {
-
 
64315
          return lastComparison;
-
 
64316
        }
-
 
64317
      }
-
 
64318
      return 0;
-
 
64319
    }
-
 
64320
 
-
 
64321
    public _Fields fieldForId(int fieldId) {
-
 
64322
      return _Fields.findByThriftId(fieldId);
-
 
64323
    }
-
 
64324
 
-
 
64325
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
64326
      org.apache.thrift.protocol.TField field;
-
 
64327
      iprot.readStructBegin();
-
 
64328
      while (true)
-
 
64329
      {
-
 
64330
        field = iprot.readFieldBegin();
-
 
64331
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
64332
          break;
-
 
64333
        }
-
 
64334
        switch (field.id) {
-
 
64335
          case 1: // TYPE1
-
 
64336
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
64337
              this.type1 = iprot.readString();
-
 
64338
            } else { 
-
 
64339
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
64340
            }
-
 
64341
            break;
-
 
64342
          case 2: // SEARCH_STRING
-
 
64343
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
64344
              this.searchString = iprot.readString();
-
 
64345
            } else { 
-
 
64346
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
64347
            }
-
 
64348
            break;
-
 
64349
          default:
-
 
64350
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
64351
        }
-
 
64352
        iprot.readFieldEnd();
-
 
64353
      }
-
 
64354
      iprot.readStructEnd();
-
 
64355
      validate();
-
 
64356
    }
-
 
64357
 
-
 
64358
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
64359
      validate();
-
 
64360
 
-
 
64361
      oprot.writeStructBegin(STRUCT_DESC);
-
 
64362
      if (this.type1 != null) {
-
 
64363
        oprot.writeFieldBegin(TYPE1_FIELD_DESC);
-
 
64364
        oprot.writeString(this.type1);
-
 
64365
        oprot.writeFieldEnd();
-
 
64366
      }
-
 
64367
      if (this.searchString != null) {
-
 
64368
        oprot.writeFieldBegin(SEARCH_STRING_FIELD_DESC);
-
 
64369
        oprot.writeString(this.searchString);
-
 
64370
        oprot.writeFieldEnd();
-
 
64371
      }
-
 
64372
      oprot.writeFieldStop();
-
 
64373
      oprot.writeStructEnd();
-
 
64374
    }
-
 
64375
 
-
 
64376
    @Override
-
 
64377
    public String toString() {
-
 
64378
      StringBuilder sb = new StringBuilder("searchCounter_args(");
-
 
64379
      boolean first = true;
-
 
64380
 
-
 
64381
      sb.append("type1:");
-
 
64382
      if (this.type1 == null) {
-
 
64383
        sb.append("null");
-
 
64384
      } else {
-
 
64385
        sb.append(this.type1);
-
 
64386
      }
-
 
64387
      first = false;
-
 
64388
      if (!first) sb.append(", ");
-
 
64389
      sb.append("searchString:");
-
 
64390
      if (this.searchString == null) {
-
 
64391
        sb.append("null");
-
 
64392
      } else {
-
 
64393
        sb.append(this.searchString);
-
 
64394
      }
-
 
64395
      first = false;
-
 
64396
      sb.append(")");
-
 
64397
      return sb.toString();
-
 
64398
    }
-
 
64399
 
-
 
64400
    public void validate() throws org.apache.thrift.TException {
-
 
64401
      // check for required fields
-
 
64402
    }
-
 
64403
 
-
 
64404
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
64405
      try {
-
 
64406
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
64407
      } catch (org.apache.thrift.TException te) {
-
 
64408
        throw new java.io.IOException(te);
-
 
64409
      }
-
 
64410
    }
-
 
64411
 
-
 
64412
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
64413
      try {
-
 
64414
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
64415
      } catch (org.apache.thrift.TException te) {
-
 
64416
        throw new java.io.IOException(te);
-
 
64417
      }
-
 
64418
    }
-
 
64419
 
-
 
64420
  }
-
 
64421
 
-
 
64422
  public static class searchCounter_result implements org.apache.thrift.TBase<searchCounter_result, searchCounter_result._Fields>, java.io.Serializable, Cloneable   {
-
 
64423
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchCounter_result");
-
 
64424
 
-
 
64425
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
64426
 
-
 
64427
    private List<Counter> success; // required
-
 
64428
 
-
 
64429
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
64430
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
64431
      SUCCESS((short)0, "success");
-
 
64432
 
-
 
64433
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
64434
 
-
 
64435
      static {
-
 
64436
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
64437
          byName.put(field.getFieldName(), field);
-
 
64438
        }
-
 
64439
      }
-
 
64440
 
-
 
64441
      /**
-
 
64442
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
64443
       */
-
 
64444
      public static _Fields findByThriftId(int fieldId) {
-
 
64445
        switch(fieldId) {
-
 
64446
          case 0: // SUCCESS
-
 
64447
            return SUCCESS;
-
 
64448
          default:
-
 
64449
            return null;
-
 
64450
        }
-
 
64451
      }
-
 
64452
 
-
 
64453
      /**
-
 
64454
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
64455
       * if it is not found.
-
 
64456
       */
-
 
64457
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
64458
        _Fields fields = findByThriftId(fieldId);
-
 
64459
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
64460
        return fields;
-
 
64461
      }
-
 
64462
 
-
 
64463
      /**
-
 
64464
       * Find the _Fields constant that matches name, or null if its not found.
-
 
64465
       */
-
 
64466
      public static _Fields findByName(String name) {
-
 
64467
        return byName.get(name);
-
 
64468
      }
-
 
64469
 
-
 
64470
      private final short _thriftId;
-
 
64471
      private final String _fieldName;
-
 
64472
 
-
 
64473
      _Fields(short thriftId, String fieldName) {
-
 
64474
        _thriftId = thriftId;
-
 
64475
        _fieldName = fieldName;
-
 
64476
      }
-
 
64477
 
-
 
64478
      public short getThriftFieldId() {
-
 
64479
        return _thriftId;
-
 
64480
      }
-
 
64481
 
-
 
64482
      public String getFieldName() {
-
 
64483
        return _fieldName;
-
 
64484
      }
-
 
64485
    }
-
 
64486
 
-
 
64487
    // isset id assignments
-
 
64488
 
-
 
64489
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
64490
    static {
-
 
64491
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
64492
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
64493
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
64494
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Counter.class))));
-
 
64495
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
64496
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchCounter_result.class, metaDataMap);
-
 
64497
    }
-
 
64498
 
-
 
64499
    public searchCounter_result() {
-
 
64500
    }
-
 
64501
 
-
 
64502
    public searchCounter_result(
-
 
64503
      List<Counter> success)
-
 
64504
    {
-
 
64505
      this();
-
 
64506
      this.success = success;
-
 
64507
    }
-
 
64508
 
-
 
64509
    /**
-
 
64510
     * Performs a deep copy on <i>other</i>.
-
 
64511
     */
-
 
64512
    public searchCounter_result(searchCounter_result other) {
-
 
64513
      if (other.isSetSuccess()) {
-
 
64514
        List<Counter> __this__success = new ArrayList<Counter>();
-
 
64515
        for (Counter other_element : other.success) {
-
 
64516
          __this__success.add(new Counter(other_element));
-
 
64517
        }
-
 
64518
        this.success = __this__success;
-
 
64519
      }
-
 
64520
    }
-
 
64521
 
-
 
64522
    public searchCounter_result deepCopy() {
-
 
64523
      return new searchCounter_result(this);
-
 
64524
    }
-
 
64525
 
-
 
64526
    @Override
-
 
64527
    public void clear() {
-
 
64528
      this.success = null;
-
 
64529
    }
-
 
64530
 
-
 
64531
    public int getSuccessSize() {
-
 
64532
      return (this.success == null) ? 0 : this.success.size();
-
 
64533
    }
-
 
64534
 
-
 
64535
    public java.util.Iterator<Counter> getSuccessIterator() {
-
 
64536
      return (this.success == null) ? null : this.success.iterator();
-
 
64537
    }
-
 
64538
 
-
 
64539
    public void addToSuccess(Counter elem) {
-
 
64540
      if (this.success == null) {
-
 
64541
        this.success = new ArrayList<Counter>();
-
 
64542
      }
-
 
64543
      this.success.add(elem);
-
 
64544
    }
-
 
64545
 
-
 
64546
    public List<Counter> getSuccess() {
-
 
64547
      return this.success;
-
 
64548
    }
-
 
64549
 
-
 
64550
    public void setSuccess(List<Counter> success) {
-
 
64551
      this.success = success;
-
 
64552
    }
-
 
64553
 
-
 
64554
    public void unsetSuccess() {
-
 
64555
      this.success = null;
-
 
64556
    }
-
 
64557
 
-
 
64558
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
64559
    public boolean isSetSuccess() {
-
 
64560
      return this.success != null;
-
 
64561
    }
-
 
64562
 
-
 
64563
    public void setSuccessIsSet(boolean value) {
-
 
64564
      if (!value) {
-
 
64565
        this.success = null;
-
 
64566
      }
-
 
64567
    }
-
 
64568
 
-
 
64569
    public void setFieldValue(_Fields field, Object value) {
-
 
64570
      switch (field) {
-
 
64571
      case SUCCESS:
-
 
64572
        if (value == null) {
-
 
64573
          unsetSuccess();
-
 
64574
        } else {
-
 
64575
          setSuccess((List<Counter>)value);
-
 
64576
        }
-
 
64577
        break;
-
 
64578
 
-
 
64579
      }
-
 
64580
    }
-
 
64581
 
-
 
64582
    public Object getFieldValue(_Fields field) {
-
 
64583
      switch (field) {
-
 
64584
      case SUCCESS:
-
 
64585
        return getSuccess();
-
 
64586
 
-
 
64587
      }
-
 
64588
      throw new IllegalStateException();
-
 
64589
    }
-
 
64590
 
-
 
64591
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
64592
    public boolean isSet(_Fields field) {
-
 
64593
      if (field == null) {
-
 
64594
        throw new IllegalArgumentException();
-
 
64595
      }
-
 
64596
 
-
 
64597
      switch (field) {
-
 
64598
      case SUCCESS:
-
 
64599
        return isSetSuccess();
-
 
64600
      }
-
 
64601
      throw new IllegalStateException();
-
 
64602
    }
-
 
64603
 
-
 
64604
    @Override
-
 
64605
    public boolean equals(Object that) {
-
 
64606
      if (that == null)
-
 
64607
        return false;
-
 
64608
      if (that instanceof searchCounter_result)
-
 
64609
        return this.equals((searchCounter_result)that);
-
 
64610
      return false;
-
 
64611
    }
-
 
64612
 
-
 
64613
    public boolean equals(searchCounter_result that) {
-
 
64614
      if (that == null)
-
 
64615
        return false;
-
 
64616
 
-
 
64617
      boolean this_present_success = true && this.isSetSuccess();
-
 
64618
      boolean that_present_success = true && that.isSetSuccess();
-
 
64619
      if (this_present_success || that_present_success) {
-
 
64620
        if (!(this_present_success && that_present_success))
-
 
64621
          return false;
-
 
64622
        if (!this.success.equals(that.success))
-
 
64623
          return false;
-
 
64624
      }
-
 
64625
 
-
 
64626
      return true;
-
 
64627
    }
-
 
64628
 
-
 
64629
    @Override
-
 
64630
    public int hashCode() {
-
 
64631
      return 0;
-
 
64632
    }
-
 
64633
 
-
 
64634
    public int compareTo(searchCounter_result other) {
-
 
64635
      if (!getClass().equals(other.getClass())) {
-
 
64636
        return getClass().getName().compareTo(other.getClass().getName());
-
 
64637
      }
-
 
64638
 
-
 
64639
      int lastComparison = 0;
-
 
64640
      searchCounter_result typedOther = (searchCounter_result)other;
-
 
64641
 
-
 
64642
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
64643
      if (lastComparison != 0) {
-
 
64644
        return lastComparison;
-
 
64645
      }
-
 
64646
      if (isSetSuccess()) {
-
 
64647
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
64648
        if (lastComparison != 0) {
-
 
64649
          return lastComparison;
-
 
64650
        }
-
 
64651
      }
-
 
64652
      return 0;
-
 
64653
    }
-
 
64654
 
-
 
64655
    public _Fields fieldForId(int fieldId) {
-
 
64656
      return _Fields.findByThriftId(fieldId);
-
 
64657
    }
-
 
64658
 
-
 
64659
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
64660
      org.apache.thrift.protocol.TField field;
-
 
64661
      iprot.readStructBegin();
-
 
64662
      while (true)
-
 
64663
      {
-
 
64664
        field = iprot.readFieldBegin();
-
 
64665
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
64666
          break;
-
 
64667
        }
-
 
64668
        switch (field.id) {
-
 
64669
          case 0: // SUCCESS
-
 
64670
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
64671
              {
-
 
64672
                org.apache.thrift.protocol.TList _list133 = iprot.readListBegin();
-
 
64673
                this.success = new ArrayList<Counter>(_list133.size);
-
 
64674
                for (int _i134 = 0; _i134 < _list133.size; ++_i134)
-
 
64675
                {
-
 
64676
                  Counter _elem135; // required
-
 
64677
                  _elem135 = new Counter();
-
 
64678
                  _elem135.read(iprot);
-
 
64679
                  this.success.add(_elem135);
-
 
64680
                }
-
 
64681
                iprot.readListEnd();
-
 
64682
              }
-
 
64683
            } else { 
-
 
64684
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
64685
            }
-
 
64686
            break;
-
 
64687
          default:
-
 
64688
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
64689
        }
-
 
64690
        iprot.readFieldEnd();
-
 
64691
      }
-
 
64692
      iprot.readStructEnd();
-
 
64693
      validate();
-
 
64694
    }
-
 
64695
 
-
 
64696
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
64697
      oprot.writeStructBegin(STRUCT_DESC);
-
 
64698
 
-
 
64699
      if (this.isSetSuccess()) {
-
 
64700
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
64701
        {
-
 
64702
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
64703
          for (Counter _iter136 : this.success)
-
 
64704
          {
-
 
64705
            _iter136.write(oprot);
-
 
64706
          }
-
 
64707
          oprot.writeListEnd();
-
 
64708
        }
-
 
64709
        oprot.writeFieldEnd();
-
 
64710
      }
-
 
64711
      oprot.writeFieldStop();
-
 
64712
      oprot.writeStructEnd();
-
 
64713
    }
-
 
64714
 
-
 
64715
    @Override
-
 
64716
    public String toString() {
-
 
64717
      StringBuilder sb = new StringBuilder("searchCounter_result(");
-
 
64718
      boolean first = true;
-
 
64719
 
-
 
64720
      sb.append("success:");
-
 
64721
      if (this.success == null) {
-
 
64722
        sb.append("null");
-
 
64723
      } else {
-
 
64724
        sb.append(this.success);
-
 
64725
      }
-
 
64726
      first = false;
-
 
64727
      sb.append(")");
-
 
64728
      return sb.toString();
-
 
64729
    }
-
 
64730
 
-
 
64731
    public void validate() throws org.apache.thrift.TException {
-
 
64732
      // check for required fields
-
 
64733
    }
-
 
64734
 
-
 
64735
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
64736
      try {
-
 
64737
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
64738
      } catch (org.apache.thrift.TException te) {
-
 
64739
        throw new java.io.IOException(te);
-
 
64740
      }
-
 
64741
    }
-
 
64742
 
-
 
64743
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
64744
      try {
-
 
64745
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
64746
      } catch (org.apache.thrift.TException te) {
-
 
64747
        throw new java.io.IOException(te);
-
 
64748
      }
-
 
64749
    }
-
 
64750
 
-
 
64751
  }
-
 
64752
 
-
 
64753
  public static class getAllUsersByCounter_args implements org.apache.thrift.TBase<getAllUsersByCounter_args, getAllUsersByCounter_args._Fields>, java.io.Serializable, Cloneable   {
-
 
64754
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUsersByCounter_args");
-
 
64755
 
-
 
64756
    private static final org.apache.thrift.protocol.TField COUNTER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("counterId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
64757
 
-
 
64758
    private long counterId; // required
-
 
64759
 
-
 
64760
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
64761
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
64762
      COUNTER_ID((short)1, "counterId");
-
 
64763
 
-
 
64764
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
64765
 
-
 
64766
      static {
-
 
64767
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
64768
          byName.put(field.getFieldName(), field);
-
 
64769
        }
-
 
64770
      }
-
 
64771
 
-
 
64772
      /**
-
 
64773
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
64774
       */
-
 
64775
      public static _Fields findByThriftId(int fieldId) {
-
 
64776
        switch(fieldId) {
-
 
64777
          case 1: // COUNTER_ID
-
 
64778
            return COUNTER_ID;
-
 
64779
          default:
-
 
64780
            return null;
-
 
64781
        }
-
 
64782
      }
-
 
64783
 
-
 
64784
      /**
-
 
64785
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
64786
       * if it is not found.
-
 
64787
       */
-
 
64788
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
64789
        _Fields fields = findByThriftId(fieldId);
-
 
64790
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
64791
        return fields;
-
 
64792
      }
-
 
64793
 
-
 
64794
      /**
-
 
64795
       * Find the _Fields constant that matches name, or null if its not found.
-
 
64796
       */
-
 
64797
      public static _Fields findByName(String name) {
-
 
64798
        return byName.get(name);
-
 
64799
      }
-
 
64800
 
-
 
64801
      private final short _thriftId;
-
 
64802
      private final String _fieldName;
-
 
64803
 
-
 
64804
      _Fields(short thriftId, String fieldName) {
-
 
64805
        _thriftId = thriftId;
-
 
64806
        _fieldName = fieldName;
-
 
64807
      }
-
 
64808
 
-
 
64809
      public short getThriftFieldId() {
-
 
64810
        return _thriftId;
-
 
64811
      }
-
 
64812
 
-
 
64813
      public String getFieldName() {
-
 
64814
        return _fieldName;
-
 
64815
      }
-
 
64816
    }
-
 
64817
 
-
 
64818
    // isset id assignments
-
 
64819
    private static final int __COUNTERID_ISSET_ID = 0;
-
 
64820
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
64821
 
-
 
64822
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
64823
    static {
-
 
64824
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
64825
      tmpMap.put(_Fields.COUNTER_ID, new org.apache.thrift.meta_data.FieldMetaData("counterId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
64826
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
64827
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
64828
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUsersByCounter_args.class, metaDataMap);
-
 
64829
    }
-
 
64830
 
-
 
64831
    public getAllUsersByCounter_args() {
-
 
64832
    }
-
 
64833
 
-
 
64834
    public getAllUsersByCounter_args(
-
 
64835
      long counterId)
-
 
64836
    {
-
 
64837
      this();
-
 
64838
      this.counterId = counterId;
-
 
64839
      setCounterIdIsSet(true);
-
 
64840
    }
-
 
64841
 
-
 
64842
    /**
-
 
64843
     * Performs a deep copy on <i>other</i>.
-
 
64844
     */
-
 
64845
    public getAllUsersByCounter_args(getAllUsersByCounter_args other) {
-
 
64846
      __isset_bit_vector.clear();
-
 
64847
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
64848
      this.counterId = other.counterId;
-
 
64849
    }
-
 
64850
 
-
 
64851
    public getAllUsersByCounter_args deepCopy() {
-
 
64852
      return new getAllUsersByCounter_args(this);
-
 
64853
    }
-
 
64854
 
-
 
64855
    @Override
-
 
64856
    public void clear() {
-
 
64857
      setCounterIdIsSet(false);
-
 
64858
      this.counterId = 0;
-
 
64859
    }
-
 
64860
 
-
 
64861
    public long getCounterId() {
-
 
64862
      return this.counterId;
-
 
64863
    }
-
 
64864
 
-
 
64865
    public void setCounterId(long counterId) {
-
 
64866
      this.counterId = counterId;
-
 
64867
      setCounterIdIsSet(true);
-
 
64868
    }
-
 
64869
 
-
 
64870
    public void unsetCounterId() {
-
 
64871
      __isset_bit_vector.clear(__COUNTERID_ISSET_ID);
-
 
64872
    }
-
 
64873
 
-
 
64874
    /** Returns true if field counterId is set (has been assigned a value) and false otherwise */
-
 
64875
    public boolean isSetCounterId() {
-
 
64876
      return __isset_bit_vector.get(__COUNTERID_ISSET_ID);
-
 
64877
    }
-
 
64878
 
-
 
64879
    public void setCounterIdIsSet(boolean value) {
-
 
64880
      __isset_bit_vector.set(__COUNTERID_ISSET_ID, value);
-
 
64881
    }
-
 
64882
 
-
 
64883
    public void setFieldValue(_Fields field, Object value) {
-
 
64884
      switch (field) {
-
 
64885
      case COUNTER_ID:
-
 
64886
        if (value == null) {
-
 
64887
          unsetCounterId();
-
 
64888
        } else {
-
 
64889
          setCounterId((Long)value);
-
 
64890
        }
-
 
64891
        break;
-
 
64892
 
-
 
64893
      }
-
 
64894
    }
-
 
64895
 
-
 
64896
    public Object getFieldValue(_Fields field) {
-
 
64897
      switch (field) {
-
 
64898
      case COUNTER_ID:
-
 
64899
        return Long.valueOf(getCounterId());
-
 
64900
 
-
 
64901
      }
-
 
64902
      throw new IllegalStateException();
-
 
64903
    }
-
 
64904
 
-
 
64905
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
64906
    public boolean isSet(_Fields field) {
-
 
64907
      if (field == null) {
-
 
64908
        throw new IllegalArgumentException();
-
 
64909
      }
-
 
64910
 
-
 
64911
      switch (field) {
-
 
64912
      case COUNTER_ID:
-
 
64913
        return isSetCounterId();
-
 
64914
      }
-
 
64915
      throw new IllegalStateException();
-
 
64916
    }
-
 
64917
 
-
 
64918
    @Override
-
 
64919
    public boolean equals(Object that) {
-
 
64920
      if (that == null)
-
 
64921
        return false;
-
 
64922
      if (that instanceof getAllUsersByCounter_args)
-
 
64923
        return this.equals((getAllUsersByCounter_args)that);
-
 
64924
      return false;
-
 
64925
    }
-
 
64926
 
-
 
64927
    public boolean equals(getAllUsersByCounter_args that) {
-
 
64928
      if (that == null)
-
 
64929
        return false;
-
 
64930
 
-
 
64931
      boolean this_present_counterId = true;
-
 
64932
      boolean that_present_counterId = true;
-
 
64933
      if (this_present_counterId || that_present_counterId) {
-
 
64934
        if (!(this_present_counterId && that_present_counterId))
-
 
64935
          return false;
-
 
64936
        if (this.counterId != that.counterId)
-
 
64937
          return false;
-
 
64938
      }
-
 
64939
 
-
 
64940
      return true;
-
 
64941
    }
-
 
64942
 
-
 
64943
    @Override
-
 
64944
    public int hashCode() {
-
 
64945
      return 0;
-
 
64946
    }
-
 
64947
 
-
 
64948
    public int compareTo(getAllUsersByCounter_args other) {
-
 
64949
      if (!getClass().equals(other.getClass())) {
-
 
64950
        return getClass().getName().compareTo(other.getClass().getName());
-
 
64951
      }
-
 
64952
 
-
 
64953
      int lastComparison = 0;
-
 
64954
      getAllUsersByCounter_args typedOther = (getAllUsersByCounter_args)other;
-
 
64955
 
-
 
64956
      lastComparison = Boolean.valueOf(isSetCounterId()).compareTo(typedOther.isSetCounterId());
-
 
64957
      if (lastComparison != 0) {
-
 
64958
        return lastComparison;
-
 
64959
      }
-
 
64960
      if (isSetCounterId()) {
-
 
64961
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.counterId, typedOther.counterId);
-
 
64962
        if (lastComparison != 0) {
-
 
64963
          return lastComparison;
-
 
64964
        }
-
 
64965
      }
-
 
64966
      return 0;
-
 
64967
    }
-
 
64968
 
-
 
64969
    public _Fields fieldForId(int fieldId) {
-
 
64970
      return _Fields.findByThriftId(fieldId);
-
 
64971
    }
-
 
64972
 
-
 
64973
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
64974
      org.apache.thrift.protocol.TField field;
-
 
64975
      iprot.readStructBegin();
-
 
64976
      while (true)
-
 
64977
      {
-
 
64978
        field = iprot.readFieldBegin();
-
 
64979
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
64980
          break;
-
 
64981
        }
-
 
64982
        switch (field.id) {
-
 
64983
          case 1: // COUNTER_ID
-
 
64984
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
64985
              this.counterId = iprot.readI64();
-
 
64986
              setCounterIdIsSet(true);
-
 
64987
            } else { 
-
 
64988
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
64989
            }
-
 
64990
            break;
-
 
64991
          default:
-
 
64992
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
64993
        }
-
 
64994
        iprot.readFieldEnd();
-
 
64995
      }
-
 
64996
      iprot.readStructEnd();
-
 
64997
      validate();
-
 
64998
    }
-
 
64999
 
-
 
65000
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
65001
      validate();
-
 
65002
 
-
 
65003
      oprot.writeStructBegin(STRUCT_DESC);
-
 
65004
      oprot.writeFieldBegin(COUNTER_ID_FIELD_DESC);
-
 
65005
      oprot.writeI64(this.counterId);
-
 
65006
      oprot.writeFieldEnd();
-
 
65007
      oprot.writeFieldStop();
-
 
65008
      oprot.writeStructEnd();
-
 
65009
    }
-
 
65010
 
-
 
65011
    @Override
-
 
65012
    public String toString() {
-
 
65013
      StringBuilder sb = new StringBuilder("getAllUsersByCounter_args(");
-
 
65014
      boolean first = true;
-
 
65015
 
-
 
65016
      sb.append("counterId:");
-
 
65017
      sb.append(this.counterId);
-
 
65018
      first = false;
-
 
65019
      sb.append(")");
-
 
65020
      return sb.toString();
-
 
65021
    }
-
 
65022
 
-
 
65023
    public void validate() throws org.apache.thrift.TException {
-
 
65024
      // check for required fields
-
 
65025
    }
-
 
65026
 
-
 
65027
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
65028
      try {
-
 
65029
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
65030
      } catch (org.apache.thrift.TException te) {
-
 
65031
        throw new java.io.IOException(te);
-
 
65032
      }
-
 
65033
    }
-
 
65034
 
-
 
65035
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
65036
      try {
-
 
65037
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
65038
        __isset_bit_vector = new BitSet(1);
-
 
65039
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
65040
      } catch (org.apache.thrift.TException te) {
-
 
65041
        throw new java.io.IOException(te);
-
 
65042
      }
-
 
65043
    }
-
 
65044
 
-
 
65045
  }
-
 
65046
 
-
 
65047
  public static class getAllUsersByCounter_result implements org.apache.thrift.TBase<getAllUsersByCounter_result, getAllUsersByCounter_result._Fields>, java.io.Serializable, Cloneable   {
-
 
65048
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUsersByCounter_result");
-
 
65049
 
-
 
65050
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
65051
 
-
 
65052
    private List<User> success; // required
-
 
65053
 
-
 
65054
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
65055
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
65056
      SUCCESS((short)0, "success");
-
 
65057
 
-
 
65058
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
65059
 
-
 
65060
      static {
-
 
65061
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
65062
          byName.put(field.getFieldName(), field);
-
 
65063
        }
-
 
65064
      }
-
 
65065
 
-
 
65066
      /**
-
 
65067
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
65068
       */
-
 
65069
      public static _Fields findByThriftId(int fieldId) {
-
 
65070
        switch(fieldId) {
-
 
65071
          case 0: // SUCCESS
-
 
65072
            return SUCCESS;
-
 
65073
          default:
-
 
65074
            return null;
-
 
65075
        }
-
 
65076
      }
-
 
65077
 
-
 
65078
      /**
-
 
65079
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
65080
       * if it is not found.
-
 
65081
       */
-
 
65082
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
65083
        _Fields fields = findByThriftId(fieldId);
-
 
65084
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
65085
        return fields;
-
 
65086
      }
-
 
65087
 
-
 
65088
      /**
-
 
65089
       * Find the _Fields constant that matches name, or null if its not found.
-
 
65090
       */
-
 
65091
      public static _Fields findByName(String name) {
-
 
65092
        return byName.get(name);
-
 
65093
      }
-
 
65094
 
-
 
65095
      private final short _thriftId;
-
 
65096
      private final String _fieldName;
-
 
65097
 
-
 
65098
      _Fields(short thriftId, String fieldName) {
-
 
65099
        _thriftId = thriftId;
-
 
65100
        _fieldName = fieldName;
-
 
65101
      }
-
 
65102
 
-
 
65103
      public short getThriftFieldId() {
-
 
65104
        return _thriftId;
-
 
65105
      }
-
 
65106
 
-
 
65107
      public String getFieldName() {
-
 
65108
        return _fieldName;
-
 
65109
      }
-
 
65110
    }
-
 
65111
 
-
 
65112
    // isset id assignments
-
 
65113
 
-
 
65114
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
65115
    static {
-
 
65116
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
65117
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
65118
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
65119
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, User.class))));
-
 
65120
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
65121
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUsersByCounter_result.class, metaDataMap);
-
 
65122
    }
-
 
65123
 
-
 
65124
    public getAllUsersByCounter_result() {
-
 
65125
    }
-
 
65126
 
-
 
65127
    public getAllUsersByCounter_result(
-
 
65128
      List<User> success)
-
 
65129
    {
-
 
65130
      this();
-
 
65131
      this.success = success;
-
 
65132
    }
-
 
65133
 
-
 
65134
    /**
-
 
65135
     * Performs a deep copy on <i>other</i>.
-
 
65136
     */
-
 
65137
    public getAllUsersByCounter_result(getAllUsersByCounter_result other) {
-
 
65138
      if (other.isSetSuccess()) {
-
 
65139
        List<User> __this__success = new ArrayList<User>();
-
 
65140
        for (User other_element : other.success) {
-
 
65141
          __this__success.add(new User(other_element));
-
 
65142
        }
-
 
65143
        this.success = __this__success;
-
 
65144
      }
-
 
65145
    }
-
 
65146
 
-
 
65147
    public getAllUsersByCounter_result deepCopy() {
-
 
65148
      return new getAllUsersByCounter_result(this);
-
 
65149
    }
-
 
65150
 
-
 
65151
    @Override
-
 
65152
    public void clear() {
-
 
65153
      this.success = null;
-
 
65154
    }
-
 
65155
 
-
 
65156
    public int getSuccessSize() {
-
 
65157
      return (this.success == null) ? 0 : this.success.size();
-
 
65158
    }
-
 
65159
 
-
 
65160
    public java.util.Iterator<User> getSuccessIterator() {
-
 
65161
      return (this.success == null) ? null : this.success.iterator();
-
 
65162
    }
-
 
65163
 
-
 
65164
    public void addToSuccess(User elem) {
-
 
65165
      if (this.success == null) {
-
 
65166
        this.success = new ArrayList<User>();
-
 
65167
      }
-
 
65168
      this.success.add(elem);
-
 
65169
    }
-
 
65170
 
-
 
65171
    public List<User> getSuccess() {
-
 
65172
      return this.success;
-
 
65173
    }
-
 
65174
 
-
 
65175
    public void setSuccess(List<User> success) {
-
 
65176
      this.success = success;
-
 
65177
    }
-
 
65178
 
-
 
65179
    public void unsetSuccess() {
-
 
65180
      this.success = null;
-
 
65181
    }
-
 
65182
 
-
 
65183
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
65184
    public boolean isSetSuccess() {
-
 
65185
      return this.success != null;
-
 
65186
    }
-
 
65187
 
-
 
65188
    public void setSuccessIsSet(boolean value) {
-
 
65189
      if (!value) {
-
 
65190
        this.success = null;
-
 
65191
      }
-
 
65192
    }
-
 
65193
 
-
 
65194
    public void setFieldValue(_Fields field, Object value) {
-
 
65195
      switch (field) {
-
 
65196
      case SUCCESS:
-
 
65197
        if (value == null) {
-
 
65198
          unsetSuccess();
-
 
65199
        } else {
-
 
65200
          setSuccess((List<User>)value);
-
 
65201
        }
-
 
65202
        break;
-
 
65203
 
-
 
65204
      }
-
 
65205
    }
-
 
65206
 
-
 
65207
    public Object getFieldValue(_Fields field) {
-
 
65208
      switch (field) {
-
 
65209
      case SUCCESS:
-
 
65210
        return getSuccess();
-
 
65211
 
-
 
65212
      }
-
 
65213
      throw new IllegalStateException();
-
 
65214
    }
-
 
65215
 
-
 
65216
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
65217
    public boolean isSet(_Fields field) {
-
 
65218
      if (field == null) {
-
 
65219
        throw new IllegalArgumentException();
-
 
65220
      }
-
 
65221
 
-
 
65222
      switch (field) {
-
 
65223
      case SUCCESS:
-
 
65224
        return isSetSuccess();
-
 
65225
      }
-
 
65226
      throw new IllegalStateException();
-
 
65227
    }
-
 
65228
 
-
 
65229
    @Override
-
 
65230
    public boolean equals(Object that) {
-
 
65231
      if (that == null)
-
 
65232
        return false;
-
 
65233
      if (that instanceof getAllUsersByCounter_result)
-
 
65234
        return this.equals((getAllUsersByCounter_result)that);
-
 
65235
      return false;
-
 
65236
    }
-
 
65237
 
-
 
65238
    public boolean equals(getAllUsersByCounter_result that) {
-
 
65239
      if (that == null)
-
 
65240
        return false;
-
 
65241
 
-
 
65242
      boolean this_present_success = true && this.isSetSuccess();
-
 
65243
      boolean that_present_success = true && that.isSetSuccess();
-
 
65244
      if (this_present_success || that_present_success) {
-
 
65245
        if (!(this_present_success && that_present_success))
-
 
65246
          return false;
-
 
65247
        if (!this.success.equals(that.success))
-
 
65248
          return false;
-
 
65249
      }
-
 
65250
 
-
 
65251
      return true;
-
 
65252
    }
-
 
65253
 
-
 
65254
    @Override
-
 
65255
    public int hashCode() {
-
 
65256
      return 0;
-
 
65257
    }
-
 
65258
 
-
 
65259
    public int compareTo(getAllUsersByCounter_result other) {
-
 
65260
      if (!getClass().equals(other.getClass())) {
-
 
65261
        return getClass().getName().compareTo(other.getClass().getName());
-
 
65262
      }
-
 
65263
 
-
 
65264
      int lastComparison = 0;
-
 
65265
      getAllUsersByCounter_result typedOther = (getAllUsersByCounter_result)other;
-
 
65266
 
-
 
65267
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
65268
      if (lastComparison != 0) {
-
 
65269
        return lastComparison;
-
 
65270
      }
-
 
65271
      if (isSetSuccess()) {
-
 
65272
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
65273
        if (lastComparison != 0) {
-
 
65274
          return lastComparison;
-
 
65275
        }
-
 
65276
      }
-
 
65277
      return 0;
-
 
65278
    }
-
 
65279
 
-
 
65280
    public _Fields fieldForId(int fieldId) {
-
 
65281
      return _Fields.findByThriftId(fieldId);
-
 
65282
    }
-
 
65283
 
-
 
65284
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
65285
      org.apache.thrift.protocol.TField field;
-
 
65286
      iprot.readStructBegin();
-
 
65287
      while (true)
-
 
65288
      {
-
 
65289
        field = iprot.readFieldBegin();
-
 
65290
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
65291
          break;
-
 
65292
        }
-
 
65293
        switch (field.id) {
-
 
65294
          case 0: // SUCCESS
-
 
65295
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
65296
              {
-
 
65297
                org.apache.thrift.protocol.TList _list137 = iprot.readListBegin();
-
 
65298
                this.success = new ArrayList<User>(_list137.size);
-
 
65299
                for (int _i138 = 0; _i138 < _list137.size; ++_i138)
-
 
65300
                {
-
 
65301
                  User _elem139; // required
-
 
65302
                  _elem139 = new User();
-
 
65303
                  _elem139.read(iprot);
-
 
65304
                  this.success.add(_elem139);
-
 
65305
                }
-
 
65306
                iprot.readListEnd();
-
 
65307
              }
-
 
65308
            } else { 
-
 
65309
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
65310
            }
-
 
65311
            break;
-
 
65312
          default:
-
 
65313
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
65314
        }
-
 
65315
        iprot.readFieldEnd();
-
 
65316
      }
-
 
65317
      iprot.readStructEnd();
-
 
65318
      validate();
-
 
65319
    }
-
 
65320
 
-
 
65321
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
65322
      oprot.writeStructBegin(STRUCT_DESC);
-
 
65323
 
-
 
65324
      if (this.isSetSuccess()) {
-
 
65325
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
65326
        {
-
 
65327
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
65328
          for (User _iter140 : this.success)
-
 
65329
          {
-
 
65330
            _iter140.write(oprot);
-
 
65331
          }
-
 
65332
          oprot.writeListEnd();
-
 
65333
        }
-
 
65334
        oprot.writeFieldEnd();
-
 
65335
      }
-
 
65336
      oprot.writeFieldStop();
-
 
65337
      oprot.writeStructEnd();
-
 
65338
    }
-
 
65339
 
-
 
65340
    @Override
-
 
65341
    public String toString() {
-
 
65342
      StringBuilder sb = new StringBuilder("getAllUsersByCounter_result(");
-
 
65343
      boolean first = true;
-
 
65344
 
-
 
65345
      sb.append("success:");
-
 
65346
      if (this.success == null) {
-
 
65347
        sb.append("null");
63854
      } else {
65348
      } else {
63855
        sb.append(this.success);
65349
        sb.append(this.success);
63856
      }
65350
      }
63857
      first = false;
65351
      first = false;
63858
      sb.append(")");
65352
      sb.append(")");