Subversion Repositories SmartDukaan

Rev

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

Rev 12243 Rev 12256
Line 562... Line 562...
562
 
562
 
563
    public void addCompetitorScraping(Map<Long,CompetitorPricing> competitorPricingMap) throws org.apache.thrift.TException;
563
    public void addCompetitorScraping(Map<Long,CompetitorPricing> competitorPricingMap) throws org.apache.thrift.TException;
564
 
564
 
565
    public List<CompetitorPricing> getPreviousCompetitorScraping(long delta) throws org.apache.thrift.TException;
565
    public List<CompetitorPricing> getPreviousCompetitorScraping(long delta) throws org.apache.thrift.TException;
566
 
566
 
-
 
567
    public List<CompetitorPricing> getUploadResultById(long uploadId) throws org.apache.thrift.TException;
-
 
568
 
567
  }
569
  }
568
 
570
 
569
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
571
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
570
 
572
 
571
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
573
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 908... Line 910...
908
 
910
 
909
    public void addCompetitorScraping(Map<Long,CompetitorPricing> competitorPricingMap, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addCompetitorScraping_call> resultHandler) throws org.apache.thrift.TException;
911
    public void addCompetitorScraping(Map<Long,CompetitorPricing> competitorPricingMap, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addCompetitorScraping_call> resultHandler) throws org.apache.thrift.TException;
910
 
912
 
911
    public void getPreviousCompetitorScraping(long delta, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPreviousCompetitorScraping_call> resultHandler) throws org.apache.thrift.TException;
913
    public void getPreviousCompetitorScraping(long delta, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPreviousCompetitorScraping_call> resultHandler) throws org.apache.thrift.TException;
912
 
914
 
-
 
915
    public void getUploadResultById(long uploadId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUploadResultById_call> resultHandler) throws org.apache.thrift.TException;
-
 
916
 
913
  }
917
  }
914
 
918
 
915
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
919
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
916
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
920
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
917
      public Factory() {}
921
      public Factory() {}
Line 4972... Line 4976...
4972
        return result.success;
4976
        return result.success;
4973
      }
4977
      }
4974
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPreviousCompetitorScraping failed: unknown result");
4978
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPreviousCompetitorScraping failed: unknown result");
4975
    }
4979
    }
4976
 
4980
 
-
 
4981
    public List<CompetitorPricing> getUploadResultById(long uploadId) throws org.apache.thrift.TException
-
 
4982
    {
-
 
4983
      send_getUploadResultById(uploadId);
-
 
4984
      return recv_getUploadResultById();
-
 
4985
    }
-
 
4986
 
-
 
4987
    public void send_getUploadResultById(long uploadId) throws org.apache.thrift.TException
-
 
4988
    {
-
 
4989
      getUploadResultById_args args = new getUploadResultById_args();
-
 
4990
      args.setUploadId(uploadId);
-
 
4991
      sendBase("getUploadResultById", args);
-
 
4992
    }
-
 
4993
 
-
 
4994
    public List<CompetitorPricing> recv_getUploadResultById() throws org.apache.thrift.TException
-
 
4995
    {
-
 
4996
      getUploadResultById_result result = new getUploadResultById_result();
-
 
4997
      receiveBase(result, "getUploadResultById");
-
 
4998
      if (result.isSetSuccess()) {
-
 
4999
        return result.success;
-
 
5000
      }
-
 
5001
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUploadResultById failed: unknown result");
-
 
5002
    }
-
 
5003
 
4977
  }
5004
  }
4978
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5005
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4979
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5006
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4980
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5007
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4981
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5008
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 10609... Line 10636...
10609
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10636
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10610
        return (new Client(prot)).recv_getPreviousCompetitorScraping();
10637
        return (new Client(prot)).recv_getPreviousCompetitorScraping();
10611
      }
10638
      }
10612
    }
10639
    }
10613
 
10640
 
-
 
