Subversion Repositories SmartDukaan

Rev

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

Rev 7190 Rev 7263
Line 939... Line 939...
939
 
939
 
940
    public List<RechargeTransaction> getRechargeTransactionsByNumber(String number, long storeId) throws org.apache.thrift.TException;
940
    public List<RechargeTransaction> getRechargeTransactionsByNumber(String number, long storeId) throws org.apache.thrift.TException;
941
 
941
 
942
    public boolean updateHotspotStorePassword(long storeId, String password) throws org.apache.thrift.TException;
942
    public boolean updateHotspotStorePassword(long storeId, String password) throws org.apache.thrift.TException;
943
 
943
 
-
 
944
    public SourceDetail getSourceDetail(long source) throws org.apache.thrift.TException;
-
 
945
 
944
  }
946
  }
945
 
947
 
946
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
948
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
947
 
949
 
948
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
950
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1271... Line 1273...
1271
 
1273
 
1272
    public void getRechargeTransactionsByNumber(String number, long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeTransactionsByNumber_call> resultHandler) throws org.apache.thrift.TException;
1274
    public void getRechargeTransactionsByNumber(String number, long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeTransactionsByNumber_call> resultHandler) throws org.apache.thrift.TException;
1273
 
1275
 
1274
    public void updateHotspotStorePassword(long storeId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateHotspotStorePassword_call> resultHandler) throws org.apache.thrift.TException;
1276
    public void updateHotspotStorePassword(long storeId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateHotspotStorePassword_call> resultHandler) throws org.apache.thrift.TException;
1275
 
1277
 
-
 
1278
    public void getSourceDetail(long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSourceDetail_call> resultHandler) throws org.apache.thrift.TException;
-
 
1279
 
1276
  }
1280
  }
1277
 
1281
 
1278
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1282
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1279
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1283
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1280
      public Factory() {}
1284
      public Factory() {}
Line 5411... Line 5415...
5411
        return result.success;
5415
        return result.success;
5412
      }
5416
      }
5413
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateHotspotStorePassword failed: unknown result");
5417
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateHotspotStorePassword failed: unknown result");
5414
    }
5418
    }
5415
 
5419
 
-
 
5420
    public SourceDetail getSourceDetail(long source) throws org.apache.thrift.TException
-
 
5421
    {
-
 
5422
      send_getSourceDetail(source);
-
 
5423
      return recv_getSourceDetail();
-
 
5424
    }
-
 
5425
 
-
 
5426
    public void send_getSourceDetail(long source) throws org.apache.thrift.TException
-
 
5427
    {
-
 
5428
      getSourceDetail_args args = new getSourceDetail_args();
-
 
5429
      args.setSource(source);
-
 
5430
      sendBase("getSourceDetail", args);
-
 
5431
    }
-
 
5432
 
-
 
5433
    public SourceDetail recv_getSourceDetail() throws org.apache.thrift.TException
-
 
5434
    {
-
 
5435
      getSourceDetail_result result = new getSourceDetail_result();
-
 
5436
      receiveBase(result, "getSourceDetail");
-
 
5437
      if (result.isSetSuccess()) {
-
 
5438
        return result.success;
-
 
5439
      }
-
 
5440
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSourceDetail failed: unknown result");
-
 
5441
    }
-
 
5442
 
5416
  }
5443
  }
5417
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5444
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5418
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5445
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5419
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5446
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5420
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5447
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 11166... Line 11193...
11166
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11193
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11167
        return (new Client(prot)).recv_updateHotspotStorePassword();
11194
        return (new Client(prot)).recv_updateHotspotStorePassword();
11168
      }
11195
      }
11169
    }
11196
    }
11170
 
11197
 
-
 
11198
    public void getSourceDetail(long source, org.apache.thrift.async.AsyncMethodCallback<getSourceDetail_call> resultHandler) throws org.apache.thrift.TException {
-
 
11199
      checkReady();
-
 
11200
      getSourceDetail_call method_call = new getSourceDetail_call(source, resultHandler, this, ___protocolFactory, ___transport);
-
 
11201
      this.___currentMethod = method_call;
-
 
11202
      ___manager.call(method_call);
-
 
11203
    }
