Subversion Repositories SmartDukaan

Rev

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

Rev 10050 Rev 10097
Line 363... Line 363...
363
 
363
 
364
    public void addOrUpdateFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot) throws org.apache.thrift.TException;
364
    public void addOrUpdateFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot) throws org.apache.thrift.TException;
365
 
365
 
366
    public List<FlipkartInventorySnapshot> getFlipkartInventorySnapshot() throws org.apache.thrift.TException;
366
    public List<FlipkartInventorySnapshot> getFlipkartInventorySnapshot() throws org.apache.thrift.TException;
367
 
367
 
-
 
368
    public FlipkartInventorySnapshot getFlipkartlInventoryForItem(long item_id) throws org.apache.thrift.TException;
-
 
369
 
368
  }
370
  }
369
 
371
 
370
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
372
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
371
 
373
 
372
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
374
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 511... Line 513...
511
 
513
 
512
    public void addOrUpdateFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateFlipkartInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
514
    public void addOrUpdateFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateFlipkartInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
513
 
515
 
514
    public void getFlipkartInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
516
    public void getFlipkartInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
515
 
517
 
-
 
518
    public void getFlipkartlInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartlInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
519
 
516
  }
520
  }
517
 
521
 
518
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
522
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
519
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
523
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
520
      public Factory() {}
524
      public Factory() {}
Line 2241... Line 2245...
2241
        return result.success;
2245
        return result.success;
2242
      }
2246
      }
2243
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartInventorySnapshot failed: unknown result");
2247
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartInventorySnapshot failed: unknown result");
2244
    }
2248
    }
2245
 
2249
 
-
 
2250
    public FlipkartInventorySnapshot getFlipkartlInventoryForItem(long item_id) throws org.apache.thrift.TException
-
 
2251
    {
-
 
2252
      send_getFlipkartlInventoryForItem(item_id);
-
 
2253
      return recv_getFlipkartlInventoryForItem();
-
 
2254
    }
-
 
2255
 
-
 
2256
    public void send_getFlipkartlInventoryForItem(long item_id) throws org.apache.thrift.TException
-
 
2257
    {
-
 
2258
      getFlipkartlInventoryForItem_args args = new getFlipkartlInventoryForItem_args();
-
 
2259
      args.setItem_id(item_id);
-
 
2260
      sendBase("getFlipkartlInventoryForItem", args);
-
 
2261
    }
-
 
2262
 
-
 
2263
    public FlipkartInventorySnapshot recv_getFlipkartlInventoryForItem() throws org.apache.thrift.TException
-
 
2264
    {
-
 
2265
      getFlipkartlInventoryForItem_result result = new getFlipkartlInventoryForItem_result();
-
 
2266
      receiveBase(result, "getFlipkartlInventoryForItem");
-
 
2267
      if (result.isSetSuccess()) {
-
 
2268
        return result.success;
-
 
2269
      }
-
 
2270
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartlInventoryForItem failed: unknown result");
-
 
2271
    }
-
 
2272
 
2246
  }
2273
  }
2247
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2274
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2248
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2275
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2249
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2276
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2250
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2277
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4701... Line 4728...
4701
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4728
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4702
        return (new Client(prot)).recv_getFlipkartInventorySnapshot();
4729
        return (new Client(prot)).recv_getFlipkartInventorySnapshot();
4703
      }
4730
      }
4704
    }
4731
    }
4705
 
4732
 
-
 
4733
    public void getFlipkartlInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<getFlipkartlInventoryForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
4734
      checkReady();
-
 
4735
      getFlipkartlInventoryForItem_call method_call = new getFlipkartlInventoryForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
4736
      this.___currentMethod = method_call;
-
 
4737
      ___manager.call(method_call);
-
 
4738
    }
-
 
4739
 
-
 
4740
    public static class getFlipkartlInventoryForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4741
      private long item_id;
-
 
4742
      public getFlipkartlInventoryForItem_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getFlipkartlInventoryForItem_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 {
-
 
4743
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4744
        this.item_id = item_id;
-
 
4745
      }
-
 
4746
 
-
 
4747
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4748
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFlipkartlInventoryForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4749
        getFlipkartlInventoryForItem_args args = new getFlipkartlInventoryForItem_args();
-
 
4750
        args.setItem_id(item_id);