10641
    public void getUploadResultById(long uploadId, org.apache.thrift.async.AsyncMethodCallback<getUploadResultById_call> resultHandler) throws org.apache.thrift.TException {
-
 
10642
      checkReady();
-
 
10643
      getUploadResultById_call method_call = new getUploadResultById_call(uploadId, resultHandler, this, ___protocolFactory, ___transport);
-
 
10644
      this.___currentMethod = method_call;
-
 
10645
      ___manager.call(method_call);
-
 
10646
    }
-
 
10647
 
-
 
10648
    public static class getUploadResultById_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10649
      private long uploadId;
-
 
10650
      public getUploadResultById_call(long uploadId, org.apache.thrift.async.AsyncMethodCallback<getUploadResultById_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 {
-
 
10651
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10652
        this.uploadId = uploadId;
-
 
10653
      }
-
 
10654
 
-
 
10655
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10656
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUploadResultById", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10657
        getUploadResultById_args args = new getUploadResultById_args();
-
 
10658
        args.setUploadId(uploadId);
-
 
10659
        args.write(prot);
-
 
10660
        prot.writeMessageEnd();
-
 
10661
      }
-
 
10662
 
-
 
10663
      public List<CompetitorPricing> getResult() throws org.apache.thrift.TException {
-
 
10664
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10665
          throw new IllegalStateException("Method call not finished!");
-
 
10666
        }
-
 
10667
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10668
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10669
        return (new Client(prot)).recv_getUploadResultById();
-
 
10670
      }
-
 
10671
    }
-
 
10672
 
10614
  }
10673
  }
10615
 
10674
 
10616
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10675
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10617
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10676
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10618
    public Processor(I iface) {
10677
    public Processor(I iface) {
Line 10793... Line 10852...
10793
      processMap.put("getAllPrivateDealsComparison", new getAllPrivateDealsComparison());
10852
      processMap.put("getAllPrivateDealsComparison", new getAllPrivateDealsComparison());
10794
      processMap.put("getAllSnapdealMarketplaceItem", new getAllSnapdealMarketplaceItem());
10853
      processMap.put("getAllSnapdealMarketplaceItem", new getAllSnapdealMarketplaceItem());
10795
      processMap.put("getAllFlipkartMarketplaceItem", new getAllFlipkartMarketplaceItem());
10854
      processMap.put("getAllFlipkartMarketplaceItem", new getAllFlipkartMarketplaceItem());
10796
      processMap.put("addCompetitorScraping", new addCompetitorScraping());
10855
      processMap.put("addCompetitorScraping", new addCompetitorScraping());
10797
      processMap.put("getPreviousCompetitorScraping", new getPreviousCompetitorScraping());
10856
      processMap.put("getPreviousCompetitorScraping", new getPreviousCompetitorScraping());
-
 
10857
      processMap.put("getUploadResultById", new getUploadResultById());
10798
      return processMap;
10858
      return processMap;
10799
    }
10859
    }
10800
 
10860
 
10801
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
10861
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
10802
      public addItem() {
10862
      public addItem() {
Line 13760... Line 13820...
13760
        result.success = iface.getPreviousCompetitorScraping(args.delta);
13820
        result.success = iface.getPreviousCompetitorScraping(args.delta);
13761
        return result;
13821
        return result;
13762
      }
13822
      }
13763
    }
13823
    }
13764
 
13824
 
-
 
13825
    private static class getUploadResultById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUploadResultById_args> {
-
 
13826
      public getUploadResultById() {
-
 
13827
        super("getUploadResultById");
-
 
13828
      }
-
 
13829
 
-
 
13830
      protected getUploadResultById_args getEmptyArgsInstance() {
-
 
13831
        return new getUploadResultById_args();
-
 
13832
      }
-
 
13833
 
-
 
13834
      protected getUploadResultById_result getResult(I iface, getUploadResultById_args args) throws org.apache.thrift.TException {
-
 
13835
        getUploadResultById_result result = new getUploadResultById_result();
-
 
13836
        result.success = iface.getUploadResultById(args.uploadId);
-
 
13837
        return result;
-
 
13838
      }
-
 
13839
    }
-
 
13840
 
13765
  }
13841
  }
13766
 
13842
 
13767
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
13843
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
13768
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
13844
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
13769
 
13845
 
