Subversion Repositories SmartDukaan

Rev

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

Rev 10097 Rev 10140
Line 526... Line 526...
526
 
526
 
527
    public long getFlipkartSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException;
527
    public long getFlipkartSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException;
528
 
528
 
529
    public List<FlipkartItemDetails> getAllFkItems() throws org.apache.thrift.TException;
529
    public List<FlipkartItemDetails> getAllFkItems() throws org.apache.thrift.TException;
530
 
530
 
-
 
531
    public FlipkartItem getFlipkartItemBySkyAtFlipkart(String sku) throws org.apache.thrift.TException;
-
 
532
 
531
  }
533
  }
532
 
534
 
533
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
535
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
534
 
536
 
535
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
537
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 836... Line 838...
836
 
838
 
837
    public void getFlipkartSearchResultCount(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartSearchResultCount_call> resultHandler) throws org.apache.thrift.TException;
839
    public void getFlipkartSearchResultCount(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartSearchResultCount_call> resultHandler) throws org.apache.thrift.TException;
838
 
840
 
839
    public void getAllFkItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFkItems_call> resultHandler) throws org.apache.thrift.TException;
841
    public void getAllFkItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFkItems_call> resultHandler) throws org.apache.thrift.TException;
840
 
842
 
-
 
843
    public void getFlipkartItemBySkyAtFlipkart(String sku, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartItemBySkyAtFlipkart_call> resultHandler) throws org.apache.thrift.TException;
-
 
844
 
841
  }
845
  }
842
 
846
 
843
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
847
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
844
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
848
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
845
      public Factory() {}
849
      public Factory() {}
Line 4481... Line 4485...
4481
        return result.success;
4485
        return result.success;
4482
      }
4486
      }
4483
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFkItems failed: unknown result");
4487
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFkItems failed: unknown result");
4484
    }
4488
    }
4485
 
4489
 
-
 
4490
    public FlipkartItem getFlipkartItemBySkyAtFlipkart(String sku) throws org.apache.thrift.TException
-
 
4491
    {
-
 
4492
      send_getFlipkartItemBySkyAtFlipkart(sku);
-
 
4493
      return recv_getFlipkartItemBySkyAtFlipkart();
-
 
4494
    }
-
 
4495
 
-
 
4496
    public void send_getFlipkartItemBySkyAtFlipkart(String sku) throws org.apache.thrift.TException
-
 
4497
    {
-
 
4498
      getFlipkartItemBySkyAtFlipkart_args args = new getFlipkartItemBySkyAtFlipkart_args();
-
 
4499
      args.setSku(sku);
-
 
4500
      sendBase("getFlipkartItemBySkyAtFlipkart", args);
-
 
4501
    }
-
 
4502
 
-
 
4503
    public FlipkartItem recv_getFlipkartItemBySkyAtFlipkart() throws org.apache.thrift.TException
-
 
4504
    {
-
 
4505
      getFlipkartItemBySkyAtFlipkart_result result = new getFlipkartItemBySkyAtFlipkart_result();
-
 
4506
      receiveBase(result, "getFlipkartItemBySkyAtFlipkart");
-
 
4507
      if (result.isSetSuccess()) {
-
 
4508
        return result.success;
-
 
4509
      }
-
 
4510
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartItemBySkyAtFlipkart failed: unknown result");
-
 
4511
    }
-
 
4512
 
4486
  }
4513
  }
4487
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4514
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4488
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4515
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4489
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4516
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4490
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4517
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 9527... Line 9554...
9527
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9554
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9528
        return (new Client(prot)).recv_getAllFkItems();
9555
        return (new Client(prot)).recv_getAllFkItems();
9529
      }
9556
      }
9530
    }
9557
    }
9531
 
9558
 
-
 