-
 
4751
        args.write(prot);
-
 
4752
        prot.writeMessageEnd();
-
 
4753
      }
-
 
4754
 
-
 
4755
      public FlipkartInventorySnapshot getResult() throws org.apache.thrift.TException {
-
 
4756
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4757
          throw new IllegalStateException("Method call not finished!");
-
 
4758
        }
-
 
4759
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4760
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4761
        return (new Client(prot)).recv_getFlipkartlInventoryForItem();
-
 
4762
      }
-
 
4763
    }
-
 
4764
 
4706
  }
4765
  }
4707
 
4766
 
4708
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4767
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4709
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4768
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4710
    public Processor(I iface) {
4769
    public Processor(I iface) {
Line 4786... Line 4845...
4786
      processMap.put("addOrUpdateAllSnapdealInventory", new addOrUpdateAllSnapdealInventory());
4845
      processMap.put("addOrUpdateAllSnapdealInventory", new addOrUpdateAllSnapdealInventory());
4787
      processMap.put("getSnapdealInventorySnapshot", new getSnapdealInventorySnapshot());
4846
      processMap.put("getSnapdealInventorySnapshot", new getSnapdealInventorySnapshot());
4788
      processMap.put("getHoldInventoryDetails", new getHoldInventoryDetails());
4847
      processMap.put("getHoldInventoryDetails", new getHoldInventoryDetails());
4789
      processMap.put("addOrUpdateFlipkartInventorySnapshot", new addOrUpdateFlipkartInventorySnapshot());
4848
      processMap.put("addOrUpdateFlipkartInventorySnapshot", new addOrUpdateFlipkartInventorySnapshot());
4790
      processMap.put("getFlipkartInventorySnapshot", new getFlipkartInventorySnapshot());
4849
      processMap.put("getFlipkartInventorySnapshot", new getFlipkartInventorySnapshot());
-
 
4850
      processMap.put("getFlipkartlInventoryForItem", new getFlipkartlInventoryForItem());
4791
      return processMap;
4851
      return processMap;
4792
    }
4852
    }
4793
 
4853
 
4794
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
4854
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
4795
      public addWarehouse() {
4855
      public addWarehouse() {
Line 6051... Line 6111...
6051
        result.success = iface.getFlipkartInventorySnapshot();
6111
        result.success = iface.getFlipkartInventorySnapshot();
6052
        return result;
6112
        return result;
6053
      }
6113
      }
6054
    }
6114
    }
6055
 
6115
 
-
 
6116
    private static class getFlipkartlInventoryForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFlipkartlInventoryForItem_args> {
-
 
6117
      public getFlipkartlInventoryForItem() {
-
 
6118
        super("getFlipkartlInventoryForItem");
-
 
6119
      }
-
 
6120
 
-
 
6121
      protected getFlipkartlInventoryForItem_args getEmptyArgsInstance() {
-
 
6122
        return new getFlipkartlInventoryForItem_args();
-
 
6123
      }
-
 
6124
 
-
 
6125
      protected getFlipkartlInventoryForItem_result getResult(I iface, getFlipkartlInventoryForItem_args args) throws org.apache.thrift.TException {
-
 
6126
        getFlipkartlInventoryForItem_result result = new getFlipkartlInventoryForItem_result();
-
 
6127
        result.success = iface.getFlipkartlInventoryForItem(args.item_id);
-
 
6128
        return result;
-
 
6129
      }
-
 
6130
    }
-
 
6131
 
6056
  }
6132
  }
6057
 
6133
 
6058
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
6134
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
6059
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
6135
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
6060
 
6136
 
Line 53548... Line 53624...
53548
      boolean first = true;
53624
      boolean first = true;
53549
 
53625
 
53550
      sb.append("success:");
53626
      sb.append("success:");
53551
      if (this.success == null) {
53627
      if (this.success == null) {
53552
        sb.append("null");
53628
        sb.append("null");
-
 
53629
      } else {
-
 
53630
        sb.append(this.success);
-
 
53631
      }
-
 
53632
      first = false;
-
 
53633
      sb.append(")");
-
 
53634
      return sb.toString();
-
 
53635
    }
-
 
53636
 
-
 
53637
    public void validate() throws org.apache.thrift.TException {
-
 
53638
      // check for required fields
-
 
53639
    }
-
 