Line 123255... Line 123331...
123255
      boolean first = true;
123331
      boolean first = true;
123256
 
123332
 
123257
      sb.append("success:");
123333
      sb.append("success:");
123258
      if (this.success == null) {
123334
      if (this.success == null) {
123259
        sb.append("null");
123335
        sb.append("null");
-
 
123336
      } else {
-
 
123337
        sb.append(this.success);
-
 
123338
      }
-
 
123339
      first = false;
-
 
123340
      sb.append(")");
-
 
123341
      return sb.toString();
-
 
123342
    }
-
 
123343
 
-
 
123344
    public void validate() throws org.apache.thrift.TException {
-
 
123345
      // check for required fields
-
 
123346
    }
-
 
123347
 
-
 
123348
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
123349
      try {
-
 
123350
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
123351
      } catch (org.apache.thrift.TException te) {
-
 
123352
        throw new java.io.IOException(te);
-
 
123353
      }
-
 
123354
    }
-
 
123355
 
-
 
123356
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
123357
      try {
-
 
123358
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
123359
      } catch (org.apache.thrift.TException te) {
-
 
123360
        throw new java.io.IOException(te);
-
 
123361
      }
-
 
123362
    }
-
 
123363
 
-
 
123364
  }
-
 
123365
 
-
 
123366
  public static class getUploadResultById_args implements org.apache.thrift.TBase<getUploadResultById_args, getUploadResultById_args._Fields>, java.io.Serializable, Cloneable   {
-
 
123367
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUploadResultById_args");
-
 
123368
 
-
 
123369
    private static final org.apache.thrift.protocol.TField UPLOAD_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("uploadId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
123370
 
-
 
123371
    private long uploadId; // required
-
 
123372
 
-
 
123373
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
123374
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
123375
      UPLOAD_ID((short)1, "uploadId");
-
 
123376
 
-
 
123377
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
123378
 
-
 
123379
      static {
-
 
123380
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
123381
          byName.put(field.getFieldName(), field);
-
 
123382
        }
-
 
123383
      }
-
 
123384
 
-
 
123385
      /**
-
 
123386
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
123387
       */
-
 
123388
      public static _Fields findByThriftId(int fieldId) {
-
 
123389
        switch(fieldId) {
-
 
123390
          case 1: // UPLOAD_ID
-
 
123391
            return UPLOAD_ID;
-
 
123392
          default:
-
 
123393
            return null;
-
 
123394
        }
-
 
123395
      }
-
 
123396
 
-
 
123397
      /**
-
 
123398
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
123399
       * if it is not found.
-
 
123400
       */
-
 
123401
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
123402
        _Fields fields = findByThriftId(fieldId);
-
 
123403
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
123404
        return fields;
-
 
123405
      }
-
 
123406
 
-
 
123407
      /**
-
 
123408
       * Find the _Fields constant that matches name, or null if its not found.
-
 
123409
       */
-
 
123410
      public static _Fields findByName(String name) {
-
 
123411
        return byName.get(name);
-
 
123412
      }
-
 
123413
 
-
 
123414
      private final short _thriftId;
-
 
123415
      private final String _fieldName;
-
 
123416
 
-
 
123417
      _Fields(short thriftId, String fieldName) {
-
 
123418
        _thriftId = thriftId;
-
 
123419
        _fieldName = fieldName;
-
 
123420
      }
-
 
123421
 
-
 
123422
      public short getThriftFieldId() {
-
 
123423
        return _thriftId;
-
 
123424
      }
-
 
123425
 
-
 
123426
      public String getFieldName() {
-
 
123427
        return _fieldName;
-
 
123428
      }
-
 
123429
    }
-
 
123430
 
-
 
123431
    // isset id assignments
-
 
123432
    private static final int __UPLOADID_ISSET_ID = 0;
-
 
123433
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
123434
 
-
 