9559
    public void getFlipkartItemBySkyAtFlipkart(String sku, org.apache.thrift.async.AsyncMethodCallback<getFlipkartItemBySkyAtFlipkart_call> resultHandler) throws org.apache.thrift.TException {
-
 
9560
      checkReady();
-
 
9561
      getFlipkartItemBySkyAtFlipkart_call method_call = new getFlipkartItemBySkyAtFlipkart_call(sku, resultHandler, this, ___protocolFactory, ___transport);
-
 
9562
      this.___currentMethod = method_call;
-
 
9563
      ___manager.call(method_call);
-
 
9564
    }
-
 
9565
 
-
 
9566
    public static class getFlipkartItemBySkyAtFlipkart_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9567
      private String sku;
-
 
9568
      public getFlipkartItemBySkyAtFlipkart_call(String sku, org.apache.thrift.async.AsyncMethodCallback<getFlipkartItemBySkyAtFlipkart_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 {
-
 
9569
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9570
        this.sku = sku;
-
 
9571
      }
-
 
9572
 
-
 
9573
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9574
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFlipkartItemBySkyAtFlipkart", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9575
        getFlipkartItemBySkyAtFlipkart_args args = new getFlipkartItemBySkyAtFlipkart_args();
-
 
9576
        args.setSku(sku);
-
 
9577
        args.write(prot);
-
 
9578
        prot.writeMessageEnd();
-
 
9579
      }
-
 
9580
 
-
 
9581
      public FlipkartItem getResult() throws org.apache.thrift.TException {
-
 
9582
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9583
          throw new IllegalStateException("Method call not finished!");
-
 
9584
        }
-
 
9585
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9586
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9587
        return (new Client(prot)).recv_getFlipkartItemBySkyAtFlipkart();
-
 
9588
      }
-
 
9589
    }
-
 
9590
 
9532
  }
9591
  }
9533
 
9592
 
9534
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9593
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9535
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9594
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9536
    public Processor(I iface) {
9595
    public Processor(I iface) {
Line 9693... Line 9752...
9693
      processMap.put("getFlipkartItems", new getFlipkartItems());
9752
      processMap.put("getFlipkartItems", new getFlipkartItems());
9694
      processMap.put("searchFlipkartItems", new searchFlipkartItems());
9753
      processMap.put("searchFlipkartItems", new searchFlipkartItems());
9695
      processMap.put("getCountForFlipkartItems", new getCountForFlipkartItems());
9754
      processMap.put("getCountForFlipkartItems", new getCountForFlipkartItems());
9696
      processMap.put("getFlipkartSearchResultCount", new getFlipkartSearchResultCount());
9755
      processMap.put("getFlipkartSearchResultCount", new getFlipkartSearchResultCount());
9697
      processMap.put("getAllFkItems", new getAllFkItems());
9756
      processMap.put("getAllFkItems", new getAllFkItems());
-
 
9757
      processMap.put("getFlipkartItemBySkyAtFlipkart", new getFlipkartItemBySkyAtFlipkart());
9698
      return processMap;
9758
      return processMap;
9699
    }
9759
    }
9700
 
9760
 
9701
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
9761
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
9702
      public addItem() {
9762
      public addItem() {
Line 12365... Line 12425...
12365
        result.success = iface.getAllFkItems();
12425
        result.success = iface.getAllFkItems();
12366
        return result;
12426
        return result;
12367
      }
12427
      }
12368
    }
12428
    }
12369
 
12429
 
-
 
12430
    private static class getFlipkartItemBySkyAtFlipkart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFlipkartItemBySkyAtFlipkart_args> {
-
 
12431
      public getFlipkartItemBySkyAtFlipkart() {
-
 
12432
        super("getFlipkartItemBySkyAtFlipkart");
-
 
12433
      }
-
 
12434
 
-
 
12435
      protected getFlipkartItemBySkyAtFlipkart_args getEmptyArgsInstance() {
-
 
12436
        return new getFlipkartItemBySkyAtFlipkart_args();
-
 
12437
      }
-
 
12438
 
-
 
12439
      protected getFlipkartItemBySkyAtFlipkart_result getResult(I iface, getFlipkartItemBySkyAtFlipkart_args args) throws org.apache.thrift.TException {
-
 
12440
        getFlipkartItemBySkyAtFlipkart_result result = new getFlipkartItemBySkyAtFlipkart_result();
-
 
12441
        result.success = iface.getFlipkartItemBySkyAtFlipkart(args.sku);
-
 
12442
        return result;
-
 
12443
      }
-
 
12444
    }