-
 
11204
 
-
 
11205
    public static class getSourceDetail_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11206
      private long source;
-
 
11207
      public getSourceDetail_call(long source, org.apache.thrift.async.AsyncMethodCallback<getSourceDetail_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 {
-
 
11208
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11209
        this.source = source;
-
 
11210
      }
-
 
11211
 
-
 
11212
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11213
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSourceDetail", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11214
        getSourceDetail_args args = new getSourceDetail_args();
-
 
11215
        args.setSource(source);
-
 
11216
        args.write(prot);
-
 
11217
        prot.writeMessageEnd();
-
 
11218
      }
-
 
11219
 
-
 
11220
      public SourceDetail getResult() throws org.apache.thrift.TException {
-
 
11221
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11222
          throw new IllegalStateException("Method call not finished!");
-
 
11223
        }
-
 
11224
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11225
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11226
        return (new Client(prot)).recv_getSourceDetail();
-
 
11227
      }
-
 
11228
    }
-
 
11229
 
11171
  }
11230
  }
11172
 
11231
 
11173
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11232
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11174
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11233
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11175
    public Processor(I iface) {
11234
    public Processor(I iface) {
Line 11343... Line 11402...
11343
      processMap.put("getTelecomCircle", new getTelecomCircle());
11402
      processMap.put("getTelecomCircle", new getTelecomCircle());
11344
      processMap.put("retrieveHotspotRechargeInvoice", new retrieveHotspotRechargeInvoice());
11403
      processMap.put("retrieveHotspotRechargeInvoice", new retrieveHotspotRechargeInvoice());
11345
      processMap.put("splitFreebieOrder", new splitFreebieOrder());
11404
      processMap.put("splitFreebieOrder", new splitFreebieOrder());
11346
      processMap.put("getRechargeTransactionsByNumber", new getRechargeTransactionsByNumber());
11405
      processMap.put("getRechargeTransactionsByNumber", new getRechargeTransactionsByNumber());
11347
      processMap.put("updateHotspotStorePassword", new updateHotspotStorePassword());
11406
      processMap.put("updateHotspotStorePassword", new updateHotspotStorePassword());
-
 
11407
      processMap.put("getSourceDetail", new getSourceDetail());
11348
      return processMap;
11408
      return processMap;
11349
    }
11409
    }
11350
 
11410
 
11351
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
11411
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
11352
      public createTransaction() {
11412
      public createTransaction() {
Line 14399... Line 14459...
14399
        result.setSuccessIsSet(true);
14459
        result.setSuccessIsSet(true);
14400
        return result;
14460
        return result;
14401
      }
14461
      }
14402
    }
14462
    }
14403
 
14463
 
-
 
14464
    private static class getSourceDetail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSourceDetail_args> {
-
 
14465
      public getSourceDetail() {
-
 
14466
        super("getSourceDetail");
-
 
14467
      }
-
 
14468
 
-
 
14469
      protected getSourceDetail_args getEmptyArgsInstance() {
-
 
14470
        return new getSourceDetail_args();
-
 
14471
      }
-
 
14472
 
-
 
14473
      protected getSourceDetail_result getResult(I iface, getSourceDetail_args args) throws org.apache.thrift.TException {
-
 
14474
        getSourceDetail_result result = new getSourceDetail_result();
-
 
14475
        result.success = iface.getSourceDetail(args.source);
-
 
14476
        return result;
-
 
14477
      }
-
 
14478
    }
-
 
14479
 
14404
  }
14480
  }
14405
 
14481
 
14406
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
14482
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
14407
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
14483
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
14408
 
14484
 
Line 22649... Line 22725...
22649
      }
22725
      }
22650
    }
22726
    }
22651
 
22727
 
