Subversion Repositories SmartDukaan

Rev

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

Rev 9909 Rev 9945
Line 508... Line 508...
508
 
508
 
509
    public void updateItemHoldInventory(Map<Long,Long> itemHoldMap) throws org.apache.thrift.TException;
509
    public void updateItemHoldInventory(Map<Long,Long> itemHoldMap) throws org.apache.thrift.TException;
510
 
510
 
511
    public void updateNlcAtMarketplaces(long item_id, long vendor_id, double nlc) throws org.apache.thrift.TException;
511
    public void updateNlcAtMarketplaces(long item_id, long vendor_id, double nlc) throws org.apache.thrift.TException;
512
 
512
 
-
 
513
    public List<FlipkartItem> getAllFlipkartItems() throws org.apache.thrift.TException;
-
 
514
 
513
  }
515
  }
514
 
516
 
515
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
517
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
516
 
518
 
517
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
519
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 800... Line 802...
800
 
802
 
801
    public void updateItemHoldInventory(Map<Long,Long> itemHoldMap, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemHoldInventory_call> resultHandler) throws org.apache.thrift.TException;
803
    public void updateItemHoldInventory(Map<Long,Long> itemHoldMap, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemHoldInventory_call> resultHandler) throws org.apache.thrift.TException;
802
 
804
 
803
    public void updateNlcAtMarketplaces(long item_id, long vendor_id, double nlc, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateNlcAtMarketplaces_call> resultHandler) throws org.apache.thrift.TException;
805
    public void updateNlcAtMarketplaces(long item_id, long vendor_id, double nlc, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateNlcAtMarketplaces_call> resultHandler) throws org.apache.thrift.TException;
804
 
806
 
-
 
807
    public void getAllFlipkartItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFlipkartItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
808
 
805
  }
809
  }
806
 
810
 
807
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
811
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
808
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
812
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
809
      public Factory() {}
813
      public Factory() {}
Line 4235... Line 4239...
4235
      updateNlcAtMarketplaces_result result = new updateNlcAtMarketplaces_result();
4239
      updateNlcAtMarketplaces_result result = new updateNlcAtMarketplaces_result();
4236
      receiveBase(result, "updateNlcAtMarketplaces");
4240
      receiveBase(result, "updateNlcAtMarketplaces");
4237
      return;
4241
      return;
4238
    }
4242
    }
4239
 
4243
 
-
 
4244
    public List<FlipkartItem> getAllFlipkartItems() throws org.apache.thrift.TException
-
 
4245
    {
-
 
4246
      send_getAllFlipkartItems();
-
 
4247
      return recv_getAllFlipkartItems();
-
 
4248
    }
-
 
4249
 
-
 
4250
    public void send_getAllFlipkartItems() throws org.apache.thrift.TException
-
 
4251
    {
-
 
4252
      getAllFlipkartItems_args args = new getAllFlipkartItems_args();
-
 
4253
      sendBase("getAllFlipkartItems", args);
-
 
4254
    }
-
 
4255
 
-
 
4256
    public List<FlipkartItem> recv_getAllFlipkartItems() throws org.apache.thrift.TException
-
 
4257
    {
-
 
4258
      getAllFlipkartItems_result result = new getAllFlipkartItems_result();
-
 
4259
      receiveBase(result, "getAllFlipkartItems");
-
 
4260
      if (result.isSetSuccess()) {
-
 
4261
        return result.success;
-
 
4262
      }
-
 
4263
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFlipkartItems failed: unknown result");
-
 
4264
    }
-
 
4265
 
4240
  }
4266
  }
4241
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4267
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4242
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4268
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4243
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4269
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4244
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4270
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 8993... Line 9019...
8993
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9019
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8994
        (new Client(prot)).recv_updateNlcAtMarketplaces();
9020
        (new Client(prot)).recv_updateNlcAtMarketplaces();
8995
      }
9021
      }
8996
    }
9022
    }
8997
 
9023
 
-
 