-
 
12445
 
12370
  }
12446
  }
12371
 
12447
 
12372
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
12448
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
12373
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
12449
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
12374
 
12450
 
Line 110434... Line 110510...
110434
      boolean first = true;
110510
      boolean first = true;
110435
 
110511
 
110436
      sb.append("success:");
110512
      sb.append("success:");
110437
      if (this.success == null) {
110513
      if (this.success == null) {
110438
        sb.append("null");
110514
        sb.append("null");
-
 
110515
      } else {
-
 
110516
        sb.append(this.success);
-
 
110517
      }
-
 
110518
      first = false;
-
 
110519
      sb.append(")");
-
 
110520
      return sb.toString();
-
 
110521
    }
-
 
110522
 
-
 
110523
    public void validate() throws org.apache.thrift.TException {
-
 
110524
      // check for required fields
-
 
110525
    }
-
 
110526
 
-
 
110527
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
110528
      try {
-
 
110529
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
110530
      } catch (org.apache.thrift.TException te) {
-
 
110531
        throw new java.io.IOException(te);
-
 
110532
      }
-
 
110533
    }
-
 
110534
 
-
 
110535
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
110536
      try {
-
 
110537
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
110538
      } catch (org.apache.thrift.TException te) {
-
 
110539
        throw new java.io.IOException(te);
-
 
110540
      }
-
 
110541
    }
-
 
110542
 
-
 
110543
  }
-
 
110544
 
-
 
110545
  public static class getFlipkartItemBySkyAtFlipkart_args implements org.apache.thrift.TBase<getFlipkartItemBySkyAtFlipkart_args, getFlipkartItemBySkyAtFlipkart_args._Fields>, java.io.Serializable, Cloneable   {
-
 
110546
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItemBySkyAtFlipkart_args");
-
 
110547
 
-
 
110548
    private static final org.apache.thrift.protocol.TField SKU_FIELD_DESC = new org.apache.thrift.protocol.TField("sku", org.apache.thrift.protocol.TType.STRING, (short)-1);
-
 
110549
 
-
 
110550
    private String sku; // required
-
 
110551
 
-
 
110552
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
110553
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
110554
      SKU((short)-1, "sku");
-
 
110555
 
-
 
110556
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
110557
 
-
 
110558
      static {
-
 
110559
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
110560
          byName.put(field.getFieldName(), field);
-
 
110561
        }
-
 
110562
      }
-
 
110563
 
-
 
110564
      /**
-
 
110565
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
110566
       */
-
 
110567
      public static _Fields findByThriftId(int fieldId) {
-
 
110568
        switch(fieldId) {
-
 
110569
          case -1: // SKU
-
 
110570
            return SKU;
-
 
110571
          default:
-
 
110572
            return null;
-
 
110573
        }
-
 
110574
      }
-
 
110575
 
-
 
110576
      /**
-
 
110577
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
110578
       * if it is not found.
-
 
110579
       */
-
 
110580
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
110581
        _Fields fields = findByThriftId(fieldId);
-
 
110582
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
110583
        return fields;
-
 
110584
      }
-
 
110585
 
-
 
110586
      /**
-
 
110587
       * Find the _Fields constant that matches name, or null if its not found.
-
 
110588
       */
-
 
110589
      public static _Fields findByName(String name) {
-
 
110590
        return byName.get(name);
-
 
110591
      }
-
 
110592
 
-
 
110593
      private final short _thriftId;
-
 
110594
      private final String _fieldName;
-
 
110595
 
-
 
110596
      _Fields(short thriftId, String fieldName) {
-
 
110597
        _thriftId = thriftId;
-
 
110598
        _fieldName = fieldName;
-
 
110599
      }