123435
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
123436
    static {
-
 
123437
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
123438
      tmpMap.put(_Fields.UPLOAD_ID, new org.apache.thrift.meta_data.FieldMetaData("uploadId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
123439
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
123440
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
123441
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUploadResultById_args.class, metaDataMap);
-
 
123442
    }
-
 
123443
 
-
 
123444
    public getUploadResultById_args() {
-
 
123445
    }
-
 
123446
 
-
 
123447
    public getUploadResultById_args(
-
 
123448
      long uploadId)
-
 
123449
    {
-
 
123450
      this();
-
 
123451
      this.uploadId = uploadId;
-
 
123452
      setUploadIdIsSet(true);
-
 
123453
    }
-
 
123454
 
-
 
123455
    /**
-
 
123456
     * Performs a deep copy on <i>other</i>.
-
 
123457
     */
-
 
123458
    public getUploadResultById_args(getUploadResultById_args other) {
-
 
123459
      __isset_bit_vector.clear();
-
 
123460
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
123461
      this.uploadId = other.uploadId;
-
 
123462
    }
-
 
123463
 
-
 
123464
    public getUploadResultById_args deepCopy() {
-
 
123465
      return new getUploadResultById_args(this);
-
 
123466
    }
-
 
123467
 
-
 
123468
    @Override
-
 
123469
    public void clear() {
-
 
123470
      setUploadIdIsSet(false);
-
 
123471
      this.uploadId = 0;
-
 
123472
    }
-
 
123473
 
-
 
123474
    public long getUploadId() {
-
 
123475
      return this.uploadId;
-
 
123476
    }
-
 
123477
 
-
 
123478
    public void setUploadId(long uploadId) {
-
 
123479
      this.uploadId = uploadId;
-
 
123480
      setUploadIdIsSet(true);
-
 
123481
    }
-
 
123482
 
-
 
123483
    public void unsetUploadId() {
-
 
123484
      __isset_bit_vector.clear(__UPLOADID_ISSET_ID);
-
 
123485
    }
-
 
123486
 
-
 
123487
    /** Returns true if field uploadId is set (has been assigned a value) and false otherwise */
-
 
123488
    public boolean isSetUploadId() {
-
 
123489
      return __isset_bit_vector.get(__UPLOADID_ISSET_ID);
-
 
123490
    }
-
 
123491
 
-
 
123492
    public void setUploadIdIsSet(boolean value) {
-
 
123493
      __isset_bit_vector.set(__UPLOADID_ISSET_ID, value);
-
 
123494
    }
-
 
123495
 
-
 
123496
    public void setFieldValue(_Fields field, Object value) {
-
 
123497
      switch (field) {
-
 
123498
      case UPLOAD_ID:
-
 
123499
        if (value == null) {
-
 
123500
          unsetUploadId();
-
 
123501
        } else {
-
 
123502
          setUploadId((Long)value);
-
 
123503
        }
-
 
123504
        break;
-
 
123505
 
-
 
123506
      }
-
 
123507
    }
-
 
123508
 
-
 
123509
    public Object getFieldValue(_Fields field) {
-
 
123510
      switch (field) {
-
 
123511
      case UPLOAD_ID:
-
 
123512
        return Long.valueOf(getUploadId());
-
 
123513
 
-
 
123514
      }
-
 
123515
      throw new IllegalStateException();
-
 
123516
    }
-
 
123517
 
-
 
123518
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
123519
    public boolean isSet(_Fields field) {
-
 
123520
      if (field == null) {
-
 
123521
        throw new IllegalArgumentException();
-
 
123522
      }
-
 
123523
 
-
 
123524
      switch (field) {
-
 
123525
      case UPLOAD_ID:
-
 
123526
        return isSetUploadId();
-
 
123527
      }
-
 
123528
      throw new IllegalStateException();
-
 
123529
    }
-
 
123530
 
-
 
123531
    @Override
-
 
123532
    public boolean equals(Object that) {
-
 
123533
      if (that == null)
-
 
123534
        return false;
-
 
123535
      if (that instanceof getUploadResultById_args)
-
 
123536
        return this.equals((getUploadResultById_args)that);
-
 
123537
      return false;
-
 
123538
    }
-
 
123539
 
-
 
123540
    public boolean equals(getUploadResultById_args that) {
-
 
123541
      if (that == null)
-
 
123542
        return false;
-
 
123543
 
-
 
123544
      boolean this_present_uploadId = true;
-
 
123545
      boolean that_present_uploadId = true;
-
 
123546
      if (this_present_uploadId || that_present_uploadId) {
-
 
123547
        if (!(this_present_uploadId && that_present_uploadId))
-
 
123548
          return false;
-
 
123549
        if (this.uploadId != that.uploadId)
-
 
123550
          return false;
-
 
123551
      }
-
 
123552
 
-
 
123553
      return true;
-
 
123554
    }
-
 
123555
 
-
 
123556
    @Override
-
 
123557
    public int hashCode() {
-
 
123558
      return 0;
-
 
123559
    }
-
 
123560
 
-
 
123561
    public int compareTo(getUploadResultById_args other) {
-
 
123562
      if (!getClass().equals(other.getClass())) {
-
 
123563
        return getClass().getName().compareTo(other.getClass().getName());
-
 
123564
      }
-
 
123565
 
-
 
123566
      int lastComparison = 0;
-
 
123567
      getUploadResultById_args typedOther = (getUploadResultById_args)other;
-
 
123568
 
-
 
123569
      lastComparison = Boolean.valueOf(isSetUploadId()).compareTo(typedOther.isSetUploadId());
-
 
123570
      if (lastComparison != 0) {
-
 
123571
        return lastComparison;
-
 
123572
      }
-
 
123573
      if (isSetUploadId()) {
-
 
123574
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uploadId, typedOther.uploadId);
-
 
123575
        if (lastComparison != 0) {
-
 
123576
          return lastComparison;
-
 
123577
        }
-
 
123578
      }
-
 
123579
      return 0;
-
 
123580
    }