22652
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22728
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22653
      try {
22729
      try {
22654
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
22655
        __isset_bit_vector = new BitSet(1);
-
 
22656
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22730
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22657
      } catch (org.apache.thrift.TException te) {
22731
      } catch (org.apache.thrift.TException te) {
22658
        throw new java.io.IOException(te);
22732
        throw new java.io.IOException(te);
22659
      }
22733
      }
22660
    }
22734
    }
Line 59434... Line 59508...
59434
      }
59508
      }
59435
    }
59509
    }
59436
 
59510
 
59437
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
59511
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
59438
      try {
59512
      try {
-
 
59513
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
59514
        __isset_bit_vector = new BitSet(1);
59439
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
59515
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
59440
      } catch (org.apache.thrift.TException te) {
59516
      } catch (org.apache.thrift.TException te) {
59441
        throw new java.io.IOException(te);
59517
        throw new java.io.IOException(te);
59442
      }
59518
      }
59443
    }
59519
    }
Line 64196... Line 64272...
64196
      }
64272
      }
64197
    }
64273
    }
64198
 
64274
 
64199
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
64275
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
64200
      try {
64276
      try {
-
 
64277
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
64278
        __isset_bit_vector = new BitSet(1);
64201
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
64279
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
64202
      } catch (org.apache.thrift.TException te) {
64280
      } catch (org.apache.thrift.TException te) {
64203
        throw new java.io.IOException(te);
64281
        throw new java.io.IOException(te);
64204
      }
64282
      }
64205
    }
64283
    }
Line 74209... Line 74287...
74209
      }
74287
      }
74210
    }
74288
    }
74211
 
74289
 
74212
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
74290
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
74213
      try {
74291
      try {
74214
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
74215
        __isset_bit_vector = new BitSet(1);
-
 
74216
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
74292
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
74217
      } catch (org.apache.thrift.TException te) {
74293
      } catch (org.apache.thrift.TException te) {
74218
        throw new java.io.IOException(te);
74294
        throw new java.io.IOException(te);
74219
      }
74295
      }
74220
    }
74296
    }
Line 103143... Line 103219...
103143
      }
103219
      }
103144
    }
103220
    }
103145
 
103221
 
103146
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
103222
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
103147
      try {
103223
      try {
-
 
103224
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
103225
        __isset_bit_vector = new BitSet(1);
103148
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
103226
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
103149
      } catch (org.apache.thrift.TException te) {
103227
      } catch (org.apache.thrift.TException te) {
103150
        throw new java.io.IOException(te);
103228
        throw new java.io.IOException(te);
103151
      }
103229
      }
103152
    }
103230
    }
Line 133364... Line 133442...
133364
      first = false;
133442
      first = false;
133365
      sb.append(")");
133443
      sb.append(")");
133366
      return sb.toString();
133444
      return sb.toString();
133367
    }
133445
    }
133368
 
133446
 
-
 
133447
    public void validate() throws org.apache.thrift.TException {
-
 
133448
      // check for required fields
-
 
133449
    }
-
 
133450
 
-
 
133451
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
133452
      try {
-
 
133453
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
133454
      } catch (org.apache.thrift.TException te) {
-
 
133455
        throw new java.io.IOException(te);
-
 
133456
      }
-
 
133457
    }
-
 
133458
 
-
 
133459
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
133460
      try {
-
 
133461
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
133462
      } catch (org.apache.thrift.TException te) {
-
 
133463
        throw new java.io.IOException(te);
-
 
133464
      }
-
 
133465
    }
-
 
133466
 
-
 
133467
  }
-
 
133468
 
-
 
133469
  public static class getSourceDetail_args implements org.apache.thrift.TBase<getSourceDetail_args, getSourceDetail_args._Fields>, java.io.Serializable, Cloneable   {
-
 
133470
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSourceDetail_args");
-
 
133471
 
-
 
133472
    private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
133473
 
-
 
133474
    private long source; // required
-
 
133475
 
-
 
133476
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
133477
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
133478
      SOURCE((short)1, "source");
-
 
133479
 
-
 
133480
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
133481
 
-
 
133482
      static {
-
 
133483
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
133484
          byName.put(field.getFieldName(), field);
-
 
133485
        }
-
 
133486
      }