-
 
110600
 
-
 
110601
      public short getThriftFieldId() {
-
 
110602
        return _thriftId;
-
 
110603
      }
-
 
110604
 
-
 
110605
      public String getFieldName() {
-
 
110606
        return _fieldName;
-
 
110607
      }
-
 
110608
    }
-
 
110609
 
-
 
110610
    // isset id assignments
-
 
110611
 
-
 
110612
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
110613
    static {
-
 
110614
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
110615
      tmpMap.put(_Fields.SKU, new org.apache.thrift.meta_data.FieldMetaData("sku", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
110616
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
110617
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
110618
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartItemBySkyAtFlipkart_args.class, metaDataMap);
-
 
110619
    }
-
 
110620
 
-
 
110621
    public getFlipkartItemBySkyAtFlipkart_args() {
-
 
110622
    }
-
 
110623
 
-
 
110624
    public getFlipkartItemBySkyAtFlipkart_args(
-
 
110625
      String sku)
-
 
110626
    {
-
 
110627
      this();
-
 
110628
      this.sku = sku;
-
 
110629
    }
-
 
110630
 
-
 
110631
    /**
-
 
110632
     * Performs a deep copy on <i>other</i>.
-
 
110633
     */
-
 
110634
    public getFlipkartItemBySkyAtFlipkart_args(getFlipkartItemBySkyAtFlipkart_args other) {
-
 
110635
      if (other.isSetSku()) {
-
 
110636
        this.sku = other.sku;
-
 
110637
      }
-
 
110638
    }
-
 
110639
 
-
 
110640
    public getFlipkartItemBySkyAtFlipkart_args deepCopy() {
-
 
110641
      return new getFlipkartItemBySkyAtFlipkart_args(this);
-
 
110642
    }
-
 
110643
 
-
 
110644
    @Override
-
 
110645
    public void clear() {
-
 
110646
      this.sku = null;
-
 
110647
    }
-
 
110648
 
-
 
110649
    public String getSku() {
-
 
110650
      return this.sku;
-
 
110651
    }
-
 
110652
 
-
 
110653
    public void setSku(String sku) {
-
 
110654
      this.sku = sku;
-
 
110655
    }
-
 
110656
 
-
 
110657
    public void unsetSku() {
-
 
110658
      this.sku = null;
-
 
110659
    }
-
 
110660
 
-
 
110661
    /** Returns true if field sku is set (has been assigned a value) and false otherwise */
-
 
110662
    public boolean isSetSku() {
-
 
110663
      return this.sku != null;
-
 
110664
    }
-
 
110665
 
-
 
110666
    public void setSkuIsSet(boolean value) {
-
 
110667
      if (!value) {
-
 
110668
        this.sku = null;
-
 
110669
      }
-
 
110670
    }
-
 
110671
 
-
 
110672
    public void setFieldValue(_Fields field, Object value) {
-
 
110673
      switch (field) {
-
 
110674
      case SKU:
-
 
110675
        if (value == null) {
-
 
110676
          unsetSku();
-
 
110677
        } else {
-
 
110678
          setSku((String)value);
-
 
110679
        }
-
 
110680
        break;
-
 
110681
 
-
 
110682
      }
-
 
110683
    }
-
 
110684
 
-
 
110685
    public Object getFieldValue(_Fields field) {
-
 
110686
      switch (field) {
-
 
110687
      case SKU:
-
 
110688
        return getSku();
-
 
110689
 
-
 
110690
      }
-
 
110691
      throw new IllegalStateException();
-
 
110692
    }
-
 
110693
 
-
 
110694
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
110695
    public boolean isSet(_Fields field) {
-
 
110696
      if (field == null) {
-
 
110697
        throw new IllegalArgumentException();
-
 
110698
      }
-
 
110699
 
-
 
110700
      switch (field) {
-
 
110701
      case SKU:
-
 
110702
        return isSetSku();
-
 
110703
      }
-
 
110704
      throw new IllegalStateException();
-
 
110705
    }
-
 
110706
 
-
 
110707
    @Override
-
 
110708
    public boolean equals(Object that) {
-
 
110709
      if (that == null)
-
 
110710
        return false;
-
 
110711
      if (that instanceof getFlipkartItemBySkyAtFlipkart_args)
-
 
110712
        return this.equals((getFlipkartItemBySkyAtFlipkart_args)that);
-
 
110713
      return false;
-
 
110714
    }
-
 
110715
 
-
 
110716
    public boolean equals(getFlipkartItemBySkyAtFlipkart_args that) {
-
 
110717
      if (that == null)
-
 
110718
        return false;
-
 
110719
 
-
 
110720
      boolean this_present_sku = true && this.isSetSku();
-
 
110721
      boolean that_present_sku = true && that.isSetSku();
-
 
110722
      if (this_present_sku || that_present_sku) {
-
 
110723
        if (!(this_present_sku && that_present_sku))
-
 
110724
          return false;
-
 
110725
        if (!this.sku.equals(that.sku))
-
 
110726
          return false;
-
 
110727
      }
-
 
110728
 
-
 
110729
      return true;
-
 
110730
    }
-
 
110731
 
-
 
110732
    @Override
-
 
110733
    public int hashCode() {
-
 
110734
      return 0;
-
 
110735
    }
-
 
110736
 
-
 
110737
    public int compareTo(getFlipkartItemBySkyAtFlipkart_args other) {
-
 
110738
      if (!getClass().equals(other.getClass())) {
-
 
110739
        return getClass().getName().compareTo(other.getClass().getName());
-
 
110740
      }
-
 
110741
 
-
 
110742
      int lastComparison = 0;
-
 
110743
      getFlipkartItemBySkyAtFlipkart_args typedOther = (getFlipkartItemBySkyAtFlipkart_args)other;
-
 
110744
 
-
 
110745
      lastComparison = Boolean.valueOf(isSetSku()).compareTo(typedOther.isSetSku());
-
 
110746
      if (lastComparison != 0) {
-
 
110747
        return lastComparison;
-
 
110748
      }
-
 
110749
      if (isSetSku()) {
-
 
110750
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sku, typedOther.sku);
-
 
110751
        if (lastComparison != 0) {
-
 
110752
          return lastComparison;
-
 
110753
        }
-
 
110754
      }
-
 
110755
      return 0;
-
 
110756
    }