-
 
123581
 
-
 
123582
    public _Fields fieldForId(int fieldId) {
-
 
123583
      return _Fields.findByThriftId(fieldId);
-
 
123584
    }
-
 
123585
 
-
 
123586
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
123587
      org.apache.thrift.protocol.TField field;
-
 
123588
      iprot.readStructBegin();
-
 
123589
      while (true)
-
 
123590
      {
-
 
123591
        field = iprot.readFieldBegin();
-
 
123592
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
123593
          break;
-
 
123594
        }
-
 
123595
        switch (field.id) {
-
 
123596
          case 1: // UPLOAD_ID
-
 
123597
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
123598
              this.uploadId = iprot.readI64();
-
 
123599
              setUploadIdIsSet(true);
-
 
123600
            } else { 
-
 
123601
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
123602
            }
-
 
123603
            break;
-
 
123604
          default:
-
 
123605
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
123606
        }
-
 
123607
        iprot.readFieldEnd();
-
 
123608
      }
-
 
123609
      iprot.readStructEnd();
-
 
123610
      validate();
-
 
123611
    }
-
 
123612
 
-
 
123613
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
123614
      validate();
-
 
123615
 
-
 
123616
      oprot.writeStructBegin(STRUCT_DESC);
-
 
123617
      oprot.writeFieldBegin(UPLOAD_ID_FIELD_DESC);
-
 
123618
      oprot.writeI64(this.uploadId);
-
 
123619
      oprot.writeFieldEnd();
-
 
123620
      oprot.writeFieldStop();
-
 
123621
      oprot.writeStructEnd();
-
 
123622
    }
-
 
123623
 
-
 
123624
    @Override
-
 
123625
    public String toString() {
-
 
123626
      StringBuilder sb = new StringBuilder("getUploadResultById_args(");
-
 
123627
      boolean first = true;
-
 
123628
 
-
 
123629
      sb.append("uploadId:");
-
 
123630
      sb.append(this.uploadId);
-
 
123631
      first = false;
-
 
123632
      sb.append(")");
-
 
123633
      return sb.toString();
-
 
123634
    }
-
 
123635
 
-
 
123636
    public void validate() throws org.apache.thrift.TException {
-
 
123637
      // check for required fields
-
 
123638
    }
-
 
123639
 
-
 
123640
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
123641
      try {
-
 
123642
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
123643
      } catch (org.apache.thrift.TException te) {
-
 
123644
        throw new java.io.IOException(te);
-
 
123645
      }