-
 
133487
 
-
 
133488
      /**
-
 
133489
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
133490
       */
-
 
133491
      public static _Fields findByThriftId(int fieldId) {
-
 
133492
        switch(fieldId) {
-
 
133493
          case 1: // SOURCE
-
 
133494
            return SOURCE;
-
 
133495
          default:
-
 
133496
            return null;
-
 
133497
        }
-
 
133498
      }
-
 
133499
 
-
 
133500
      /**
-
 
133501
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
133502
       * if it is not found.
-
 
133503
       */
-
 
133504
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
133505
        _Fields fields = findByThriftId(fieldId);
-
 
133506
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
133507
        return fields;
-
 
133508
      }
-
 
133509
 
-
 
133510
      /**
-
 
133511
       * Find the _Fields constant that matches name, or null if its not found.
-
 
133512
       */
-
 
133513
      public static _Fields findByName(String name) {
-
 
133514
        return byName.get(name);
-
 
133515
      }
-
 
133516
 
-
 
133517
      private final short _thriftId;
-
 
133518
      private final String _fieldName;
-
 
133519
 
-
 
133520
      _Fields(short thriftId, String fieldName) {
-
 
133521
        _thriftId = thriftId;
-
 
133522
        _fieldName = fieldName;
-
 
133523
      }
-
 
133524
 
-
 
133525
      public short getThriftFieldId() {
-
 
133526
        return _thriftId;
-
 
133527
      }
-
 
133528
 
-
 
133529
      public String getFieldName() {
-
 
133530
        return _fieldName;
-
 
133531
      }
-
 
133532
    }
-
 
133533
 
-
 
133534
    // isset id assignments
-
 
133535
    private static final int __SOURCE_ISSET_ID = 0;
-
 
133536
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
133537
 
-
 
133538
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
133539
    static {
-
 
133540
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
133541
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
133542
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
133543
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
133544
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSourceDetail_args.class, metaDataMap);
-
 
133545
    }
-
 
133546
 
-
 
133547
    public getSourceDetail_args() {
-
 
133548
    }
-
 
133549
 
-
 
133550
    public getSourceDetail_args(
-
 
133551
      long source)
-
 
133552
    {
-
 
133553
      this();
-
 
133554
      this.source = source;
-
 
133555
      setSourceIsSet(true);
-
 
133556
    }
-
 
133557
 
-
 
133558
    /**
-
 
133559
     * Performs a deep copy on <i>other</i>.
-
 
133560
     */
-
 
133561
    public getSourceDetail_args(getSourceDetail_args other) {
-
 
133562
      __isset_bit_vector.clear();
-
 
133563
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
133564
      this.source = other.source;
-
 
133565
    }
-
 
133566
 
-
 
133567
    public getSourceDetail_args deepCopy() {
-
 
133568
      return new getSourceDetail_args(this);
-
 
133569
    }
-
 
133570
 
-
 
133571
    @Override
-
 
133572
    public void clear() {
-
 
133573
      setSourceIsSet(false);
-
 
133574
      this.source = 0;
-
 
133575
    }
-
 
133576
 
-
 
133577
    public long getSource() {
-
 
133578
      return this.source;
-
 
133579
    }
-
 
133580
 
-
 
133581
    public void setSource(long source) {
-
 
133582
      this.source = source;
-
 
133583
      setSourceIsSet(true);
-
 
133584
    }
-
 
133585
 
-
 
133586
    public void unsetSource() {
-
 
133587
      __isset_bit_vector.clear(__SOURCE_ISSET_ID);
-
 
133588
    }
-
 
133589
 
-
 
133590
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
-
 
133591
    public boolean isSetSource() {
-
 
133592
      return __isset_bit_vector.get(__SOURCE_ISSET_ID);
-
 
133593
    }
-
 
133594
 
-
 
133595
    public void setSourceIsSet(boolean value) {
-
 
133596
      __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
-
 
133597
    }
-
 
133598
 
-
 