-
 
110757
 
-
 
110758
    public _Fields fieldForId(int fieldId) {
-
 
110759
      return _Fields.findByThriftId(fieldId);
-
 
110760
    }
-
 
110761
 
-
 
110762
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
110763
      org.apache.thrift.protocol.TField field;
-
 
110764
      iprot.readStructBegin();
-
 
110765
      while (true)
-
 
110766
      {
-
 
110767
        field = iprot.readFieldBegin();
-
 
110768
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
110769
          break;
-
 
110770
        }
-
 
110771
        switch (field.id) {
-
 
110772
          case -1: // SKU
-
 
110773
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
110774
              this.sku = iprot.readString();
-
 
110775
            } else { 
-
 
110776
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
110777
            }
-
 
110778
            break;
-
 
110779
          default:
-
 
110780
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
110781
        }
-
 
110782
        iprot.readFieldEnd();
-
 
110783
      }
-
 
110784
      iprot.readStructEnd();
-
 
110785
      validate();
-
 
110786
    }
-
 
110787
 
-
 
110788
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
110789
      validate();
-
 
110790
 
-
 
110791
      oprot.writeStructBegin(STRUCT_DESC);
-
 
110792
      if (this.sku != null) {
-
 
110793
        oprot.writeFieldBegin(SKU_FIELD_DESC);
-
 
110794
        oprot.writeString(this.sku);
-
 
110795
        oprot.writeFieldEnd();
-
 
110796
      }
-
 
110797
      oprot.writeFieldStop();