53640
 
-
 
53641
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
53642
      try {
-
 
53643
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
53644
      } catch (org.apache.thrift.TException te) {
-
 
53645
        throw new java.io.IOException(te);
-
 
53646
      }
-
 
53647
    }
-
 
53648
 
-
 
53649
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
53650
      try {
-
 
53651
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
53652
      } catch (org.apache.thrift.TException te) {
-
 
53653
        throw new java.io.IOException(te);
-
 
53654
      }
-
 
53655
    }
-
 
53656
 
-
 
53657
  }
-
 
53658
 
-
 
53659
  public static class getFlipkartlInventoryForItem_args implements org.apache.thrift.TBase<getFlipkartlInventoryForItem_args, getFlipkartlInventoryForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
53660
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartlInventoryForItem_args");
-
 
53661
 
-
 
53662
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
53663
 
-
 
53664
    private long item_id; // required
-
 
53665
 
-
 
53666
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
53667
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
53668
      ITEM_ID((short)1, "item_id");
-
 
53669
 
-
 
53670
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
53671
 
-
 
53672
      static {
-
 
53673
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
53674
          byName.put(field.getFieldName(), field);
-
 
53675
        }
-
 
53676
      }
-
 
53677
 
-
 
53678
      /**
-
 
53679
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
53680
       */
-
 
53681
      public static _Fields findByThriftId(int fieldId) {
-
 
53682
        switch(fieldId) {
-
 
53683
          case 1: // ITEM_ID
-
 
53684
            return ITEM_ID;
-
 
53685
          default:
-
 
53686
            return null;
-
 
53687
        }
-
 
53688
      }
-
 
53689
 
-
 
53690
      /**
-
 
53691
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
53692
       * if it is not found.
-
 
53693
       */
-
 
53694
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
53695
        _Fields fields = findByThriftId(fieldId);
-
 
53696
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
53697
        return fields;
-
 
53698
      }
-
 
53699
 
-
 
53700
      /**
-
 
53701
       * Find the _Fields constant that matches name, or null if its not found.
-
 
53702
       */
-
 
53703
      public static _Fields findByName(String name) {
-
 
53704
        return byName.get(name);
-
 
53705
      }
-
 
53706
 
-
 
53707
      private final short _thriftId;
-
 
53708
      private final String _fieldName;
-
 
53709
 
-
 
53710
      _Fields(short thriftId, String fieldName) {
-
 
53711
        _thriftId = thriftId;
-
 
53712
        _fieldName = fieldName;
-
 
53713
      }
-
 
53714
 
-
 
53715
      public short getThriftFieldId() {
-
 
53716
        return _thriftId;
-
 
53717
      }
-
 
53718
 
-
 
53719
      public String getFieldName() {
-
 
53720
        return _fieldName;
-
 
53721
      }
-
 
53722
    }
-
 
53723
 
-
 
53724
    // isset id assignments
-
 
53725
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
53726
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
53727
 
-
 
53728
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
53729
    static {
-
 
53730
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
53731
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53732
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
53733
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
53734
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartlInventoryForItem_args.class, metaDataMap);
-
 
53735
    }
-
 
53736
 
-
 
53737
    public getFlipkartlInventoryForItem_args() {
-
 
53738
    }
-
 
53739
 
-
 
53740
    public getFlipkartlInventoryForItem_args(
-
 
53741
      long item_id)
-
 
53742
    {
-
 
53743
      this();
-
 
53744
      this.item_id = item_id;
-
 
53745
      setItem_idIsSet(true);
-
 
53746
    }
-
 
53747
 
-
 
53748
    /**
-
 
53749
     * Performs a deep copy on <i>other</i>.
-
 
53750
     */
-
 
53751
    public getFlipkartlInventoryForItem_args(getFlipkartlInventoryForItem_args other) {
-
 
53752
      __isset_bit_vector.clear();
-
 
53753
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
53754
      this.item_id = other.item_id;
-
 
53755
    }
-
 
53756
 
-
 
53757
    public getFlipkartlInventoryForItem_args deepCopy() {
-
 
53758
      return new getFlipkartlInventoryForItem_args(this);
-
 
53759
    }
-
 
53760
 
-
 
53761
    @Override
-
 
53762
    public void clear() {
-
 
53763
      setItem_idIsSet(false);
-
 
53764
      this.item_id = 0;
-
 
53765
    }