133599
    public void setFieldValue(_Fields field, Object value) {
-
 
133600
      switch (field) {
-
 
133601
      case SOURCE:
-
 
133602
        if (value == null) {
-
 
133603
          unsetSource();
-
 
133604
        } else {
-
 
133605
          setSource((Long)value);
-
 
133606
        }
-
 
133607
        break;
-
 
133608
 
-
 
133609
      }
-
 
133610
    }
-
 
133611
 
-
 
133612
    public Object getFieldValue(_Fields field) {
-
 
133613
      switch (field) {
-
 
133614
      case SOURCE:
-
 
133615
        return Long.valueOf(getSource());
-
 
133616
 
-
 
133617
      }
-
 
133618
      throw new IllegalStateException();
-
 
133619
    }
-
 
133620
 
-
 
133621
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
133622
    public boolean isSet(_Fields field) {
-
 
133623
      if (field == null) {
-
 
133624
        throw new IllegalArgumentException();
-
 
133625
      }
-
 
133626
 
-
 
133627
      switch (field) {
-
 
133628
      case SOURCE:
-
 
133629
        return isSetSource();
-
 
133630
      }
-
 
133631
      throw new IllegalStateException();
-
 
133632
    }
-
 
133633
 
-
 
133634
    @Override
-
 
133635
    public boolean equals(Object that) {
-
 
133636
      if (that == null)
-
 
133637
        return false;
-
 
133638
      if (that instanceof getSourceDetail_args)
-
 
133639
        return this.equals((getSourceDetail_args)that);
-
 
133640
      return false;
-
 
133641
    }
-
 
133642
 
-
 
133643
    public boolean equals(getSourceDetail_args that) {
-
 
133644
      if (that == null)
-
 
133645
        return false;
-
 
133646
 
-
 
133647
      boolean this_present_source = true;
-
 
133648
      boolean that_present_source = true;
-
 
133649
      if (this_present_source || that_present_source) {
-
 
133650
        if (!(this_present_source && that_present_source))
-
 
133651
          return false;
-
 
133652
        if (this.source != that.source)
-
 
133653
          return false;
-
 
133654
      }
-
 
133655
 
-
 
133656
      return true;
-
 
133657
    }
-
 
133658
 
-
 
133659
    @Override
-
 
133660
    public int hashCode() {
-
 
133661
      return 0;
-
 
133662
    }
-
 
133663
 
-
 
133664
    public int compareTo(getSourceDetail_args other) {
-
 
133665
      if (!getClass().equals(other.getClass())) {
-
 
133666
        return getClass().getName().compareTo(other.getClass().getName());
-
 
133667
      }
-
 
133668
 
-
 
133669
      int lastComparison = 0;
-
 
133670
      getSourceDetail_args typedOther = (getSourceDetail_args)other;
-
 
133671
 
-
 
133672
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
-
 
133673
      if (lastComparison != 0) {
-
 
133674
        return lastComparison;
-
 
133675
      }
-
 
133676
      if (isSetSource()) {
-
 
133677
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
-
 
133678
        if (lastComparison != 0) {
-
 
133679
          return lastComparison;
-
 
133680
        }
-
 
133681
      }
-
 
133682
      return 0;
-
 
133683
    }
-
 
133684
 
-
 
133685
    public _Fields fieldForId(int fieldId) {
-
 
133686
      return _Fields.findByThriftId(fieldId);
-
 
133687
    }
-
 
133688
 
-
 
133689
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
133690
      org.apache.thrift.protocol.TField field;
-
 
133691
      iprot.readStructBegin();
-
 
133692
      while (true)
-
 
133693
      {
-
 
133694
        field = iprot.readFieldBegin();
-
 
133695
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
133696
          break;
-
 
133697
        }
-
 
133698
        switch (field.id) {
-
 
133699
          case 1: // SOURCE
-
 
133700
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
133701
              this.source = iprot.readI64();
-
 
133702
              setSourceIsSet(true);
-
 
133703
            } else { 
-
 
133704
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
133705
            }
-
 
133706
            break;
-
 
133707
          default:
-
 