9024
    public void getAllFlipkartItems(org.apache.thrift.async.AsyncMethodCallback<getAllFlipkartItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
9025
      checkReady();
-
 
9026
      getAllFlipkartItems_call method_call = new getAllFlipkartItems_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
9027
      this.___currentMethod = method_call;
-
 
9028
      ___manager.call(method_call);
-
 
9029
    }
-
 
9030
 
-
 
9031
    public static class getAllFlipkartItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9032
      public getAllFlipkartItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllFlipkartItems_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 {
-
 
9033
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9034
      }
-
 
9035
 
-
 
9036
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9037
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllFlipkartItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9038
        getAllFlipkartItems_args args = new getAllFlipkartItems_args();
-
 
9039
        args.write(prot);
-
 
9040
        prot.writeMessageEnd();
-
 
9041
      }
-
 
9042
 
-
 
9043
      public List<FlipkartItem> getResult() throws org.apache.thrift.TException {
-
 
9044
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9045
          throw new IllegalStateException("Method call not finished!");
-
 
9046
        }
-
 
9047
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9048
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9049
        return (new Client(prot)).recv_getAllFlipkartItems();
-
 
9050
      }
-
 
9051
    }
-
 
9052
 
8998
  }
9053
  }
8999
 
9054
 
9000
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9055
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9001
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9056
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9002
    public Processor(I iface) {
9057
    public Processor(I iface) {
Line 9150... Line 9205...
9150
      processMap.put("getCostingForMarketplace", new getCostingForMarketplace());
9205
      processMap.put("getCostingForMarketplace", new getCostingForMarketplace());
9151
      processMap.put("getMarketPlaceItemsForPriceUpdate", new getMarketPlaceItemsForPriceUpdate());
9206
      processMap.put("getMarketPlaceItemsForPriceUpdate", new getMarketPlaceItemsForPriceUpdate());
9152
      processMap.put("updateMarketPlacePriceUpdateStatus", new updateMarketPlacePriceUpdateStatus());
9207
      processMap.put("updateMarketPlacePriceUpdateStatus", new updateMarketPlacePriceUpdateStatus());
9153
      processMap.put("updateItemHoldInventory", new updateItemHoldInventory());
9208
      processMap.put("updateItemHoldInventory", new updateItemHoldInventory());
9154
      processMap.put("updateNlcAtMarketplaces", new updateNlcAtMarketplaces());
9209
      processMap.put("updateNlcAtMarketplaces", new updateNlcAtMarketplaces());
-
 
9210
      processMap.put("getAllFlipkartItems", new getAllFlipkartItems());
9155
      return processMap;
9211
      return processMap;
9156
    }
9212
    }
9157
 
9213
 
9158
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
9214
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
9159
      public addItem() {
9215
      public addItem() {
Line 11674... Line 11730...
11674
        iface.updateNlcAtMarketplaces(args.item_id, args.vendor_id, args.nlc);
11730
        iface.updateNlcAtMarketplaces(args.item_id, args.vendor_id, args.nlc);
11675
        return result;
11731
        return result;
11676
      }
11732
      }
11677
    }
11733
    }
11678
 
11734
 
-
 
11735
    private static class getAllFlipkartItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFlipkartItems_args> {
-
 
11736
      public getAllFlipkartItems() {
-
 
11737
        super("getAllFlipkartItems");
-
 
11738
      }
-
 
11739
 
-
 
11740
      protected getAllFlipkartItems_args getEmptyArgsInstance() {
-
 
11741
        return new getAllFlipkartItems_args();
-
 
11742
      }
-
 
11743
 
-
 
11744
      protected getAllFlipkartItems_result getResult(I iface, getAllFlipkartItems_args args) throws org.apache.thrift.TException {
-
 
11745
        getAllFlipkartItems_result result = new getAllFlipkartItems_result();
-
 
11746
        result.success = iface.getAllFlipkartItems();
-
 
11747
        return result;
-
 
11748
      }
-
 
11749
    }
-
 
11750
 
11679
  }
11751
  }
11680
 
11752
 
11681
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
11753
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
11682
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
11754
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
11683
 
11755
 
Line 83347... Line 83419...
83347
      }
83419
      }
83348
    }
83420
    }
83349
 
83421
 
