Subversion Repositories SmartDukaan

Rev

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

Rev 19182 Rev 19888
Line 383... Line 383...
383
 
383
 
384
    public boolean taxInvoiceAvailable(long addressId) throws org.apache.thrift.TException;
384
    public boolean taxInvoiceAvailable(long addressId) throws org.apache.thrift.TException;
385
 
385
 
386
    public Map<Long,List<Line>> getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException;
386
    public Map<Long,List<Line>> getCartByValue(List<Long> cartIds) throws org.apache.thrift.TException;
387
 
387
 
-
 
388
    public Map<Long,String> getCounterName(List<Long> userIds) throws org.apache.thrift.TException;
-
 
389
 
388
  }
390
  }
389
 
391
 
390
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
392
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
391
 
393
 
392
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
394
    public void createAnonymousUser(String jsessionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createAnonymousUser_call> resultHandler) throws org.apache.thrift.TException;
Line 571... Line 573...
571
 
573
 
572
    public void taxInvoiceAvailable(long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.taxInvoiceAvailable_call> resultHandler) throws org.apache.thrift.TException;
574
    public void taxInvoiceAvailable(long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.taxInvoiceAvailable_call> resultHandler) throws org.apache.thrift.TException;
573
 
575
 
574
    public void getCartByValue(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartByValue_call> resultHandler) throws org.apache.thrift.TException;
576
    public void getCartByValue(List<Long> cartIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCartByValue_call> resultHandler) throws org.apache.thrift.TException;
575
 
577
 
-
 
578
    public void getCounterName(List<Long> userIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCounterName_call> resultHandler) throws org.apache.thrift.TException;
-
 
579
 
576
  }
580
  }
577
 
581
 
578
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
582
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
579
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
583
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
580
      public Factory() {}
584
      public Factory() {}
Line 2919... Line 2923...
2919
        return result.success;
2923
        return result.success;
2920
      }
2924
      }
2921
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartByValue failed: unknown result");
2925
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCartByValue failed: unknown result");
2922
    }
2926
    }
2923
 
2927
 
-
 
2928
    public Map<Long,String> getCounterName(List<Long> userIds) throws org.apache.thrift.TException
-
 
2929
    {
-
 
2930
      send_getCounterName(userIds);
-
 
2931
      return recv_getCounterName();
-
 
2932
    }
-
 
2933
 
-
 
2934
    public void send_getCounterName(List<Long> userIds) throws org.apache.thrift.TException
-
 
2935
    {
-
 
2936
      getCounterName_args args = new getCounterName_args();
-
 
2937
      args.setUserIds(userIds);
-
 
2938
      sendBase("getCounterName", args);
-
 
2939
    }
-
 
2940
 
-
 
2941
    public Map<Long,String> recv_getCounterName() throws org.apache.thrift.TException
-
 
2942
    {
-
 
2943
      getCounterName_result result = new getCounterName_result();
-
 
2944
      receiveBase(result, "getCounterName");
-
 
2945
      if (result.isSetSuccess()) {
-
 
2946
        return result.success;
-
 
2947
      }
-
 
2948
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCounterName failed: unknown result");
-
 
2949
    }
-
 
2950
 
2924
  }
2951
  }
2925
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2952
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2926
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2953
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2927
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2954
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2928
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2955
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 6102... Line 6129...
6102
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6129
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
6103
        return (new Client(prot)).recv_getCartByValue();
6130
        return (new Client(prot)).recv_getCartByValue();
6104
      }
6131
      }
6105
    }
6132
    }
6106
 
6133
 
-
 
6134
    public void getCounterName(List<Long> userIds, org.apache.thrift.async.AsyncMethodCallback<getCounterName_call> resultHandler) throws org.apache.thrift.TException {
-
 
6135
      checkReady();
-
 
6136
      getCounterName_call method_call = new getCounterName_call(userIds, resultHandler, this, ___protocolFactory, ___transport);
-
 
6137
      this.___currentMethod = method_call;
-
 
6138
      ___manager.call(method_call);
-
 
6139
    }
-
 
6140
 
-
 
6141
    public static class getCounterName_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
6142
      private List<Long> userIds;
-
 