-
 
123646
    }
-
 
123647
 
-
 
123648
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
123649
      try {
-
 
123650
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
123651
        __isset_bit_vector = new BitSet(1);
-
 
123652
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
123653
      } catch (org.apache.thrift.TException te) {
-
 
123654
        throw new java.io.IOException(te);
-
 
123655
      }
-
 
123656
    }
-
 
123657
 
-
 
123658
  }
-
 
123659
 
-
 
123660
  public static class getUploadResultById_result implements org.apache.thrift.TBase<getUploadResultById_result, getUploadResultById_result._Fields>, java.io.Serializable, Cloneable   {
-
 
123661
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUploadResultById_result");
-
 
123662
 
-
 
123663
    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);
-
 
123664
 
-
 
123665
    private List<CompetitorPricing> success; // required
-
 
123666
 
-
 
123667
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
123668
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
123669
      SUCCESS((short)0, "success");
-
 
123670
 
-
 
123671
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
123672
 
-
 
123673
      static {
-
 
123674
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
123675
          byName.put(field.getFieldName(), field);
-
 
123676
        }
-
 
123677
      }
-
 
123678
 
-
 
123679
      /**
-
 
123680
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
123681
       */
-
 
123682
      public static _Fields findByThriftId(int fieldId) {
-
 
123683
        switch(fieldId) {
-
 
123684
          case 0: // SUCCESS
-
 
123685
            return SUCCESS;
-
 
123686
          default:
-
 
123687
            return null;
-
 
123688
        }
-
 
123689
      }
-
 
123690
 
-
 
123691
      /**
-
 
123692
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
123693
       * if it is not found.
-
 
123694
       */
-
 
123695
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
123696
        _Fields fields = findByThriftId(fieldId);
-
 
123697
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
123698
        return fields;
-
 
123699
      }
-
 
123700
 
-
 
123701
      /**
-
 
123702
       * Find the _Fields constant that matches name, or null if its not found.
-
 
123703
       */
-
 
123704
      public static _Fields findByName(String name) {
-
 
123705
        return byName.get(name);
-
 
123706
      }
-
 
123707
 
-
 
123708
      private final short _thriftId;
-
 
123709
      private final String _fieldName;
-
 
123710
 
-
 
123711
      _Fields(short thriftId, String fieldName) {
-
 
123712
        _thriftId = thriftId;
-
 
123713
        _fieldName = fieldName;
-
 
123714
      }
-
 
123715
 
-
 
123716
      public short getThriftFieldId() {
-
 
123717
        return _thriftId;
-
 
123718
      }
-
 
123719
 
-
 
123720
      public String getFieldName() {
-
 
123721
        return _fieldName;
-
 
123722
      }
-
 
123723
    }
-
 
123724
 
-
 
123725
    // isset id assignments
-
 
123726
 
-
 
123727
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
123728
    static {
-
 
123729
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
123730
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
123731
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
123732
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CompetitorPricing.class))));
-
 
123733
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
123734
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUploadResultById_result.class, metaDataMap);
-
 
123735
    }
-
 
123736
 
-
 
123737
    public getUploadResultById_result() {
-
 
123738
    }
-
 
123739
 
-
 
123740
    public getUploadResultById_result(
-
 
123741
      List<CompetitorPricing> success)
-
 
123742
    {
-
 
123743
      this();
-
 
123744
      this.success = success;
-
 
123745
    }
-
 
123746
 
-
 
123747
    /**
-
 
123748
     * Performs a deep copy on <i>other</i>.
-
 
123749
     */
-
 
123750
    public getUploadResultById_result(getUploadResultById_result other) {
-
 
123751
      if (other.isSetSuccess()) {
-
 
123752
        List<CompetitorPricing> __this__success = new ArrayList<CompetitorPricing>();
-
 
123753
        for (CompetitorPricing other_element : other.success) {
-
 
123754
          __this__success.add(new CompetitorPricing(other_element));
-
 
123755
        }
-
 
123756
        this.success = __this__success;
-
 
123757
      }
-
 
123758
    }