-
 
110798
      oprot.writeStructEnd();
-
 
110799
    }
-
 
110800
 
-
 
110801
    @Override
-
 
110802
    public String toString() {
-
 
110803
      StringBuilder sb = new StringBuilder("getFlipkartItemBySkyAtFlipkart_args(");
-
 
110804
      boolean first = true;
-
 
110805
 
-
 
110806
      sb.append("sku:");
-
 
110807
      if (this.sku == null) {
-
 
110808
        sb.append("null");
-
 
110809
      } else {
-
 
110810
        sb.append(this.sku);
-
 
110811
      }
-
 
110812
      first = false;
-
 
110813
      sb.append(")");
-
 
110814
      return sb.toString();
-
 
110815
    }
-
 
110816
 
-
 
110817
    public void validate() throws org.apache.thrift.TException {
-
 
110818
      // check for required fields
-
 
110819
    }
-
 
110820
 
-
 
110821
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
110822
      try {
-
 
110823
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
110824
      } catch (org.apache.thrift.TException te) {
-
 
110825
        throw new java.io.IOException(te);
-
 
110826
      }
-
 
110827
    }
-
 
110828
 
-
 
110829
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
110830
      try {
-
 
110831
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
110832
      } catch (org.apache.thrift.TException te) {
-
 
110833
        throw new java.io.IOException(te);
-
 
110834
      }
-
 
110835
    }
-
 
110836
 
-
 
110837
  }
-
 
110838
 
-
 
110839
  public static class getFlipkartItemBySkyAtFlipkart_result implements org.apache.thrift.TBase<getFlipkartItemBySkyAtFlipkart_result, getFlipkartItemBySkyAtFlipkart_result._Fields>, java.io.Serializable, Cloneable   {
-
 
110840
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItemBySkyAtFlipkart_result");
-
 
110841
 
-
 
110842
    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);
-
 
110843
 
-
 
110844
    private FlipkartItem success; // required
-
 
110845
 
-
 
110846
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
110847
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
110848
      SUCCESS((short)0, "success");
-
 
110849
 
-
 
110850
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
110851
 
-
 
110852
      static {
-
 
110853
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
110854
          byName.put(field.getFieldName(), field);
-
 
110855
        }
-
 
110856
      }
-
 
110857
 
-
 
110858
      /**
-
 
110859
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
110860
       */
-
 
110861
      public static _Fields findByThriftId(int fieldId) {
-
 
110862
        switch(fieldId) {
-
 
110863
          case 0: // SUCCESS
-
 
110864
            return SUCCESS;
-
 
110865
          default:
-
 
110866
            return null;
-
 
110867
        }
-
 
110868
      }
-
 
110869
 
-
 
110870
      /**
-
 
110871
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
110872
       * if it is not found.
-
 
110873
       */
-
 
110874
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
110875
        _Fields fields = findByThriftId(fieldId);
-
 
110876
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
110877
        return fields;
-
 
110878
      }
-
 
110879
 
-
 
110880
      /**
-
 
110881
       * Find the _Fields constant that matches name, or null if its not found.
-
 
110882
       */
-
 
110883
      public static _Fields findByName(String name) {
-
 
110884
        return byName.get(name);
-
 
110885
      }
-
 
110886
 
-
 
110887
      private final short _thriftId;
-
 
110888
      private final String _fieldName;
-
 
110889
 
-
 
110890
      _Fields(short thriftId, String fieldName) {
-
 
110891
        _thriftId = thriftId;
-
 
110892
        _fieldName = fieldName;
-
 
110893
      }
-
 
110894
 
-
 
110895
      public short getThriftFieldId() {
-
 
110896
        return _thriftId;
-
 
110897
      }
-
 
110898
 
-
 
110899
      public String getFieldName() {
-
 
110900
        return _fieldName;
-
 
110901
      }
-
 
110902
    }
-
 
110903
 
-
 
110904
    // isset id assignments
-
 
110905
 
-
 