133708
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
133709
        }
-
 
133710
        iprot.readFieldEnd();
-
 
133711
      }
-
 
133712
      iprot.readStructEnd();
-
 
133713
      validate();
-
 
133714
    }
-
 
133715
 
-
 
133716
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
133717
      validate();
-
 
133718
 
-
 
133719
      oprot.writeStructBegin(STRUCT_DESC);
-
 
133720
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
-
 
133721
      oprot.writeI64(this.source);
-
 
133722
      oprot.writeFieldEnd();
-
 
133723
      oprot.writeFieldStop();
-
 
133724
      oprot.writeStructEnd();
-
 
133725
    }
-
 
133726
 
-
 
133727
    @Override
-
 
133728
    public String toString() {
-
 
133729
      StringBuilder sb = new StringBuilder("getSourceDetail_args(");
-
 
133730
      boolean first = true;
-
 
133731
 
-
 
133732
      sb.append("source:");
-
 
133733
      sb.append(this.source);
-
 
133734
      first = false;
-
 
133735
      sb.append(")");
-
 
133736
      return sb.toString();
-
 
133737
    }
-
 
133738
 
-
 
133739
    public void validate() throws org.apache.thrift.TException {
-
 
133740
      // check for required fields
-
 
133741
    }
-
 
133742
 
-
 
133743
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
133744
      try {
-
 
133745
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
133746
      } catch (org.apache.thrift.TException te) {
-
 
133747
        throw new java.io.IOException(te);
-
 
133748
      }
-
 
133749
    }
-
 
133750
 
-
 
133751
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
133752
      try {
-
 
133753
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
133754
        __isset_bit_vector = new BitSet(1);
-
 
133755
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
133756
      } catch (org.apache.thrift.TException te) {
-
 
133757
        throw new java.io.IOException(te);
-
 
133758
      }
-
 
133759
    }
-
 
133760
 
-
 
133761
  }
-
 
133762
 
-
 
133763
  public static class getSourceDetail_result implements org.apache.thrift.TBase<getSourceDetail_result, getSourceDetail_result._Fields>, java.io.Serializable, Cloneable   {
-
 
133764
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSourceDetail_result");
-
 
133765
 
-
 
133766
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
133767
 
-
 
133768
    private SourceDetail success; // required
-
 
133769
 
-
 
133770
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
133771
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
133772
      SUCCESS((short)0, "success");
-
 
133773
 
-
 
133774
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
133775
 
-
 
133776
      static {
-
 
133777
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
133778
          byName.put(field.getFieldName(), field);
-
 
133779
        }
-
 
133780
      }
-
 
133781
 
-
 
133782
      /**
-
 
133783
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
133784
       */
-
 
133785
      public static _Fields findByThriftId(int fieldId) {
-
 
133786
        switch(fieldId) {
-
 
133787
          case 0: // SUCCESS
-
 
133788
            return SUCCESS;
-
 
133789
          default:
-
 
133790
            return null;
-
 
133791
        }
-
 
133792
      }
-
 
133793
 
-
 
133794
      /**
-
 
133795
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
133796
       * if it is not found.
-
 
133797
       */
-
 
133798
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
133799
        _Fields fields = findByThriftId(fieldId);
-
 
133800
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
133801
        return fields;
-
 
133802
      }
-
 
133803
 
-
 
133804
      /**
-
 
133805
       * Find the _Fields constant that matches name, or null if its not found.
-
 
133806
       */
-
 
133807
      public static _Fields findByName(String name) {
-
 
133808
        return byName.get(name);
-
 
133809
      }
-
 
133810
 
-
 
133811
      private final short _thriftId;
-
 
133812
      private final String _fieldName;
-
 
133813
 
-
 
133814
      _Fields(short thriftId, String fieldName) {
-
 
133815
        _thriftId = thriftId;
-
 
133816
        _fieldName = fieldName;
-
 
133817
      }
-
 
133818
 
-
 
133819
      public short getThriftFieldId() {
-
 
133820
        return _thriftId;
-
 
133821
      }