-
 
53766
 
-
 
53767
    public long getItem_id() {
-
 
53768
      return this.item_id;
-
 
53769
    }
-
 
53770
 
-
 
53771
    public void setItem_id(long item_id) {
-
 
53772
      this.item_id = item_id;
-
 
53773
      setItem_idIsSet(true);
-
 
53774
    }
-
 
53775
 
-
 
53776
    public void unsetItem_id() {
-
 
53777
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
53778
    }
-
 
53779
 
-
 
53780
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
53781
    public boolean isSetItem_id() {
-
 
53782
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
53783
    }
-
 
53784
 
-
 
53785
    public void setItem_idIsSet(boolean value) {
-
 
53786
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
53787
    }
-
 
53788
 
-
 
53789
    public void setFieldValue(_Fields field, Object value) {
-
 
53790
      switch (field) {
-
 
53791
      case ITEM_ID:
-
 
53792
        if (value == null) {
-
 
53793
          unsetItem_id();
-
 
53794
        } else {
-
 
53795
          setItem_id((Long)value);
-
 
53796
        }
-
 
53797
        break;
-
 
53798
 
-
 
53799
      }
-
 
53800
    }
-
 
53801
 
-
 
53802
    public Object getFieldValue(_Fields field) {
-
 
53803
      switch (field) {
-
 
53804
      case ITEM_ID:
-
 
53805
        return Long.valueOf(getItem_id());
-
 
53806
 
-
 
53807
      }
-
 
53808
      throw new IllegalStateException();
-
 
53809
    }
-
 
53810
 
-
 
53811
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
53812
    public boolean isSet(_Fields field) {
-
 
53813
      if (field == null) {
-
 
53814
        throw new IllegalArgumentException();
-
 
53815
      }
-
 
53816
 
-
 
53817
      switch (field) {
-
 
53818
      case ITEM_ID:
-
 
53819
        return isSetItem_id();
-
 
53820
      }
-
 
53821
      throw new IllegalStateException();
-
 
53822
    }
-
 
53823
 
-
 
53824
    @Override
-
 
53825
    public boolean equals(Object that) {
-
 
53826
      if (that == null)
-
 
53827
        return false;
-
 
53828
      if (that instanceof getFlipkartlInventoryForItem_args)
-
 
53829
        return this.equals((getFlipkartlInventoryForItem_args)that);
-
 
53830
      return false;
-
 
53831
    }
-
 
53832
 
-
 
53833
    public boolean equals(getFlipkartlInventoryForItem_args that) {
-
 
53834
      if (that == null)
-
 
53835
        return false;
-
 
53836
 
-
 
53837
      boolean this_present_item_id = true;
-
 
53838
      boolean that_present_item_id = true;
-
 
53839
      if (this_present_item_id || that_present_item_id) {
-
 
53840
        if (!(this_present_item_id && that_present_item_id))
-
 
53841
          return false;
-
 
53842
        if (this.item_id != that.item_id)
-
 
53843
          return false;
-
 
53844
      }
-
 
53845
 
-
 
53846
      return true;
-
 
53847
    }
-
 
53848
 
-
 
53849
    @Override
-
 
53850
    public int hashCode() {
-
 
53851
      return 0;
-
 
53852
    }
-
 
53853
 
-
 
53854
    public int compareTo(getFlipkartlInventoryForItem_args other) {
-
 
53855
      if (!getClass().equals(other.getClass())) {
-
 
53856
        return getClass().getName().compareTo(other.getClass().getName());
-
 
53857
      }
-
 
53858
 
-
 
53859
      int lastComparison = 0;
-
 
53860
      getFlipkartlInventoryForItem_args typedOther = (getFlipkartlInventoryForItem_args)other;
-
 
53861
 
-
 
53862
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
53863
      if (lastComparison != 0) {
-
 
53864
        return lastComparison;
-
 
53865
      }
-
 
53866
      if (isSetItem_id()) {
-
 
53867
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
53868
        if (lastComparison != 0) {
-
 
53869
          return lastComparison;
-
 
53870
        }
-
 
53871
      }
-
 
53872
      return 0;
-
 
53873
    }
-
 
53874
 
-
 
53875
    public _Fields fieldForId(int fieldId) {
-
 
53876
      return _Fields.findByThriftId(fieldId);
-
 
53877
    }