110906
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
110907
    static {
-
 
110908
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
110909
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
110910
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartItem.class)));
-
 
110911
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
110912
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartItemBySkyAtFlipkart_result.class, metaDataMap);
-
 
110913
    }
-
 
110914
 
-
 
110915
    public getFlipkartItemBySkyAtFlipkart_result() {
-
 
110916
    }
-
 
110917
 
-
 
110918
    public getFlipkartItemBySkyAtFlipkart_result(
-
 
110919
      FlipkartItem success)
-
 
110920
    {
-
 
110921
      this();
-
 
110922
      this.success = success;
-
 
110923
    }
-
 
110924
 
-
 
110925
    /**
-
 
110926
     * Performs a deep copy on <i>other</i>.
-
 
110927
     */
-
 
110928
    public getFlipkartItemBySkyAtFlipkart_result(getFlipkartItemBySkyAtFlipkart_result other) {
-
 
110929
      if (other.isSetSuccess()) {
-
 
110930
        this.success = new FlipkartItem(other.success);
-
 
110931
      }
-
 
110932
    }
-
 
110933
 
-
 
110934
    public getFlipkartItemBySkyAtFlipkart_result deepCopy() {
-
 
110935
      return new getFlipkartItemBySkyAtFlipkart_result(this);
-
 
110936
    }
-
 
110937
 
-
 
110938
    @Override
-
 
110939
    public void clear() {
-
 
110940
      this.success = null;
-
 
110941
    }
-
 
110942
 
-
 
110943
    public FlipkartItem getSuccess() {
-
 
110944
      return this.success;
-
 
110945
    }
-
 
110946
 
-
 
110947
    public void setSuccess(FlipkartItem success) {
-
 
110948
      this.success = success;
-
 
110949
    }
-
 
110950
 
-
 
110951
    public void unsetSuccess() {
-
 
110952
      this.success = null;
-
 
110953
    }
-
 
110954
 
-
 
110955
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
110956
    public boolean isSetSuccess() {
-
 
110957
      return this.success != null;
-
 
110958
    }
-
 
110959
 
-
 
110960
    public void setSuccessIsSet(boolean value) {
-
 
110961
      if (!value) {
-
 
110962
        this.success = null;
-
 
110963
      }
-
 
110964
    }
-
 
110965
 
-
 
110966
    public void setFieldValue(_Fields field, Object value) {
-
 
110967
      switch (field) {
-
 
110968
      case SUCCESS:
-
 
110969
        if (value == null) {
-
 
110970
          unsetSuccess();
-
 
110971
        } else {
-
 
110972
          setSuccess((FlipkartItem)value);
-
 
110973
        }
-
 
110974
        break;
-
 
110975
 
-
 
110976
      }
-
 
110977
    }
-
 
110978
 
-
 
110979
    public Object getFieldValue(_Fields field) {
-
 
110980
      switch (field) {
-
 
110981
      case SUCCESS:
-
 
110982
        return getSuccess();
-
 
110983
 
-
 
110984
      }
-
 
110985
      throw new IllegalStateException();
-
 
110986
    }
-
 
110987
 
-
 
110988
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
110989
    public boolean isSet(_Fields field) {
-
 
110990
      if (field == null) {
-
 
110991
        throw new IllegalArgumentException();
-
 
110992
      }
-
 
110993
 
-
 
110994
      switch (field) {
-
 
110995
      case SUCCESS:
-
 
110996
        return isSetSuccess();
-
 
110997
      }
-
 
110998
      throw new IllegalStateException();
-
 
110999
    }
-
 
111000
 
-
 
111001
    @Override
-
 
111002
    public boolean equals(Object that) {
-
 
111003
      if (that == null)
-
 
111004
        return false;
-
 
111005
      if (that instanceof getFlipkartItemBySkyAtFlipkart_result)
-
 
111006
        return this.equals((getFlipkartItemBySkyAtFlipkart_result)that);
-
 
111007
      return false;
-
 
111008
    }
-
 
111009
 