-
 
123759
 
-
 
123760
    public getUploadResultById_result deepCopy() {
-
 
123761
      return new getUploadResultById_result(this);
-
 
123762
    }
-
 
123763
 
-
 
123764
    @Override
-
 
123765
    public void clear() {
-
 
123766
      this.success = null;
-
 
123767
    }
-
 
123768
 
-
 
123769
    public int getSuccessSize() {
-
 
123770
      return (this.success == null) ? 0 : this.success.size();
-
 
123771
    }
-
 
123772
 
-
 
123773
    public java.util.Iterator<CompetitorPricing> getSuccessIterator() {
-
 
123774
      return (this.success == null) ? null : this.success.iterator();
-
 
123775
    }
-
 
123776
 
-
 
123777
    public void addToSuccess(CompetitorPricing elem) {
-
 
123778
      if (this.success == null) {
-
 
123779
        this.success = new ArrayList<CompetitorPricing>();
-
 
123780
      }
-
 
123781
      this.success.add(elem);
-
 
123782
    }
-
 
123783
 
-
 
123784
    public List<CompetitorPricing> getSuccess() {
-
 
123785
      return this.success;
-
 
123786
    }
-
 
123787
 
-
 
123788
    public void setSuccess(List<CompetitorPricing> success) {
-
 
123789
      this.success = success;
-
 
123790
    }
-
 
123791
 
-
 
123792
    public void unsetSuccess() {
-
 
123793
      this.success = null;
-
 
123794
    }
-
 
123795
 
-
 
123796
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
123797
    public boolean isSetSuccess() {
-
 
123798
      return this.success != null;
-
 
123799
    }
-
 
123800
 
-
 
123801
    public void setSuccessIsSet(boolean value) {
-
 
123802
      if (!value) {
-
 
123803
        this.success = null;
-
 
123804
      }
-
 
123805
    }
-
 
123806
 
-
 
123807
    public void setFieldValue(_Fields field, Object value) {
-
 
123808
      switch (field) {
-
 
123809
      case SUCCESS:
-
 
123810
        if (value == null) {
-
 
123811
          unsetSuccess();
-
 
123812
        } else {
-
 
123813
          setSuccess((List<CompetitorPricing>)value);
-
 
123814
        }
-
 
123815
        break;
-
 
123816
 
-
 
123817
      }
-
 
123818
    }
-
 
123819
 
-
 
123820
    public Object getFieldValue(_Fields field) {
-
 
123821
      switch (field) {
-
 
123822
      case SUCCESS:
-
 
123823
        return getSuccess();
-
 
123824
 
-
 
123825
      }
-
 
123826
      throw new IllegalStateException();
-
 
123827
    }
-
 
123828
 
-
 
123829
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
123830
    public boolean isSet(_Fields field) {
-
 
123831
      if (field == null) {
-
 
123832
        throw new IllegalArgumentException();
-
 
123833
      }
-
 
123834
 
-
 
123835
      switch (field) {
-
 
123836
      case SUCCESS:
-
 
123837
        return isSetSuccess();
-
 
123838
      }
-
 
123839
      throw new IllegalStateException();
-
 
123840
    }
-
 
123841
 
-
 
123842
    @Override
-
 
123843
    public boolean equals(Object that) {
-
 
123844
      if (that == null)
-
 
123845
        return false;
-
 
123846
      if (that instanceof getUploadResultById_result)
-
 
123847
        return this.equals((getUploadResultById_result)that);
-
 
123848
      return false;
-
 
123849
    }
-
 
123850
 
-
 
123851
    public boolean equals(getUploadResultById_result that) {
-
 
123852
      if (that == null)
-
 
123853
        return false;
-
 
123854
 
-
 
123855
      boolean this_present_success = true && this.isSetSuccess();
-
 
123856
      boolean that_present_success = true && that.isSetSuccess();
-
 
123857
      if (this_present_success || that_present_success) {
-
 
123858
        if (!(this_present_success && that_present_success))
-
 
123859
          return false;
-
 
123860
        if (!this.success.equals(that.success))
-
 
123861
          return false;
-
 
123862
      }
-
 
123863
 
-
 
123864
      return true;
-
 
123865
    }