-
 
53878
 
-
 
53879
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
53880
      org.apache.thrift.protocol.TField field;
-
 
53881
      iprot.readStructBegin();
-
 
53882
      while (true)
-
 
53883
      {
-
 
53884
        field = iprot.readFieldBegin();
-
 
53885
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
53886
          break;
-
 
53887
        }
-
 
53888
        switch (field.id) {
-
 
53889
          case 1: // ITEM_ID
-
 
53890
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
53891
              this.item_id = iprot.readI64();
-
 
53892
              setItem_idIsSet(true);
-
 
53893
            } else { 
-
 
53894
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53895
            }
-
 
53896
            break;
-
 
53897
          default:
-
 
53898
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53899
        }
-
 
53900
        iprot.readFieldEnd();
-
 
53901
      }
-
 
53902
      iprot.readStructEnd();
-
 
53903
      validate();
-
 
53904
    }
-
 
53905
 
-
 
53906
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
53907
      validate();
-
 
53908
 
-
 
53909
      oprot.writeStructBegin(STRUCT_DESC);
-
 
53910
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
53911
      oprot.writeI64(this.item_id);
-
 
53912
      oprot.writeFieldEnd();
-
 
53913
      oprot.writeFieldStop();
-
 
53914
      oprot.writeStructEnd();
-
 
53915
    }
-
 
53916
 
-
 
53917
    @Override
-
 
53918
    public String toString() {
-
 
53919
      StringBuilder sb = new StringBuilder("getFlipkartlInventoryForItem_args(");
-
 
53920
      boolean first = true;
-
 
53921
 
-
 
53922
      sb.append("item_id:");
-
 
53923
      sb.append(this.item_id);
-
 
53924
      first = false;
-
 
53925
      sb.append(")");
-
 
53926
      return sb.toString();
-
 
53927
    }
-
 
53928
 
-
 
53929
    public void validate() throws org.apache.thrift.TException {
-
 
53930
      // check for required fields
-
 
53931
    }
-
 
53932
 
-
 
53933
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
53934
      try {
-
 
53935
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
53936
      } catch (org.apache.thrift.TException te) {
-
 
53937
        throw new java.io.IOException(te);
-
 
53938
      }
-
 
53939
    }
-
 
53940
 
-
 
53941
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
53942
      try {
-
 
53943
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
53944
        __isset_bit_vector = new BitSet(1);
-
 
53945
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
53946
      } catch (org.apache.thrift.TException te) {
-
 
53947
        throw new java.io.IOException(te);
-
 
53948
      }
-
 
53949
    }
-
 
53950
 
-
 
53951
  }
-
 
53952
 
-
 
53953
  public static class getFlipkartlInventoryForItem_result implements org.apache.thrift.TBase<getFlipkartlInventoryForItem_result, getFlipkartlInventoryForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
53954
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartlInventoryForItem_result");
-
 
53955
 
-
 
53956
    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);
-
 
53957
 
-
 
53958
    private FlipkartInventorySnapshot success; // required
-
 
53959
 
-
 
53960
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
53961
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
53962
      SUCCESS((short)0, "success");
-
 
53963
 
-
 
53964
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
53965
 
-
 
53966
      static {
-
 
53967
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
53968
          byName.put(field.getFieldName(), field);
-
 
53969
        }
-
 
53970
      }
-
 
53971
 
-
 
53972
      /**
-
 
53973
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
53974
       */
-
 
53975
      public static _Fields findByThriftId(int fieldId) {
-
 
53976
        switch(fieldId) {
-
 
53977
          case 0: // SUCCESS
-
 
53978
            return SUCCESS;
-
 
53979
          default:
-
 
53980
            return null;
-
 
53981
        }
-
 
53982
      }
-
 
53983
 
-
 
53984
      /**
-
 
53985
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
53986
       * if it is not found.
-
 
53987
       */
-
 
53988
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
53989
        _Fields fields = findByThriftId(fieldId);
-
 
53990
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
53991
        return fields;
-
 
53992
      }
-
 
53993
 
-
 
53994
      /**
-
 
53995
       * Find the _Fields constant that matches name, or null if its not found.
-
 
53996
       */
-
 
53997
      public static _Fields findByName(String name) {
-
 
53998
        return byName.get(name);
-
 
53999
      }