-
 
111010
    public boolean equals(getFlipkartItemBySkyAtFlipkart_result that) {
-
 
111011
      if (that == null)
-
 
111012
        return false;
-
 
111013
 
-
 
111014
      boolean this_present_success = true && this.isSetSuccess();
-
 
111015
      boolean that_present_success = true && that.isSetSuccess();
-
 
111016
      if (this_present_success || that_present_success) {
-
 
111017
        if (!(this_present_success && that_present_success))
-
 
111018
          return false;
-
 
111019
        if (!this.success.equals(that.success))
-
 
111020
          return false;
-
 
111021
      }
-
 
111022
 
-
 
111023
      return true;
-
 
111024
    }
-
 
111025
 
-
 
111026
    @Override
-
 
111027
    public int hashCode() {
-
 
111028
      return 0;
-
 
111029
    }
-
 
111030
 
-
 
111031
    public int compareTo(getFlipkartItemBySkyAtFlipkart_result other) {
-
 
111032
      if (!getClass().equals(other.getClass())) {
-
 
111033
        return getClass().getName().compareTo(other.getClass().getName());
-
 
111034
      }
-
 
111035
 
-
 
111036
      int lastComparison = 0;
-
 
111037
      getFlipkartItemBySkyAtFlipkart_result typedOther = (getFlipkartItemBySkyAtFlipkart_result)other;
-
 
111038
 
-
 
111039
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
111040
      if (lastComparison != 0) {
-
 
111041
        return lastComparison;
-
 
111042
      }
-
 
111043
      if (isSetSuccess()) {
-
 
111044
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
111045
        if (lastComparison != 0) {
-
 
111046
          return lastComparison;
-
 
111047
        }
-
 
111048
      }
-
 
111049
      return 0;
-
 
111050
    }
-
 
111051
 
-
 
111052
    public _Fields fieldForId(int fieldId) {
-
 
111053
      return _Fields.findByThriftId(fieldId);
-
 
111054
    }
-
 
111055
 
-
 
111056
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
111057
      org.apache.thrift.protocol.TField field;
-
 
111058
      iprot.readStructBegin();
-
 
111059
      while (true)
-
 
111060
      {
-
 
111061
        field = iprot.readFieldBegin();
-
 
111062
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
111063
          break;
-
 
111064
        }
-
 
111065
        switch (field.id) {
-
 
111066
          case 0: // SUCCESS
-
 
111067
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
111068
              this.success = new FlipkartItem();
-
 
111069
              this.success.read(iprot);
-
 
111070
            } else { 
-
 
111071
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
111072
            }
-
 
111073
            break;
-
 
111074
          default:
-
 
111075
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
111076
        }
-
 
111077
        iprot.readFieldEnd();
-
 
111078
      }
-
 
111079
      iprot.readStructEnd();
-
 
111080
      validate();
-
 
111081
    }
-
 
111082
 
-
 
111083
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
111084
      oprot.writeStructBegin(STRUCT_DESC);
-
 
111085
 
-
 
111086
      if (this.isSetSuccess()) {
-
 
111087
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
111088
        this.success.write(oprot);
-
 
111089
        oprot.writeFieldEnd();
-
 
111090
      }
-
 
111091
      oprot.writeFieldStop();
-
 
111092
      oprot.writeStructEnd();
-
 
111093
    }
-
 
111094
 
-
 
111095
    @Override
-
 
111096
    public String toString() {
-
 
111097
      StringBuilder sb = new StringBuilder("getFlipkartItemBySkyAtFlipkart_result(");
-
 
111098
      boolean first = true;
-
 
111099
 
-
 
111100
      sb.append("success:");
-
 
111101
      if (this.success == null) {
-
 
111102
        sb.append("null");
110439
      } else {
111103
      } else {
110440
        sb.append(this.success);
111104
        sb.append(this.success);
110441
      }
111105
      }
110442
      first = false;
111106
      first = false;
110443
      sb.append(")");
111107
      sb.append(")");