-
 
133822
 
-
 
133823
      public String getFieldName() {
-
 
133824
        return _fieldName;
-
 
133825
      }
-
 
133826
    }
-
 
133827
 
-
 
133828
    // isset id assignments
-
 
133829
 
-
 
133830
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
133831
    static {
-
 
133832
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
133833
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
133834
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SourceDetail.class)));
-
 
133835
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
133836
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSourceDetail_result.class, metaDataMap);
-
 
133837
    }
-
 
133838
 
-
 
133839
    public getSourceDetail_result() {
-
 
133840
    }
-
 
133841
 
-
 
133842
    public getSourceDetail_result(
-
 
133843
      SourceDetail success)
-
 
133844
    {
-
 
133845
      this();
-
 
133846
      this.success = success;
-
 
133847
    }
-
 
133848
 
-
 
133849
    /**
-
 
133850
     * Performs a deep copy on <i>other</i>.
-
 
133851
     */
-
 
133852
    public getSourceDetail_result(getSourceDetail_result other) {
-
 
133853
      if (other.isSetSuccess()) {
-
 
133854
        this.success = new SourceDetail(other.success);
-
 
133855
      }
-
 
133856
    }
-
 
133857
 
-
 
133858
    public getSourceDetail_result deepCopy() {
-
 
133859
      return new getSourceDetail_result(this);
-
 
133860
    }
-
 
133861
 
-
 
133862
    @Override
-
 
133863
    public void clear() {
-
 
133864
      this.success = null;
-
 
133865
    }
-
 
133866
 
-
 
133867
    public SourceDetail getSuccess() {
-
 
133868
      return this.success;
-
 
133869
    }
-
 
133870
 
-
 
133871
    public void setSuccess(SourceDetail success) {
-
 
133872
      this.success = success;
-
 
133873
    }
-
 
133874
 
-
 
133875
    public void unsetSuccess() {
-
 
133876
      this.success = null;
-
 
133877
    }
-
 
133878
 
-
 
133879
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
133880
    public boolean isSetSuccess() {
-
 
133881
      return this.success != null;
-
 
133882
    }
-
 
133883
 
-
 
133884
    public void setSuccessIsSet(boolean value) {
-
 
133885
      if (!value) {
-
 
133886
        this.success = null;
-
 
133887
      }
-
 
133888
    }
-
 
133889
 
-
 
133890
    public void setFieldValue(_Fields field, Object value) {
-
 
133891
      switch (field) {
-
 
133892
      case SUCCESS:
-
 
133893
        if (value == null) {
-
 
133894
          unsetSuccess();
-
 
133895
        } else {
-
 
133896
          setSuccess((SourceDetail)value);
-
 
133897
        }
-
 
133898
        break;
-
 
133899
 
-
 
133900
      }
-
 
133901
    }
-
 
133902
 
-
 
133903
    public Object getFieldValue(_Fields field) {
-
 
133904
      switch (field) {
-
 
133905
      case SUCCESS:
-
 
133906
        return getSuccess();
-
 
133907
 
-
 
133908
      }
-
 
133909
      throw new IllegalStateException();
-
 
133910
    }
-
 
133911
 
-
 
133912
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
133913
    public boolean isSet(_Fields field) {
-
 
133914
      if (field == null) {
-
 
133915
        throw new IllegalArgumentException();
-
 
133916
      }
-
 
133917
 
-
 
133918
      switch (field) {
-
 
133919
      case SUCCESS:
-
 
133920
        return isSetSuccess();
-
 
133921
      }
-
 
133922
      throw new IllegalStateException();
-
 
133923
    }
-
 
133924
 
-
 
133925
    @Override
-
 
133926
    public boolean equals(Object that) {
-
 
133927
      if (that == null)
-
 
133928
        return false;
-
 
133929
      if (that instanceof getSourceDetail_result)
-
 
133930
        return this.equals((getSourceDetail_result)that);
-
 
133931
      return false;
-
 
133932
    }
-
 
133933
 
-
 