6143
      public getCounterName_call(List<Long> userIds, org.apache.thrift.async.AsyncMethodCallback<getCounterName_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 {
-
 
6144
        super(client, protocolFactory, transport, resultHandler, false);
-
 
6145
        this.userIds = userIds;
-
 
6146
      }
-
 
6147
 
-
 
6148
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
6149
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCounterName", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
6150
        getCounterName_args args = new getCounterName_args();
-
 
6151
        args.setUserIds(userIds);
-
 
6152
        args.write(prot);
-
 
6153
        prot.writeMessageEnd();
-
 
6154
      }
-
 
6155
 
-
 
6156
      public Map<Long,String> getResult() throws org.apache.thrift.TException {
-
 
6157
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
6158
          throw new IllegalStateException("Method call not finished!");
-
 
6159
        }
-
 
6160
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
6161
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
6162
        return (new Client(prot)).recv_getCounterName();
-
 
6163
      }
-
 
6164
    }
-
 
6165
 
6107
  }
6166
  }
6108
 
6167
 
6109
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
6168
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
6110
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
6169
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
6111
    public Processor(I iface) {
6170
    public Processor(I iface) {
Line 6207... Line 6266...
6207
      processMap.put("getBillingAddressForUser", new getBillingAddressForUser());
6266
      processMap.put("getBillingAddressForUser", new getBillingAddressForUser());
6208
      processMap.put("isCreditorAssigned", new isCreditorAssigned());
6267
      processMap.put("isCreditorAssigned", new isCreditorAssigned());
6209
      processMap.put("isTaxInvoiceEnabledUser", new isTaxInvoiceEnabledUser());
6268
      processMap.put("isTaxInvoiceEnabledUser", new isTaxInvoiceEnabledUser());
6210
      processMap.put("taxInvoiceAvailable", new taxInvoiceAvailable());
6269
      processMap.put("taxInvoiceAvailable", new taxInvoiceAvailable());
6211
      processMap.put("getCartByValue", new getCartByValue());
6270
      processMap.put("getCartByValue", new getCartByValue());
-
 
6271
      processMap.put("getCounterName", new getCounterName());
6212
      return processMap;
6272
      return processMap;
6213
    }
6273
    }
6214
 
6274
 
6215
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
6275
    private static class createAnonymousUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createAnonymousUser_args> {
6216
      public createAnonymousUser() {
6276
      public createAnonymousUser() {
Line 7953... Line 8013...
7953
        result.success = iface.getCartByValue(args.cartIds);
8013
        result.success = iface.getCartByValue(args.cartIds);
7954
        return result;
8014
        return result;
7955
      }
8015
      }
7956
    }
8016
    }
7957
 
8017
 
-
 
8018
    private static class getCounterName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCounterName_args> {
-
 
8019
      public getCounterName() {
-
 
8020
        super("getCounterName");
-
 
8021
      }
-
 
8022
 
-
 
8023
      protected getCounterName_args getEmptyArgsInstance() {
-
 
8024
        return new getCounterName_args();
-
 
8025
      }
-
 
8026
 
-
 
8027
      protected getCounterName_result getResult(I iface, getCounterName_args args) throws org.apache.thrift.TException {
-
 
8028
        getCounterName_result result = new getCounterName_result();
-
 
8029
        result.success = iface.getCounterName(args.userIds);
-
 
8030
        return result;
-
 
8031
      }
-
 
8032
    }
-
 
8033
 
7958
  }
8034
  }
7959
 
8035
 
7960
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
8036
  public static class createAnonymousUser_args implements org.apache.thrift.TBase<createAnonymousUser_args, createAnonymousUser_args._Fields>, java.io.Serializable, Cloneable   {
7961
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
8037
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createAnonymousUser_args");
7962
 
8038
 
Line 73241... Line 73317...
73241
      boolean first = true;
73317
      boolean first = true;
73242
 
73318
 
73243
      sb.append("success:");
73319
      sb.append("success:");
73244
      if (this.success == null) {
73320
      if (this.success == null) {
73245
        sb.append("null");
73321
        sb.append("null");
-
 
73322
      } else {
-
 
73323
        sb.append(this.success);
-
 
73324
      }
-
 
73325
      first = false;
-
 
73326
      sb.append(")");
-
 
73327
      return sb.toString();
-
 
73328
    }
-
 
73329
 
-
 
73330
    public void validate() throws org.apache.thrift.TException {
-
 
73331
      // check for required fields
-
 
73332
    }
-
 
73333
 
-
 
73334
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
73335
      try {
-
 
73336
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
73337
      } catch (org.apache.thrift.TException te) {
-
 
73338
        throw new java.io.IOException(te);
-
 
73339
      }
-
 
73340
    }