-
 
54000
 
-
 
54001
      private final short _thriftId;
-
 
54002
      private final String _fieldName;
-
 
54003
 
-
 
54004
      _Fields(short thriftId, String fieldName) {
-
 
54005
        _thriftId = thriftId;
-
 
54006
        _fieldName = fieldName;
-
 
54007
      }
-
 
54008
 
-
 
54009
      public short getThriftFieldId() {
-
 
54010
        return _thriftId;
-
 
54011
      }
-
 
54012
 
-
 
54013
      public String getFieldName() {
-
 
54014
        return _fieldName;
-
 
54015
      }
-
 
54016
    }
-
 
54017
 
-
 
54018
    // isset id assignments
-
 
54019
 
-
 
54020
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
54021
    static {
-
 
54022
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
54023
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
54024
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartInventorySnapshot.class)));
-
 
54025
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
54026
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartlInventoryForItem_result.class, metaDataMap);
-
 
54027
    }
-
 
54028
 
-
 
54029
    public getFlipkartlInventoryForItem_result() {
-
 
54030
    }
-
 
54031
 
-
 
54032
    public getFlipkartlInventoryForItem_result(
-
 
54033
      FlipkartInventorySnapshot success)
-
 
54034
    {
-
 
54035
      this();
-
 
54036
      this.success = success;
-
 
54037
    }
-
 
54038
 
-
 
54039
    /**
-
 
54040
     * Performs a deep copy on <i>other</i>.
-
 
54041
     */
-
 
54042
    public getFlipkartlInventoryForItem_result(getFlipkartlInventoryForItem_result other) {
-
 
54043
      if (other.isSetSuccess()) {
-
 
54044
        this.success = new FlipkartInventorySnapshot(other.success);
-
 
54045
      }
-
 
54046
    }
-
 
54047
 
-
 
54048
    public getFlipkartlInventoryForItem_result deepCopy() {
-
 
54049
      return new getFlipkartlInventoryForItem_result(this);
-
 
54050
    }
-
 
54051
 
-
 
54052
    @Override
-
 
54053
    public void clear() {
-
 
54054
      this.success = null;
-
 
54055
    }
-
 
54056
 
-
 
54057
    public FlipkartInventorySnapshot getSuccess() {
-
 
54058
      return this.success;
-
 
54059
    }
-
 
54060
 
-
 
54061
    public void setSuccess(FlipkartInventorySnapshot success) {
-
 
54062
      this.success = success;
-
 
54063
    }
-
 
54064
 
-
 
54065
    public void unsetSuccess() {
-
 
54066
      this.success = null;
-
 
54067
    }
-
 
54068
 
-
 
54069
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
54070
    public boolean isSetSuccess() {
-
 
54071
      return this.success != null;
-
 
54072
    }
-
 
54073
 
-
 
54074
    public void setSuccessIsSet(boolean value) {
-
 
54075
      if (!value) {
-
 
54076
        this.success = null;
-
 
54077
      }
-
 
54078
    }
-
 
54079
 
-
 
54080
    public void setFieldValue(_Fields field, Object value) {
-
 
54081
      switch (field) {
-
 
54082
      case SUCCESS:
-
 
54083
        if (value == null) {
-
 
54084
          unsetSuccess();
-
 
54085
        } else {
-
 
54086
          setSuccess((FlipkartInventorySnapshot)value);
-
 
54087
        }
-
 
54088
        break;
-
 
54089
 
-
 
54090
      }
-
 
54091
    }
-
 
54092
 
-
 
54093
    public Object getFieldValue(_Fields field) {
-
 
54094
      switch (field) {
-
 
54095
      case SUCCESS:
-
 
54096
        return getSuccess();
-
 
54097
 
-
 
54098
      }
-
 
54099
      throw new IllegalStateException();
-
 
54100
    }
-
 
54101
 
-
 
54102
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
54103
    public boolean isSet(_Fields field) {
-
 
54104
      if (field == null) {
-
 
54105
        throw new IllegalArgumentException();
-
 
54106
      }
-
 
54107
 
-
 
54108
      switch (field) {
-
 
54109
      case SUCCESS:
-
 
54110
        return isSetSuccess();
-
 
54111
      }
-
 
54112
      throw new IllegalStateException();
-
 
54113
    }
-
 
54114
 