83350
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
83422
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
83351
      try {
83423
      try {
83352
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
83353
        __isset_bit_vector = new BitSet(1);
-
 
83354
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
83424
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
83355
      } catch (org.apache.thrift.TException te) {
83425
      } catch (org.apache.thrift.TException te) {
83356
        throw new java.io.IOException(te);
83426
        throw new java.io.IOException(te);
83357
      }
83427
      }
83358
    }
83428
    }
Line 104176... Line 104246...
104176
      sb.append(")");
104246
      sb.append(")");
104177
      return sb.toString();
104247
      return sb.toString();
104178
    }
104248
    }
104179
 
104249
 
104180
    public void validate() throws org.apache.thrift.TException {
104250
    public void validate() throws org.apache.thrift.TException {
-
 
104251
      // check for required fields
-
 
104252
    }
-
 
104253
 
-
 
104254
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
104255
      try {
-
 
104256
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
104257
      } catch (org.apache.thrift.TException te) {
-
 
104258
        throw new java.io.IOException(te);
-
 
104259
      }
-
 
104260
    }
-
 
104261
 
-
 
104262
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
104263
      try {
-
 
104264
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
104265
      } catch (org.apache.thrift.TException te) {
-
 
104266
        throw new java.io.IOException(te);
-
 
104267
      }
-
 
104268
    }
-
 
104269
 
-
 
104270
  }
-
 
104271
 
-
 
104272
  public static class getAllFlipkartItems_args implements org.apache.thrift.TBase<getAllFlipkartItems_args, getAllFlipkartItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
104273
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFlipkartItems_args");
-
 
104274
 
-
 
104275
 
-
 
104276
 
-
 
104277
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
104278
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
104279
;
-
 
104280
 
-
 
104281
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
104282
 
-
 
104283
      static {
-
 
104284
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
104285
          byName.put(field.getFieldName(), field);
-
 
104286
        }
-
 
104287
      }
-
 
104288
 
-
 
104289
      /**
-
 
104290
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
104291
       */
-
 
104292
      public static _Fields findByThriftId(int fieldId) {
-
 
104293
        switch(fieldId) {
-
 
104294
          default:
-
 
104295
            return null;
-
 
104296
        }
-
 
104297
      }
-
 
104298
 
-
 
104299
      /**
-
 
104300
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
104301
       * if it is not found.
-
 
104302
       */
-
 
104303
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
104304
        _Fields fields = findByThriftId(fieldId);
-
 
104305
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
104306
        return fields;
-
 
104307
      }
-
 
104308
 
-
 
104309
      /**
-
 
104310
       * Find the _Fields constant that matches name, or null if its not found.
-
 
104311
       */
-
 
104312
      public static _Fields findByName(String name) {
-
 
104313
        return byName.get(name);
-
 
104314
      }
-
 
104315
 
-
 
104316
      private final short _thriftId;
-
 
104317
      private final String _fieldName;
-
 
104318
 
-
 
104319
      _Fields(short thriftId, String fieldName) {
-
 
104320
        _thriftId = thriftId;
-
 
104321
        _fieldName = fieldName;
-
 
104322
      }
-
 
104323
 
-
 
104324
      public short getThriftFieldId() {
-
 
104325
        return _thriftId;
-
 
104326
      }
-
 
104327
 
-
 
104328
      public String getFieldName() {
-
 
104329
        return _fieldName;
-
 
104330
      }
-
 
104331
    }
-
 
104332
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
104333
    static {
-
 
104334
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
104335
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
104336
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFlipkartItems_args.class, metaDataMap);
-
 
104337
    }
-
 
104338
 
-
 
104339
    public getAllFlipkartItems_args() {
-
 
104340
    }
-
 
104341
 
-
 
104342
    /**
-
 
104343
     * Performs a deep copy on <i>other</i>.
-
 
104344
     */
-
 
104345
    public getAllFlipkartItems_args(getAllFlipkartItems_args other) {
-
 
104346
    }
-
 
104347
 
-
 
104348
    public getAllFlipkartItems_args deepCopy() {
-
 
104349
      return new getAllFlipkartItems_args(this);
-
 
104350
    }
-
 
104351
 
-
 
104352
    @Override
-
 
104353
    public void clear() {
-
 
104354
    }
-
 
104355
 
-
 
104356
    public void setFieldValue(_Fields field, Object value) {
-
 
104357
      switch (field) {
-
 
104358
      }
-
 
104359
    }
-
 
104360
 
-
 
104361
    public Object getFieldValue(_Fields field) {
-
 
104362
      switch (field) {
-
 
104363
      }
-
 
104364
      throw new IllegalStateException();
-
 
104365
    }
-
 
104366
 
-
 
104367
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
104368
    public boolean isSet(_Fields field) {
-
 
104369
      if (field == null) {
-
 
104370
        throw new IllegalArgumentException();
-
 
104371
      }
-
 
104372
 
-
 
104373
      switch (field) {
-
 
104374
      }
-
 
104375
      throw new IllegalStateException();
-
 
104376
    }
-
 
104377
 
-
 
104378
    @Override
-
 
104379
    public boolean equals(Object that) {
-
 
104380
      if (that == null)
-
 
104381
        return false;
-
 
104382
      if (that instanceof getAllFlipkartItems_args)
-
 
104383
        return this.equals((getAllFlipkartItems_args)that);
-
 
104384
      return false;
-
 
104385
    }
-
 
104386
 
-
 
104387
    public boolean equals(getAllFlipkartItems_args that) {
-
 
104388
      if (that == null)
-
 
104389
        return false;
-
 
104390
 
-
 
104391
      return true;
-
 
104392
    }
-
 
104393
 
-
 
104394
    @Override
-
 
104395
    public int hashCode() {
-
 
104396
      return 0;
-
 
104397
    }
-
 
104398
 
-
 
104399
    public int compareTo(getAllFlipkartItems_args other) {
-
 
104400
      if (!getClass().equals(other.getClass())) {
-
 
104401
        return getClass().getName().compareTo(other.getClass().getName());
-
 
104402
      }
-
 
104403
 
-
 
104404
      int lastComparison = 0;
-
 
104405
      getAllFlipkartItems_args typedOther = (getAllFlipkartItems_args)other;
-
 
104406
 
-
 
104407
      return 0;
-
 
104408
    }
-
 
104409
 
-
 
104410
    public _Fields fieldForId(int fieldId) {
-
 
104411
      return _Fields.findByThriftId(fieldId);
-
 
104412
    }
-
 
104413
 
-
 
104414
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
104415
      org.apache.thrift.protocol.TField field;
-
 
104416
      iprot.readStructBegin();
-
 
104417
      while (true)
-
 
104418
      {
-
 
104419
        field = iprot.readFieldBegin();
-
 
104420
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
104421
          break;
-
 
104422
        }
-
 
104423
        switch (field.id) {
-
 
104424
          default:
-
 
104425
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
104426
        }
-
 
104427
        iprot.readFieldEnd();
-
 
104428
      }
-
 
104429
      iprot.readStructEnd();
-
 
104430
      validate();
-
 
104431
    }
-
 
104432
 
-
 
104433
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
104434
      validate();
-
 
104435
 
-
 
104436
      oprot.writeStructBegin(STRUCT_DESC);
-
 
104437
      oprot.writeFieldStop();
-
 
104438
      oprot.writeStructEnd();
-
 
104439
    }
-
 
104440
 
-
 
104441
    @Override
-
 
104442
    public String toString() {
-
 
104443
      StringBuilder sb = new StringBuilder("getAllFlipkartItems_args(");
-
 
104444
      boolean first = true;
-
 
104445
 
-
 
104446
      sb.append(")");
-
 
104447
      return sb.toString();
-
 
104448
    }
-
 
104449
 
-
 
104450
    public void validate() throws org.apache.thrift.TException {
-
 
104451
      // check for required fields
-
 
104452
    }
-
 
104453
 
-
 
104454
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
104455
      try {
-
 
104456
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
104457
      } catch (org.apache.thrift.TException te) {
-
 
104458
        throw new java.io.IOException(te);
-
 
104459
      }
-
 
104460
    }
-
 
104461
 
-
 
104462
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
104463
      try {
-
 
104464
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
104465
      } catch (org.apache.thrift.TException te) {
-
 
104466
        throw new java.io.IOException(te);
-
 
104467
      }
-
 
104468
    }
-
 
104469
 
-
 
104470
  }
-
 
104471
 
-
 
104472
  public static class getAllFlipkartItems_result implements org.apache.thrift.TBase<getAllFlipkartItems_result, getAllFlipkartItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
104473
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFlipkartItems_result");
-
 
104474
 
-
 
104475
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
104476
 
-
 
104477
    private List<FlipkartItem> success; // required
-
 
104478
 
-
 
104479
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
104480
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
104481
      SUCCESS((short)0, "success");
-
 
104482
 
-
 
104483
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
104484
 
-
 
104485
      static {
-
 
104486
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
104487
          byName.put(field.getFieldName(), field);
-
 
104488
        }
-
 
104489
      }
-
 
104490
 
-
 
104491
      /**
-
 
104492
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
104493
       */
-
 
104494
      public static _Fields findByThriftId(int fieldId) {
-
 
104495
        switch(fieldId) {
-
 
104496
          case 0: // SUCCESS
-
 
104497
            return SUCCESS;
-
 
104498
          default:
-
 
104499
            return null;
-
 
104500
        }
-
 
104501
      }
-
 
104502
 
-
 
104503
      /**
-
 
104504
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
104505
       * if it is not found.
-
 
104506
       */
-
 
104507
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
104508
        _Fields fields = findByThriftId(fieldId);
-
 
104509
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
104510
        return fields;
-
 
104511
      }
-
 
104512
 
-
 
104513
      /**
-
 
104514
       * Find the _Fields constant that matches name, or null if its not found.
-
 
104515
       */
-
 
104516
      public static _Fields findByName(String name) {
-
 
104517
        return byName.get(name);
-
 
104518
      }
-
 
104519
 
-
 
104520
      private final short _thriftId;
-
 
104521
      private final String _fieldName;
-
 
104522
 
-
 
104523
      _Fields(short thriftId, String fieldName) {
-
 
104524
        _thriftId = thriftId;
-
 
104525
        _fieldName = fieldName;
-
 
104526
      }
-
 
104527
 
-
 
104528
      public short getThriftFieldId() {
-
 
104529
        return _thriftId;
-
 
104530
      }
-
 
104531
 
-
 
104532
      public String getFieldName() {
-
 
104533
        return _fieldName;
-
 
104534
      }
-
 
104535
    }
-
 
104536
 
-
 
104537
    // isset id assignments
-
 
104538
 
-
 
104539
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
104540
    static {
-
 
104541
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
104542
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
104543
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
104544
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartItem.class))));
-
 
104545
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
104546
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFlipkartItems_result.class, metaDataMap);
-
 
104547
    }
-
 
104548
 
-
 
104549
    public getAllFlipkartItems_result() {
-
 
104550
    }
-
 
104551
 
-
 
104552
    public getAllFlipkartItems_result(
-
 
104553
      List<FlipkartItem> success)
-
 
104554
    {
-
 
104555
      this();
-
 
104556
      this.success = success;
-
 
104557
    }
-
 
104558
 
-
 
104559
    /**
-
 
104560
     * Performs a deep copy on <i>other</i>.
-
 
104561
     */
-
 
104562
    public getAllFlipkartItems_result(getAllFlipkartItems_result other) {
-
 
104563
      if (other.isSetSuccess()) {
-
 
104564
        List<FlipkartItem> __this__success = new ArrayList<FlipkartItem>();
-
 
104565
        for (FlipkartItem other_element : other.success) {
-
 
104566
          __this__success.add(new FlipkartItem(other_element));
-
 
104567
        }
-
 
104568
        this.success = __this__success;
-
 
104569
      }
-
 
104570
    }
-
 
104571
 
-
 
104572
    public getAllFlipkartItems_result deepCopy() {
-
 
104573
      return new getAllFlipkartItems_result(this);
-
 
104574
    }
-
 
104575
 
-
 
104576
    @Override
-
 
104577
    public void clear() {
-
 
104578
      this.success = null;
-
 
104579
    }
-
 
104580
 
-
 
104581
    public int getSuccessSize() {
-
 
104582
      return (this.success == null) ? 0 : this.success.size();
-
 
104583
    }
-
 
104584
 
-
 
104585
    public java.util.Iterator<FlipkartItem> getSuccessIterator() {
-
 
104586
      return (this.success == null) ? null : this.success.iterator();
-
 
104587
    }
-
 
104588
 
-
 
104589
    public void addToSuccess(FlipkartItem elem) {
-
 
104590
      if (this.success == null) {
-
 
104591
        this.success = new ArrayList<FlipkartItem>();
-
 
104592
      }
-
 
104593
      this.success.add(elem);
-
 
104594
    }
-
 
104595
 
-
 
104596
    public List<FlipkartItem> getSuccess() {
-
 
104597
      return this.success;
-
 
104598
    }
-
 
104599
 
-
 
104600
    public void setSuccess(List<FlipkartItem> success) {
-
 
104601
      this.success = success;
-
 
104602
    }
-
 
104603
 
-
 
104604
    public void unsetSuccess() {
-
 
104605
      this.success = null;
-
 
104606
    }
-
 
104607
 
-
 
104608
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
104609
    public boolean isSetSuccess() {
-
 
104610
      return this.success != null;
-
 
104611
    }
-
 
104612
 
-
 
104613
    public void setSuccessIsSet(boolean value) {
-
 
104614
      if (!value) {
-
 
104615
        this.success = null;
-
 
104616
      }
-
 
104617
    }
-
 
104618
 
-
 
104619
    public void setFieldValue(_Fields field, Object value) {
-
 
104620
      switch (field) {
-
 
104621
      case SUCCESS:
-
 
104622
        if (value == null) {
-
 
104623
          unsetSuccess();
-
 
104624
        } else {
-
 
104625
          setSuccess((List<FlipkartItem>)value);
-
 
104626
        }
-
 
104627
        break;
-
 
104628
 
-
 
104629
      }
-
 
104630
    }
-
 
104631
 
-
 
104632
    public Object getFieldValue(_Fields field) {
-
 
104633
      switch (field) {
-
 
104634
      case SUCCESS:
-
 
104635
        return getSuccess();
-
 
104636
 
-
 
104637
      }
-
 
104638
      throw new IllegalStateException();
-
 
104639
    }
-
 
104640
 
-
 
104641
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
104642
    public boolean isSet(_Fields field) {
-
 
104643
      if (field == null) {
-
 
104644
        throw new IllegalArgumentException();
-
 
104645
      }
-
 
104646
 
-
 
104647
      switch (field) {
-
 
104648
      case SUCCESS:
-
 
104649
        return isSetSuccess();
-
 
104650
      }
-
 
104651
      throw new IllegalStateException();
-
 
104652
    }
-
 
104653
 
-
 
104654
    @Override
-
 
104655
    public boolean equals(Object that) {
-
 
104656
      if (that == null)
-
 
104657
        return false;
-
 
104658
      if (that instanceof getAllFlipkartItems_result)
-
 
104659
        return this.equals((getAllFlipkartItems_result)that);
-
 
104660
      return false;
-
 
104661
    }
-
 
104662
 
-
 
104663
    public boolean equals(getAllFlipkartItems_result that) {
-
 
104664
      if (that == null)
-
 
104665
        return false;
-
 
104666
 
-
 
104667
      boolean this_present_success = true && this.isSetSuccess();
-
 
104668
      boolean that_present_success = true && that.isSetSuccess();
-
 
104669
      if (this_present_success || that_present_success) {
-
 
104670
        if (!(this_present_success && that_present_success))
-
 
104671
          return false;
-
 
104672
        if (!this.success.equals(that.success))
-
 
104673
          return false;
-
 
104674
      }
-
 
104675
 
-
 
104676
      return true;
-
 
104677
    }
-
 
104678
 
-
 
104679
    @Override
-
 
104680
    public int hashCode() {
-
 
104681
      return 0;
-
 
104682
    }
-
 
104683
 
-
 
104684
    public int compareTo(getAllFlipkartItems_result other) {
-
 
104685
      if (!getClass().equals(other.getClass())) {
-
 
104686
        return getClass().getName().compareTo(other.getClass().getName());
-
 
104687
      }
-
 
104688
 
-
 
104689
      int lastComparison = 0;
-
 
104690
      getAllFlipkartItems_result typedOther = (getAllFlipkartItems_result)other;
-
 
104691
 
-
 
104692
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
104693
      if (lastComparison != 0) {
-
 
104694
        return lastComparison;
-
 
104695
      }
-
 
104696
      if (isSetSuccess()) {
-
 
104697
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
104698
        if (lastComparison != 0) {
-
 
104699
          return lastComparison;
-
 
104700
        }
-
 
104701
      }
-
 
104702
      return 0;
-
 
104703
    }
-
 
104704
 
-
 
104705
    public _Fields fieldForId(int fieldId) {
-
 
104706
      return _Fields.findByThriftId(fieldId);
-
 
104707
    }
-
 
104708
 
-
 
104709
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
104710
      org.apache.thrift.protocol.TField field;
-
 
104711
      iprot.readStructBegin();
-
 
104712
      while (true)
-
 
104713
      {
-
 
104714
        field = iprot.readFieldBegin();
-
 
104715
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
104716
          break;
-
 
104717
        }
-
 
104718
        switch (field.id) {
-
 
104719
          case 0: // SUCCESS
-
 
104720
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
104721
              {
-
 
104722
                org.apache.thrift.protocol.TList _list329 = iprot.readListBegin();
-
 
104723
                this.success = new ArrayList<FlipkartItem>(_list329.size);
-
 
104724
                for (int _i330 = 0; _i330 < _list329.size; ++_i330)
-
 
104725
                {
-
 
104726
                  FlipkartItem _elem331; // required
-
 
104727
                  _elem331 = new FlipkartItem();
-
 
104728
                  _elem331.read(iprot);
-
 
104729
                  this.success.add(_elem331);
-
 
104730
                }
-
 
104731
                iprot.readListEnd();
-
 
104732
              }
-
 
104733
            } else { 
-
 
104734
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
104735
            }
-
 
104736
            break;
-
 
104737
          default:
-
 
104738
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
104739
        }
-
 
104740
        iprot.readFieldEnd();
-
 
104741
      }
-
 
104742
      iprot.readStructEnd();
-
 
104743
      validate();
-
 
104744
    }
-
 
104745
 
-
 
104746
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
104747
      oprot.writeStructBegin(STRUCT_DESC);
-
 
104748
 
-
 
104749
      if (this.isSetSuccess()) {
-
 
104750
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
104751
        {
-
 
104752
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
104753
          for (FlipkartItem _iter332 : this.success)
-
 
104754
          {
-
 
104755
            _iter332.write(oprot);
-
 
104756
          }
-
 
104757
          oprot.writeListEnd();
-
 
104758
        }
-
 
104759
        oprot.writeFieldEnd();
-
 
104760
      }
-
 
104761
      oprot.writeFieldStop();
-
 
104762
      oprot.writeStructEnd();
-
 
104763
    }
-
 
104764
 
-
 
104765
    @Override
-
 
104766
    public String toString() {
-
 
104767
      StringBuilder sb = new StringBuilder("getAllFlipkartItems_result(");
-
 
104768
      boolean first = true;
-
 
104769
 
-
 
104770
      sb.append("success:");
-
 
104771
      if (this.success == null) {
-
 
104772
        sb.append("null");
-
 
104773
      } else {
-
 
104774
        sb.append(this.success);
-
 
104775
      }
-
 
104776
      first = false;
-
 
104777
      sb.append(")");
-
 
104778
      return sb.toString();
-
 
104779
    }
-
 
104780
 
-
 
104781
    public void validate() throws org.apache.thrift.TException {
104181
      // check for required fields
104782
      // check for required fields
104182
    }
104783
    }
104183
 
104784
 
104184
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
104785
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
104185
      try {
104786
      try {