133934
    public boolean equals(getSourceDetail_result that) {
-
 
133935
      if (that == null)
-
 
133936
        return false;
-
 
133937
 
-
 
133938
      boolean this_present_success = true && this.isSetSuccess();
-
 
133939
      boolean that_present_success = true && that.isSetSuccess();
-
 
133940
      if (this_present_success || that_present_success) {
-
 
133941
        if (!(this_present_success && that_present_success))
-
 
133942
          return false;
-
 
133943
        if (!this.success.equals(that.success))
-
 
133944
          return false;
-
 
133945
      }
-
 
133946
 
-
 
133947
      return true;
-
 
133948
    }
-
 
133949
 
-
 
133950
    @Override
-
 
133951
    public int hashCode() {
-
 
133952
      return 0;
-
 
133953
    }
-
 
133954
 
-
 
133955
    public int compareTo(getSourceDetail_result other) {
-
 
133956
      if (!getClass().equals(other.getClass())) {
-
 
133957
        return getClass().getName().compareTo(other.getClass().getName());
-
 
133958
      }
-
 
133959
 
-
 
133960
      int lastComparison = 0;
-
 
133961
      getSourceDetail_result typedOther = (getSourceDetail_result)other;
-
 
133962
 
-
 
133963
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
133964
      if (lastComparison != 0) {
-
 
133965
        return lastComparison;
-
 
133966
      }
-
 
133967
      if (isSetSuccess()) {
-
 
133968
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
133969
        if (lastComparison != 0) {
-
 
133970
          return lastComparison;
-
 
133971
        }
-
 
133972
      }
-
 
133973
      return 0;
-
 
133974
    }
-
 
133975
 
-
 
133976
    public _Fields fieldForId(int fieldId) {
-
 
133977
      return _Fields.findByThriftId(fieldId);
-
 
133978
    }
-
 
133979
 
-
 
133980
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
133981
      org.apache.thrift.protocol.TField field;
-
 
133982
      iprot.readStructBegin();
-
 
133983
      while (true)
-
 
133984
      {
-
 
133985
        field = iprot.readFieldBegin();
-
 
133986
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
133987
          break;
-
 
133988
        }
-
 
133989
        switch (field.id) {
-
 
133990
          case 0: // SUCCESS
-
 
133991
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
133992
              this.success = new SourceDetail();
-
 
133993
              this.success.read(iprot);
-
 
133994
            } else { 
-
 
133995
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
133996
            }
-
 
133997
            break;
-
 
133998
          default:
-
 
133999
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
134000
        }
-
 
134001
        iprot.readFieldEnd();
-
 
134002
      }
-
 
134003
      iprot.readStructEnd();
-
 
134004
      validate();
-
 
134005
    }
-
 
134006
 
-
 
134007
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
134008
      oprot.writeStructBegin(STRUCT_DESC);
-
 
134009
 
-
 
134010
      if (this.isSetSuccess()) {
-
 
134011
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
134012
        this.success.write(oprot);
-
 
134013
        oprot.writeFieldEnd();
-
 
134014
      }
-
 
134015
      oprot.writeFieldStop();
-
 
134016
      oprot.writeStructEnd();
-
 
134017
    }
-
 
134018
 
-
 
134019
    @Override
-
 
134020
    public String toString() {
-
 
134021
      StringBuilder sb = new StringBuilder("getSourceDetail_result(");
-
 
134022
      boolean first = true;
-
 
134023
 
-
 
134024
      sb.append("success:");
-
 
134025
      if (this.success == null) {
-
 
134026
        sb.append("null");
-
 
134027
      } else {
-
 
134028
        sb.append(this.success);
-
 
134029
      }
-
 
134030
      first = false;
-
 
134031
      sb.append(")");
-
 
134032
      return sb.toString();
-
 
134033
    }
-
 
134034
 
133369
    public void validate() throws org.apache.thrift.TException {
134035
    public void validate() throws org.apache.thrift.TException {
133370
      // check for required fields
134036
      // check for required fields
133371
    }
134037
    }
133372
 
134038
 
133373
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
134039
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {