Subversion Repositories SmartDukaan

Rev

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

Rev 8982 Rev 8990
Line 1045... Line 1045...
1045
 
1045
 
1046
    public boolean flipkartOrderExists(String flipkartOrderId, String flipkartSubOrderId) throws org.apache.thrift.TException;
1046
    public boolean flipkartOrderExists(String flipkartOrderId, String flipkartSubOrderId) throws org.apache.thrift.TException;
1047
 
1047
 
1048
    public void createFlipkartOrder(FlipkartOrder flipkartOrder) throws org.apache.thrift.TException;
1048
    public void createFlipkartOrder(FlipkartOrder flipkartOrder) throws org.apache.thrift.TException;
1049
 
1049
 
-
 
1050
    public FlipkartOrder getFlipkartOrder(long orderId) throws org.apache.thrift.TException;
-
 
1051
 
1050
  }
1052
  }
1051
 
1053
 
1052
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1054
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1053
 
1055
 
1054
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1056
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1477... Line 1479...
1477
 
1479
 
1478
    public void flipkartOrderExists(String flipkartOrderId, String flipkartSubOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.flipkartOrderExists_call> resultHandler) throws org.apache.thrift.TException;
1480
    public void flipkartOrderExists(String flipkartOrderId, String flipkartSubOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.flipkartOrderExists_call> resultHandler) throws org.apache.thrift.TException;
1479
 
1481
 
1480
    public void createFlipkartOrder(FlipkartOrder flipkartOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createFlipkartOrder_call> resultHandler) throws org.apache.thrift.TException;
1482
    public void createFlipkartOrder(FlipkartOrder flipkartOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createFlipkartOrder_call> resultHandler) throws org.apache.thrift.TException;
1481
 
1483
 
-
 
1484
    public void getFlipkartOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartOrder_call> resultHandler) throws org.apache.thrift.TException;
-
 
1485
 
1482
  }
1486
  }
1483
 
1487
 
1484
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1488
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1485
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1489
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1486
      public Factory() {}
1490
      public Factory() {}
Line 6781... Line 6785...
6781
      createFlipkartOrder_result result = new createFlipkartOrder_result();
6785
      createFlipkartOrder_result result = new createFlipkartOrder_result();
6782
      receiveBase(result, "createFlipkartOrder");
6786
      receiveBase(result, "createFlipkartOrder");
6783
      return;
6787
      return;
6784
    }
6788
    }
6785
 
6789
 
-
 
6790
    public FlipkartOrder getFlipkartOrder(long orderId) throws org.apache.thrift.TException
-
 
6791
    {
-
 
6792
      send_getFlipkartOrder(orderId);
-
 
6793
      return recv_getFlipkartOrder();
-
 
6794
    }
-
 
6795
 
-
 
6796
    public void send_getFlipkartOrder(long orderId) throws org.apache.thrift.TException
-
 
6797
    {
-
 
6798
      getFlipkartOrder_args args = new getFlipkartOrder_args();
-
 
6799
      args.setOrderId(orderId);
-
 
6800
      sendBase("getFlipkartOrder", args);
-
 
6801
    }
-
 
6802
 
-
 
6803
    public FlipkartOrder recv_getFlipkartOrder() throws org.apache.thrift.TException
-
 
6804
    {
-
 
6805
      getFlipkartOrder_result result = new getFlipkartOrder_result();
-
 
6806
      receiveBase(result, "getFlipkartOrder");
-
 
6807
      if (result.isSetSuccess()) {
-
 
6808
        return result.success;
-
 
6809
      }
-
 
6810
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartOrder failed: unknown result");
-
 
6811
    }
-
 
6812
 
6786
  }
6813
  }
6787
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6814
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6788
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6815
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6789
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6816
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6790
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
6817
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 14241... Line 14268...
14241
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
14268
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
14242
        (new Client(prot)).recv_createFlipkartOrder();
14269
        (new Client(prot)).recv_createFlipkartOrder();
14243
      }
14270
      }
14244
    }
14271
    }
14245
 
14272
 
-
 
14273
    public void getFlipkartOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<getFlipkartOrder_call> resultHandler) throws org.apache.thrift.TException {
-
 
14274
      checkReady();
-
 
14275
      getFlipkartOrder_call method_call = new getFlipkartOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
-
 
14276
      this.___currentMethod = method_call;
-
 
14277
      ___manager.call(method_call);
-
 
14278
    }
-
 
14279
 
-
 
14280
    public static class getFlipkartOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
14281
      private long orderId;
-
 
14282
      public getFlipkartOrder_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getFlipkartOrder_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 {
-
 
14283
        super(client, protocolFactory, transport, resultHandler, false);
-
 
14284
        this.orderId = orderId;
-
 
14285
      }
-
 
14286
 
-
 
14287
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
14288
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFlipkartOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
14289
        getFlipkartOrder_args args = new getFlipkartOrder_args();
-
 
14290
        args.setOrderId(orderId);
-
 
14291
        args.write(prot);
-
 
14292
        prot.writeMessageEnd();
-
 
14293
      }
-
 
14294
 
-
 
14295
      public FlipkartOrder getResult() throws org.apache.thrift.TException {
-
 
14296
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
14297
          throw new IllegalStateException("Method call not finished!");
-
 
14298
        }
-
 
14299
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
14300
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
14301
        return (new Client(prot)).recv_getFlipkartOrder();
-
 
14302
      }
-
 
14303
    }
-
 
14304
 
14246
  }
14305
  }
14247
 
14306
 
14248
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
14307
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
14249
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
14308
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
14250
    public Processor(I iface) {
14309
    public Processor(I iface) {
Line 14468... Line 14527...
14468
      processMap.put("getSnapdealOrder", new getSnapdealOrder());
14527
      processMap.put("getSnapdealOrder", new getSnapdealOrder());
14469
      processMap.put("snapdealOrderExists", new snapdealOrderExists());
14528
      processMap.put("snapdealOrderExists", new snapdealOrderExists());
14470
      processMap.put("updateLatestFbaPricesForItem", new updateLatestFbaPricesForItem());
14529
      processMap.put("updateLatestFbaPricesForItem", new updateLatestFbaPricesForItem());
14471
      processMap.put("flipkartOrderExists", new flipkartOrderExists());
14530
      processMap.put("flipkartOrderExists", new flipkartOrderExists());
14472
      processMap.put("createFlipkartOrder", new createFlipkartOrder());
14531
      processMap.put("createFlipkartOrder", new createFlipkartOrder());
-
 
14532
      processMap.put("getFlipkartOrder", new getFlipkartOrder());
14473
      return processMap;
14533
      return processMap;
14474
    }
14534
    }
14475
 
14535
 
14476
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
14536
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
14477
      public createTransaction() {
14537
      public createTransaction() {
Line 18346... Line 18406...
18346
        iface.createFlipkartOrder(args.flipkartOrder);
18406
        iface.createFlipkartOrder(args.flipkartOrder);
18347
        return result;
18407
        return result;
18348
      }
18408
      }
18349
    }
18409
    }
18350
 
18410
 
-
 
18411
    private static class getFlipkartOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFlipkartOrder_args> {
-
 
18412
      public getFlipkartOrder() {
-
 
18413
        super("getFlipkartOrder");
-
 
18414
      }
-
 
18415
 
-
 
18416
      protected getFlipkartOrder_args getEmptyArgsInstance() {
-
 
18417
        return new getFlipkartOrder_args();
-
 
18418
      }
-
 
18419
 
-
 
18420
      protected getFlipkartOrder_result getResult(I iface, getFlipkartOrder_args args) throws org.apache.thrift.TException {
-
 
18421
        getFlipkartOrder_result result = new getFlipkartOrder_result();
-
 
18422
        result.success = iface.getFlipkartOrder(args.orderId);
-
 
18423
        return result;
-
 
18424
      }
-
 
18425
    }
-
 
18426
 
18351
  }
18427
  }
18352
 
18428
 
18353
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
18429
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
18354
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
18430
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
18355
 
18431
 
Line 169690... Line 169766...
169690
      sb.append(")");
169766
      sb.append(")");
169691
      return sb.toString();
169767
      return sb.toString();
169692
    }
169768
    }
169693
 
169769
 
169694
    public void validate() throws org.apache.thrift.TException {
169770
    public void validate() throws org.apache.thrift.TException {
-
 
169771
      // check for required fields
-
 
169772
    }
-
 
169773
 
-
 
169774
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
169775
      try {
-
 
169776
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
169777
      } catch (org.apache.thrift.TException te) {
-
 
169778
        throw new java.io.IOException(te);
-
 
169779
      }
-
 
169780
    }
-
 
169781
 
-
 
169782
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
169783
      try {
-
 
169784
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
169785
      } catch (org.apache.thrift.TException te) {
-
 
169786
        throw new java.io.IOException(te);
-
 
169787
      }
-
 
169788
    }
-
 
169789
 
-
 
169790
  }
-
 
169791
 
-
 
169792
  public static class getFlipkartOrder_args implements org.apache.thrift.TBase<getFlipkartOrder_args, getFlipkartOrder_args._Fields>, java.io.Serializable, Cloneable   {
-
 
169793
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartOrder_args");
-
 
169794
 
-
 
169795
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
169796
 
-
 
169797
    private long orderId; // required
-
 
169798
 
-
 
169799
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
169800
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
169801
      ORDER_ID((short)1, "orderId");
-
 
169802
 
-
 
169803
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
169804
 
-
 
169805
      static {
-
 
169806
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
169807
          byName.put(field.getFieldName(), field);
-
 
169808
        }
-
 
169809
      }
-
 
169810
 
-
 
169811
      /**
-
 
169812
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
169813
       */
-
 
169814
      public static _Fields findByThriftId(int fieldId) {
-
 
169815
        switch(fieldId) {
-
 
169816
          case 1: // ORDER_ID
-
 
169817
            return ORDER_ID;
-
 
169818
          default:
-
 
169819
            return null;
-
 
169820
        }
-
 
169821
      }
-
 
169822
 
-
 
169823
      /**
-
 
169824
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
169825
       * if it is not found.
-
 
169826
       */
-
 
169827
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
169828
        _Fields fields = findByThriftId(fieldId);
-
 
169829
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
169830
        return fields;
-
 
169831
      }
-
 
169832
 
-
 
169833
      /**
-
 
169834
       * Find the _Fields constant that matches name, or null if its not found.
-
 
169835
       */
-
 
169836
      public static _Fields findByName(String name) {
-
 
169837
        return byName.get(name);
-
 
169838
      }
-
 
169839
 
-
 
169840
      private final short _thriftId;
-
 
169841
      private final String _fieldName;
-
 
169842
 
-
 
169843
      _Fields(short thriftId, String fieldName) {
-
 
169844
        _thriftId = thriftId;
-
 
169845
        _fieldName = fieldName;
-
 
169846
      }
-
 
169847
 
-
 
169848
      public short getThriftFieldId() {
-
 
169849
        return _thriftId;
-
 
169850
      }
-
 
169851
 
-
 
169852
      public String getFieldName() {
-
 
169853
        return _fieldName;
-
 
169854
      }
-
 
169855
    }
-
 
169856
 
-
 
169857
    // isset id assignments
-
 
169858
    private static final int __ORDERID_ISSET_ID = 0;
-
 
169859
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
169860
 
-
 
169861
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
169862
    static {
-
 
169863
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
169864
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
169865
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
169866
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
169867
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartOrder_args.class, metaDataMap);
-
 
169868
    }
-
 
169869
 
-
 
169870
    public getFlipkartOrder_args() {
-
 
169871
    }
-
 
169872
 
-
 
169873
    public getFlipkartOrder_args(
-
 
169874
      long orderId)
-
 
169875
    {
-
 
169876
      this();
-
 
169877
      this.orderId = orderId;
-
 
169878
      setOrderIdIsSet(true);
-
 
169879
    }
-
 
169880
 
-
 
169881
    /**
-
 
169882
     * Performs a deep copy on <i>other</i>.
-
 
169883
     */
-
 
169884
    public getFlipkartOrder_args(getFlipkartOrder_args other) {
-
 
169885
      __isset_bit_vector.clear();
-
 
169886
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
169887
      this.orderId = other.orderId;
-
 
169888
    }
-
 
169889
 
-
 
169890
    public getFlipkartOrder_args deepCopy() {
-
 
169891
      return new getFlipkartOrder_args(this);
-
 
169892
    }
-
 
169893
 
-
 
169894
    @Override
-
 
169895
    public void clear() {
-
 
169896
      setOrderIdIsSet(false);
-
 
169897
      this.orderId = 0;
-
 
169898
    }
-
 
169899
 
-
 
169900
    public long getOrderId() {
-
 
169901
      return this.orderId;
-
 
169902
    }
-
 
169903
 
-
 
169904
    public void setOrderId(long orderId) {
-
 
169905
      this.orderId = orderId;
-
 
169906
      setOrderIdIsSet(true);
-
 
169907
    }
-
 
169908
 
-
 
169909
    public void unsetOrderId() {
-
 
169910
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
169911
    }
-
 
169912
 
-
 
169913
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
169914
    public boolean isSetOrderId() {
-
 
169915
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
169916
    }
-
 
169917
 
-
 
169918
    public void setOrderIdIsSet(boolean value) {
-
 
169919
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
169920
    }
-
 
169921
 
-
 
169922
    public void setFieldValue(_Fields field, Object value) {
-
 
169923
      switch (field) {
-
 
169924
      case ORDER_ID:
-
 
169925
        if (value == null) {
-
 
169926
          unsetOrderId();
-
 
169927
        } else {
-
 
169928
          setOrderId((Long)value);
-
 
169929
        }
-
 
169930
        break;
-
 
169931
 
-
 
169932
      }
-
 
169933
    }
-
 
169934
 
-
 
169935
    public Object getFieldValue(_Fields field) {
-
 
169936
      switch (field) {
-
 
169937
      case ORDER_ID:
-
 
169938
        return Long.valueOf(getOrderId());
-
 
169939
 
-
 
169940
      }
-
 
169941
      throw new IllegalStateException();
-
 
169942
    }
-
 
169943
 
-
 
169944
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
169945
    public boolean isSet(_Fields field) {
-
 
169946
      if (field == null) {
-
 
169947
        throw new IllegalArgumentException();
-
 
169948
      }
-
 
169949
 
-
 
169950
      switch (field) {
-
 
169951
      case ORDER_ID:
-
 
169952
        return isSetOrderId();
-
 
169953
      }
-
 
169954
      throw new IllegalStateException();
-
 
169955
    }
-
 
169956
 
-
 
169957
    @Override
-
 
169958
    public boolean equals(Object that) {
-
 
169959
      if (that == null)
-
 
169960
        return false;
-
 
169961
      if (that instanceof getFlipkartOrder_args)
-
 
169962
        return this.equals((getFlipkartOrder_args)that);
-
 
169963
      return false;
-
 
169964
    }
-
 
169965
 
-
 
169966
    public boolean equals(getFlipkartOrder_args that) {
-
 
169967
      if (that == null)
-
 
169968
        return false;
-
 
169969
 
-
 
169970
      boolean this_present_orderId = true;
-
 
169971
      boolean that_present_orderId = true;
-
 
169972
      if (this_present_orderId || that_present_orderId) {
-
 
169973
        if (!(this_present_orderId && that_present_orderId))
-
 
169974
          return false;
-
 
169975
        if (this.orderId != that.orderId)
-
 
169976
          return false;
-
 
169977
      }
-
 
169978
 
-
 
169979
      return true;
-
 
169980
    }
-
 
169981
 
-
 
169982
    @Override
-
 
169983
    public int hashCode() {
-
 
169984
      return 0;
-
 
169985
    }
-
 
169986
 
-
 
169987
    public int compareTo(getFlipkartOrder_args other) {
-
 
169988
      if (!getClass().equals(other.getClass())) {
-
 
169989
        return getClass().getName().compareTo(other.getClass().getName());
-
 
169990
      }
-
 
169991
 
-
 
169992
      int lastComparison = 0;
-
 
169993
      getFlipkartOrder_args typedOther = (getFlipkartOrder_args)other;
-
 
169994
 
-
 
169995
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
169996
      if (lastComparison != 0) {
-
 
169997
        return lastComparison;
-
 
169998
      }
-
 
169999
      if (isSetOrderId()) {
-
 
170000
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
170001
        if (lastComparison != 0) {
-
 
170002
          return lastComparison;
-
 
170003
        }
-
 
170004
      }
-
 
170005
      return 0;
-
 
170006
    }
-
 
170007
 
-
 
170008
    public _Fields fieldForId(int fieldId) {
-
 
170009
      return _Fields.findByThriftId(fieldId);
-
 
170010
    }
-
 
170011
 
-
 
170012
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
170013
      org.apache.thrift.protocol.TField field;
-
 
170014
      iprot.readStructBegin();
-
 
170015
      while (true)
-
 
170016
      {
-
 
170017
        field = iprot.readFieldBegin();
-
 
170018
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
170019
          break;
-
 
170020
        }
-
 
170021
        switch (field.id) {
-
 
170022
          case 1: // ORDER_ID
-
 
170023
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
170024
              this.orderId = iprot.readI64();
-
 
170025
              setOrderIdIsSet(true);
-
 
170026
            } else { 
-
 
170027
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
170028
            }
-
 
170029
            break;
-
 
170030
          default:
-
 
170031
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
170032
        }
-
 
170033
        iprot.readFieldEnd();
-
 
170034
      }
-
 
170035
      iprot.readStructEnd();
-
 
170036
      validate();
-
 
170037
    }
-
 
170038
 
-
 
170039
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
170040
      validate();
-
 
170041
 
-
 
170042
      oprot.writeStructBegin(STRUCT_DESC);
-
 
170043
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
170044
      oprot.writeI64(this.orderId);
-
 
170045
      oprot.writeFieldEnd();
-
 
170046
      oprot.writeFieldStop();
-
 
170047
      oprot.writeStructEnd();
-
 
170048
    }
-
 
170049
 
-
 
170050
    @Override
-
 
170051
    public String toString() {
-
 
170052
      StringBuilder sb = new StringBuilder("getFlipkartOrder_args(");
-
 
170053
      boolean first = true;
-
 
170054
 
-
 
170055
      sb.append("orderId:");
-
 
170056
      sb.append(this.orderId);
-
 
170057
      first = false;
-
 
170058
      sb.append(")");
-
 
170059
      return sb.toString();
-
 
170060
    }
-
 
170061
 
-
 
170062
    public void validate() throws org.apache.thrift.TException {
-
 
170063
      // check for required fields
-
 
170064
    }
-
 
170065
 
-
 
170066
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
170067
      try {
-
 
170068
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
170069
      } catch (org.apache.thrift.TException te) {
-
 
170070
        throw new java.io.IOException(te);
-
 
170071
      }
-
 
170072
    }
-
 
170073
 
-
 
170074
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
170075
      try {
-
 
170076
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
170077
        __isset_bit_vector = new BitSet(1);
-
 
170078
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
170079
      } catch (org.apache.thrift.TException te) {
-
 
170080
        throw new java.io.IOException(te);
-
 
170081
      }
-
 
170082
    }
-
 
170083
 
-
 
170084
  }
-
 
170085
 
-
 
170086
  public static class getFlipkartOrder_result implements org.apache.thrift.TBase<getFlipkartOrder_result, getFlipkartOrder_result._Fields>, java.io.Serializable, Cloneable   {
-
 
170087
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartOrder_result");
-
 
170088
 
-
 
170089
    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);
-
 
170090
 
-
 
170091
    private FlipkartOrder success; // required
-
 
170092
 
-
 
170093
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
170094
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
170095
      SUCCESS((short)0, "success");
-
 
170096
 
-
 
170097
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
170098
 
-
 
170099
      static {
-
 
170100
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
170101
          byName.put(field.getFieldName(), field);
-
 
170102
        }
-
 
170103
      }
-
 
170104
 
-
 
170105
      /**
-
 
170106
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
170107
       */
-
 
170108
      public static _Fields findByThriftId(int fieldId) {
-
 
170109
        switch(fieldId) {
-
 
170110
          case 0: // SUCCESS
-
 
170111
            return SUCCESS;
-
 
170112
          default:
-
 
170113
            return null;
-
 
170114
        }
-
 
170115
      }
-
 
170116
 
-
 
170117
      /**
-
 
170118
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
170119
       * if it is not found.
-
 
170120
       */
-
 
170121
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
170122
        _Fields fields = findByThriftId(fieldId);
-
 
170123
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
170124
        return fields;
-
 
170125
      }
-
 
170126
 
-
 
170127
      /**
-
 
170128
       * Find the _Fields constant that matches name, or null if its not found.
-
 
170129
       */
-
 
170130
      public static _Fields findByName(String name) {
-
 
170131
        return byName.get(name);
-
 
170132
      }
-
 
170133
 
-
 
170134
      private final short _thriftId;
-
 
170135
      private final String _fieldName;
-
 
170136
 
-
 
170137
      _Fields(short thriftId, String fieldName) {
-
 
170138
        _thriftId = thriftId;
-
 
170139
        _fieldName = fieldName;
-
 
170140
      }
-
 
170141
 
-
 
170142
      public short getThriftFieldId() {
-
 
170143
        return _thriftId;
-
 
170144
      }
-
 
170145
 
-
 
170146
      public String getFieldName() {
-
 
170147
        return _fieldName;
-
 
170148
      }
-
 
170149
    }
-
 
170150
 
-
 
170151
    // isset id assignments
-
 
170152
 
-
 
170153
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
170154
    static {
-
 
170155
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
170156
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
170157
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartOrder.class)));
-
 
170158
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
170159
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartOrder_result.class, metaDataMap);
-
 
170160
    }
-
 
170161
 
-
 
170162
    public getFlipkartOrder_result() {
-
 
170163
    }
-
 
170164
 
-
 
170165
    public getFlipkartOrder_result(
-
 
170166
      FlipkartOrder success)
-
 
170167
    {
-
 
170168
      this();
-
 
170169
      this.success = success;
-
 
170170
    }
-
 
170171
 
-
 
170172
    /**
-
 
170173
     * Performs a deep copy on <i>other</i>.
-
 
170174
     */
-
 
170175
    public getFlipkartOrder_result(getFlipkartOrder_result other) {
-
 
170176
      if (other.isSetSuccess()) {
-
 
170177
        this.success = new FlipkartOrder(other.success);
-
 
170178
      }
-
 
170179
    }
-
 
170180
 
-
 
170181
    public getFlipkartOrder_result deepCopy() {
-
 
170182
      return new getFlipkartOrder_result(this);
-
 
170183
    }
-
 
170184
 
-
 
170185
    @Override
-
 
170186
    public void clear() {
-
 
170187
      this.success = null;
-
 
170188
    }
-
 
170189
 
-
 
170190
    public FlipkartOrder getSuccess() {
-
 
170191
      return this.success;
-
 
170192
    }
-
 
170193
 
-
 
170194
    public void setSuccess(FlipkartOrder success) {
-
 
170195
      this.success = success;
-
 
170196
    }
-
 
170197
 
-
 
170198
    public void unsetSuccess() {
-
 
170199
      this.success = null;
-
 
170200
    }
-
 
170201
 
-
 
170202
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
170203
    public boolean isSetSuccess() {
-
 
170204
      return this.success != null;
-
 
170205
    }
-
 
170206
 
-
 
170207
    public void setSuccessIsSet(boolean value) {
-
 
170208
      if (!value) {
-
 
170209
        this.success = null;
-
 
170210
      }
-
 
170211
    }
-
 
170212
 
-
 
170213
    public void setFieldValue(_Fields field, Object value) {
-
 
170214
      switch (field) {
-
 
170215
      case SUCCESS:
-
 
170216
        if (value == null) {
-
 
170217
          unsetSuccess();
-
 
170218
        } else {
-
 
170219
          setSuccess((FlipkartOrder)value);
-
 
170220
        }
-
 
170221
        break;
-
 
170222
 
-
 
170223
      }
-
 
170224
    }
-
 
170225
 
-
 
170226
    public Object getFieldValue(_Fields field) {
-
 
170227
      switch (field) {
-
 
170228
      case SUCCESS:
-
 
170229
        return getSuccess();
-
 
170230
 
-
 
170231
      }
-
 
170232
      throw new IllegalStateException();
-
 
170233
    }
-
 
170234
 
-
 
170235
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
170236
    public boolean isSet(_Fields field) {
-
 
170237
      if (field == null) {
-
 
170238
        throw new IllegalArgumentException();
-
 
170239
      }
-
 
170240
 
-
 
170241
      switch (field) {
-
 
170242
      case SUCCESS:
-
 
170243
        return isSetSuccess();
-
 
170244
      }
-
 
170245
      throw new IllegalStateException();
-
 
170246
    }
-
 
170247
 
-
 
170248
    @Override
-
 
170249
    public boolean equals(Object that) {
-
 
170250
      if (that == null)
-
 
170251
        return false;
-
 
170252
      if (that instanceof getFlipkartOrder_result)
-
 
170253
        return this.equals((getFlipkartOrder_result)that);
-
 
170254
      return false;
-
 
170255
    }
-
 
170256
 
-
 
170257
    public boolean equals(getFlipkartOrder_result that) {
-
 
170258
      if (that == null)
-
 
170259
        return false;
-
 
170260
 
-
 
170261
      boolean this_present_success = true && this.isSetSuccess();
-
 
170262
      boolean that_present_success = true && that.isSetSuccess();
-
 
170263
      if (this_present_success || that_present_success) {
-
 
170264
        if (!(this_present_success && that_present_success))
-
 
170265
          return false;
-
 
170266
        if (!this.success.equals(that.success))
-
 
170267
          return false;
-
 
170268
      }
-
 
170269
 
-
 
170270
      return true;
-
 
170271
    }
-
 
170272
 
-
 
170273
    @Override
-
 
170274
    public int hashCode() {
-
 
170275
      return 0;
-
 
170276
    }
-
 
170277
 
-
 
170278
    public int compareTo(getFlipkartOrder_result other) {
-
 
170279
      if (!getClass().equals(other.getClass())) {
-
 
170280
        return getClass().getName().compareTo(other.getClass().getName());
-
 
170281
      }
-
 
170282
 
-
 
170283
      int lastComparison = 0;
-
 
170284
      getFlipkartOrder_result typedOther = (getFlipkartOrder_result)other;
-
 
170285
 
-
 
170286
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
170287
      if (lastComparison != 0) {
-
 
170288
        return lastComparison;
-
 
170289
      }
-
 
170290
      if (isSetSuccess()) {
-
 
170291
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
170292
        if (lastComparison != 0) {
-
 
170293
          return lastComparison;
-
 
170294
        }
-
 
170295
      }
-
 
170296
      return 0;
-
 
170297
    }
-
 
170298
 
-
 
170299
    public _Fields fieldForId(int fieldId) {
-
 
170300
      return _Fields.findByThriftId(fieldId);
-
 
170301
    }
-
 
170302
 
-
 
170303
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
170304
      org.apache.thrift.protocol.TField field;
-
 
170305
      iprot.readStructBegin();
-
 
170306
      while (true)
-
 
170307
      {
-
 
170308
        field = iprot.readFieldBegin();
-
 
170309
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
170310
          break;
-
 
170311
        }
-
 
170312
        switch (field.id) {
-
 
170313
          case 0: // SUCCESS
-
 
170314
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
170315
              this.success = new FlipkartOrder();
-
 
170316
              this.success.read(iprot);
-
 
170317
            } else { 
-
 
170318
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
170319
            }
-
 
170320
            break;
-
 
170321
          default:
-
 
170322
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
170323
        }
-
 
170324
        iprot.readFieldEnd();
-
 
170325
      }
-
 
170326
      iprot.readStructEnd();
-
 
170327
      validate();
-
 
170328
    }
-
 
170329
 
-
 
170330
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
170331
      oprot.writeStructBegin(STRUCT_DESC);
-
 
170332
 
-
 
170333
      if (this.isSetSuccess()) {
-
 
170334
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
170335
        this.success.write(oprot);
-
 
170336
        oprot.writeFieldEnd();
-
 
170337
      }
-
 
170338
      oprot.writeFieldStop();
-
 
170339
      oprot.writeStructEnd();
-
 
170340
    }
-
 
170341
 
-
 
170342
    @Override
-
 
170343
    public String toString() {
-
 
170344
      StringBuilder sb = new StringBuilder("getFlipkartOrder_result(");
-
 
170345
      boolean first = true;
-
 
170346
 
-
 
170347
      sb.append("success:");
-
 
170348
      if (this.success == null) {
-
 
170349
        sb.append("null");
-
 
170350
      } else {
-
 
170351
        sb.append(this.success);
-
 
170352
      }
-
 
170353
      first = false;
-
 
170354
      sb.append(")");
-
 
170355
      return sb.toString();
-
 
170356
    }
-
 
170357
 
-
 
170358
    public void validate() throws org.apache.thrift.TException {
169695
      // check for required fields
170359
      // check for required fields
169696
    }
170360
    }
169697
 
170361
 
169698
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
170362
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
169699
      try {
170363
      try {