-
 
73341
 
-
 
73342
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
73343
      try {
-
 
73344
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
73345
      } catch (org.apache.thrift.TException te) {
-
 
73346
        throw new java.io.IOException(te);
-
 
73347
      }
-
 
73348
    }
-
 
73349
 
-
 
73350
  }
-
 
73351
 
-
 
73352
  public static class getCounterName_args implements org.apache.thrift.TBase<getCounterName_args, getCounterName_args._Fields>, java.io.Serializable, Cloneable   {
-
 
73353
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCounterName_args");
-
 
73354
 
-
 
73355
    private static final org.apache.thrift.protocol.TField USER_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("userIds", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
73356
 
-
 
73357
    private List<Long> userIds; // required
-
 
73358
 
-
 
73359
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
73360
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
73361
      USER_IDS((short)1, "userIds");
-
 
73362
 
-
 
73363
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
73364
 
-
 
73365
      static {
-
 
73366
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
73367
          byName.put(field.getFieldName(), field);
-
 
73368
        }
-
 
73369
      }
-
 
73370
 
-
 
73371
      /**
-
 
73372
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
73373
       */
-
 
73374
      public static _Fields findByThriftId(int fieldId) {
-
 
73375
        switch(fieldId) {
-
 
73376
          case 1: // USER_IDS
-
 
73377
            return USER_IDS;
-
 
73378
          default:
-
 
73379
            return null;
-
 
73380
        }
-
 
73381
      }
-
 
73382
 
-
 
73383
      /**
-
 
73384
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
73385
       * if it is not found.
-
 
73386
       */
-
 
73387
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
73388
        _Fields fields = findByThriftId(fieldId);
-
 
73389
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
73390
        return fields;
-
 
73391
      }
-
 
73392
 
-
 
73393
      /**
-
 
73394
       * Find the _Fields constant that matches name, or null if its not found.
-
 
73395
       */
-
 
73396
      public static _Fields findByName(String name) {
-
 
73397
        return byName.get(name);
-
 
73398
      }
-
 
73399
 
-
 
73400
      private final short _thriftId;
-
 
73401
      private final String _fieldName;
-
 
73402
 
-
 
73403
      _Fields(short thriftId, String fieldName) {
-
 
73404
        _thriftId = thriftId;
-
 
73405
        _fieldName = fieldName;
-
 
73406
      }
-
 
73407
 
-
 
73408
      public short getThriftFieldId() {
-
 
73409
        return _thriftId;
-
 
73410
      }
-
 
73411
 
-
 
73412
      public String getFieldName() {
-
 
73413
        return _fieldName;
-
 
73414
      }
-
 
73415
    }
-
 
73416
 
-
 
73417
    // isset id assignments
-
 
73418
 
-
 