-
 
54115
    @Override
-
 
54116
    public boolean equals(Object that) {
-
 
54117
      if (that == null)
-
 
54118
        return false;
-
 
54119
      if (that instanceof getFlipkartlInventoryForItem_result)
-
 
54120
        return this.equals((getFlipkartlInventoryForItem_result)that);
-
 
54121
      return false;
-
 
54122
    }
-
 
54123
 
-
 
54124
    public boolean equals(getFlipkartlInventoryForItem_result that) {
-
 
54125
      if (that == null)
-
 
54126
        return false;
-
 
54127
 
-
 
54128
      boolean this_present_success = true && this.isSetSuccess();
-
 
54129
      boolean that_present_success = true && that.isSetSuccess();
-
 
54130
      if (this_present_success || that_present_success) {
-
 
54131
        if (!(this_present_success && that_present_success))
-
 
54132
          return false;
-
 
54133
        if (!this.success.equals(that.success))
-
 
54134
          return false;
-
 
54135
      }
-
 
54136
 
-
 
54137
      return true;
-
 
54138
    }
-
 
54139
 
-
 
54140
    @Override
-
 
54141
    public int hashCode() {
-
 
54142
      return 0;
-
 
54143
    }
-
 
54144
 
-
 
54145
    public int compareTo(getFlipkartlInventoryForItem_result other) {
-
 
54146
      if (!getClass().equals(other.getClass())) {
-
 
54147
        return getClass().getName().compareTo(other.getClass().getName());
-
 
54148
      }
-
 
54149
 
-
 
54150
      int lastComparison = 0;
-
 
54151
      getFlipkartlInventoryForItem_result typedOther = (getFlipkartlInventoryForItem_result)other;
-
 
54152
 
-
 
54153
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
54154
      if (lastComparison != 0) {
-
 
54155
        return lastComparison;
-
 
54156
      }
-
 
54157
      if (isSetSuccess()) {
-
 
54158
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
54159
        if (lastComparison != 0) {
-
 
54160
          return lastComparison;
-
 
54161
        }
-
 
54162
      }
-
 
54163
      return 0;
-
 
54164
    }
-
 
54165
 
-
 
54166
    public _Fields fieldForId(int fieldId) {
-
 
54167
      return _Fields.findByThriftId(fieldId);
-
 
54168
    }
-
 
54169
 
-
 
54170
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
54171
      org.apache.thrift.protocol.TField field;
-
 
54172
      iprot.readStructBegin();
-
 
54173
      while (true)
-
 
54174
      {
-
 
54175
        field = iprot.readFieldBegin();
-
 
54176
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
54177
          break;
-
 
54178
        }
-
 
54179
        switch (field.id) {
-
 
54180
          case 0: // SUCCESS
-
 
54181
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
54182
              this.success = new FlipkartInventorySnapshot();
-
 
54183
              this.success.read(iprot);
-
 
54184
            } else { 
-
 
54185
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54186
            }
-
 
54187
            break;
-
 
54188
          default:
-
 
54189
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54190
        }
-
 
54191
        iprot.readFieldEnd();
-
 
54192
      }
-
 
54193
      iprot.readStructEnd();
-
 
54194
      validate();
-
 
54195
    }
-
 
54196
 
-
 
54197
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
54198
      oprot.writeStructBegin(STRUCT_DESC);
-
 
54199
 
-
 
54200
      if (this.isSetSuccess()) {
-
 
54201
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
54202
        this.success.write(oprot);
-
 
54203
        oprot.writeFieldEnd();
-
 
54204
      }
-
 
54205
      oprot.writeFieldStop();
-
 
54206
      oprot.writeStructEnd();
-
 
54207
    }
-
 
54208
 
-
 
54209
    @Override
-
 
54210
    public String toString() {
-
 
54211
      StringBuilder sb = new StringBuilder("getFlipkartlInventoryForItem_result(");
-
 
54212
      boolean first = true;
-
 
54213
 
-
 
54214
      sb.append("success:");
-
 
54215
      if (this.success == null) {
-
 
54216
        sb.append("null");
53553
      } else {
54217
      } else {
53554
        sb.append(this.success);
54218
        sb.append(this.success);
53555
      }
54219
      }
53556
      first = false;
54220
      first = false;
53557
      sb.append(")");
54221
      sb.append(")");