-
 
123866
 
-
 
123867
    @Override
-
 
123868
    public int hashCode() {
-
 
123869
      return 0;
-
 
123870
    }
-
 
123871
 
-
 
123872
    public int compareTo(getUploadResultById_result other) {
-
 
123873
      if (!getClass().equals(other.getClass())) {
-
 
123874
        return getClass().getName().compareTo(other.getClass().getName());
-
 
123875
      }
-
 
123876
 
-
 
123877
      int lastComparison = 0;
-
 
123878
      getUploadResultById_result typedOther = (getUploadResultById_result)other;
-
 
123879
 
-
 
123880
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
123881
      if (lastComparison != 0) {
-
 
123882
        return lastComparison;
-
 
123883
      }
-
 
123884
      if (isSetSuccess()) {
-
 
123885
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
123886
        if (lastComparison != 0) {
-
 
123887
          return lastComparison;
-
 
123888
        }
-
 
123889
      }
-
 
123890
      return 0;
-
 
123891
    }
-
 
123892
 
-
 
123893
    public _Fields fieldForId(int fieldId) {
-
 
123894
      return _Fields.findByThriftId(fieldId);
-
 
123895
    }
-
 
123896
 
-
 
123897
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
123898
      org.apache.thrift.protocol.TField field;
-
 
123899
      iprot.readStructBegin();
-
 
123900
      while (true)
-
 
123901
      {
-
 
123902
        field = iprot.readFieldBegin();
-
 
123903
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
123904
          break;
-
 
123905
        }
-
 
123906
        switch (field.id) {
-
 
123907
          case 0: // SUCCESS
-
 
123908
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
123909
              {
-
 
123910
                org.apache.thrift.protocol.TList _list407 = iprot.readListBegin();
-
 
123911
                this.success = new ArrayList<CompetitorPricing>(_list407.size);
-
 
123912
                for (int _i408 = 0; _i408 < _list407.size; ++_i408)
-
 
123913
                {
-
 
123914
                  CompetitorPricing _elem409; // required
-
 
123915
                  _elem409 = new CompetitorPricing();
-
 
123916
                  _elem409.read(iprot);
-
 
123917
                  this.success.add(_elem409);
-
 
123918
                }
-
 
123919
                iprot.readListEnd();
-
 
123920
              }
-
 
123921
            } else { 
-
 
123922
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
123923
            }
-
 
123924
            break;
-
 
123925
          default:
-
 
123926
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
123927
        }
-
 
123928
        iprot.readFieldEnd();
-
 
123929
      }
-
 
123930
      iprot.readStructEnd();
-
 
123931
      validate();
-
 
123932
    }
-
 
123933
 
-
 
123934
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
123935
      oprot.writeStructBegin(STRUCT_DESC);
-
 
123936
 
-
 
123937
      if (this.isSetSuccess()) {
-
 
123938
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
123939
        {
-
 
123940
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
123941
          for (CompetitorPricing _iter410 : this.success)
-
 
123942
          {
-
 
123943
            _iter410.write(oprot);
-
 
123944
          }
-
 
123945
          oprot.writeListEnd();
-
 
123946
        }
-
 
123947
        oprot.writeFieldEnd();
-
 
123948
      }
-
 
123949
      oprot.writeFieldStop();
-
 
123950
      oprot.writeStructEnd();
-
 
123951
    }
-
 
123952
 
-
 
123953
    @Override
-
 
123954
    public String toString() {
-
 
123955
      StringBuilder sb = new StringBuilder("getUploadResultById_result(");
-
 
123956
      boolean first = true;
-
 
123957
 
-
 
123958
      sb.append("success:");
-
 
123959
      if (this.success == null) {
-
 
123960
        sb.append("null");
123260
      } else {
123961
      } else {
123261
        sb.append(this.success);
123962
        sb.append(this.success);
123262
      }
123963
      }
123263
      first = false;
123964
      first = false;
123264
      sb.append(")");
123965
      sb.append(")");