73419
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
73420
    static {
-
 
73421
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
73422
      tmpMap.put(_Fields.USER_IDS, new org.apache.thrift.meta_data.FieldMetaData("userIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
73423
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
73424
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
73425
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
73426
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCounterName_args.class, metaDataMap);
-
 
73427
    }
-
 
73428
 
-
 
73429
    public getCounterName_args() {
-
 
73430
    }
-
 
73431
 
-
 
73432
    public getCounterName_args(
-
 
73433
      List<Long> userIds)
-
 
73434
    {
-
 
73435
      this();
-
 
73436
      this.userIds = userIds;
-
 
73437
    }
-
 
73438
 
-
 
73439
    /**
-
 
73440
     * Performs a deep copy on <i>other</i>.
-
 
73441
     */
-
 
73442
    public getCounterName_args(getCounterName_args other) {
-
 
73443
      if (other.isSetUserIds()) {
-
 
73444
        List<Long> __this__userIds = new ArrayList<Long>();
-
 
73445
        for (Long other_element : other.userIds) {
-
 
73446
          __this__userIds.add(other_element);
-
 
73447
        }
-
 
73448
        this.userIds = __this__userIds;
-
 
73449
      }
-
 
73450
    }
-
 
73451
 
-
 
73452
    public getCounterName_args deepCopy() {
-
 
73453
      return new getCounterName_args(this);
-
 
73454
    }
-
 
73455
 
-
 
73456
    @Override
-
 
73457
    public void clear() {
-
 
73458
      this.userIds = null;
-
 
73459
    }
-
 
73460
 
-
 
73461
    public int getUserIdsSize() {
-
 
73462
      return (this.userIds == null) ? 0 : this.userIds.size();
-
 
73463
    }
-
 
73464
 
-
 
73465
    public java.util.Iterator<Long> getUserIdsIterator() {
-
 
73466
      return (this.userIds == null) ? null : this.userIds.iterator();
-
 
73467
    }
-
 
73468
 
-
 
73469
    public void addToUserIds(long elem) {
-
 
73470
      if (this.userIds == null) {
-
 
73471
        this.userIds = new ArrayList<Long>();
-
 
73472
      }
-
 
73473
      this.userIds.add(elem);
-
 
73474
    }
-
 
73475
 
-
 
73476
    public List<Long> getUserIds() {
-
 
73477
      return this.userIds;
-
 
73478
    }
-
 
73479
 
-
 
73480
    public void setUserIds(List<Long> userIds) {
-
 
73481
      this.userIds = userIds;
-
 
73482
    }
-
 
73483
 
-
 
73484
    public void unsetUserIds() {
-
 
73485
      this.userIds = null;
-
 
73486
    }
-
 
73487
 
-
 
73488
    /** Returns true if field userIds is set (has been assigned a value) and false otherwise */
-
 
73489
    public boolean isSetUserIds() {
-
 
73490
      return this.userIds != null;
-
 
73491
    }
-
 
73492
 
-
 
73493
    public void setUserIdsIsSet(boolean value) {
-
 
73494
      if (!value) {
-
 
73495
        this.userIds = null;
-
 
73496
      }
-
 
73497
    }
-
 
73498
 
-
 
73499
    public void setFieldValue(_Fields field, Object value) {
-
 
73500
      switch (field) {
-
 
73501
      case USER_IDS:
-
 
73502
        if (value == null) {
-
 
73503
          unsetUserIds();
-
 
73504
        } else {
-
 
73505
          setUserIds((List<Long>)value);
-
 
73506
        }
-
 
73507
        break;
-
 
73508
 
-
 
73509
      }
-
 
73510
    }
-
 
73511
 
-
 
73512
    public Object getFieldValue(_Fields field) {
-
 
73513
      switch (field) {
-
 
73514
      case USER_IDS:
-
 
73515
        return getUserIds();
-
 
73516
 
-
 
73517
      }
-
 
73518
      throw new IllegalStateException();
-
 
73519
    }
-
 
73520
 
-
 
73521
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
73522
    public boolean isSet(_Fields field) {
-
 
73523
      if (field == null) {
-
 
73524
        throw new IllegalArgumentException();
-
 
73525
      }
-
 
73526
 
-
 
73527
      switch (field) {
-
 
73528
      case USER_IDS:
-
 
73529
        return isSetUserIds();
-
 
73530
      }
-
 
73531
      throw new IllegalStateException();
-
 
73532
    }
-
 
73533
 
-
 
73534
    @Override
-
 
73535
    public boolean equals(Object that) {
-
 
73536
      if (that == null)
-
 
73537
        return false;
-
 
73538
      if (that instanceof getCounterName_args)
-
 
73539
        return this.equals((getCounterName_args)that);
-
 
73540
      return false;
-
 
73541
    }
-
 
73542
 
-
 
73543
    public boolean equals(getCounterName_args that) {
-
 
73544
      if (that == null)
-
 
73545
        return false;
-
 
73546
 
-
 
73547
      boolean this_present_userIds = true && this.isSetUserIds();
-
 
73548
      boolean that_present_userIds = true && that.isSetUserIds();
-
 
73549
      if (this_present_userIds || that_present_userIds) {
-
 
73550
        if (!(this_present_userIds && that_present_userIds))
-
 
73551
          return false;
-
 
73552
        if (!this.userIds.equals(that.userIds))
-
 
73553
          return false;
-
 
73554
      }
-
 
73555
 
-
 
73556
      return true;
-
 
73557
    }
-
 
73558
 
-
 
73559
    @Override
-
 
73560
    public int hashCode() {
-
 
73561
      return 0;
-
 
73562
    }
-
 
73563
 
-
 
73564
    public int compareTo(getCounterName_args other) {
-
 
73565
      if (!getClass().equals(other.getClass())) {
-
 
73566
        return getClass().getName().compareTo(other.getClass().getName());
-
 
73567
      }
-
 
73568
 
-
 
73569
      int lastComparison = 0;
-
 
73570
      getCounterName_args typedOther = (getCounterName_args)other;
-
 
73571
 
-
 
73572
      lastComparison = Boolean.valueOf(isSetUserIds()).compareTo(typedOther.isSetUserIds());
-
 
73573
      if (lastComparison != 0) {
-
 
73574
        return lastComparison;
-
 
73575
      }
-
 
73576
      if (isSetUserIds()) {
-
 
73577
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userIds, typedOther.userIds);
-
 
73578
        if (lastComparison != 0) {
-
 
73579
          return lastComparison;
-
 
73580
        }
-
 
73581
      }
-
 
73582
      return 0;
-
 
73583
    }
-
 
73584
 
-
 
73585
    public _Fields fieldForId(int fieldId) {
-
 
73586
      return _Fields.findByThriftId(fieldId);
-
 
73587
    }
-
 
73588
 
-
 
73589
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
73590
      org.apache.thrift.protocol.TField field;
-
 
73591
      iprot.readStructBegin();
-
 
73592
      while (true)
-
 
73593
      {
-
 
73594
        field = iprot.readFieldBegin();
-
 
73595
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
73596
          break;
-
 
73597
        }
-
 
73598
        switch (field.id) {
-
 
73599
          case 1: // USER_IDS
-
 
73600
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
73601
              {
-
 
73602
                org.apache.thrift.protocol.TList _list158 = iprot.readListBegin();
-
 
73603
                this.userIds = new ArrayList<Long>(_list158.size);
-
 
73604
                for (int _i159 = 0; _i159 < _list158.size; ++_i159)
-
 
73605
                {
-
 
73606
                  long _elem160; // required
-
 
73607
                  _elem160 = iprot.readI64();
-
 
73608
                  this.userIds.add(_elem160);
-
 
73609
                }
-
 
73610
                iprot.readListEnd();
-
 
73611
              }
-
 
73612
            } else { 
-
 
73613
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
73614
            }
-
 
73615
            break;
-
 
73616
          default:
-
 
73617
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
73618
        }
-
 
73619
        iprot.readFieldEnd();
-
 
73620
      }
-
 
73621
      iprot.readStructEnd();
-
 
73622
      validate();
-
 
73623
    }
-
 
73624
 
-
 
73625
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
73626
      validate();
-
 
73627
 
-
 
73628
      oprot.writeStructBegin(STRUCT_DESC);
-
 
73629
      if (this.userIds != null) {
-
 
73630
        oprot.writeFieldBegin(USER_IDS_FIELD_DESC);
-
 
73631
        {
-
 
73632
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.userIds.size()));
-
 
73633
          for (long _iter161 : this.userIds)
-
 
73634
          {
-
 
73635
            oprot.writeI64(_iter161);
-
 
73636
          }
-
 
73637
          oprot.writeListEnd();
-
 
73638
        }
-
 
73639
        oprot.writeFieldEnd();
-
 
73640
      }
-
 
73641
      oprot.writeFieldStop();
-
 
73642
      oprot.writeStructEnd();
-
 
73643
    }
-
 
73644
 
-
 
73645
    @Override
-
 
73646
    public String toString() {
-
 
73647
      StringBuilder sb = new StringBuilder("getCounterName_args(");
-
 
73648
      boolean first = true;
-
 
73649
 
-
 
73650
      sb.append("userIds:");
-
 
73651
      if (this.userIds == null) {
-
 
73652
        sb.append("null");
-
 
73653
      } else {
-
 
73654
        sb.append(this.userIds);
-
 
73655
      }
-
 
73656
      first = false;
-
 
73657
      sb.append(")");
-
 
73658
      return sb.toString();
-
 
73659
    }
-
 
73660
 
-
 
73661
    public void validate() throws org.apache.thrift.TException {
-
 
73662
      // check for required fields
-
 
73663
    }
-
 
73664
 
-
 
73665
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
73666
      try {
-
 
73667
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
73668
      } catch (org.apache.thrift.TException te) {
-
 
73669
        throw new java.io.IOException(te);
-
 
73670
      }
-
 
73671
    }
-
 
73672
 
-
 
73673
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
73674
      try {
-
 
73675
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
73676
      } catch (org.apache.thrift.TException te) {
-
 
73677
        throw new java.io.IOException(te);
-
 
73678
      }
-
 
73679
    }
-
 
73680
 
-
 
73681
  }
-
 
73682
 
-
 
73683
  public static class getCounterName_result implements org.apache.thrift.TBase<getCounterName_result, getCounterName_result._Fields>, java.io.Serializable, Cloneable   {
-
 
73684
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCounterName_result");
-
 
73685
 
-
 
73686
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
-
 
73687
 
-
 
73688
    private Map<Long,String> success; // required
-
 
73689
 
-
 
73690
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
73691
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
73692
      SUCCESS((short)0, "success");
-
 
73693
 
-
 
73694
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
73695
 
-
 
73696
      static {
-
 
73697
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
73698
          byName.put(field.getFieldName(), field);
-
 
73699
        }
-
 
73700
      }
-
 
73701
 
-
 
73702
      /**
-
 
73703
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
73704
       */
-
 
73705
      public static _Fields findByThriftId(int fieldId) {
-
 
73706
        switch(fieldId) {
-
 
73707
          case 0: // SUCCESS
-
 
73708
            return SUCCESS;
-
 
73709
          default:
-
 
73710
            return null;
-
 
73711
        }
-
 
73712
      }
-
 
73713
 
-
 
73714
      /**
-
 
73715
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
73716
       * if it is not found.
-
 
73717
       */
-
 
73718
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
73719
        _Fields fields = findByThriftId(fieldId);
-
 
73720
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
73721
        return fields;
-
 
73722
      }
-
 
73723
 
-
 
73724
      /**
-
 
73725
       * Find the _Fields constant that matches name, or null if its not found.
-
 
73726
       */
-
 
73727
      public static _Fields findByName(String name) {
-
 
73728
        return byName.get(name);
-
 
73729
      }
-
 
73730
 
-
 
73731
      private final short _thriftId;
-
 
73732
      private final String _fieldName;
-
 
73733
 
-
 
73734
      _Fields(short thriftId, String fieldName) {
-
 
73735
        _thriftId = thriftId;
-
 
73736
        _fieldName = fieldName;
-
 
73737
      }
-
 
73738
 
-
 
73739
      public short getThriftFieldId() {
-
 
73740
        return _thriftId;
-
 
73741
      }
-
 
73742
 
-
 
73743
      public String getFieldName() {
-
 
73744
        return _fieldName;
-
 
73745
      }
-
 
73746
    }
-
 
73747
 
-
 
73748
    // isset id assignments
-
 
73749
 
-
 
73750
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
73751
    static {
-
 
73752
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
73753
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
73754
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
73755
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
73756
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
73757
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
73758
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCounterName_result.class, metaDataMap);
-
 
73759
    }
-
 
73760
 
-
 
73761
    public getCounterName_result() {
-
 
73762
    }
-
 
73763
 
-
 
73764
    public getCounterName_result(
-
 
73765
      Map<Long,String> success)
-
 
73766
    {
-
 
73767
      this();
-
 
73768
      this.success = success;
-
 
73769
    }
-
 
73770
 
-
 
73771
    /**
-
 
73772
     * Performs a deep copy on <i>other</i>.
-
 
73773
     */
-
 
73774
    public getCounterName_result(getCounterName_result other) {
-
 
73775
      if (other.isSetSuccess()) {
-
 
73776
        Map<Long,String> __this__success = new HashMap<Long,String>();
-
 
73777
        for (Map.Entry<Long, String> other_element : other.success.entrySet()) {
-
 
73778
 
-
 
73779
          Long other_element_key = other_element.getKey();
-
 
73780
          String other_element_value = other_element.getValue();
-
 
73781
 
-
 
73782
          Long __this__success_copy_key = other_element_key;
-
 
73783
 
-
 
73784
          String __this__success_copy_value = other_element_value;
-
 
73785
 
-
 
73786
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
73787
        }
-
 
73788
        this.success = __this__success;
-
 
73789
      }
-
 
73790
    }
-
 
73791
 
-
 
73792
    public getCounterName_result deepCopy() {
-
 
73793
      return new getCounterName_result(this);
-
 
73794
    }
-
 
73795
 
-
 
73796
    @Override
-
 
73797
    public void clear() {
-
 
73798
      this.success = null;
-
 
73799
    }
-
 
73800
 
-
 
73801
    public int getSuccessSize() {
-
 
73802
      return (this.success == null) ? 0 : this.success.size();
-
 
73803
    }
-
 
73804
 
-
 
73805
    public void putToSuccess(long key, String val) {
-
 
73806
      if (this.success == null) {
-
 
73807
        this.success = new HashMap<Long,String>();
-
 
73808
      }
-
 
73809
      this.success.put(key, val);
-
 
73810
    }
-
 
73811
 
-
 
73812
    public Map<Long,String> getSuccess() {
-
 
73813
      return this.success;
-
 
73814
    }
-
 
73815
 
-
 
73816
    public void setSuccess(Map<Long,String> success) {
-
 
73817
      this.success = success;
-
 
73818
    }
-
 
73819
 
-
 
73820
    public void unsetSuccess() {
-
 
73821
      this.success = null;
-
 
73822
    }
-
 
73823
 
-
 
73824
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
73825
    public boolean isSetSuccess() {
-
 
73826
      return this.success != null;
-
 
73827
    }
-
 
73828
 
-
 
73829
    public void setSuccessIsSet(boolean value) {
-
 
73830
      if (!value) {
-
 
73831
        this.success = null;
-
 
73832
      }
-
 
73833
    }
-
 
73834
 
-
 
73835
    public void setFieldValue(_Fields field, Object value) {
-
 
73836
      switch (field) {
-
 
73837
      case SUCCESS:
-
 
73838
        if (value == null) {
-
 
73839
          unsetSuccess();
-
 
73840
        } else {
-
 
73841
          setSuccess((Map<Long,String>)value);
-
 
73842
        }
-
 
73843
        break;
-
 
73844
 
-
 
73845
      }
-
 
73846
    }
-
 
73847
 
-
 
73848
    public Object getFieldValue(_Fields field) {
-
 
73849
      switch (field) {
-
 
73850
      case SUCCESS:
-
 
73851
        return getSuccess();
-
 
73852
 
-
 
73853
      }
-
 
73854
      throw new IllegalStateException();
-
 
73855
    }
-
 
73856
 
-
 
73857
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
73858
    public boolean isSet(_Fields field) {
-
 
73859
      if (field == null) {
-
 
73860
        throw new IllegalArgumentException();
-
 
73861
      }
-
 
73862
 
-
 
73863
      switch (field) {
-
 
73864
      case SUCCESS:
-
 
73865
        return isSetSuccess();
-
 
73866
      }
-
 
73867
      throw new IllegalStateException();
-
 
73868
    }
-
 
73869
 
-
 
73870
    @Override
-
 
73871
    public boolean equals(Object that) {
-
 
73872
      if (that == null)
-
 
73873
        return false;
-
 
73874
      if (that instanceof getCounterName_result)
-
 
73875
        return this.equals((getCounterName_result)that);
-
 
73876
      return false;
-
 
73877
    }
-
 
73878
 
-
 
73879
    public boolean equals(getCounterName_result that) {
-
 
73880
      if (that == null)
-
 
73881
        return false;
-
 
73882
 
-
 
73883
      boolean this_present_success = true && this.isSetSuccess();
-
 
73884
      boolean that_present_success = true && that.isSetSuccess();
-
 
73885
      if (this_present_success || that_present_success) {
-
 
73886
        if (!(this_present_success && that_present_success))
-
 
73887
          return false;
-
 
73888
        if (!this.success.equals(that.success))
-
 
73889
          return false;
-
 
73890
      }
-
 
73891
 
-
 
73892
      return true;
-
 
73893
    }
-
 
73894
 
-
 
73895
    @Override
-
 
73896
    public int hashCode() {
-
 
73897
      return 0;
-
 
73898
    }
-
 
73899
 
-
 
73900
    public int compareTo(getCounterName_result other) {
-
 
73901
      if (!getClass().equals(other.getClass())) {
-
 
73902
        return getClass().getName().compareTo(other.getClass().getName());
-
 
73903
      }
-
 
73904
 
-
 
73905
      int lastComparison = 0;
-
 
73906
      getCounterName_result typedOther = (getCounterName_result)other;
-
 
73907
 
-
 
73908
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
73909
      if (lastComparison != 0) {
-
 
73910
        return lastComparison;
-
 
73911
      }
-
 
73912
      if (isSetSuccess()) {
-
 
73913
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
73914
        if (lastComparison != 0) {
-
 
73915
          return lastComparison;
-
 
73916
        }
-
 
73917
      }
-
 
73918
      return 0;
-
 
73919
    }
-
 
73920
 
-
 
73921
    public _Fields fieldForId(int fieldId) {
-
 
73922
      return _Fields.findByThriftId(fieldId);
-
 
73923
    }
-
 
73924
 
-
 
73925
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
73926
      org.apache.thrift.protocol.TField field;
-
 
73927
      iprot.readStructBegin();
-
 
73928
      while (true)
-
 
73929
      {
-
 
73930
        field = iprot.readFieldBegin();
-
 
73931
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
73932
          break;
-
 
73933
        }
-
 
73934
        switch (field.id) {
-
 
73935
          case 0: // SUCCESS
-
 
73936
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
73937
              {
-
 
73938
                org.apache.thrift.protocol.TMap _map162 = iprot.readMapBegin();
-
 
73939
                this.success = new HashMap<Long,String>(2*_map162.size);
-
 
73940
                for (int _i163 = 0; _i163 < _map162.size; ++_i163)
-
 
73941
                {
-
 
73942
                  long _key164; // required
-
 
73943
                  String _val165; // required
-
 
73944
                  _key164 = iprot.readI64();
-
 
73945
                  _val165 = iprot.readString();
-
 
73946
                  this.success.put(_key164, _val165);
-
 
73947
                }
-
 
73948
                iprot.readMapEnd();
-
 
73949
              }
-
 
73950
            } else { 
-
 
73951
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
73952
            }
-
 
73953
            break;
-
 
73954
          default:
-
 
73955
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
73956
        }
-
 
73957
        iprot.readFieldEnd();
-
 
73958
      }
-
 
73959
      iprot.readStructEnd();
-
 
73960
      validate();
-
 
73961
    }
-
 
73962
 
-
 
73963
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
73964
      oprot.writeStructBegin(STRUCT_DESC);
-
 
73965
 
-
 
73966
      if (this.isSetSuccess()) {
-
 
73967
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
73968
        {
-
 
73969
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, this.success.size()));
-
 
73970
          for (Map.Entry<Long, String> _iter166 : this.success.entrySet())
-
 
73971
          {
-
 
73972
            oprot.writeI64(_iter166.getKey());
-
 
73973
            oprot.writeString(_iter166.getValue());
-
 
73974
          }
-
 
73975
          oprot.writeMapEnd();
-
 
73976
        }
-
 
73977
        oprot.writeFieldEnd();
-
 
73978
      }
-
 
73979
      oprot.writeFieldStop();
-
 
73980
      oprot.writeStructEnd();
-
 
73981
    }
-
 
73982
 
-
 
73983
    @Override
-
 
73984
    public String toString() {
-
 
73985
      StringBuilder sb = new StringBuilder("getCounterName_result(");
-
 
73986
      boolean first = true;
-
 
73987
 
-
 
73988
      sb.append("success:");
-
 
73989
      if (this.success == null) {
-
 
73990
        sb.append("null");
73246
      } else {
73991
      } else {
73247
        sb.append(this.success);
73992
        sb.append(this.success);
73248
      }
73993
      }
73249
      first = false;
73994
      first = false;
73250
      sb.append(")");
73995
      sb.append(")");