Subversion Repositories SmartDukaan

Rev

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

Rev 9945 Rev 10097
Line 178... Line 178...
178
    /**
178
    /**
179
     * Banner Related
179
     * Banner Related
180
     * 
180
     * 
181
     * @param bannerCongregate
181
     * @param bannerCongregate
182
     */
182
     */
183
    public void addBanner(BannerCongregate bannerCongregate) throws org.apache.thrift.TException;
183
    public boolean addBanner(BannerCongregate bannerCongregate) throws org.apache.thrift.TException;
184
 
184
 
185
    public boolean updateBanner(Banner banner) throws org.apache.thrift.TException;
185
    public boolean updateBanner(Banner banner) throws org.apache.thrift.TException;
186
 
186
 
187
    public List<Banner> getAllBanners() throws org.apache.thrift.TException;
187
    public List<Banner> getAllBanners() throws org.apache.thrift.TException;
188
 
188
 
Line 510... Line 510...
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;
513
    public List<FlipkartItem> getAllFlipkartItems() throws org.apache.thrift.TException;
514
 
514
 
-
 
515
    public boolean addOrUpdateFlipkartItem(FlipkartItem flipkartitem) throws org.apache.thrift.TException;
-
 
516
 
-
 
517
    public FlipkartItem getFlipkartItem(long item_id) throws org.apache.thrift.TException;
-
 
518
 
-
 
519
    public FlipkartItemDetails getFlipkartItemDetails(long item_id) throws org.apache.thrift.TException;
-
 
520
 
-
 
521
    public List<FlipkartItemDetails> getFlipkartItems(long offset, long limit) throws org.apache.thrift.TException;
-
 
522
 
-
 
523
    public List<FlipkartItemDetails> searchFlipkartItems(List<String> searchTerm, long offset, long limit) throws org.apache.thrift.TException;
-
 
524
 
-
 
525
    public long getCountForFlipkartItems() throws org.apache.thrift.TException;
-
 
526
 
-
 
527
    public long getFlipkartSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException;
-
 
528
 
-
 
529
    public List<FlipkartItemDetails> getAllFkItems() throws org.apache.thrift.TException;
-
 
530
 
515
  }
531
  }
516
 
532
 
517
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
533
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
518
 
534
 
519
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
535
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 804... Line 820...
804
 
820
 
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;
821
    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;
806
 
822
 
807
    public void getAllFlipkartItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFlipkartItems_call> resultHandler) throws org.apache.thrift.TException;
823
    public void getAllFlipkartItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFlipkartItems_call> resultHandler) throws org.apache.thrift.TException;
808
 
824
 
-
 
825
    public void addOrUpdateFlipkartItem(FlipkartItem flipkartitem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateFlipkartItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
826
 
-
 
827
    public void getFlipkartItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
828
 
-
 
829
    public void getFlipkartItemDetails(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartItemDetails_call> resultHandler) throws org.apache.thrift.TException;
-
 
830
 
-
 
831
    public void getFlipkartItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
832
 
-
 
833
    public void searchFlipkartItems(List<String> searchTerm, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.searchFlipkartItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
834
 
-
 
835
    public void getCountForFlipkartItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCountForFlipkartItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
836
 
-
 
837
    public void getFlipkartSearchResultCount(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartSearchResultCount_call> resultHandler) throws org.apache.thrift.TException;
-
 
838
 
-
 
839
    public void getAllFkItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFkItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
840
 
809
  }
841
  }
810
 
842
 
811
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
843
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
812
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
844
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
813
      public Factory() {}
845
      public Factory() {}
Line 1863... Line 1895...
1863
        return result.success;
1895
        return result.success;
1864
      }
1896
      }
1865
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
1897
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
1866
    }
1898
    }
1867
 
1899
 
1868
    public void addBanner(BannerCongregate bannerCongregate) throws org.apache.thrift.TException
1900
    public boolean addBanner(BannerCongregate bannerCongregate) throws org.apache.thrift.TException
1869
    {
1901
    {
1870
      send_addBanner(bannerCongregate);
1902
      send_addBanner(bannerCongregate);
1871
      recv_addBanner();
1903
      return recv_addBanner();
1872
    }
1904
    }
1873
 
1905
 
1874
    public void send_addBanner(BannerCongregate bannerCongregate) throws org.apache.thrift.TException
1906
    public void send_addBanner(BannerCongregate bannerCongregate) throws org.apache.thrift.TException
1875
    {
1907
    {
1876
      addBanner_args args = new addBanner_args();
1908
      addBanner_args args = new addBanner_args();
1877
      args.setBannerCongregate(bannerCongregate);
1909
      args.setBannerCongregate(bannerCongregate);
1878
      sendBase("addBanner", args);
1910
      sendBase("addBanner", args);
1879
    }
1911
    }
1880
 
1912
 
1881
    public void recv_addBanner() throws org.apache.thrift.TException
1913
    public boolean recv_addBanner() throws org.apache.thrift.TException
1882
    {
1914
    {
1883
      addBanner_result result = new addBanner_result();
1915
      addBanner_result result = new addBanner_result();
1884
      receiveBase(result, "addBanner");
1916
      receiveBase(result, "addBanner");
-
 
1917
      if (result.isSetSuccess()) {
-
 
1918
        return result.success;
1885
      return;
1919
      }
-
 
1920
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");
1886
    }
1921
    }
1887
 
1922
 
1888
    public boolean updateBanner(Banner banner) throws org.apache.thrift.TException
1923
    public boolean updateBanner(Banner banner) throws org.apache.thrift.TException
1889
    {
1924
    {
1890
      send_updateBanner(banner);
1925
      send_updateBanner(banner);
Line 4261... Line 4296...
4261
        return result.success;
4296
        return result.success;
4262
      }
4297
      }
4263
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFlipkartItems failed: unknown result");
4298
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFlipkartItems failed: unknown result");
4264
    }
4299
    }
4265
 
4300
 
-
 
4301
    public boolean addOrUpdateFlipkartItem(FlipkartItem flipkartitem) throws org.apache.thrift.TException
-
 
4302
    {
-
 
4303
      send_addOrUpdateFlipkartItem(flipkartitem);
-
 
4304
      return recv_addOrUpdateFlipkartItem();
-
 
4305
    }
-
 
4306
 
-
 
4307
    public void send_addOrUpdateFlipkartItem(FlipkartItem flipkartitem) throws org.apache.thrift.TException
-
 
4308
    {
-
 
4309
      addOrUpdateFlipkartItem_args args = new addOrUpdateFlipkartItem_args();
-
 
4310
      args.setFlipkartitem(flipkartitem);
-
 
4311
      sendBase("addOrUpdateFlipkartItem", args);
-
 
4312
    }
-
 
4313
 
-
 
4314
    public boolean recv_addOrUpdateFlipkartItem() throws org.apache.thrift.TException
-
 
4315
    {
-
 
4316
      addOrUpdateFlipkartItem_result result = new addOrUpdateFlipkartItem_result();
-
 
4317
      receiveBase(result, "addOrUpdateFlipkartItem");
-
 
4318
      if (result.isSetSuccess()) {
-
 
4319
        return result.success;
-
 
4320
      }
-
 
4321
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addOrUpdateFlipkartItem failed: unknown result");
-
 
4322
    }
-
 
4323
 
-
 
4324
    public FlipkartItem getFlipkartItem(long item_id) throws org.apache.thrift.TException
-
 
4325
    {
-
 
4326
      send_getFlipkartItem(item_id);
-
 
4327
      return recv_getFlipkartItem();
-
 
4328
    }
-
 
4329
 
-
 
4330
    public void send_getFlipkartItem(long item_id) throws org.apache.thrift.TException
-
 
4331
    {
-
 
4332
      getFlipkartItem_args args = new getFlipkartItem_args();
-
 
4333
      args.setItem_id(item_id);
-
 
4334
      sendBase("getFlipkartItem", args);
-
 
4335
    }
-
 
4336
 
-
 
4337
    public FlipkartItem recv_getFlipkartItem() throws org.apache.thrift.TException
-
 
4338
    {
-
 
4339
      getFlipkartItem_result result = new getFlipkartItem_result();
-
 
4340
      receiveBase(result, "getFlipkartItem");
-
 
4341
      if (result.isSetSuccess()) {
-
 
4342
        return result.success;
-
 
4343
      }
-
 
4344
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartItem failed: unknown result");
-
 
4345
    }
-
 
4346
 
-
 
4347
    public FlipkartItemDetails getFlipkartItemDetails(long item_id) throws org.apache.thrift.TException
-
 
4348
    {
-
 
4349
      send_getFlipkartItemDetails(item_id);
-
 
4350
      return recv_getFlipkartItemDetails();
-
 
4351
    }
-
 
4352
 
-
 
4353
    public void send_getFlipkartItemDetails(long item_id) throws org.apache.thrift.TException
-
 
4354
    {
-
 
4355
      getFlipkartItemDetails_args args = new getFlipkartItemDetails_args();
-
 
4356
      args.setItem_id(item_id);
-
 
4357
      sendBase("getFlipkartItemDetails", args);
-
 
4358
    }
-
 
4359
 
-
 
4360
    public FlipkartItemDetails recv_getFlipkartItemDetails() throws org.apache.thrift.TException
-
 
4361
    {
-
 
4362
      getFlipkartItemDetails_result result = new getFlipkartItemDetails_result();
-
 
4363
      receiveBase(result, "getFlipkartItemDetails");
-
 
4364
      if (result.isSetSuccess()) {
-
 
4365
        return result.success;
-
 
4366
      }
-
 
4367
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartItemDetails failed: unknown result");
-
 
4368
    }
-
 
4369
 
-
 
4370
    public List<FlipkartItemDetails> getFlipkartItems(long offset, long limit) throws org.apache.thrift.TException
-
 
4371
    {
-
 
4372
      send_getFlipkartItems(offset, limit);
-
 
4373
      return recv_getFlipkartItems();
-
 
4374
    }
-
 
4375
 
-
 
4376
    public void send_getFlipkartItems(long offset, long limit) throws org.apache.thrift.TException
-
 
4377
    {
-
 
4378
      getFlipkartItems_args args = new getFlipkartItems_args();
-
 
4379
      args.setOffset(offset);
-
 
4380
      args.setLimit(limit);
-
 
4381
      sendBase("getFlipkartItems", args);
-
 
4382
    }
-
 
4383
 
-
 
4384
    public List<FlipkartItemDetails> recv_getFlipkartItems() throws org.apache.thrift.TException
-
 
4385
    {
-
 
4386
      getFlipkartItems_result result = new getFlipkartItems_result();
-
 
4387
      receiveBase(result, "getFlipkartItems");
-
 
4388
      if (result.isSetSuccess()) {
-
 
4389
        return result.success;
-
 
4390
      }
-
 
4391
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartItems failed: unknown result");
-
 
4392
    }
-
 
4393
 
-
 
4394
    public List<FlipkartItemDetails> searchFlipkartItems(List<String> searchTerm, long offset, long limit) throws org.apache.thrift.TException
-
 
4395
    {
-
 
4396
      send_searchFlipkartItems(searchTerm, offset, limit);
-
 
4397
      return recv_searchFlipkartItems();
-
 
4398
    }
-
 
4399
 
-
 
4400
    public void send_searchFlipkartItems(List<String> searchTerm, long offset, long limit) throws org.apache.thrift.TException
-
 
4401
    {
-
 
4402
      searchFlipkartItems_args args = new searchFlipkartItems_args();
-
 
4403
      args.setSearchTerm(searchTerm);
-
 
4404
      args.setOffset(offset);
-
 
4405
      args.setLimit(limit);
-
 
4406
      sendBase("searchFlipkartItems", args);
-
 
4407
    }
-
 
4408
 
-
 
4409
    public List<FlipkartItemDetails> recv_searchFlipkartItems() throws org.apache.thrift.TException
-
 
4410
    {
-
 
4411
      searchFlipkartItems_result result = new searchFlipkartItems_result();
-
 
4412
      receiveBase(result, "searchFlipkartItems");
-
 
4413
      if (result.isSetSuccess()) {
-
 
4414
        return result.success;
-
 
4415
      }
-
 
4416
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "searchFlipkartItems failed: unknown result");
-
 
4417
    }
-
 
4418
 
-
 
4419
    public long getCountForFlipkartItems() throws org.apache.thrift.TException
-
 
4420
    {
-
 
4421
      send_getCountForFlipkartItems();
-
 
4422
      return recv_getCountForFlipkartItems();
-
 
4423
    }
-
 
4424
 
-
 
4425
    public void send_getCountForFlipkartItems() throws org.apache.thrift.TException
-
 
4426
    {
-
 
4427
      getCountForFlipkartItems_args args = new getCountForFlipkartItems_args();
-
 
4428
      sendBase("getCountForFlipkartItems", args);
-
 
4429
    }
-
 
4430
 
-
 
4431
    public long recv_getCountForFlipkartItems() throws org.apache.thrift.TException
-
 
4432
    {
-
 
4433
      getCountForFlipkartItems_result result = new getCountForFlipkartItems_result();
-
 
4434
      receiveBase(result, "getCountForFlipkartItems");
-
 
4435
      if (result.isSetSuccess()) {
-
 
4436
        return result.success;
-
 
4437
      }
-
 
4438
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCountForFlipkartItems failed: unknown result");
-
 
4439
    }
-
 
4440
 
-
 
4441
    public long getFlipkartSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException
-
 
4442
    {
-
 
4443
      send_getFlipkartSearchResultCount(searchTerm);
-
 
4444
      return recv_getFlipkartSearchResultCount();
-
 
4445
    }
-
 
4446
 
-
 
4447
    public void send_getFlipkartSearchResultCount(List<String> searchTerm) throws org.apache.thrift.TException
-
 
4448
    {
-
 
4449
      getFlipkartSearchResultCount_args args = new getFlipkartSearchResultCount_args();
-
 
4450
      args.setSearchTerm(searchTerm);
-
 
4451
      sendBase("getFlipkartSearchResultCount", args);
-
 
4452
    }
-
 
4453
 
-
 
4454
    public long recv_getFlipkartSearchResultCount() throws org.apache.thrift.TException
-
 
4455
    {
-
 
4456
      getFlipkartSearchResultCount_result result = new getFlipkartSearchResultCount_result();
-
 
4457
      receiveBase(result, "getFlipkartSearchResultCount");
-
 
4458
      if (result.isSetSuccess()) {
-
 
4459
        return result.success;
-
 
4460
      }
-
 
4461
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartSearchResultCount failed: unknown result");
-
 
4462
    }
-
 
4463
 
-
 
4464
    public List<FlipkartItemDetails> getAllFkItems() throws org.apache.thrift.TException
-
 
4465
    {
-
 
4466
      send_getAllFkItems();
-
 
4467
      return recv_getAllFkItems();
-
 
4468
    }
-
 
4469
 
-
 
4470
    public void send_getAllFkItems() throws org.apache.thrift.TException
-
 
4471
    {
-
 
4472
      getAllFkItems_args args = new getAllFkItems_args();
-
 
4473
      sendBase("getAllFkItems", args);
-
 
4474
    }
-
 
4475
 
-
 
4476
    public List<FlipkartItemDetails> recv_getAllFkItems() throws org.apache.thrift.TException
-
 
4477
    {
-
 
4478
      getAllFkItems_result result = new getAllFkItems_result();
-
 
4479
      receiveBase(result, "getAllFkItems");
-
 
4480
      if (result.isSetSuccess()) {
-
 
4481
        return result.success;
-
 
4482
      }
-
 
4483
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFkItems failed: unknown result");
-
 
4484
    }
-
 
4485
 
4266
  }
4486
  }
4267
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4487
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4268
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4488
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4269
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4489
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4270
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4490
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5661... Line 5881...
5661
        args.setBannerCongregate(bannerCongregate);
5881
        args.setBannerCongregate(bannerCongregate);
5662
        args.write(prot);
5882
        args.write(prot);
5663
        prot.writeMessageEnd();
5883
        prot.writeMessageEnd();
5664
      }
5884
      }
5665
 
5885
 
5666
      public void getResult() throws org.apache.thrift.TException {
5886
      public boolean getResult() throws org.apache.thrift.TException {
5667
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5887
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
5668
          throw new IllegalStateException("Method call not finished!");
5888
          throw new IllegalStateException("Method call not finished!");
5669
        }
5889
        }
5670
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5890
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
5671
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5891
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5672
        (new Client(prot)).recv_addBanner();
5892
        return (new Client(prot)).recv_addBanner();
5673
      }
5893
      }
5674
    }
5894
    }
5675
 
5895
 
5676
    public void updateBanner(Banner banner, org.apache.thrift.async.AsyncMethodCallback<updateBanner_call> resultHandler) throws org.apache.thrift.TException {
5896
    public void updateBanner(Banner banner, org.apache.thrift.async.AsyncMethodCallback<updateBanner_call> resultHandler) throws org.apache.thrift.TException {
5677
      checkReady();
5897
      checkReady();
Line 9048... Line 9268...
9048
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9268
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9049
        return (new Client(prot)).recv_getAllFlipkartItems();
9269
        return (new Client(prot)).recv_getAllFlipkartItems();
9050
      }
9270
      }
9051
    }
9271
    }
9052
 
9272
 
-
 
9273
    public void addOrUpdateFlipkartItem(FlipkartItem flipkartitem, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateFlipkartItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
9274
      checkReady();
-
 
9275
      addOrUpdateFlipkartItem_call method_call = new addOrUpdateFlipkartItem_call(flipkartitem, resultHandler, this, ___protocolFactory, ___transport);
-
 
9276
      this.___currentMethod = method_call;
-
 
9277
      ___manager.call(method_call);
-
 
9278
    }
-
 
9279
 
-
 
9280
    public static class addOrUpdateFlipkartItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9281
      private FlipkartItem flipkartitem;
-
 
9282
      public addOrUpdateFlipkartItem_call(FlipkartItem flipkartitem, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateFlipkartItem_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 {
-
 
9283
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9284
        this.flipkartitem = flipkartitem;
-
 
9285
      }
-
 
9286
 
-
 
9287
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9288
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateFlipkartItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9289
        addOrUpdateFlipkartItem_args args = new addOrUpdateFlipkartItem_args();
-
 
9290
        args.setFlipkartitem(flipkartitem);
-
 
9291
        args.write(prot);
-
 
9292
        prot.writeMessageEnd();
-
 
9293
      }
-
 
9294
 
-
 
9295
      public boolean getResult() throws org.apache.thrift.TException {
-
 
9296
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9297
          throw new IllegalStateException("Method call not finished!");
-
 
9298
        }
-
 
9299
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9300
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9301
        return (new Client(prot)).recv_addOrUpdateFlipkartItem();
-
 
9302
      }
-
 
9303
    }
-
 
9304
 
-
 
9305
    public void getFlipkartItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<getFlipkartItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
9306
      checkReady();
-
 
9307
      getFlipkartItem_call method_call = new getFlipkartItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
9308
      this.___currentMethod = method_call;
-
 
9309
      ___manager.call(method_call);
-
 
9310
    }
-
 
9311
 
-
 
9312
    public static class getFlipkartItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9313
      private long item_id;
-
 
9314
      public getFlipkartItem_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getFlipkartItem_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 {
-
 
9315
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9316
        this.item_id = item_id;
-
 
9317
      }
-
 
9318
 
-
 
9319
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9320
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFlipkartItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9321
        getFlipkartItem_args args = new getFlipkartItem_args();
-
 
9322
        args.setItem_id(item_id);
-
 
9323
        args.write(prot);
-
 
9324
        prot.writeMessageEnd();
-
 
9325
      }
-
 
9326
 
-
 
9327
      public FlipkartItem getResult() throws org.apache.thrift.TException {
-
 
9328
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9329
          throw new IllegalStateException("Method call not finished!");
-
 
9330
        }
-
 
9331
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9332
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9333
        return (new Client(prot)).recv_getFlipkartItem();
-
 
9334
      }
-
 
9335
    }
-
 
9336
 
-
 
9337
    public void getFlipkartItemDetails(long item_id, org.apache.thrift.async.AsyncMethodCallback<getFlipkartItemDetails_call> resultHandler) throws org.apache.thrift.TException {
-
 
9338
      checkReady();
-
 
9339
      getFlipkartItemDetails_call method_call = new getFlipkartItemDetails_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
9340
      this.___currentMethod = method_call;
-
 
9341
      ___manager.call(method_call);
-
 
9342
    }
-
 
9343
 
-
 
9344
    public static class getFlipkartItemDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9345
      private long item_id;
-
 
9346
      public getFlipkartItemDetails_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getFlipkartItemDetails_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 {
-
 
9347
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9348
        this.item_id = item_id;
-
 
9349
      }
-
 
9350
 
-
 
9351
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9352
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFlipkartItemDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9353
        getFlipkartItemDetails_args args = new getFlipkartItemDetails_args();
-
 
9354
        args.setItem_id(item_id);
-
 
9355
        args.write(prot);
-
 
9356
        prot.writeMessageEnd();
-
 
9357
      }
-
 
9358
 
-
 
9359
      public FlipkartItemDetails getResult() throws org.apache.thrift.TException {
-
 
9360
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9361
          throw new IllegalStateException("Method call not finished!");
-
 
9362
        }
-
 
9363
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9364
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9365
        return (new Client(prot)).recv_getFlipkartItemDetails();
-
 
9366
      }
-
 
9367
    }
-
 
9368
 
-
 
9369
    public void getFlipkartItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getFlipkartItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
9370
      checkReady();
-
 
9371
      getFlipkartItems_call method_call = new getFlipkartItems_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);
-
 
9372
      this.___currentMethod = method_call;
-
 
9373
      ___manager.call(method_call);
-
 
9374
    }
-
 
9375
 
-
 
9376
    public static class getFlipkartItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9377
      private long offset;
-
 
9378
      private long limit;
-
 
9379
      public getFlipkartItems_call(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getFlipkartItems_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 {
-
 
9380
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9381
        this.offset = offset;
-
 
9382
        this.limit = limit;
-
 
9383
      }
-
 
9384
 
-
 
9385
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9386
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFlipkartItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9387
        getFlipkartItems_args args = new getFlipkartItems_args();
-
 
9388
        args.setOffset(offset);
-
 
9389
        args.setLimit(limit);
-
 
9390
        args.write(prot);
-
 
9391
        prot.writeMessageEnd();
-
 
9392
      }
-
 
9393
 
-
 
9394
      public List<FlipkartItemDetails> getResult() throws org.apache.thrift.TException {
-
 
9395
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9396
          throw new IllegalStateException("Method call not finished!");
-
 
9397
        }
-
 
9398
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9399
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9400
        return (new Client(prot)).recv_getFlipkartItems();
-
 
9401
      }
-
 
9402
    }
-
 
9403
 
-
 
9404
    public void searchFlipkartItems(List<String> searchTerm, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<searchFlipkartItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
9405
      checkReady();
-
 
9406
      searchFlipkartItems_call method_call = new searchFlipkartItems_call(searchTerm, offset, limit, resultHandler, this, ___protocolFactory, ___transport);
-
 
9407
      this.___currentMethod = method_call;
-
 
9408
      ___manager.call(method_call);
-
 
9409
    }
-
 
9410
 
-
 
9411
    public static class searchFlipkartItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9412
      private List<String> searchTerm;
-
 
9413
      private long offset;
-
 
9414
      private long limit;
-
 
9415
      public searchFlipkartItems_call(List<String> searchTerm, long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<searchFlipkartItems_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 {
-
 
9416
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9417
        this.searchTerm = searchTerm;
-
 
9418
        this.offset = offset;
-
 
9419
        this.limit = limit;
-
 
9420
      }
-
 
9421
 
-
 
9422
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9423
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("searchFlipkartItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9424
        searchFlipkartItems_args args = new searchFlipkartItems_args();
-
 
9425
        args.setSearchTerm(searchTerm);
-
 
9426
        args.setOffset(offset);
-
 
9427
        args.setLimit(limit);
-
 
9428
        args.write(prot);
-
 
9429
        prot.writeMessageEnd();
-
 
9430
      }
-
 
9431
 
-
 
9432
      public List<FlipkartItemDetails> getResult() throws org.apache.thrift.TException {
-
 
9433
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9434
          throw new IllegalStateException("Method call not finished!");
-
 
9435
        }
-
 
9436
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9437
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9438
        return (new Client(prot)).recv_searchFlipkartItems();
-
 
9439
      }
-
 
9440
    }
-
 
9441
 
-
 
9442
    public void getCountForFlipkartItems(org.apache.thrift.async.AsyncMethodCallback<getCountForFlipkartItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
9443
      checkReady();
-
 
9444
      getCountForFlipkartItems_call method_call = new getCountForFlipkartItems_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
9445
      this.___currentMethod = method_call;
-
 
9446
      ___manager.call(method_call);
-
 
9447
    }
-
 
9448
 
-
 
9449
    public static class getCountForFlipkartItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9450
      public getCountForFlipkartItems_call(org.apache.thrift.async.AsyncMethodCallback<getCountForFlipkartItems_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 {
-
 
9451
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9452
      }
-
 
9453
 
-
 
9454
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9455
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCountForFlipkartItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9456
        getCountForFlipkartItems_args args = new getCountForFlipkartItems_args();
-
 
9457
        args.write(prot);
-
 
9458
        prot.writeMessageEnd();
-
 
9459
      }
-
 
9460
 
-
 
9461
      public long getResult() throws org.apache.thrift.TException {
-
 
9462
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9463
          throw new IllegalStateException("Method call not finished!");
-
 
9464
        }
-
 
9465
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9466
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9467
        return (new Client(prot)).recv_getCountForFlipkartItems();
-
 
9468
      }
-
 
9469
    }
-
 
9470
 
-
 
9471
    public void getFlipkartSearchResultCount(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<getFlipkartSearchResultCount_call> resultHandler) throws org.apache.thrift.TException {
-
 
9472
      checkReady();
-
 
9473
      getFlipkartSearchResultCount_call method_call = new getFlipkartSearchResultCount_call(searchTerm, resultHandler, this, ___protocolFactory, ___transport);
-
 
9474
      this.___currentMethod = method_call;
-
 
9475
      ___manager.call(method_call);
-
 
9476
    }
-
 
9477
 
-
 
9478
    public static class getFlipkartSearchResultCount_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9479
      private List<String> searchTerm;
-
 
9480
      public getFlipkartSearchResultCount_call(List<String> searchTerm, org.apache.thrift.async.AsyncMethodCallback<getFlipkartSearchResultCount_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 {
-
 
9481
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9482
        this.searchTerm = searchTerm;
-
 
9483
      }
-
 
9484
 
-
 
9485
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9486
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFlipkartSearchResultCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9487
        getFlipkartSearchResultCount_args args = new getFlipkartSearchResultCount_args();
-
 
9488
        args.setSearchTerm(searchTerm);
-
 
9489
        args.write(prot);
-
 
9490
        prot.writeMessageEnd();
-
 
9491
      }
-
 
9492
 
-
 
9493
      public long getResult() throws org.apache.thrift.TException {
-
 
9494
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9495
          throw new IllegalStateException("Method call not finished!");
-
 
9496
        }
-
 
9497
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9498
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9499
        return (new Client(prot)).recv_getFlipkartSearchResultCount();
-
 
9500
      }
-
 
9501
    }
-
 
9502
 
-
 
9503
    public void getAllFkItems(org.apache.thrift.async.AsyncMethodCallback<getAllFkItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
9504
      checkReady();
-
 
9505
      getAllFkItems_call method_call = new getAllFkItems_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
9506
      this.___currentMethod = method_call;
-
 
9507
      ___manager.call(method_call);
-
 
9508
    }
-
 
9509
 
-
 
9510
    public static class getAllFkItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
9511
      public getAllFkItems_call(org.apache.thrift.async.AsyncMethodCallback<getAllFkItems_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 {
-
 
9512
        super(client, protocolFactory, transport, resultHandler, false);
-
 
9513
      }
-
 
9514
 
-
 
9515
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
9516
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllFkItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
9517
        getAllFkItems_args args = new getAllFkItems_args();
-
 
9518
        args.write(prot);
-
 
9519
        prot.writeMessageEnd();
-
 
9520
      }
-
 
9521
 
-
 
9522
      public List<FlipkartItemDetails> getResult() throws org.apache.thrift.TException {
-
 
9523
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
9524
          throw new IllegalStateException("Method call not finished!");
-
 
9525
        }
-
 
9526
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
9527
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
9528
        return (new Client(prot)).recv_getAllFkItems();
-
 
9529
      }
-
 
9530
    }
-
 
9531
 
9053
  }
9532
  }
9054
 
9533
 
9055
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9534
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9056
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9535
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9057
    public Processor(I iface) {
9536
    public Processor(I iface) {
Line 9206... Line 9685...
9206
      processMap.put("getMarketPlaceItemsForPriceUpdate", new getMarketPlaceItemsForPriceUpdate());
9685
      processMap.put("getMarketPlaceItemsForPriceUpdate", new getMarketPlaceItemsForPriceUpdate());
9207
      processMap.put("updateMarketPlacePriceUpdateStatus", new updateMarketPlacePriceUpdateStatus());
9686
      processMap.put("updateMarketPlacePriceUpdateStatus", new updateMarketPlacePriceUpdateStatus());
9208
      processMap.put("updateItemHoldInventory", new updateItemHoldInventory());
9687
      processMap.put("updateItemHoldInventory", new updateItemHoldInventory());
9209
      processMap.put("updateNlcAtMarketplaces", new updateNlcAtMarketplaces());
9688
      processMap.put("updateNlcAtMarketplaces", new updateNlcAtMarketplaces());
9210
      processMap.put("getAllFlipkartItems", new getAllFlipkartItems());
9689
      processMap.put("getAllFlipkartItems", new getAllFlipkartItems());
-
 
9690
      processMap.put("addOrUpdateFlipkartItem", new addOrUpdateFlipkartItem());
-
 
9691
      processMap.put("getFlipkartItem", new getFlipkartItem());
-
 
9692
      processMap.put("getFlipkartItemDetails", new getFlipkartItemDetails());
-
 
9693
      processMap.put("getFlipkartItems", new getFlipkartItems());
-
 
9694
      processMap.put("searchFlipkartItems", new searchFlipkartItems());
-
 
9695
      processMap.put("getCountForFlipkartItems", new getCountForFlipkartItems());
-
 
9696
      processMap.put("getFlipkartSearchResultCount", new getFlipkartSearchResultCount());
-
 
9697
      processMap.put("getAllFkItems", new getAllFkItems());
9211
      return processMap;
9698
      return processMap;
9212
    }
9699
    }
9213
 
9700
 
9214
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
9701
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
9215
      public addItem() {
9702
      public addItem() {
Line 10005... Line 10492...
10005
        return new addBanner_args();
10492
        return new addBanner_args();
10006
      }
10493
      }
10007
 
10494
 
10008
      protected addBanner_result getResult(I iface, addBanner_args args) throws org.apache.thrift.TException {
10495
      protected addBanner_result getResult(I iface, addBanner_args args) throws org.apache.thrift.TException {
10009
        addBanner_result result = new addBanner_result();
10496
        addBanner_result result = new addBanner_result();
10010
        iface.addBanner(args.bannerCongregate);
10497
        result.success = iface.addBanner(args.bannerCongregate);
-
 
10498
        result.setSuccessIsSet(true);
10011
        return result;
10499
        return result;
10012
      }
10500
      }
10013
    }
10501
    }
10014
 
10502
 
10015
    private static class updateBanner<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateBanner_args> {
10503
    private static class updateBanner<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateBanner_args> {
Line 11746... Line 12234...
11746
        result.success = iface.getAllFlipkartItems();
12234
        result.success = iface.getAllFlipkartItems();
11747
        return result;
12235
        return result;
11748
      }
12236
      }
11749
    }
12237
    }
11750
 
12238
 
-
 
12239
    private static class addOrUpdateFlipkartItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateFlipkartItem_args> {
-
 
12240
      public addOrUpdateFlipkartItem() {
-
 
12241
        super("addOrUpdateFlipkartItem");
-
 
12242
      }
-
 
12243
 
-
 
12244
      protected addOrUpdateFlipkartItem_args getEmptyArgsInstance() {
-
 
12245
        return new addOrUpdateFlipkartItem_args();
-
 
12246
      }
-
 
12247
 
-
 
12248
      protected addOrUpdateFlipkartItem_result getResult(I iface, addOrUpdateFlipkartItem_args args) throws org.apache.thrift.TException {
-
 
12249
        addOrUpdateFlipkartItem_result result = new addOrUpdateFlipkartItem_result();
-
 
12250
        result.success = iface.addOrUpdateFlipkartItem(args.flipkartitem);
-
 
12251
        result.setSuccessIsSet(true);
-
 
12252
        return result;
-
 
12253
      }
-
 
12254
    }
-
 
12255
 
-
 
12256
    private static class getFlipkartItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFlipkartItem_args> {
-
 
12257
      public getFlipkartItem() {
-
 
12258
        super("getFlipkartItem");
-
 
12259
      }
-
 
12260
 
-
 
12261
      protected getFlipkartItem_args getEmptyArgsInstance() {
-
 
12262
        return new getFlipkartItem_args();
-
 
12263
      }
-
 
12264
 
-
 
12265
      protected getFlipkartItem_result getResult(I iface, getFlipkartItem_args args) throws org.apache.thrift.TException {
-
 
12266
        getFlipkartItem_result result = new getFlipkartItem_result();
-
 
12267
        result.success = iface.getFlipkartItem(args.item_id);
-
 
12268
        return result;
-
 
12269
      }
-
 
12270
    }
-
 
12271
 
-
 
12272
    private static class getFlipkartItemDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFlipkartItemDetails_args> {
-
 
12273
      public getFlipkartItemDetails() {
-
 
12274
        super("getFlipkartItemDetails");
-
 
12275
      }
-
 
12276
 
-
 
12277
      protected getFlipkartItemDetails_args getEmptyArgsInstance() {
-
 
12278
        return new getFlipkartItemDetails_args();
-
 
12279
      }
-
 
12280
 
-
 
12281
      protected getFlipkartItemDetails_result getResult(I iface, getFlipkartItemDetails_args args) throws org.apache.thrift.TException {
-
 
12282
        getFlipkartItemDetails_result result = new getFlipkartItemDetails_result();
-
 
12283
        result.success = iface.getFlipkartItemDetails(args.item_id);
-
 
12284
        return result;
-
 
12285
      }
-
 
12286
    }
-
 
12287
 
-
 
12288
    private static class getFlipkartItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFlipkartItems_args> {
-
 
12289
      public getFlipkartItems() {
-
 
12290
        super("getFlipkartItems");
-
 
12291
      }
-
 
12292
 
-
 
12293
      protected getFlipkartItems_args getEmptyArgsInstance() {
-
 
12294
        return new getFlipkartItems_args();
-
 
12295
      }
-
 
12296
 
-
 
12297
      protected getFlipkartItems_result getResult(I iface, getFlipkartItems_args args) throws org.apache.thrift.TException {
-
 
12298
        getFlipkartItems_result result = new getFlipkartItems_result();
-
 
12299
        result.success = iface.getFlipkartItems(args.offset, args.limit);
-
 
12300
        return result;
-
 
12301
      }
-
 
12302
    }
-
 
12303
 
-
 
12304
    private static class searchFlipkartItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, searchFlipkartItems_args> {
-
 
12305
      public searchFlipkartItems() {
-
 
12306
        super("searchFlipkartItems");
-
 
12307
      }
-
 
12308
 
-
 
12309
      protected searchFlipkartItems_args getEmptyArgsInstance() {
-
 
12310
        return new searchFlipkartItems_args();
-
 
12311
      }
-
 
12312
 
-
 
12313
      protected searchFlipkartItems_result getResult(I iface, searchFlipkartItems_args args) throws org.apache.thrift.TException {
-
 
12314
        searchFlipkartItems_result result = new searchFlipkartItems_result();
-
 
12315
        result.success = iface.searchFlipkartItems(args.searchTerm, args.offset, args.limit);
-
 
12316
        return result;
-
 
12317
      }
-
 
12318
    }
-
 
12319
 
-
 
12320
    private static class getCountForFlipkartItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCountForFlipkartItems_args> {
-
 
12321
      public getCountForFlipkartItems() {
-
 
12322
        super("getCountForFlipkartItems");
-
 
12323
      }
-
 
12324
 
-
 
12325
      protected getCountForFlipkartItems_args getEmptyArgsInstance() {
-
 
12326
        return new getCountForFlipkartItems_args();
-
 
12327
      }
-
 
12328
 
-
 
12329
      protected getCountForFlipkartItems_result getResult(I iface, getCountForFlipkartItems_args args) throws org.apache.thrift.TException {
-
 
12330
        getCountForFlipkartItems_result result = new getCountForFlipkartItems_result();
-
 
12331
        result.success = iface.getCountForFlipkartItems();
-
 
12332
        result.setSuccessIsSet(true);
-
 
12333
        return result;
-
 
12334
      }
-
 
12335
    }
-
 
12336
 
-
 
12337
    private static class getFlipkartSearchResultCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFlipkartSearchResultCount_args> {
-
 
12338
      public getFlipkartSearchResultCount() {
-
 
12339
        super("getFlipkartSearchResultCount");
-
 
12340
      }
-
 
12341
 
-
 
12342
      protected getFlipkartSearchResultCount_args getEmptyArgsInstance() {
-
 
12343
        return new getFlipkartSearchResultCount_args();
-
 
12344
      }
-
 
12345
 
-
 
12346
      protected getFlipkartSearchResultCount_result getResult(I iface, getFlipkartSearchResultCount_args args) throws org.apache.thrift.TException {
-
 
12347
        getFlipkartSearchResultCount_result result = new getFlipkartSearchResultCount_result();
-
 
12348
        result.success = iface.getFlipkartSearchResultCount(args.searchTerm);
-
 
12349
        result.setSuccessIsSet(true);
-
 
12350
        return result;
-
 
12351
      }
-
 
12352
    }
-
 
12353
 
-
 
12354
    private static class getAllFkItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllFkItems_args> {
-
 
12355
      public getAllFkItems() {
-
 
12356
        super("getAllFkItems");
-
 
12357
      }
-
 
12358
 
-
 
12359
      protected getAllFkItems_args getEmptyArgsInstance() {
-
 
12360
        return new getAllFkItems_args();
-
 
12361
      }
-
 
12362
 
-
 
12363
      protected getAllFkItems_result getResult(I iface, getAllFkItems_args args) throws org.apache.thrift.TException {
-
 
12364
        getAllFkItems_result result = new getAllFkItems_result();
-
 
12365
        result.success = iface.getAllFkItems();
-
 
12366
        return result;
-
 
12367
      }
-
 
12368
    }
-
 
12369
 
11751
  }
12370
  }
11752
 
12371
 
11753
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
12372
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
11754
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
12373
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
11755
 
12374
 
Line 40575... Line 41194...
40575
  }
41194
  }
40576
 
41195
 
40577
  public static class addBanner_result implements org.apache.thrift.TBase<addBanner_result, addBanner_result._Fields>, java.io.Serializable, Cloneable   {
41196
  public static class addBanner_result implements org.apache.thrift.TBase<addBanner_result, addBanner_result._Fields>, java.io.Serializable, Cloneable   {
40578
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBanner_result");
41197
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBanner_result");
40579
 
41198
 
-
 
41199
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
40580
 
41200
 
-
 
41201
    private boolean success; // required
40581
 
41202
 
40582
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41203
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40583
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41204
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
40584
;
-
 
-
 
41205
      SUCCESS((short)0, "success");
40585
 
41206
 
40586
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
41207
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
40587
 
41208
 
40588
      static {
41209
      static {
40589
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
41210
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 40594... Line 41215...
40594
      /**
41215
      /**
40595
       * Find the _Fields constant that matches fieldId, or null if its not found.
41216
       * Find the _Fields constant that matches fieldId, or null if its not found.
40596
       */
41217
       */
40597
      public static _Fields findByThriftId(int fieldId) {
41218
      public static _Fields findByThriftId(int fieldId) {
40598
        switch(fieldId) {
41219
        switch(fieldId) {
-
 
41220
          case 0: // SUCCESS
-
 
41221
            return SUCCESS;
40599
          default:
41222
          default:
40600
            return null;
41223
            return null;
40601
        }
41224
        }
40602
      }
41225
      }
40603
 
41226
 
Line 40632... Line 41255...
40632
 
41255
 
40633
      public String getFieldName() {
41256
      public String getFieldName() {
40634
        return _fieldName;
41257
        return _fieldName;
40635
      }
41258
      }
40636
    }
41259
    }
-
 
41260
 
-
 
41261
    // isset id assignments
-
 
41262
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
41263
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
41264
 
40637
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
41265
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
40638
    static {
41266
    static {
40639
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
41267
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
41268
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
41269
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
40640
      metaDataMap = Collections.unmodifiableMap(tmpMap);
41270
      metaDataMap = Collections.unmodifiableMap(tmpMap);
40641
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBanner_result.class, metaDataMap);
41271
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBanner_result.class, metaDataMap);
40642
    }
41272
    }
40643
 
41273
 
40644
    public addBanner_result() {
41274
    public addBanner_result() {
40645
    }
41275
    }
40646
 
41276
 
-
 
41277
    public addBanner_result(
-
 
41278
      boolean success)
-
 
41279
    {
-
 
41280
      this();
-
 
41281
      this.success = success;
-
 
41282
      setSuccessIsSet(true);
-
 
41283
    }
-
 
41284
 
40647
    /**
41285
    /**
40648
     * Performs a deep copy on <i>other</i>.
41286
     * Performs a deep copy on <i>other</i>.
40649
     */
41287
     */
40650
    public addBanner_result(addBanner_result other) {
41288
    public addBanner_result(addBanner_result other) {
-
 
41289
      __isset_bit_vector.clear();
-
 
41290
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
41291
      this.success = other.success;
40651
    }
41292
    }
40652
 
41293
 
40653
    public addBanner_result deepCopy() {
41294
    public addBanner_result deepCopy() {
40654
      return new addBanner_result(this);
41295
      return new addBanner_result(this);
40655
    }
41296
    }
40656
 
41297
 
40657
    @Override
41298
    @Override
40658
    public void clear() {
41299
    public void clear() {
-
 
41300
      setSuccessIsSet(false);
-
 
41301
      this.success = false;
-
 
41302
    }
-
 
41303
 
-
 
41304
    public boolean isSuccess() {
-
 
41305
      return this.success;
-
 
41306
    }
-
 
41307
 
-
 
41308
    public void setSuccess(boolean success) {
-
 
41309
      this.success = success;
-
 
41310
      setSuccessIsSet(true);
-
 
41311
    }
-
 
41312
 
-
 
41313
    public void unsetSuccess() {
-
 
41314
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
41315
    }
-
 
41316
 
-
 
41317
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
41318
    public boolean isSetSuccess() {
-
 
41319
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
41320
    }
-
 
41321
 
-
 
41322
    public void setSuccessIsSet(boolean value) {
-
 
41323
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
40659
    }
41324
    }
40660
 
41325
 
40661
    public void setFieldValue(_Fields field, Object value) {
41326
    public void setFieldValue(_Fields field, Object value) {
40662
      switch (field) {
41327
      switch (field) {
-
 
41328
      case SUCCESS:
-
 
41329
        if (value == null) {
-
 
41330
          unsetSuccess();
-
 
41331
        } else {
-
 
41332
          setSuccess((Boolean)value);
-
 
41333
        }
-
 
41334
        break;
-
 
41335
 
40663
      }
41336
      }
40664
    }
41337
    }
40665
 
41338
 
40666
    public Object getFieldValue(_Fields field) {
41339
    public Object getFieldValue(_Fields field) {
40667
      switch (field) {
41340
      switch (field) {
-
 
41341
      case SUCCESS:
-
 
41342
        return Boolean.valueOf(isSuccess());
-
 
41343
 
40668
      }
41344
      }
40669
      throw new IllegalStateException();
41345
      throw new IllegalStateException();
40670
    }
41346
    }
40671
 
41347
 
40672
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
41348
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 40674... Line 41350...
40674
      if (field == null) {
41350
      if (field == null) {
40675
        throw new IllegalArgumentException();
41351
        throw new IllegalArgumentException();
40676
      }
41352
      }
40677
 
41353
 
40678
      switch (field) {
41354
      switch (field) {
-
 
41355
      case SUCCESS:
-
 
41356
        return isSetSuccess();
40679
      }
41357
      }
40680
      throw new IllegalStateException();
41358
      throw new IllegalStateException();
40681
    }
41359
    }
40682
 
41360
 
40683
    @Override
41361
    @Override
Line 40691... Line 41369...
40691
 
41369
 
40692
    public boolean equals(addBanner_result that) {
41370
    public boolean equals(addBanner_result that) {
40693
      if (that == null)
41371
      if (that == null)
40694
        return false;
41372
        return false;
40695
 
41373
 
-
 
41374
      boolean this_present_success = true;
-
 
41375
      boolean that_present_success = true;
-
 
41376
      if (this_present_success || that_present_success) {
-
 
41377
        if (!(this_present_success && that_present_success))
-
 
41378
          return false;
-
 
41379
        if (this.success != that.success)
-
 
41380
          return false;
-
 
41381
      }
-
 
41382
 
40696
      return true;
41383
      return true;
40697
    }
41384
    }
40698
 
41385
 
40699
    @Override
41386
    @Override
40700
    public int hashCode() {
41387
    public int hashCode() {
Line 40707... Line 41394...
40707
      }
41394
      }
40708
 
41395
 
40709
      int lastComparison = 0;
41396
      int lastComparison = 0;
40710
      addBanner_result typedOther = (addBanner_result)other;
41397
      addBanner_result typedOther = (addBanner_result)other;
40711
 
41398
 
-
 
41399
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
41400
      if (lastComparison != 0) {
-
 
41401
        return lastComparison;
-
 
41402
      }
-
 
41403
      if (isSetSuccess()) {
-
 
41404
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
41405
        if (lastComparison != 0) {
-
 
41406
          return lastComparison;
-
 
41407
        }
-
 
41408
      }
40712
      return 0;
41409
      return 0;
40713
    }
41410
    }
40714
 
41411
 
40715
    public _Fields fieldForId(int fieldId) {
41412
    public _Fields fieldForId(int fieldId) {
40716
      return _Fields.findByThriftId(fieldId);
41413
      return _Fields.findByThriftId(fieldId);
Line 40724... Line 41421...
40724
        field = iprot.readFieldBegin();
41421
        field = iprot.readFieldBegin();
40725
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
41422
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
40726
          break;
41423
          break;
40727
        }
41424
        }
40728
        switch (field.id) {
41425
        switch (field.id) {
-
 
41426
          case 0: // SUCCESS
-
 
41427
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
41428
              this.success = iprot.readBool();
-
 
41429
              setSuccessIsSet(true);
-
 
41430
            } else { 
-
 
41431
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
41432
            }
-
 
41433
            break;
40729
          default:
41434
          default:
40730
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
41435
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
40731
        }
41436
        }
40732
        iprot.readFieldEnd();
41437
        iprot.readFieldEnd();
40733
      }
41438
      }
Line 40736... Line 41441...
40736
    }
41441
    }
40737
 
41442
 
40738
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
41443
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
40739
      oprot.writeStructBegin(STRUCT_DESC);
41444
      oprot.writeStructBegin(STRUCT_DESC);
40740
 
41445
 
-
 
41446
      if (this.isSetSuccess()) {
-
 
41447
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
41448
        oprot.writeBool(this.success);
-
 
41449
        oprot.writeFieldEnd();
-
 
41450
      }
40741
      oprot.writeFieldStop();
41451
      oprot.writeFieldStop();
40742
      oprot.writeStructEnd();
41452
      oprot.writeStructEnd();
40743
    }
41453
    }
40744
 
41454
 
40745
    @Override
41455
    @Override
40746
    public String toString() {
41456
    public String toString() {
40747
      StringBuilder sb = new StringBuilder("addBanner_result(");
41457
      StringBuilder sb = new StringBuilder("addBanner_result(");
40748
      boolean first = true;
41458
      boolean first = true;
40749
 
41459
 
-
 
41460
      sb.append("success:");
-
 
41461
      sb.append(this.success);
-
 
41462
      first = false;
40750
      sb.append(")");
41463
      sb.append(")");
40751
      return sb.toString();
41464
      return sb.toString();
40752
    }
41465
    }
40753
 
41466
 
40754
    public void validate() throws org.apache.thrift.TException {
41467
    public void validate() throws org.apache.thrift.TException {
Line 104768... Line 105481...
104768
      boolean first = true;
105481
      boolean first = true;
104769
 
105482
 
104770
      sb.append("success:");
105483
      sb.append("success:");
104771
      if (this.success == null) {
105484
      if (this.success == null) {
104772
        sb.append("null");
105485
        sb.append("null");
-
 
105486
      } else {
-
 
105487
        sb.append(this.success);
-
 
105488
      }
-
 
105489
      first = false;
-
 
105490
      sb.append(")");
-
 
105491
      return sb.toString();
-
 
105492
    }
-
 
105493
 
-
 
105494
    public void validate() throws org.apache.thrift.TException {
-
 
105495
      // check for required fields
-
 
105496
    }
-
 
105497
 
-
 
105498
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
105499
      try {
-
 
105500
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
105501
      } catch (org.apache.thrift.TException te) {
-
 
105502
        throw new java.io.IOException(te);
-
 
105503
      }
-
 
105504
    }
-
 
105505
 
-
 
105506
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
105507
      try {
-
 
105508
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
105509
      } catch (org.apache.thrift.TException te) {
-
 
105510
        throw new java.io.IOException(te);
-
 
105511
      }
-
 
105512
    }
-
 
105513
 
-
 
105514
  }
-
 
105515
 
-
 
105516
  public static class addOrUpdateFlipkartItem_args implements org.apache.thrift.TBase<addOrUpdateFlipkartItem_args, addOrUpdateFlipkartItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
105517
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateFlipkartItem_args");
-
 
105518
 
-
 
105519
    private static final org.apache.thrift.protocol.TField FLIPKARTITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("flipkartitem", org.apache.thrift.protocol.TType.STRUCT, (short)-1);
-
 
105520
 
-
 
105521
    private FlipkartItem flipkartitem; // required
-
 
105522
 
-
 
105523
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
105524
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
105525
      FLIPKARTITEM((short)-1, "flipkartitem");
-
 
105526
 
-
 
105527
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
105528
 
-
 
105529
      static {
-
 
105530
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
105531
          byName.put(field.getFieldName(), field);
-
 
105532
        }
-
 
105533
      }
-
 
105534
 
-
 
105535
      /**
-
 
105536
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
105537
       */
-
 
105538
      public static _Fields findByThriftId(int fieldId) {
-
 
105539
        switch(fieldId) {
-
 
105540
          case -1: // FLIPKARTITEM
-
 
105541
            return FLIPKARTITEM;
-
 
105542
          default:
-
 
105543
            return null;
-
 
105544
        }
-
 
105545
      }
-
 
105546
 
-
 
105547
      /**
-
 
105548
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
105549
       * if it is not found.
-
 
105550
       */
-
 
105551
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
105552
        _Fields fields = findByThriftId(fieldId);
-
 
105553
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
105554
        return fields;
-
 
105555
      }
-
 
105556
 
-
 
105557
      /**
-
 
105558
       * Find the _Fields constant that matches name, or null if its not found.
-
 
105559
       */
-
 
105560
      public static _Fields findByName(String name) {
-
 
105561
        return byName.get(name);
-
 
105562
      }
-
 
105563
 
-
 
105564
      private final short _thriftId;
-
 
105565
      private final String _fieldName;
-
 
105566
 
-
 
105567
      _Fields(short thriftId, String fieldName) {
-
 
105568
        _thriftId = thriftId;
-
 
105569
        _fieldName = fieldName;
-
 
105570
      }
-
 
105571
 
-
 
105572
      public short getThriftFieldId() {
-
 
105573
        return _thriftId;
-
 
105574
      }
-
 
105575
 
-
 
105576
      public String getFieldName() {
-
 
105577
        return _fieldName;
-
 
105578
      }
-
 
105579
    }
-
 
105580
 
-
 
105581
    // isset id assignments
-
 
105582
 
-
 
105583
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
105584
    static {
-
 
105585
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
105586
      tmpMap.put(_Fields.FLIPKARTITEM, new org.apache.thrift.meta_data.FieldMetaData("flipkartitem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
105587
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartItem.class)));
-
 
105588
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
105589
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateFlipkartItem_args.class, metaDataMap);
-
 
105590
    }
-
 
105591
 
-
 
105592
    public addOrUpdateFlipkartItem_args() {
-
 
105593
    }
-
 
105594
 
-
 
105595
    public addOrUpdateFlipkartItem_args(
-
 
105596
      FlipkartItem flipkartitem)
-
 
105597
    {
-
 
105598
      this();
-
 
105599
      this.flipkartitem = flipkartitem;
-
 
105600
    }
-
 
105601
 
-
 
105602
    /**
-
 
105603
     * Performs a deep copy on <i>other</i>.
-
 
105604
     */
-
 
105605
    public addOrUpdateFlipkartItem_args(addOrUpdateFlipkartItem_args other) {
-
 
105606
      if (other.isSetFlipkartitem()) {
-
 
105607
        this.flipkartitem = new FlipkartItem(other.flipkartitem);
-
 
105608
      }
-
 
105609
    }
-
 
105610
 
-
 
105611
    public addOrUpdateFlipkartItem_args deepCopy() {
-
 
105612
      return new addOrUpdateFlipkartItem_args(this);
-
 
105613
    }
-
 
105614
 
-
 
105615
    @Override
-
 
105616
    public void clear() {
-
 
105617
      this.flipkartitem = null;
-
 
105618
    }
-
 
105619
 
-
 
105620
    public FlipkartItem getFlipkartitem() {
-
 
105621
      return this.flipkartitem;
-
 
105622
    }
-
 
105623
 
-
 
105624
    public void setFlipkartitem(FlipkartItem flipkartitem) {
-
 
105625
      this.flipkartitem = flipkartitem;
-
 
105626
    }
-
 
105627
 
-
 
105628
    public void unsetFlipkartitem() {
-
 
105629
      this.flipkartitem = null;
-
 
105630
    }
-
 
105631
 
-
 
105632
    /** Returns true if field flipkartitem is set (has been assigned a value) and false otherwise */
-
 
105633
    public boolean isSetFlipkartitem() {
-
 
105634
      return this.flipkartitem != null;
-
 
105635
    }
-
 
105636
 
-
 
105637
    public void setFlipkartitemIsSet(boolean value) {
-
 
105638
      if (!value) {
-
 
105639
        this.flipkartitem = null;
-
 
105640
      }
-
 
105641
    }
-
 
105642
 
-
 
105643
    public void setFieldValue(_Fields field, Object value) {
-
 
105644
      switch (field) {
-
 
105645
      case FLIPKARTITEM:
-
 
105646
        if (value == null) {
-
 
105647
          unsetFlipkartitem();
-
 
105648
        } else {
-
 
105649
          setFlipkartitem((FlipkartItem)value);
-
 
105650
        }
-
 
105651
        break;
-
 
105652
 
-
 
105653
      }
-
 
105654
    }
-
 
105655
 
-
 
105656
    public Object getFieldValue(_Fields field) {
-
 
105657
      switch (field) {
-
 
105658
      case FLIPKARTITEM:
-
 
105659
        return getFlipkartitem();
-
 
105660
 
-
 
105661
      }
-
 
105662
      throw new IllegalStateException();
-
 
105663
    }
-
 
105664
 
-
 
105665
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
105666
    public boolean isSet(_Fields field) {
-
 
105667
      if (field == null) {
-
 
105668
        throw new IllegalArgumentException();
-
 
105669
      }
-
 
105670
 
-
 
105671
      switch (field) {
-
 
105672
      case FLIPKARTITEM:
-
 
105673
        return isSetFlipkartitem();
-
 
105674
      }
-
 
105675
      throw new IllegalStateException();
-
 
105676
    }
-
 
105677
 
-
 
105678
    @Override
-
 
105679
    public boolean equals(Object that) {
-
 
105680
      if (that == null)
-
 
105681
        return false;
-
 
105682
      if (that instanceof addOrUpdateFlipkartItem_args)
-
 
105683
        return this.equals((addOrUpdateFlipkartItem_args)that);
-
 
105684
      return false;
-
 
105685
    }
-
 
105686
 
-
 
105687
    public boolean equals(addOrUpdateFlipkartItem_args that) {
-
 
105688
      if (that == null)
-
 
105689
        return false;
-
 
105690
 
-
 
105691
      boolean this_present_flipkartitem = true && this.isSetFlipkartitem();
-
 
105692
      boolean that_present_flipkartitem = true && that.isSetFlipkartitem();
-
 
105693
      if (this_present_flipkartitem || that_present_flipkartitem) {
-
 
105694
        if (!(this_present_flipkartitem && that_present_flipkartitem))
-
 
105695
          return false;
-
 
105696
        if (!this.flipkartitem.equals(that.flipkartitem))
-
 
105697
          return false;
-
 
105698
      }
-
 
105699
 
-
 
105700
      return true;
-
 
105701
    }
-
 
105702
 
-
 
105703
    @Override
-
 
105704
    public int hashCode() {
-
 
105705
      return 0;
-
 
105706
    }
-
 
105707
 
-
 
105708
    public int compareTo(addOrUpdateFlipkartItem_args other) {
-
 
105709
      if (!getClass().equals(other.getClass())) {
-
 
105710
        return getClass().getName().compareTo(other.getClass().getName());
-
 
105711
      }
-
 
105712
 
-
 
105713
      int lastComparison = 0;
-
 
105714
      addOrUpdateFlipkartItem_args typedOther = (addOrUpdateFlipkartItem_args)other;
-
 
105715
 
-
 
105716
      lastComparison = Boolean.valueOf(isSetFlipkartitem()).compareTo(typedOther.isSetFlipkartitem());
-
 
105717
      if (lastComparison != 0) {
-
 
105718
        return lastComparison;
-
 
105719
      }
-
 
105720
      if (isSetFlipkartitem()) {
-
 
105721
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.flipkartitem, typedOther.flipkartitem);
-
 
105722
        if (lastComparison != 0) {
-
 
105723
          return lastComparison;
-
 
105724
        }
-
 
105725
      }
-
 
105726
      return 0;
-
 
105727
    }
-
 
105728
 
-
 
105729
    public _Fields fieldForId(int fieldId) {
-
 
105730
      return _Fields.findByThriftId(fieldId);
-
 
105731
    }
-
 
105732
 
-
 
105733
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
105734
      org.apache.thrift.protocol.TField field;
-
 
105735
      iprot.readStructBegin();
-
 
105736
      while (true)
-
 
105737
      {
-
 
105738
        field = iprot.readFieldBegin();
-
 
105739
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
105740
          break;
-
 
105741
        }
-
 
105742
        switch (field.id) {
-
 
105743
          case -1: // FLIPKARTITEM
-
 
105744
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
105745
              this.flipkartitem = new FlipkartItem();
-
 
105746
              this.flipkartitem.read(iprot);
-
 
105747
            } else { 
-
 
105748
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
105749
            }
-
 
105750
            break;
-
 
105751
          default:
-
 
105752
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
105753
        }
-
 
105754
        iprot.readFieldEnd();
-
 
105755
      }
-
 
105756
      iprot.readStructEnd();
-
 
105757
      validate();
-
 
105758
    }
-
 
105759
 
-
 
105760
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
105761
      validate();
-
 
105762
 
-
 
105763
      oprot.writeStructBegin(STRUCT_DESC);
-
 
105764
      if (this.flipkartitem != null) {
-
 
105765
        oprot.writeFieldBegin(FLIPKARTITEM_FIELD_DESC);
-
 
105766
        this.flipkartitem.write(oprot);
-
 
105767
        oprot.writeFieldEnd();
-
 
105768
      }
-
 
105769
      oprot.writeFieldStop();
-
 
105770
      oprot.writeStructEnd();
-
 
105771
    }
-
 
105772
 
-
 
105773
    @Override
-
 
105774
    public String toString() {
-
 
105775
      StringBuilder sb = new StringBuilder("addOrUpdateFlipkartItem_args(");
-
 
105776
      boolean first = true;
-
 
105777
 
-
 
105778
      sb.append("flipkartitem:");
-
 
105779
      if (this.flipkartitem == null) {
-
 
105780
        sb.append("null");
-
 
105781
      } else {
-
 
105782
        sb.append(this.flipkartitem);
-
 
105783
      }
-
 
105784
      first = false;
-
 
105785
      sb.append(")");
-
 
105786
      return sb.toString();
-
 
105787
    }
-
 
105788
 
-
 
105789
    public void validate() throws org.apache.thrift.TException {
-
 
105790
      // check for required fields
-
 
105791
    }
-
 
105792
 
-
 
105793
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
105794
      try {
-
 
105795
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
105796
      } catch (org.apache.thrift.TException te) {
-
 
105797
        throw new java.io.IOException(te);
-
 
105798
      }
-
 
105799
    }
-
 
105800
 
-
 
105801
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
105802
      try {
-
 
105803
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
105804
      } catch (org.apache.thrift.TException te) {
-
 
105805
        throw new java.io.IOException(te);
-
 
105806
      }
-
 
105807
    }
-
 
105808
 
-
 
105809
  }
-
 
105810
 
-
 
105811
  public static class addOrUpdateFlipkartItem_result implements org.apache.thrift.TBase<addOrUpdateFlipkartItem_result, addOrUpdateFlipkartItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
105812
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateFlipkartItem_result");
-
 
105813
 
-
 
105814
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
105815
 
-
 
105816
    private boolean success; // required
-
 
105817
 
-
 
105818
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
105819
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
105820
      SUCCESS((short)0, "success");
-
 
105821
 
-
 
105822
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
105823
 
-
 
105824
      static {
-
 
105825
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
105826
          byName.put(field.getFieldName(), field);
-
 
105827
        }
-
 
105828
      }
-
 
105829
 
-
 
105830
      /**
-
 
105831
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
105832
       */
-
 
105833
      public static _Fields findByThriftId(int fieldId) {
-
 
105834
        switch(fieldId) {
-
 
105835
          case 0: // SUCCESS
-
 
105836
            return SUCCESS;
-
 
105837
          default:
-
 
105838
            return null;
-
 
105839
        }
-
 
105840
      }
-
 
105841
 
-
 
105842
      /**
-
 
105843
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
105844
       * if it is not found.
-
 
105845
       */
-
 
105846
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
105847
        _Fields fields = findByThriftId(fieldId);
-
 
105848
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
105849
        return fields;
-
 
105850
      }
-
 
105851
 
-
 
105852
      /**
-
 
105853
       * Find the _Fields constant that matches name, or null if its not found.
-
 
105854
       */
-
 
105855
      public static _Fields findByName(String name) {
-
 
105856
        return byName.get(name);
-
 
105857
      }
-
 
105858
 
-
 
105859
      private final short _thriftId;
-
 
105860
      private final String _fieldName;
-
 
105861
 
-
 
105862
      _Fields(short thriftId, String fieldName) {
-
 
105863
        _thriftId = thriftId;
-
 
105864
        _fieldName = fieldName;
-
 
105865
      }
-
 
105866
 
-
 
105867
      public short getThriftFieldId() {
-
 
105868
        return _thriftId;
-
 
105869
      }
-
 
105870
 
-
 
105871
      public String getFieldName() {
-
 
105872
        return _fieldName;
-
 
105873
      }
-
 
105874
    }
-
 
105875
 
-
 
105876
    // isset id assignments
-
 
105877
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
105878
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
105879
 
-
 
105880
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
105881
    static {
-
 
105882
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
105883
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
105884
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
105885
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
105886
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateFlipkartItem_result.class, metaDataMap);
-
 
105887
    }
-
 
105888
 
-
 
105889
    public addOrUpdateFlipkartItem_result() {
-
 
105890
    }
-
 
105891
 
-
 
105892
    public addOrUpdateFlipkartItem_result(
-
 
105893
      boolean success)
-
 
105894
    {
-
 
105895
      this();
-
 
105896
      this.success = success;
-
 
105897
      setSuccessIsSet(true);
-
 
105898
    }
-
 
105899
 
-
 
105900
    /**
-
 
105901
     * Performs a deep copy on <i>other</i>.
-
 
105902
     */
-
 
105903
    public addOrUpdateFlipkartItem_result(addOrUpdateFlipkartItem_result other) {
-
 
105904
      __isset_bit_vector.clear();
-
 
105905
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
105906
      this.success = other.success;
-
 
105907
    }
-
 
105908
 
-
 
105909
    public addOrUpdateFlipkartItem_result deepCopy() {
-
 
105910
      return new addOrUpdateFlipkartItem_result(this);
-
 
105911
    }
-
 
105912
 
-
 
105913
    @Override
-
 
105914
    public void clear() {
-
 
105915
      setSuccessIsSet(false);
-
 
105916
      this.success = false;
-
 
105917
    }
-
 
105918
 
-
 
105919
    public boolean isSuccess() {
-
 
105920
      return this.success;
-
 
105921
    }
-
 
105922
 
-
 
105923
    public void setSuccess(boolean success) {
-
 
105924
      this.success = success;
-
 
105925
      setSuccessIsSet(true);
-
 
105926
    }
-
 
105927
 
-
 
105928
    public void unsetSuccess() {
-
 
105929
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
105930
    }
-
 
105931
 
-
 
105932
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
105933
    public boolean isSetSuccess() {
-
 
105934
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
105935
    }
-
 
105936
 
-
 
105937
    public void setSuccessIsSet(boolean value) {
-
 
105938
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
105939
    }
-
 
105940
 
-
 
105941
    public void setFieldValue(_Fields field, Object value) {
-
 
105942
      switch (field) {
-
 
105943
      case SUCCESS:
-
 
105944
        if (value == null) {
-
 
105945
          unsetSuccess();
-
 
105946
        } else {
-
 
105947
          setSuccess((Boolean)value);
-
 
105948
        }
-
 
105949
        break;
-
 
105950
 
-
 
105951
      }
-
 
105952
    }
-
 
105953
 
-
 
105954
    public Object getFieldValue(_Fields field) {
-
 
105955
      switch (field) {
-
 
105956
      case SUCCESS:
-
 
105957
        return Boolean.valueOf(isSuccess());
-
 
105958
 
-
 
105959
      }
-
 
105960
      throw new IllegalStateException();
-
 
105961
    }
-
 
105962
 
-
 
105963
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
105964
    public boolean isSet(_Fields field) {
-
 
105965
      if (field == null) {
-
 
105966
        throw new IllegalArgumentException();
-
 
105967
      }
-
 
105968
 
-
 
105969
      switch (field) {
-
 
105970
      case SUCCESS:
-
 
105971
        return isSetSuccess();
-
 
105972
      }
-
 
105973
      throw new IllegalStateException();
-
 
105974
    }
-
 
105975
 
-
 
105976
    @Override
-
 
105977
    public boolean equals(Object that) {
-
 
105978
      if (that == null)
-
 
105979
        return false;
-
 
105980
      if (that instanceof addOrUpdateFlipkartItem_result)
-
 
105981
        return this.equals((addOrUpdateFlipkartItem_result)that);
-
 
105982
      return false;
-
 
105983
    }
-
 
105984
 
-
 
105985
    public boolean equals(addOrUpdateFlipkartItem_result that) {
-
 
105986
      if (that == null)
-
 
105987
        return false;
-
 
105988
 
-
 
105989
      boolean this_present_success = true;
-
 
105990
      boolean that_present_success = true;
-
 
105991
      if (this_present_success || that_present_success) {
-
 
105992
        if (!(this_present_success && that_present_success))
-
 
105993
          return false;
-
 
105994
        if (this.success != that.success)
-
 
105995
          return false;
-
 
105996
      }
-
 
105997
 
-
 
105998
      return true;
-
 
105999
    }
-
 
106000
 
-
 
106001
    @Override
-
 
106002
    public int hashCode() {
-
 
106003
      return 0;
-
 
106004
    }
-
 
106005
 
-
 
106006
    public int compareTo(addOrUpdateFlipkartItem_result other) {
-
 
106007
      if (!getClass().equals(other.getClass())) {
-
 
106008
        return getClass().getName().compareTo(other.getClass().getName());
-
 
106009
      }
-
 
106010
 
-
 
106011
      int lastComparison = 0;
-
 
106012
      addOrUpdateFlipkartItem_result typedOther = (addOrUpdateFlipkartItem_result)other;
-
 
106013
 
-
 
106014
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
106015
      if (lastComparison != 0) {
-
 
106016
        return lastComparison;
-
 
106017
      }
-
 
106018
      if (isSetSuccess()) {
-
 
106019
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
106020
        if (lastComparison != 0) {
-
 
106021
          return lastComparison;
-
 
106022
        }
-
 
106023
      }
-
 
106024
      return 0;
-
 
106025
    }
-
 
106026
 
-
 
106027
    public _Fields fieldForId(int fieldId) {
-
 
106028
      return _Fields.findByThriftId(fieldId);
-
 
106029
    }
-
 
106030
 
-
 
106031
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
106032
      org.apache.thrift.protocol.TField field;
-
 
106033
      iprot.readStructBegin();
-
 
106034
      while (true)
-
 
106035
      {
-
 
106036
        field = iprot.readFieldBegin();
-
 
106037
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
106038
          break;
-
 
106039
        }
-
 
106040
        switch (field.id) {
-
 
106041
          case 0: // SUCCESS
-
 
106042
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
106043
              this.success = iprot.readBool();
-
 
106044
              setSuccessIsSet(true);
-
 
106045
            } else { 
-
 
106046
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
106047
            }
-
 
106048
            break;
-
 
106049
          default:
-
 
106050
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
106051
        }
-
 
106052
        iprot.readFieldEnd();
-
 
106053
      }
-
 
106054
      iprot.readStructEnd();
-
 
106055
      validate();
-
 
106056
    }
-
 
106057
 
-
 
106058
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
106059
      oprot.writeStructBegin(STRUCT_DESC);
-
 
106060
 
-
 
106061
      if (this.isSetSuccess()) {
-
 
106062
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
106063
        oprot.writeBool(this.success);
-
 
106064
        oprot.writeFieldEnd();
-
 
106065
      }
-
 
106066
      oprot.writeFieldStop();
-
 
106067
      oprot.writeStructEnd();
-
 
106068
    }
-
 
106069
 
-
 
106070
    @Override
-
 
106071
    public String toString() {
-
 
106072
      StringBuilder sb = new StringBuilder("addOrUpdateFlipkartItem_result(");
-
 
106073
      boolean first = true;
-
 
106074
 
-
 
106075
      sb.append("success:");
-
 
106076
      sb.append(this.success);
-
 
106077
      first = false;
-
 
106078
      sb.append(")");
-
 
106079
      return sb.toString();
-
 
106080
    }
-
 
106081
 
-
 
106082
    public void validate() throws org.apache.thrift.TException {
-
 
106083
      // check for required fields
-
 
106084
    }
-
 
106085
 
-
 
106086
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
106087
      try {
-
 
106088
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
106089
      } catch (org.apache.thrift.TException te) {
-
 
106090
        throw new java.io.IOException(te);
-
 
106091
      }
-
 
106092
    }
-
 
106093
 
-
 
106094
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
106095
      try {
-
 
106096
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
106097
      } catch (org.apache.thrift.TException te) {
-
 
106098
        throw new java.io.IOException(te);
-
 
106099
      }
-
 
106100
    }
-
 
106101
 
-
 
106102
  }
-
 
106103
 
-
 
106104
  public static class getFlipkartItem_args implements org.apache.thrift.TBase<getFlipkartItem_args, getFlipkartItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
106105
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItem_args");
-
 
106106
 
-
 
106107
    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);
-
 
106108
 
-
 
106109
    private long item_id; // required
-
 
106110
 
-
 
106111
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
106112
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
106113
      ITEM_ID((short)1, "item_id");
-
 
106114
 
-
 
106115
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
106116
 
-
 
106117
      static {
-
 
106118
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
106119
          byName.put(field.getFieldName(), field);
-
 
106120
        }
-
 
106121
      }
-
 
106122
 
-
 
106123
      /**
-
 
106124
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
106125
       */
-
 
106126
      public static _Fields findByThriftId(int fieldId) {
-
 
106127
        switch(fieldId) {
-
 
106128
          case 1: // ITEM_ID
-
 
106129
            return ITEM_ID;
-
 
106130
          default:
-
 
106131
            return null;
-
 
106132
        }
-
 
106133
      }
-
 
106134
 
-
 
106135
      /**
-
 
106136
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
106137
       * if it is not found.
-
 
106138
       */
-
 
106139
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
106140
        _Fields fields = findByThriftId(fieldId);
-
 
106141
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
106142
        return fields;
-
 
106143
      }
-
 
106144
 
-
 
106145
      /**
-
 
106146
       * Find the _Fields constant that matches name, or null if its not found.
-
 
106147
       */
-
 
106148
      public static _Fields findByName(String name) {
-
 
106149
        return byName.get(name);
-
 
106150
      }
-
 
106151
 
-
 
106152
      private final short _thriftId;
-
 
106153
      private final String _fieldName;
-
 
106154
 
-
 
106155
      _Fields(short thriftId, String fieldName) {
-
 
106156
        _thriftId = thriftId;
-
 
106157
        _fieldName = fieldName;
-
 
106158
      }
-
 
106159
 
-
 
106160
      public short getThriftFieldId() {
-
 
106161
        return _thriftId;
-
 
106162
      }
-
 
106163
 
-
 
106164
      public String getFieldName() {
-
 
106165
        return _fieldName;
-
 
106166
      }
-
 
106167
    }
-
 
106168
 
-
 
106169
    // isset id assignments
-
 
106170
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
106171
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
106172
 
-
 
106173
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
106174
    static {
-
 
106175
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
106176
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
106177
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
106178
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
106179
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartItem_args.class, metaDataMap);
-
 
106180
    }
-
 
106181
 
-
 
106182
    public getFlipkartItem_args() {
-
 
106183
    }
-
 
106184
 
-
 
106185
    public getFlipkartItem_args(
-
 
106186
      long item_id)
-
 
106187
    {
-
 
106188
      this();
-
 
106189
      this.item_id = item_id;
-
 
106190
      setItem_idIsSet(true);
-
 
106191
    }
-
 
106192
 
-
 
106193
    /**
-
 
106194
     * Performs a deep copy on <i>other</i>.
-
 
106195
     */
-
 
106196
    public getFlipkartItem_args(getFlipkartItem_args other) {
-
 
106197
      __isset_bit_vector.clear();
-
 
106198
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
106199
      this.item_id = other.item_id;
-
 
106200
    }
-
 
106201
 
-
 
106202
    public getFlipkartItem_args deepCopy() {
-
 
106203
      return new getFlipkartItem_args(this);
-
 
106204
    }
-
 
106205
 
-
 
106206
    @Override
-
 
106207
    public void clear() {
-
 
106208
      setItem_idIsSet(false);
-
 
106209
      this.item_id = 0;
-
 
106210
    }
-
 
106211
 
-
 
106212
    public long getItem_id() {
-
 
106213
      return this.item_id;
-
 
106214
    }
-
 
106215
 
-
 
106216
    public void setItem_id(long item_id) {
-
 
106217
      this.item_id = item_id;
-
 
106218
      setItem_idIsSet(true);
-
 
106219
    }
-
 
106220
 
-
 
106221
    public void unsetItem_id() {
-
 
106222
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
106223
    }
-
 
106224
 
-
 
106225
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
106226
    public boolean isSetItem_id() {
-
 
106227
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
106228
    }
-
 
106229
 
-
 
106230
    public void setItem_idIsSet(boolean value) {
-
 
106231
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
106232
    }
-
 
106233
 
-
 
106234
    public void setFieldValue(_Fields field, Object value) {
-
 
106235
      switch (field) {
-
 
106236
      case ITEM_ID:
-
 
106237
        if (value == null) {
-
 
106238
          unsetItem_id();
-
 
106239
        } else {
-
 
106240
          setItem_id((Long)value);
-
 
106241
        }
-
 
106242
        break;
-
 
106243
 
-
 
106244
      }
-
 
106245
    }
-
 
106246
 
-
 
106247
    public Object getFieldValue(_Fields field) {
-
 
106248
      switch (field) {
-
 
106249
      case ITEM_ID:
-
 
106250
        return Long.valueOf(getItem_id());
-
 
106251
 
-
 
106252
      }
-
 
106253
      throw new IllegalStateException();
-
 
106254
    }
-
 
106255
 
-
 
106256
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
106257
    public boolean isSet(_Fields field) {
-
 
106258
      if (field == null) {
-
 
106259
        throw new IllegalArgumentException();
-
 
106260
      }
-
 
106261
 
-
 
106262
      switch (field) {
-
 
106263
      case ITEM_ID:
-
 
106264
        return isSetItem_id();
-
 
106265
      }
-
 
106266
      throw new IllegalStateException();
-
 
106267
    }
-
 
106268
 
-
 
106269
    @Override
-
 
106270
    public boolean equals(Object that) {
-
 
106271
      if (that == null)
-
 
106272
        return false;
-
 
106273
      if (that instanceof getFlipkartItem_args)
-
 
106274
        return this.equals((getFlipkartItem_args)that);
-
 
106275
      return false;
-
 
106276
    }
-
 
106277
 
-
 
106278
    public boolean equals(getFlipkartItem_args that) {
-
 
106279
      if (that == null)
-
 
106280
        return false;
-
 
106281
 
-
 
106282
      boolean this_present_item_id = true;
-
 
106283
      boolean that_present_item_id = true;
-
 
106284
      if (this_present_item_id || that_present_item_id) {
-
 
106285
        if (!(this_present_item_id && that_present_item_id))
-
 
106286
          return false;
-
 
106287
        if (this.item_id != that.item_id)
-
 
106288
          return false;
-
 
106289
      }
-
 
106290
 
-
 
106291
      return true;
-
 
106292
    }
-
 
106293
 
-
 
106294
    @Override
-
 
106295
    public int hashCode() {
-
 
106296
      return 0;
-
 
106297
    }
-
 
106298
 
-
 
106299
    public int compareTo(getFlipkartItem_args other) {
-
 
106300
      if (!getClass().equals(other.getClass())) {
-
 
106301
        return getClass().getName().compareTo(other.getClass().getName());
-
 
106302
      }
-
 
106303
 
-
 
106304
      int lastComparison = 0;
-
 
106305
      getFlipkartItem_args typedOther = (getFlipkartItem_args)other;
-
 
106306
 
-
 
106307
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
106308
      if (lastComparison != 0) {
-
 
106309
        return lastComparison;
-
 
106310
      }
-
 
106311
      if (isSetItem_id()) {
-
 
106312
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
106313
        if (lastComparison != 0) {
-
 
106314
          return lastComparison;
-
 
106315
        }
-
 
106316
      }
-
 
106317
      return 0;
-
 
106318
    }
-
 
106319
 
-
 
106320
    public _Fields fieldForId(int fieldId) {
-
 
106321
      return _Fields.findByThriftId(fieldId);
-
 
106322
    }
-
 
106323
 
-
 
106324
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
106325
      org.apache.thrift.protocol.TField field;
-
 
106326
      iprot.readStructBegin();
-
 
106327
      while (true)
-
 
106328
      {
-
 
106329
        field = iprot.readFieldBegin();
-
 
106330
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
106331
          break;
-
 
106332
        }
-
 
106333
        switch (field.id) {
-
 
106334
          case 1: // ITEM_ID
-
 
106335
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
106336
              this.item_id = iprot.readI64();
-
 
106337
              setItem_idIsSet(true);
-
 
106338
            } else { 
-
 
106339
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
106340
            }
-
 
106341
            break;
-
 
106342
          default:
-
 
106343
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
106344
        }
-
 
106345
        iprot.readFieldEnd();
-
 
106346
      }
-
 
106347
      iprot.readStructEnd();
-
 
106348
      validate();
-
 
106349
    }
-
 
106350
 
-
 
106351
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
106352
      validate();
-
 
106353
 
-
 
106354
      oprot.writeStructBegin(STRUCT_DESC);
-
 
106355
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
106356
      oprot.writeI64(this.item_id);
-
 
106357
      oprot.writeFieldEnd();
-
 
106358
      oprot.writeFieldStop();
-
 
106359
      oprot.writeStructEnd();
-
 
106360
    }
-
 
106361
 
-
 
106362
    @Override
-
 
106363
    public String toString() {
-
 
106364
      StringBuilder sb = new StringBuilder("getFlipkartItem_args(");
-
 
106365
      boolean first = true;
-
 
106366
 
-
 
106367
      sb.append("item_id:");
-
 
106368
      sb.append(this.item_id);
-
 
106369
      first = false;
-
 
106370
      sb.append(")");
-
 
106371
      return sb.toString();
-
 
106372
    }
-
 
106373
 
-
 
106374
    public void validate() throws org.apache.thrift.TException {
-
 
106375
      // check for required fields
-
 
106376
    }
-
 
106377
 
-
 
106378
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
106379
      try {
-
 
106380
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
106381
      } catch (org.apache.thrift.TException te) {
-
 
106382
        throw new java.io.IOException(te);
-
 
106383
      }
-
 
106384
    }
-
 
106385
 
-
 
106386
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
106387
      try {
-
 
106388
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
106389
        __isset_bit_vector = new BitSet(1);
-
 
106390
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
106391
      } catch (org.apache.thrift.TException te) {
-
 
106392
        throw new java.io.IOException(te);
-
 
106393
      }
-
 
106394
    }
-
 
106395
 
-
 
106396
  }
-
 
106397
 
-
 
106398
  public static class getFlipkartItem_result implements org.apache.thrift.TBase<getFlipkartItem_result, getFlipkartItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
106399
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItem_result");
-
 
106400
 
-
 
106401
    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);
-
 
106402
 
-
 
106403
    private FlipkartItem success; // required
-
 
106404
 
-
 
106405
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
106406
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
106407
      SUCCESS((short)0, "success");
-
 
106408
 
-
 
106409
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
106410
 
-
 
106411
      static {
-
 
106412
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
106413
          byName.put(field.getFieldName(), field);
-
 
106414
        }
-
 
106415
      }
-
 
106416
 
-
 
106417
      /**
-
 
106418
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
106419
       */
-
 
106420
      public static _Fields findByThriftId(int fieldId) {
-
 
106421
        switch(fieldId) {
-
 
106422
          case 0: // SUCCESS
-
 
106423
            return SUCCESS;
-
 
106424
          default:
-
 
106425
            return null;
-
 
106426
        }
-
 
106427
      }
-
 
106428
 
-
 
106429
      /**
-
 
106430
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
106431
       * if it is not found.
-
 
106432
       */
-
 
106433
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
106434
        _Fields fields = findByThriftId(fieldId);
-
 
106435
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
106436
        return fields;
-
 
106437
      }
-
 
106438
 
-
 
106439
      /**
-
 
106440
       * Find the _Fields constant that matches name, or null if its not found.
-
 
106441
       */
-
 
106442
      public static _Fields findByName(String name) {
-
 
106443
        return byName.get(name);
-
 
106444
      }
-
 
106445
 
-
 
106446
      private final short _thriftId;
-
 
106447
      private final String _fieldName;
-
 
106448
 
-
 
106449
      _Fields(short thriftId, String fieldName) {
-
 
106450
        _thriftId = thriftId;
-
 
106451
        _fieldName = fieldName;
-
 
106452
      }
-
 
106453
 
-
 
106454
      public short getThriftFieldId() {
-
 
106455
        return _thriftId;
-
 
106456
      }
-
 
106457
 
-
 
106458
      public String getFieldName() {
-
 
106459
        return _fieldName;
-
 
106460
      }
-
 
106461
    }
-
 
106462
 
-
 
106463
    // isset id assignments
-
 
106464
 
-
 
106465
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
106466
    static {
-
 
106467
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
106468
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
106469
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartItem.class)));
-
 
106470
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
106471
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartItem_result.class, metaDataMap);
-
 
106472
    }
-
 
106473
 
-
 
106474
    public getFlipkartItem_result() {
-
 
106475
    }
-
 
106476
 
-
 
106477
    public getFlipkartItem_result(
-
 
106478
      FlipkartItem success)
-
 
106479
    {
-
 
106480
      this();
-
 
106481
      this.success = success;
-
 
106482
    }
-
 
106483
 
-
 
106484
    /**
-
 
106485
     * Performs a deep copy on <i>other</i>.
-
 
106486
     */
-
 
106487
    public getFlipkartItem_result(getFlipkartItem_result other) {
-
 
106488
      if (other.isSetSuccess()) {
-
 
106489
        this.success = new FlipkartItem(other.success);
-
 
106490
      }
-
 
106491
    }
-
 
106492
 
-
 
106493
    public getFlipkartItem_result deepCopy() {
-
 
106494
      return new getFlipkartItem_result(this);
-
 
106495
    }
-
 
106496
 
-
 
106497
    @Override
-
 
106498
    public void clear() {
-
 
106499
      this.success = null;
-
 
106500
    }
-
 
106501
 
-
 
106502
    public FlipkartItem getSuccess() {
-
 
106503
      return this.success;
-
 
106504
    }
-
 
106505
 
-
 
106506
    public void setSuccess(FlipkartItem success) {
-
 
106507
      this.success = success;
-
 
106508
    }
-
 
106509
 
-
 
106510
    public void unsetSuccess() {
-
 
106511
      this.success = null;
-
 
106512
    }
-
 
106513
 
-
 
106514
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
106515
    public boolean isSetSuccess() {
-
 
106516
      return this.success != null;
-
 
106517
    }
-
 
106518
 
-
 
106519
    public void setSuccessIsSet(boolean value) {
-
 
106520
      if (!value) {
-
 
106521
        this.success = null;
-
 
106522
      }
-
 
106523
    }
-
 
106524
 
-
 
106525
    public void setFieldValue(_Fields field, Object value) {
-
 
106526
      switch (field) {
-
 
106527
      case SUCCESS:
-
 
106528
        if (value == null) {
-
 
106529
          unsetSuccess();
-
 
106530
        } else {
-
 
106531
          setSuccess((FlipkartItem)value);
-
 
106532
        }
-
 
106533
        break;
-
 
106534
 
-
 
106535
      }
-
 
106536
    }
-
 
106537
 
-
 
106538
    public Object getFieldValue(_Fields field) {
-
 
106539
      switch (field) {
-
 
106540
      case SUCCESS:
-
 
106541
        return getSuccess();
-
 
106542
 
-
 
106543
      }
-
 
106544
      throw new IllegalStateException();
-
 
106545
    }
-
 
106546
 
-
 
106547
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
106548
    public boolean isSet(_Fields field) {
-
 
106549
      if (field == null) {
-
 
106550
        throw new IllegalArgumentException();
-
 
106551
      }
-
 
106552
 
-
 
106553
      switch (field) {
-
 
106554
      case SUCCESS:
-
 
106555
        return isSetSuccess();
-
 
106556
      }
-
 
106557
      throw new IllegalStateException();
-
 
106558
    }
-
 
106559
 
-
 
106560
    @Override
-
 
106561
    public boolean equals(Object that) {
-
 
106562
      if (that == null)
-
 
106563
        return false;
-
 
106564
      if (that instanceof getFlipkartItem_result)
-
 
106565
        return this.equals((getFlipkartItem_result)that);
-
 
106566
      return false;
-
 
106567
    }
-
 
106568
 
-
 
106569
    public boolean equals(getFlipkartItem_result that) {
-
 
106570
      if (that == null)
-
 
106571
        return false;
-
 
106572
 
-
 
106573
      boolean this_present_success = true && this.isSetSuccess();
-
 
106574
      boolean that_present_success = true && that.isSetSuccess();
-
 
106575
      if (this_present_success || that_present_success) {
-
 
106576
        if (!(this_present_success && that_present_success))
-
 
106577
          return false;
-
 
106578
        if (!this.success.equals(that.success))
-
 
106579
          return false;
-
 
106580
      }
-
 
106581
 
-
 
106582
      return true;
-
 
106583
    }
-
 
106584
 
-
 
106585
    @Override
-
 
106586
    public int hashCode() {
-
 
106587
      return 0;
-
 
106588
    }
-
 
106589
 
-
 
106590
    public int compareTo(getFlipkartItem_result other) {
-
 
106591
      if (!getClass().equals(other.getClass())) {
-
 
106592
        return getClass().getName().compareTo(other.getClass().getName());
-
 
106593
      }
-
 
106594
 
-
 
106595
      int lastComparison = 0;
-
 
106596
      getFlipkartItem_result typedOther = (getFlipkartItem_result)other;
-
 
106597
 
-
 
106598
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
106599
      if (lastComparison != 0) {
-
 
106600
        return lastComparison;
-
 
106601
      }
-
 
106602
      if (isSetSuccess()) {
-
 
106603
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
106604
        if (lastComparison != 0) {
-
 
106605
          return lastComparison;
-
 
106606
        }
-
 
106607
      }
-
 
106608
      return 0;
-
 
106609
    }
-
 
106610
 
-
 
106611
    public _Fields fieldForId(int fieldId) {
-
 
106612
      return _Fields.findByThriftId(fieldId);
-
 
106613
    }
-
 
106614
 
-
 
106615
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
106616
      org.apache.thrift.protocol.TField field;
-
 
106617
      iprot.readStructBegin();
-
 
106618
      while (true)
-
 
106619
      {
-
 
106620
        field = iprot.readFieldBegin();
-
 
106621
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
106622
          break;
-
 
106623
        }
-
 
106624
        switch (field.id) {
-
 
106625
          case 0: // SUCCESS
-
 
106626
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
106627
              this.success = new FlipkartItem();
-
 
106628
              this.success.read(iprot);
-
 
106629
            } else { 
-
 
106630
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
106631
            }
-
 
106632
            break;
-
 
106633
          default:
-
 
106634
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
106635
        }
-
 
106636
        iprot.readFieldEnd();
-
 
106637
      }
-
 
106638
      iprot.readStructEnd();
-
 
106639
      validate();
-
 
106640
    }
-
 
106641
 
-
 
106642
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
106643
      oprot.writeStructBegin(STRUCT_DESC);
-
 
106644
 
-
 
106645
      if (this.isSetSuccess()) {
-
 
106646
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
106647
        this.success.write(oprot);
-
 
106648
        oprot.writeFieldEnd();
-
 
106649
      }
-
 
106650
      oprot.writeFieldStop();
-
 
106651
      oprot.writeStructEnd();
-
 
106652
    }
-
 
106653
 
-
 
106654
    @Override
-
 
106655
    public String toString() {
-
 
106656
      StringBuilder sb = new StringBuilder("getFlipkartItem_result(");
-
 
106657
      boolean first = true;
-
 
106658
 
-
 
106659
      sb.append("success:");
-
 
106660
      if (this.success == null) {
-
 
106661
        sb.append("null");
-
 
106662
      } else {
-
 
106663
        sb.append(this.success);
-
 
106664
      }
-
 
106665
      first = false;
-
 
106666
      sb.append(")");
-
 
106667
      return sb.toString();
-
 
106668
    }
-
 
106669
 
-
 
106670
    public void validate() throws org.apache.thrift.TException {
-
 
106671
      // check for required fields
-
 
106672
    }
-
 
106673
 
-
 
106674
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
106675
      try {
-
 
106676
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
106677
      } catch (org.apache.thrift.TException te) {
-
 
106678
        throw new java.io.IOException(te);
-
 
106679
      }
-
 
106680
    }
-
 
106681
 
-
 
106682
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
106683
      try {
-
 
106684
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
106685
      } catch (org.apache.thrift.TException te) {
-
 
106686
        throw new java.io.IOException(te);
-
 
106687
      }
-
 
106688
    }
-
 
106689
 
-
 
106690
  }
-
 
106691
 
-
 
106692
  public static class getFlipkartItemDetails_args implements org.apache.thrift.TBase<getFlipkartItemDetails_args, getFlipkartItemDetails_args._Fields>, java.io.Serializable, Cloneable   {
-
 
106693
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItemDetails_args");
-
 
106694
 
-
 
106695
    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);
-
 
106696
 
-
 
106697
    private long item_id; // required
-
 
106698
 
-
 
106699
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
106700
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
106701
      ITEM_ID((short)1, "item_id");
-
 
106702
 
-
 
106703
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
106704
 
-
 
106705
      static {
-
 
106706
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
106707
          byName.put(field.getFieldName(), field);
-
 
106708
        }
-
 
106709
      }
-
 
106710
 
-
 
106711
      /**
-
 
106712
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
106713
       */
-
 
106714
      public static _Fields findByThriftId(int fieldId) {
-
 
106715
        switch(fieldId) {
-
 
106716
          case 1: // ITEM_ID
-
 
106717
            return ITEM_ID;
-
 
106718
          default:
-
 
106719
            return null;
-
 
106720
        }
-
 
106721
      }
-
 
106722
 
-
 
106723
      /**
-
 
106724
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
106725
       * if it is not found.
-
 
106726
       */
-
 
106727
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
106728
        _Fields fields = findByThriftId(fieldId);
-
 
106729
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
106730
        return fields;
-
 
106731
      }
-
 
106732
 
-
 
106733
      /**
-
 
106734
       * Find the _Fields constant that matches name, or null if its not found.
-
 
106735
       */
-
 
106736
      public static _Fields findByName(String name) {
-
 
106737
        return byName.get(name);
-
 
106738
      }
-
 
106739
 
-
 
106740
      private final short _thriftId;
-
 
106741
      private final String _fieldName;
-
 
106742
 
-
 
106743
      _Fields(short thriftId, String fieldName) {
-
 
106744
        _thriftId = thriftId;
-
 
106745
        _fieldName = fieldName;
-
 
106746
      }
-
 
106747
 
-
 
106748
      public short getThriftFieldId() {
-
 
106749
        return _thriftId;
-
 
106750
      }
-
 
106751
 
-
 
106752
      public String getFieldName() {
-
 
106753
        return _fieldName;
-
 
106754
      }
-
 
106755
    }
-
 
106756
 
-
 
106757
    // isset id assignments
-
 
106758
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
106759
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
106760
 
-
 
106761
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
106762
    static {
-
 
106763
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
106764
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
106765
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
106766
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
106767
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartItemDetails_args.class, metaDataMap);
-
 
106768
    }
-
 
106769
 
-
 
106770
    public getFlipkartItemDetails_args() {
-
 
106771
    }
-
 
106772
 
-
 
106773
    public getFlipkartItemDetails_args(
-
 
106774
      long item_id)
-
 
106775
    {
-
 
106776
      this();
-
 
106777
      this.item_id = item_id;
-
 
106778
      setItem_idIsSet(true);
-
 
106779
    }
-
 
106780
 
-
 
106781
    /**
-
 
106782
     * Performs a deep copy on <i>other</i>.
-
 
106783
     */
-
 
106784
    public getFlipkartItemDetails_args(getFlipkartItemDetails_args other) {
-
 
106785
      __isset_bit_vector.clear();
-
 
106786
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
106787
      this.item_id = other.item_id;
-
 
106788
    }
-
 
106789
 
-
 
106790
    public getFlipkartItemDetails_args deepCopy() {
-
 
106791
      return new getFlipkartItemDetails_args(this);
-
 
106792
    }
-
 
106793
 
-
 
106794
    @Override
-
 
106795
    public void clear() {
-
 
106796
      setItem_idIsSet(false);
-
 
106797
      this.item_id = 0;
-
 
106798
    }
-
 
106799
 
-
 
106800
    public long getItem_id() {
-
 
106801
      return this.item_id;
-
 
106802
    }
-
 
106803
 
-
 
106804
    public void setItem_id(long item_id) {
-
 
106805
      this.item_id = item_id;
-
 
106806
      setItem_idIsSet(true);
-
 
106807
    }
-
 
106808
 
-
 
106809
    public void unsetItem_id() {
-
 
106810
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
106811
    }
-
 
106812
 
-
 
106813
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
106814
    public boolean isSetItem_id() {
-
 
106815
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
106816
    }
-
 
106817
 
-
 
106818
    public void setItem_idIsSet(boolean value) {
-
 
106819
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
106820
    }
-
 
106821
 
-
 
106822
    public void setFieldValue(_Fields field, Object value) {
-
 
106823
      switch (field) {
-
 
106824
      case ITEM_ID:
-
 
106825
        if (value == null) {
-
 
106826
          unsetItem_id();
-
 
106827
        } else {
-
 
106828
          setItem_id((Long)value);
-
 
106829
        }
-
 
106830
        break;
-
 
106831
 
-
 
106832
      }
-
 
106833
    }
-
 
106834
 
-
 
106835
    public Object getFieldValue(_Fields field) {
-
 
106836
      switch (field) {
-
 
106837
      case ITEM_ID:
-
 
106838
        return Long.valueOf(getItem_id());
-
 
106839
 
-
 
106840
      }
-
 
106841
      throw new IllegalStateException();
-
 
106842
    }
-
 
106843
 
-
 
106844
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
106845
    public boolean isSet(_Fields field) {
-
 
106846
      if (field == null) {
-
 
106847
        throw new IllegalArgumentException();
-
 
106848
      }
-
 
106849
 
-
 
106850
      switch (field) {
-
 
106851
      case ITEM_ID:
-
 
106852
        return isSetItem_id();
-
 
106853
      }
-
 
106854
      throw new IllegalStateException();
-
 
106855
    }
-
 
106856
 
-
 
106857
    @Override
-
 
106858
    public boolean equals(Object that) {
-
 
106859
      if (that == null)
-
 
106860
        return false;
-
 
106861
      if (that instanceof getFlipkartItemDetails_args)
-
 
106862
        return this.equals((getFlipkartItemDetails_args)that);
-
 
106863
      return false;
-
 
106864
    }
-
 
106865
 
-
 
106866
    public boolean equals(getFlipkartItemDetails_args that) {
-
 
106867
      if (that == null)
-
 
106868
        return false;
-
 
106869
 
-
 
106870
      boolean this_present_item_id = true;
-
 
106871
      boolean that_present_item_id = true;
-
 
106872
      if (this_present_item_id || that_present_item_id) {
-
 
106873
        if (!(this_present_item_id && that_present_item_id))
-
 
106874
          return false;
-
 
106875
        if (this.item_id != that.item_id)
-
 
106876
          return false;
-
 
106877
      }
-
 
106878
 
-
 
106879
      return true;
-
 
106880
    }
-
 
106881
 
-
 
106882
    @Override
-
 
106883
    public int hashCode() {
-
 
106884
      return 0;
-
 
106885
    }
-
 
106886
 
-
 
106887
    public int compareTo(getFlipkartItemDetails_args other) {
-
 
106888
      if (!getClass().equals(other.getClass())) {
-
 
106889
        return getClass().getName().compareTo(other.getClass().getName());
-
 
106890
      }
-
 
106891
 
-
 
106892
      int lastComparison = 0;
-
 
106893
      getFlipkartItemDetails_args typedOther = (getFlipkartItemDetails_args)other;
-
 
106894
 
-
 
106895
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
106896
      if (lastComparison != 0) {
-
 
106897
        return lastComparison;
-
 
106898
      }
-
 
106899
      if (isSetItem_id()) {
-
 
106900
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
106901
        if (lastComparison != 0) {
-
 
106902
          return lastComparison;
-
 
106903
        }
-
 
106904
      }
-
 
106905
      return 0;
-
 
106906
    }
-
 
106907
 
-
 
106908
    public _Fields fieldForId(int fieldId) {
-
 
106909
      return _Fields.findByThriftId(fieldId);
-
 
106910
    }
-
 
106911
 
-
 
106912
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
106913
      org.apache.thrift.protocol.TField field;
-
 
106914
      iprot.readStructBegin();
-
 
106915
      while (true)
-
 
106916
      {
-
 
106917
        field = iprot.readFieldBegin();
-
 
106918
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
106919
          break;
-
 
106920
        }
-
 
106921
        switch (field.id) {
-
 
106922
          case 1: // ITEM_ID
-
 
106923
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
106924
              this.item_id = iprot.readI64();
-
 
106925
              setItem_idIsSet(true);
-
 
106926
            } else { 
-
 
106927
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
106928
            }
-
 
106929
            break;
-
 
106930
          default:
-
 
106931
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
106932
        }
-
 
106933
        iprot.readFieldEnd();
-
 
106934
      }
-
 
106935
      iprot.readStructEnd();
-
 
106936
      validate();
-
 
106937
    }
-
 
106938
 
-
 
106939
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
106940
      validate();
-
 
106941
 
-
 
106942
      oprot.writeStructBegin(STRUCT_DESC);
-
 
106943
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
106944
      oprot.writeI64(this.item_id);
-
 
106945
      oprot.writeFieldEnd();
-
 
106946
      oprot.writeFieldStop();
-
 
106947
      oprot.writeStructEnd();
-
 
106948
    }
-
 
106949
 
-
 
106950
    @Override
-
 
106951
    public String toString() {
-
 
106952
      StringBuilder sb = new StringBuilder("getFlipkartItemDetails_args(");
-
 
106953
      boolean first = true;
-
 
106954
 
-
 
106955
      sb.append("item_id:");
-
 
106956
      sb.append(this.item_id);
-
 
106957
      first = false;
-
 
106958
      sb.append(")");
-
 
106959
      return sb.toString();
-
 
106960
    }
-
 
106961
 
-
 
106962
    public void validate() throws org.apache.thrift.TException {
-
 
106963
      // check for required fields
-
 
106964
    }
-
 
106965
 
-
 
106966
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
106967
      try {
-
 
106968
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
106969
      } catch (org.apache.thrift.TException te) {
-
 
106970
        throw new java.io.IOException(te);
-
 
106971
      }
-
 
106972
    }
-
 
106973
 
-
 
106974
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
106975
      try {
-
 
106976
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
106977
        __isset_bit_vector = new BitSet(1);
-
 
106978
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
106979
      } catch (org.apache.thrift.TException te) {
-
 
106980
        throw new java.io.IOException(te);
-
 
106981
      }
-
 
106982
    }
-
 
106983
 
-
 
106984
  }
-
 
106985
 
-
 
106986
  public static class getFlipkartItemDetails_result implements org.apache.thrift.TBase<getFlipkartItemDetails_result, getFlipkartItemDetails_result._Fields>, java.io.Serializable, Cloneable   {
-
 
106987
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItemDetails_result");
-
 
106988
 
-
 
106989
    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);
-
 
106990
 
-
 
106991
    private FlipkartItemDetails success; // required
-
 
106992
 
-
 
106993
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
106994
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
106995
      SUCCESS((short)0, "success");
-
 
106996
 
-
 
106997
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
106998
 
-
 
106999
      static {
-
 
107000
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
107001
          byName.put(field.getFieldName(), field);
-
 
107002
        }
-
 
107003
      }
-
 
107004
 
-
 
107005
      /**
-
 
107006
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
107007
       */
-
 
107008
      public static _Fields findByThriftId(int fieldId) {
-
 
107009
        switch(fieldId) {
-
 
107010
          case 0: // SUCCESS
-
 
107011
            return SUCCESS;
-
 
107012
          default:
-
 
107013
            return null;
-
 
107014
        }
-
 
107015
      }
-
 
107016
 
-
 
107017
      /**
-
 
107018
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
107019
       * if it is not found.
-
 
107020
       */
-
 
107021
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
107022
        _Fields fields = findByThriftId(fieldId);
-
 
107023
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
107024
        return fields;
-
 
107025
      }
-
 
107026
 
-
 
107027
      /**
-
 
107028
       * Find the _Fields constant that matches name, or null if its not found.
-
 
107029
       */
-
 
107030
      public static _Fields findByName(String name) {
-
 
107031
        return byName.get(name);
-
 
107032
      }
-
 
107033
 
-
 
107034
      private final short _thriftId;
-
 
107035
      private final String _fieldName;
-
 
107036
 
-
 
107037
      _Fields(short thriftId, String fieldName) {
-
 
107038
        _thriftId = thriftId;
-
 
107039
        _fieldName = fieldName;
-
 
107040
      }
-
 
107041
 
-
 
107042
      public short getThriftFieldId() {
-
 
107043
        return _thriftId;
-
 
107044
      }
-
 
107045
 
-
 
107046
      public String getFieldName() {
-
 
107047
        return _fieldName;
-
 
107048
      }
-
 
107049
    }
-
 
107050
 
-
 
107051
    // isset id assignments
-
 
107052
 
-
 
107053
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
107054
    static {
-
 
107055
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
107056
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
107057
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartItemDetails.class)));
-
 
107058
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
107059
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartItemDetails_result.class, metaDataMap);
-
 
107060
    }
-
 
107061
 
-
 
107062
    public getFlipkartItemDetails_result() {
-
 
107063
    }
-
 
107064
 
-
 
107065
    public getFlipkartItemDetails_result(
-
 
107066
      FlipkartItemDetails success)
-
 
107067
    {
-
 
107068
      this();
-
 
107069
      this.success = success;
-
 
107070
    }
-
 
107071
 
-
 
107072
    /**
-
 
107073
     * Performs a deep copy on <i>other</i>.
-
 
107074
     */
-
 
107075
    public getFlipkartItemDetails_result(getFlipkartItemDetails_result other) {
-
 
107076
      if (other.isSetSuccess()) {
-
 
107077
        this.success = new FlipkartItemDetails(other.success);
-
 
107078
      }
-
 
107079
    }
-
 
107080
 
-
 
107081
    public getFlipkartItemDetails_result deepCopy() {
-
 
107082
      return new getFlipkartItemDetails_result(this);
-
 
107083
    }
-
 
107084
 
-
 
107085
    @Override
-
 
107086
    public void clear() {
-
 
107087
      this.success = null;
-
 
107088
    }
-
 
107089
 
-
 
107090
    public FlipkartItemDetails getSuccess() {
-
 
107091
      return this.success;
-
 
107092
    }
-
 
107093
 
-
 
107094
    public void setSuccess(FlipkartItemDetails success) {
-
 
107095
      this.success = success;
-
 
107096
    }
-
 
107097
 
-
 
107098
    public void unsetSuccess() {
-
 
107099
      this.success = null;
-
 
107100
    }
-
 
107101
 
-
 
107102
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
107103
    public boolean isSetSuccess() {
-
 
107104
      return this.success != null;
-
 
107105
    }
-
 
107106
 
-
 
107107
    public void setSuccessIsSet(boolean value) {
-
 
107108
      if (!value) {
-
 
107109
        this.success = null;
-
 
107110
      }
-
 
107111
    }
-
 
107112
 
-
 
107113
    public void setFieldValue(_Fields field, Object value) {
-
 
107114
      switch (field) {
-
 
107115
      case SUCCESS:
-
 
107116
        if (value == null) {
-
 
107117
          unsetSuccess();
-
 
107118
        } else {
-
 
107119
          setSuccess((FlipkartItemDetails)value);
-
 
107120
        }
-
 
107121
        break;
-
 
107122
 
-
 
107123
      }
-
 
107124
    }
-
 
107125
 
-
 
107126
    public Object getFieldValue(_Fields field) {
-
 
107127
      switch (field) {
-
 
107128
      case SUCCESS:
-
 
107129
        return getSuccess();
-
 
107130
 
-
 
107131
      }
-
 
107132
      throw new IllegalStateException();
-
 
107133
    }
-
 
107134
 
-
 
107135
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
107136
    public boolean isSet(_Fields field) {
-
 
107137
      if (field == null) {
-
 
107138
        throw new IllegalArgumentException();
-
 
107139
      }
-
 
107140
 
-
 
107141
      switch (field) {
-
 
107142
      case SUCCESS:
-
 
107143
        return isSetSuccess();
-
 
107144
      }
-
 
107145
      throw new IllegalStateException();
-
 
107146
    }
-
 
107147
 
-
 
107148
    @Override
-
 
107149
    public boolean equals(Object that) {
-
 
107150
      if (that == null)
-
 
107151
        return false;
-
 
107152
      if (that instanceof getFlipkartItemDetails_result)
-
 
107153
        return this.equals((getFlipkartItemDetails_result)that);
-
 
107154
      return false;
-
 
107155
    }
-
 
107156
 
-
 
107157
    public boolean equals(getFlipkartItemDetails_result that) {
-
 
107158
      if (that == null)
-
 
107159
        return false;
-
 
107160
 
-
 
107161
      boolean this_present_success = true && this.isSetSuccess();
-
 
107162
      boolean that_present_success = true && that.isSetSuccess();
-
 
107163
      if (this_present_success || that_present_success) {
-
 
107164
        if (!(this_present_success && that_present_success))
-
 
107165
          return false;
-
 
107166
        if (!this.success.equals(that.success))
-
 
107167
          return false;
-
 
107168
      }
-
 
107169
 
-
 
107170
      return true;
-
 
107171
    }
-
 
107172
 
-
 
107173
    @Override
-
 
107174
    public int hashCode() {
-
 
107175
      return 0;
-
 
107176
    }
-
 
107177
 
-
 
107178
    public int compareTo(getFlipkartItemDetails_result other) {
-
 
107179
      if (!getClass().equals(other.getClass())) {
-
 
107180
        return getClass().getName().compareTo(other.getClass().getName());
-
 
107181
      }
-
 
107182
 
-
 
107183
      int lastComparison = 0;
-
 
107184
      getFlipkartItemDetails_result typedOther = (getFlipkartItemDetails_result)other;
-
 
107185
 
-
 
107186
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
107187
      if (lastComparison != 0) {
-
 
107188
        return lastComparison;
-
 
107189
      }
-
 
107190
      if (isSetSuccess()) {
-
 
107191
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
107192
        if (lastComparison != 0) {
-
 
107193
          return lastComparison;
-
 
107194
        }
-
 
107195
      }
-
 
107196
      return 0;
-
 
107197
    }
-
 
107198
 
-
 
107199
    public _Fields fieldForId(int fieldId) {
-
 
107200
      return _Fields.findByThriftId(fieldId);
-
 
107201
    }
-
 
107202
 
-
 
107203
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
107204
      org.apache.thrift.protocol.TField field;
-
 
107205
      iprot.readStructBegin();
-
 
107206
      while (true)
-
 
107207
      {
-
 
107208
        field = iprot.readFieldBegin();
-
 
107209
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
107210
          break;
-
 
107211
        }
-
 
107212
        switch (field.id) {
-
 
107213
          case 0: // SUCCESS
-
 
107214
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
107215
              this.success = new FlipkartItemDetails();
-
 
107216
              this.success.read(iprot);
-
 
107217
            } else { 
-
 
107218
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
107219
            }
-
 
107220
            break;
-
 
107221
          default:
-
 
107222
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
107223
        }
-
 
107224
        iprot.readFieldEnd();
-
 
107225
      }
-
 
107226
      iprot.readStructEnd();
-
 
107227
      validate();
-
 
107228
    }
-
 
107229
 
-
 
107230
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
107231
      oprot.writeStructBegin(STRUCT_DESC);
-
 
107232
 
-
 
107233
      if (this.isSetSuccess()) {
-
 
107234
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
107235
        this.success.write(oprot);
-
 
107236
        oprot.writeFieldEnd();
-
 
107237
      }
-
 
107238
      oprot.writeFieldStop();
-
 
107239
      oprot.writeStructEnd();
-
 
107240
    }
-
 
107241
 
-
 
107242
    @Override
-
 
107243
    public String toString() {
-
 
107244
      StringBuilder sb = new StringBuilder("getFlipkartItemDetails_result(");
-
 
107245
      boolean first = true;
-
 
107246
 
-
 
107247
      sb.append("success:");
-
 
107248
      if (this.success == null) {
-
 
107249
        sb.append("null");
-
 
107250
      } else {
-
 
107251
        sb.append(this.success);
-
 
107252
      }
-
 
107253
      first = false;
-
 
107254
      sb.append(")");
-
 
107255
      return sb.toString();
-
 
107256
    }
-
 
107257
 
-
 
107258
    public void validate() throws org.apache.thrift.TException {
-
 
107259
      // check for required fields
-
 
107260
    }
-
 
107261
 
-
 
107262
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
107263
      try {
-
 
107264
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
107265
      } catch (org.apache.thrift.TException te) {
-
 
107266
        throw new java.io.IOException(te);
-
 
107267
      }
-
 
107268
    }
-
 
107269
 
-
 
107270
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
107271
      try {
-
 
107272
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
107273
      } catch (org.apache.thrift.TException te) {
-
 
107274
        throw new java.io.IOException(te);
-
 
107275
      }
-
 
107276
    }
-
 
107277
 
-
 
107278
  }
-
 
107279
 
-
 
107280
  public static class getFlipkartItems_args implements org.apache.thrift.TBase<getFlipkartItems_args, getFlipkartItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
107281
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItems_args");
-
 
107282
 
-
 
107283
    private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
107284
    private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
107285
 
-
 
107286
    private long offset; // required
-
 
107287
    private long limit; // required
-
 
107288
 
-
 
107289
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
107290
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
107291
      OFFSET((short)1, "offset"),
-
 
107292
      LIMIT((short)2, "limit");
-
 
107293
 
-
 
107294
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
107295
 
-
 
107296
      static {
-
 
107297
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
107298
          byName.put(field.getFieldName(), field);
-
 
107299
        }
-
 
107300
      }
-
 
107301
 
-
 
107302
      /**
-
 
107303
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
107304
       */
-
 
107305
      public static _Fields findByThriftId(int fieldId) {
-
 
107306
        switch(fieldId) {
-
 
107307
          case 1: // OFFSET
-
 
107308
            return OFFSET;
-
 
107309
          case 2: // LIMIT
-
 
107310
            return LIMIT;
-
 
107311
          default:
-
 
107312
            return null;
-
 
107313
        }
-
 
107314
      }
-
 
107315
 
-
 
107316
      /**
-
 
107317
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
107318
       * if it is not found.
-
 
107319
       */
-
 
107320
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
107321
        _Fields fields = findByThriftId(fieldId);
-
 
107322
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
107323
        return fields;
-
 
107324
      }
-
 
107325
 
-
 
107326
      /**
-
 
107327
       * Find the _Fields constant that matches name, or null if its not found.
-
 
107328
       */
-
 
107329
      public static _Fields findByName(String name) {
-
 
107330
        return byName.get(name);
-
 
107331
      }
-
 
107332
 
-
 
107333
      private final short _thriftId;
-
 
107334
      private final String _fieldName;
-
 
107335
 
-
 
107336
      _Fields(short thriftId, String fieldName) {
-
 
107337
        _thriftId = thriftId;
-
 
107338
        _fieldName = fieldName;
-
 
107339
      }
-
 
107340
 
-
 
107341
      public short getThriftFieldId() {
-
 
107342
        return _thriftId;
-
 
107343
      }
-
 
107344
 
-
 
107345
      public String getFieldName() {
-
 
107346
        return _fieldName;
-
 
107347
      }
-
 
107348
    }
-
 
107349
 
-
 
107350
    // isset id assignments
-
 
107351
    private static final int __OFFSET_ISSET_ID = 0;
-
 
107352
    private static final int __LIMIT_ISSET_ID = 1;
-
 
107353
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
107354
 
-
 
107355
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
107356
    static {
-
 
107357
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
107358
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
107359
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
107360
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
107361
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
107362
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
107363
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartItems_args.class, metaDataMap);
-
 
107364
    }
-
 
107365
 
-
 
107366
    public getFlipkartItems_args() {
-
 
107367
    }
-
 
107368
 
-
 
107369
    public getFlipkartItems_args(
-
 
107370
      long offset,
-
 
107371
      long limit)
-
 
107372
    {
-
 
107373
      this();
-
 
107374
      this.offset = offset;
-
 
107375
      setOffsetIsSet(true);
-
 
107376
      this.limit = limit;
-
 
107377
      setLimitIsSet(true);
-
 
107378
    }
-
 
107379
 
-
 
107380
    /**
-
 
107381
     * Performs a deep copy on <i>other</i>.
-
 
107382
     */
-
 
107383
    public getFlipkartItems_args(getFlipkartItems_args other) {
-
 
107384
      __isset_bit_vector.clear();
-
 
107385
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
107386
      this.offset = other.offset;
-
 
107387
      this.limit = other.limit;
-
 
107388
    }
-
 
107389
 
-
 
107390
    public getFlipkartItems_args deepCopy() {
-
 
107391
      return new getFlipkartItems_args(this);
-
 
107392
    }
-
 
107393
 
-
 
107394
    @Override
-
 
107395
    public void clear() {
-
 
107396
      setOffsetIsSet(false);
-
 
107397
      this.offset = 0;
-
 
107398
      setLimitIsSet(false);
-
 
107399
      this.limit = 0;
-
 
107400
    }
-
 
107401
 
-
 
107402
    public long getOffset() {
-
 
107403
      return this.offset;
-
 
107404
    }
-
 
107405
 
-
 
107406
    public void setOffset(long offset) {
-
 
107407
      this.offset = offset;
-
 
107408
      setOffsetIsSet(true);
-
 
107409
    }
-
 
107410
 
-
 
107411
    public void unsetOffset() {
-
 
107412
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
-
 
107413
    }
-
 
107414
 
-
 
107415
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
-
 
107416
    public boolean isSetOffset() {
-
 
107417
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
-
 
107418
    }
-
 
107419
 
-
 
107420
    public void setOffsetIsSet(boolean value) {
-
 
107421
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
-
 
107422
    }
-
 
107423
 
-
 
107424
    public long getLimit() {
-
 
107425
      return this.limit;
-
 
107426
    }
-
 
107427
 
-
 
107428
    public void setLimit(long limit) {
-
 
107429
      this.limit = limit;
-
 
107430
      setLimitIsSet(true);
-
 
107431
    }
-
 
107432
 
-
 
107433
    public void unsetLimit() {
-
 
107434
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
-
 
107435
    }
-
 
107436
 
-
 
107437
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
-
 
107438
    public boolean isSetLimit() {
-
 
107439
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
-
 
107440
    }
-
 
107441
 
-
 
107442
    public void setLimitIsSet(boolean value) {
-
 
107443
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
-
 
107444
    }
-
 
107445
 
-
 
107446
    public void setFieldValue(_Fields field, Object value) {
-
 
107447
      switch (field) {
-
 
107448
      case OFFSET:
-
 
107449
        if (value == null) {
-
 
107450
          unsetOffset();
-
 
107451
        } else {
-
 
107452
          setOffset((Long)value);
-
 
107453
        }
-
 
107454
        break;
-
 
107455
 
-
 
107456
      case LIMIT:
-
 
107457
        if (value == null) {
-
 
107458
          unsetLimit();
-
 
107459
        } else {
-
 
107460
          setLimit((Long)value);
-
 
107461
        }
-
 
107462
        break;
-
 
107463
 
-
 
107464
      }
-
 
107465
    }
-
 
107466
 
-
 
107467
    public Object getFieldValue(_Fields field) {
-
 
107468
      switch (field) {
-
 
107469
      case OFFSET:
-
 
107470
        return Long.valueOf(getOffset());
-
 
107471
 
-
 
107472
      case LIMIT:
-
 
107473
        return Long.valueOf(getLimit());
-
 
107474
 
-
 
107475
      }
-
 
107476
      throw new IllegalStateException();
-
 
107477
    }
-
 
107478
 
-
 
107479
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
107480
    public boolean isSet(_Fields field) {
-
 
107481
      if (field == null) {
-
 
107482
        throw new IllegalArgumentException();
-
 
107483
      }
-
 
107484
 
-
 
107485
      switch (field) {
-
 
107486
      case OFFSET:
-
 
107487
        return isSetOffset();
-
 
107488
      case LIMIT:
-
 
107489
        return isSetLimit();
-
 
107490
      }
-
 
107491
      throw new IllegalStateException();
-
 
107492
    }
-
 
107493
 
-
 
107494
    @Override
-
 
107495
    public boolean equals(Object that) {
-
 
107496
      if (that == null)
-
 
107497
        return false;
-
 
107498
      if (that instanceof getFlipkartItems_args)
-
 
107499
        return this.equals((getFlipkartItems_args)that);
-
 
107500
      return false;
-
 
107501
    }
-
 
107502
 
-
 
107503
    public boolean equals(getFlipkartItems_args that) {
-
 
107504
      if (that == null)
-
 
107505
        return false;
-
 
107506
 
-
 
107507
      boolean this_present_offset = true;
-
 
107508
      boolean that_present_offset = true;
-
 
107509
      if (this_present_offset || that_present_offset) {
-
 
107510
        if (!(this_present_offset && that_present_offset))
-
 
107511
          return false;
-
 
107512
        if (this.offset != that.offset)
-
 
107513
          return false;
-
 
107514
      }
-
 
107515
 
-
 
107516
      boolean this_present_limit = true;
-
 
107517
      boolean that_present_limit = true;
-
 
107518
      if (this_present_limit || that_present_limit) {
-
 
107519
        if (!(this_present_limit && that_present_limit))
-
 
107520
          return false;
-
 
107521
        if (this.limit != that.limit)
-
 
107522
          return false;
-
 
107523
      }
-
 
107524
 
-
 
107525
      return true;
-
 
107526
    }
-
 
107527
 
-
 
107528
    @Override
-
 
107529
    public int hashCode() {
-
 
107530
      return 0;
-
 
107531
    }
-
 
107532
 
-
 
107533
    public int compareTo(getFlipkartItems_args other) {
-
 
107534
      if (!getClass().equals(other.getClass())) {
-
 
107535
        return getClass().getName().compareTo(other.getClass().getName());
-
 
107536
      }
-
 
107537
 
-
 
107538
      int lastComparison = 0;
-
 
107539
      getFlipkartItems_args typedOther = (getFlipkartItems_args)other;
-
 
107540
 
-
 
107541
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
-
 
107542
      if (lastComparison != 0) {
-
 
107543
        return lastComparison;
-
 
107544
      }
-
 
107545
      if (isSetOffset()) {
-
 
107546
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
-
 
107547
        if (lastComparison != 0) {
-
 
107548
          return lastComparison;
-
 
107549
        }
-
 
107550
      }
-
 
107551
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
-
 
107552
      if (lastComparison != 0) {
-
 
107553
        return lastComparison;
-
 
107554
      }
-
 
107555
      if (isSetLimit()) {
-
 
107556
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
-
 
107557
        if (lastComparison != 0) {
-
 
107558
          return lastComparison;
-
 
107559
        }
-
 
107560
      }
-
 
107561
      return 0;
-
 
107562
    }
-
 
107563
 
-
 
107564
    public _Fields fieldForId(int fieldId) {
-
 
107565
      return _Fields.findByThriftId(fieldId);
-
 
107566
    }
-
 
107567
 
-
 
107568
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
107569
      org.apache.thrift.protocol.TField field;
-
 
107570
      iprot.readStructBegin();
-
 
107571
      while (true)
-
 
107572
      {
-
 
107573
        field = iprot.readFieldBegin();
-
 
107574
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
107575
          break;
-
 
107576
        }
-
 
107577
        switch (field.id) {
-
 
107578
          case 1: // OFFSET
-
 
107579
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
107580
              this.offset = iprot.readI64();
-
 
107581
              setOffsetIsSet(true);
-
 
107582
            } else { 
-
 
107583
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
107584
            }
-
 
107585
            break;
-
 
107586
          case 2: // LIMIT
-
 
107587
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
107588
              this.limit = iprot.readI64();
-
 
107589
              setLimitIsSet(true);
-
 
107590
            } else { 
-
 
107591
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
107592
            }
-
 
107593
            break;
-
 
107594
          default:
-
 
107595
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
107596
        }
-
 
107597
        iprot.readFieldEnd();
-
 
107598
      }
-
 
107599
      iprot.readStructEnd();
-
 
107600
      validate();
-
 
107601
    }
-
 
107602
 
-
 
107603
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
107604
      validate();
-
 
107605
 
-
 
107606
      oprot.writeStructBegin(STRUCT_DESC);
-
 
107607
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
-
 
107608
      oprot.writeI64(this.offset);
-
 
107609
      oprot.writeFieldEnd();
-
 
107610
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
-
 
107611
      oprot.writeI64(this.limit);
-
 
107612
      oprot.writeFieldEnd();
-
 
107613
      oprot.writeFieldStop();
-
 
107614
      oprot.writeStructEnd();
-
 
107615
    }
-
 
107616
 
-
 
107617
    @Override
-
 
107618
    public String toString() {
-
 
107619
      StringBuilder sb = new StringBuilder("getFlipkartItems_args(");
-
 
107620
      boolean first = true;
-
 
107621
 
-
 
107622
      sb.append("offset:");
-
 
107623
      sb.append(this.offset);
-
 
107624
      first = false;
-
 
107625
      if (!first) sb.append(", ");
-
 
107626
      sb.append("limit:");
-
 
107627
      sb.append(this.limit);
-
 
107628
      first = false;
-
 
107629
      sb.append(")");
-
 
107630
      return sb.toString();
-
 
107631
    }
-
 
107632
 
-
 
107633
    public void validate() throws org.apache.thrift.TException {
-
 
107634
      // check for required fields
-
 
107635
    }
-
 
107636
 
-
 
107637
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
107638
      try {
-
 
107639
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
107640
      } catch (org.apache.thrift.TException te) {
-
 
107641
        throw new java.io.IOException(te);
-
 
107642
      }
-
 
107643
    }
-
 
107644
 
-
 
107645
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
107646
      try {
-
 
107647
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
107648
        __isset_bit_vector = new BitSet(1);
-
 
107649
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
107650
      } catch (org.apache.thrift.TException te) {
-
 
107651
        throw new java.io.IOException(te);
-
 
107652
      }
-
 
107653
    }
-
 
107654
 
-
 
107655
  }
-
 
107656
 
-
 
107657
  public static class getFlipkartItems_result implements org.apache.thrift.TBase<getFlipkartItems_result, getFlipkartItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
107658
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItems_result");
-
 
107659
 
-
 
107660
    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);
-
 
107661
 
-
 
107662
    private List<FlipkartItemDetails> success; // required
-
 
107663
 
-
 
107664
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
107665
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
107666
      SUCCESS((short)0, "success");
-
 
107667
 
-
 
107668
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
107669
 
-
 
107670
      static {
-
 
107671
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
107672
          byName.put(field.getFieldName(), field);
-
 
107673
        }
-
 
107674
      }
-
 
107675
 
-
 
107676
      /**
-
 
107677
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
107678
       */
-
 
107679
      public static _Fields findByThriftId(int fieldId) {
-
 
107680
        switch(fieldId) {
-
 
107681
          case 0: // SUCCESS
-
 
107682
            return SUCCESS;
-
 
107683
          default:
-
 
107684
            return null;
-
 
107685
        }
-
 
107686
      }
-
 
107687
 
-
 
107688
      /**
-
 
107689
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
107690
       * if it is not found.
-
 
107691
       */
-
 
107692
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
107693
        _Fields fields = findByThriftId(fieldId);
-
 
107694
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
107695
        return fields;
-
 
107696
      }
-
 
107697
 
-
 
107698
      /**
-
 
107699
       * Find the _Fields constant that matches name, or null if its not found.
-
 
107700
       */
-
 
107701
      public static _Fields findByName(String name) {
-
 
107702
        return byName.get(name);
-
 
107703
      }
-
 
107704
 
-
 
107705
      private final short _thriftId;
-
 
107706
      private final String _fieldName;
-
 
107707
 
-
 
107708
      _Fields(short thriftId, String fieldName) {
-
 
107709
        _thriftId = thriftId;
-
 
107710
        _fieldName = fieldName;
-
 
107711
      }
-
 
107712
 
-
 
107713
      public short getThriftFieldId() {
-
 
107714
        return _thriftId;
-
 
107715
      }
-
 
107716
 
-
 
107717
      public String getFieldName() {
-
 
107718
        return _fieldName;
-
 
107719
      }
-
 
107720
    }
-
 
107721
 
-
 
107722
    // isset id assignments
-
 
107723
 
-
 
107724
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
107725
    static {
-
 
107726
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
107727
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
107728
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
107729
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartItemDetails.class))));
-
 
107730
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
107731
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartItems_result.class, metaDataMap);
-
 
107732
    }
-
 
107733
 
-
 
107734
    public getFlipkartItems_result() {
-
 
107735
    }
-
 
107736
 
-
 
107737
    public getFlipkartItems_result(
-
 
107738
      List<FlipkartItemDetails> success)
-
 
107739
    {
-
 
107740
      this();
-
 
107741
      this.success = success;
-
 
107742
    }
-
 
107743
 
-
 
107744
    /**
-
 
107745
     * Performs a deep copy on <i>other</i>.
-
 
107746
     */
-
 
107747
    public getFlipkartItems_result(getFlipkartItems_result other) {
-
 
107748
      if (other.isSetSuccess()) {
-
 
107749
        List<FlipkartItemDetails> __this__success = new ArrayList<FlipkartItemDetails>();
-
 
107750
        for (FlipkartItemDetails other_element : other.success) {
-
 
107751
          __this__success.add(new FlipkartItemDetails(other_element));
-
 
107752
        }
-
 
107753
        this.success = __this__success;
-
 
107754
      }
-
 
107755
    }
-
 
107756
 
-
 
107757
    public getFlipkartItems_result deepCopy() {
-
 
107758
      return new getFlipkartItems_result(this);
-
 
107759
    }
-
 
107760
 
-
 
107761
    @Override
-
 
107762
    public void clear() {
-
 
107763
      this.success = null;
-
 
107764
    }
-
 
107765
 
-
 
107766
    public int getSuccessSize() {
-
 
107767
      return (this.success == null) ? 0 : this.success.size();
-
 
107768
    }
-
 
107769
 
-
 
107770
    public java.util.Iterator<FlipkartItemDetails> getSuccessIterator() {
-
 
107771
      return (this.success == null) ? null : this.success.iterator();
-
 
107772
    }
-
 
107773
 
-
 
107774
    public void addToSuccess(FlipkartItemDetails elem) {
-
 
107775
      if (this.success == null) {
-
 
107776
        this.success = new ArrayList<FlipkartItemDetails>();
-
 
107777
      }
-
 
107778
      this.success.add(elem);
-
 
107779
    }
-
 
107780
 
-
 
107781
    public List<FlipkartItemDetails> getSuccess() {
-
 
107782
      return this.success;
-
 
107783
    }
-
 
107784
 
-
 
107785
    public void setSuccess(List<FlipkartItemDetails> success) {
-
 
107786
      this.success = success;
-
 
107787
    }
-
 
107788
 
-
 
107789
    public void unsetSuccess() {
-
 
107790
      this.success = null;
-
 
107791
    }
-
 
107792
 
-
 
107793
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
107794
    public boolean isSetSuccess() {
-
 
107795
      return this.success != null;
-
 
107796
    }
-
 
107797
 
-
 
107798
    public void setSuccessIsSet(boolean value) {
-
 
107799
      if (!value) {
-
 
107800
        this.success = null;
-
 
107801
      }
-
 
107802
    }
-
 
107803
 
-
 
107804
    public void setFieldValue(_Fields field, Object value) {
-
 
107805
      switch (field) {
-
 
107806
      case SUCCESS:
-
 
107807
        if (value == null) {
-
 
107808
          unsetSuccess();
-
 
107809
        } else {
-
 
107810
          setSuccess((List<FlipkartItemDetails>)value);
-
 
107811
        }
-
 
107812
        break;
-
 
107813
 
-
 
107814
      }
-
 
107815
    }
-
 
107816
 
-
 
107817
    public Object getFieldValue(_Fields field) {
-
 
107818
      switch (field) {
-
 
107819
      case SUCCESS:
-
 
107820
        return getSuccess();
-
 
107821
 
-
 
107822
      }
-
 
107823
      throw new IllegalStateException();
-
 
107824
    }
-
 
107825
 
-
 
107826
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
107827
    public boolean isSet(_Fields field) {
-
 
107828
      if (field == null) {
-
 
107829
        throw new IllegalArgumentException();
-
 
107830
      }
-
 
107831
 
-
 
107832
      switch (field) {
-
 
107833
      case SUCCESS:
-
 
107834
        return isSetSuccess();
-
 
107835
      }
-
 
107836
      throw new IllegalStateException();
-
 
107837
    }
-
 
107838
 
-
 
107839
    @Override
-
 
107840
    public boolean equals(Object that) {
-
 
107841
      if (that == null)
-
 
107842
        return false;
-
 
107843
      if (that instanceof getFlipkartItems_result)
-
 
107844
        return this.equals((getFlipkartItems_result)that);
-
 
107845
      return false;
-
 
107846
    }
-
 
107847
 
-
 
107848
    public boolean equals(getFlipkartItems_result that) {
-
 
107849
      if (that == null)
-
 
107850
        return false;
-
 
107851
 
-
 
107852
      boolean this_present_success = true && this.isSetSuccess();
-
 
107853
      boolean that_present_success = true && that.isSetSuccess();
-
 
107854
      if (this_present_success || that_present_success) {
-
 
107855
        if (!(this_present_success && that_present_success))
-
 
107856
          return false;
-
 
107857
        if (!this.success.equals(that.success))
-
 
107858
          return false;
-
 
107859
      }
-
 
107860
 
-
 
107861
      return true;
-
 
107862
    }
-
 
107863
 
-
 
107864
    @Override
-
 
107865
    public int hashCode() {
-
 
107866
      return 0;
-
 
107867
    }
-
 
107868
 
-
 
107869
    public int compareTo(getFlipkartItems_result other) {
-
 
107870
      if (!getClass().equals(other.getClass())) {
-
 
107871
        return getClass().getName().compareTo(other.getClass().getName());
-
 
107872
      }
-
 
107873
 
-
 
107874
      int lastComparison = 0;
-
 
107875
      getFlipkartItems_result typedOther = (getFlipkartItems_result)other;
-
 
107876
 
-
 
107877
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
107878
      if (lastComparison != 0) {
-
 
107879
        return lastComparison;
-
 
107880
      }
-
 
107881
      if (isSetSuccess()) {
-
 
107882
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
107883
        if (lastComparison != 0) {
-
 
107884
          return lastComparison;
-
 
107885
        }
-
 
107886
      }
-
 
107887
      return 0;
-
 
107888
    }
-
 
107889
 
-
 
107890
    public _Fields fieldForId(int fieldId) {
-
 
107891
      return _Fields.findByThriftId(fieldId);
-
 
107892
    }
-
 
107893
 
-
 
107894
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
107895
      org.apache.thrift.protocol.TField field;
-
 
107896
      iprot.readStructBegin();
-
 
107897
      while (true)
-
 
107898
      {
-
 
107899
        field = iprot.readFieldBegin();
-
 
107900
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
107901
          break;
-
 
107902
        }
-
 
107903
        switch (field.id) {
-
 
107904
          case 0: // SUCCESS
-
 
107905
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
107906
              {
-
 
107907
                org.apache.thrift.protocol.TList _list333 = iprot.readListBegin();
-
 
107908
                this.success = new ArrayList<FlipkartItemDetails>(_list333.size);
-
 
107909
                for (int _i334 = 0; _i334 < _list333.size; ++_i334)
-
 
107910
                {
-
 
107911
                  FlipkartItemDetails _elem335; // required
-
 
107912
                  _elem335 = new FlipkartItemDetails();
-
 
107913
                  _elem335.read(iprot);
-
 
107914
                  this.success.add(_elem335);
-
 
107915
                }
-
 
107916
                iprot.readListEnd();
-
 
107917
              }
-
 
107918
            } else { 
-
 
107919
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
107920
            }
-
 
107921
            break;
-
 
107922
          default:
-
 
107923
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
107924
        }
-
 
107925
        iprot.readFieldEnd();
-
 
107926
      }
-
 
107927
      iprot.readStructEnd();
-
 
107928
      validate();
-
 
107929
    }
-
 
107930
 
-
 
107931
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
107932
      oprot.writeStructBegin(STRUCT_DESC);
-
 
107933
 
-
 
107934
      if (this.isSetSuccess()) {
-
 
107935
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
107936
        {
-
 
107937
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
107938
          for (FlipkartItemDetails _iter336 : this.success)
-
 
107939
          {
-
 
107940
            _iter336.write(oprot);
-
 
107941
          }
-
 
107942
          oprot.writeListEnd();
-
 
107943
        }
-
 
107944
        oprot.writeFieldEnd();
-
 
107945
      }
-
 
107946
      oprot.writeFieldStop();
-
 
107947
      oprot.writeStructEnd();
-
 
107948
    }
-
 
107949
 
-
 
107950
    @Override
-
 
107951
    public String toString() {
-
 
107952
      StringBuilder sb = new StringBuilder("getFlipkartItems_result(");
-
 
107953
      boolean first = true;
-
 
107954
 
-
 
107955
      sb.append("success:");
-
 
107956
      if (this.success == null) {
-
 
107957
        sb.append("null");
-
 
107958
      } else {
-
 
107959
        sb.append(this.success);
-
 
107960
      }
-
 
107961
      first = false;
-
 
107962
      sb.append(")");
-
 
107963
      return sb.toString();
-
 
107964
    }
-
 
107965
 
-
 
107966
    public void validate() throws org.apache.thrift.TException {
-
 
107967
      // check for required fields
-
 
107968
    }
-
 
107969
 
-
 
107970
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
107971
      try {
-
 
107972
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
107973
      } catch (org.apache.thrift.TException te) {
-
 
107974
        throw new java.io.IOException(te);
-
 
107975
      }
-
 
107976
    }
-
 
107977
 
-
 
107978
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
107979
      try {
-
 
107980
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
107981
      } catch (org.apache.thrift.TException te) {
-
 
107982
        throw new java.io.IOException(te);
-
 
107983
      }
-
 
107984
    }
-
 
107985
 
-
 
107986
  }
-
 
107987
 
-
 
107988
  public static class searchFlipkartItems_args implements org.apache.thrift.TBase<searchFlipkartItems_args, searchFlipkartItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
107989
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchFlipkartItems_args");
-
 
107990
 
-
 
107991
    private static final org.apache.thrift.protocol.TField SEARCH_TERM_FIELD_DESC = new org.apache.thrift.protocol.TField("searchTerm", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
107992
    private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
107993
    private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
107994
 
-
 
107995
    private List<String> searchTerm; // required
-
 
107996
    private long offset; // required
-
 
107997
    private long limit; // required
-
 
107998
 
-
 
107999
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
108000
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
108001
      SEARCH_TERM((short)1, "searchTerm"),
-
 
108002
      OFFSET((short)2, "offset"),
-
 
108003
      LIMIT((short)3, "limit");
-
 
108004
 
-
 
108005
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
108006
 
-
 
108007
      static {
-
 
108008
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
108009
          byName.put(field.getFieldName(), field);
-
 
108010
        }
-
 
108011
      }
-
 
108012
 
-
 
108013
      /**
-
 
108014
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
108015
       */
-
 
108016
      public static _Fields findByThriftId(int fieldId) {
-
 
108017
        switch(fieldId) {
-
 
108018
          case 1: // SEARCH_TERM
-
 
108019
            return SEARCH_TERM;
-
 
108020
          case 2: // OFFSET
-
 
108021
            return OFFSET;
-
 
108022
          case 3: // LIMIT
-
 
108023
            return LIMIT;
-
 
108024
          default:
-
 
108025
            return null;
-
 
108026
        }
-
 
108027
      }
-
 
108028
 
-
 
108029
      /**
-
 
108030
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
108031
       * if it is not found.
-
 
108032
       */
-
 
108033
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
108034
        _Fields fields = findByThriftId(fieldId);
-
 
108035
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
108036
        return fields;
-
 
108037
      }
-
 
108038
 
-
 
108039
      /**
-
 
108040
       * Find the _Fields constant that matches name, or null if its not found.
-
 
108041
       */
-
 
108042
      public static _Fields findByName(String name) {
-
 
108043
        return byName.get(name);
-
 
108044
      }
-
 
108045
 
-
 
108046
      private final short _thriftId;
-
 
108047
      private final String _fieldName;
-
 
108048
 
-
 
108049
      _Fields(short thriftId, String fieldName) {
-
 
108050
        _thriftId = thriftId;
-
 
108051
        _fieldName = fieldName;
-
 
108052
      }
-
 
108053
 
-
 
108054
      public short getThriftFieldId() {
-
 
108055
        return _thriftId;
-
 
108056
      }
-
 
108057
 
-
 
108058
      public String getFieldName() {
-
 
108059
        return _fieldName;
-
 
108060
      }
-
 
108061
    }
-
 
108062
 
-
 
108063
    // isset id assignments
-
 
108064
    private static final int __OFFSET_ISSET_ID = 0;
-
 
108065
    private static final int __LIMIT_ISSET_ID = 1;
-
 
108066
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
108067
 
-
 
108068
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
108069
    static {
-
 
108070
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
108071
      tmpMap.put(_Fields.SEARCH_TERM, new org.apache.thrift.meta_data.FieldMetaData("searchTerm", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
108072
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
108073
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
108074
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
108075
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
108076
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
108077
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
108078
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
108079
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchFlipkartItems_args.class, metaDataMap);
-
 
108080
    }
-
 
108081
 
-
 
108082
    public searchFlipkartItems_args() {
-
 
108083
    }
-
 
108084
 
-
 
108085
    public searchFlipkartItems_args(
-
 
108086
      List<String> searchTerm,
-
 
108087
      long offset,
-
 
108088
      long limit)
-
 
108089
    {
-
 
108090
      this();
-
 
108091
      this.searchTerm = searchTerm;
-
 
108092
      this.offset = offset;
-
 
108093
      setOffsetIsSet(true);
-
 
108094
      this.limit = limit;
-
 
108095
      setLimitIsSet(true);
-
 
108096
    }
-
 
108097
 
-
 
108098
    /**
-
 
108099
     * Performs a deep copy on <i>other</i>.
-
 
108100
     */
-
 
108101
    public searchFlipkartItems_args(searchFlipkartItems_args other) {
-
 
108102
      __isset_bit_vector.clear();
-
 
108103
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
108104
      if (other.isSetSearchTerm()) {
-
 
108105
        List<String> __this__searchTerm = new ArrayList<String>();
-
 
108106
        for (String other_element : other.searchTerm) {
-
 
108107
          __this__searchTerm.add(other_element);
-
 
108108
        }
-
 
108109
        this.searchTerm = __this__searchTerm;
-
 
108110
      }
-
 
108111
      this.offset = other.offset;
-
 
108112
      this.limit = other.limit;
-
 
108113
    }
-
 
108114
 
-
 
108115
    public searchFlipkartItems_args deepCopy() {
-
 
108116
      return new searchFlipkartItems_args(this);
-
 
108117
    }
-
 
108118
 
-
 
108119
    @Override
-
 
108120
    public void clear() {
-
 
108121
      this.searchTerm = null;
-
 
108122
      setOffsetIsSet(false);
-
 
108123
      this.offset = 0;
-
 
108124
      setLimitIsSet(false);
-
 
108125
      this.limit = 0;
-
 
108126
    }
-
 
108127
 
-
 
108128
    public int getSearchTermSize() {
-
 
108129
      return (this.searchTerm == null) ? 0 : this.searchTerm.size();
-
 
108130
    }
-
 
108131
 
-
 
108132
    public java.util.Iterator<String> getSearchTermIterator() {
-
 
108133
      return (this.searchTerm == null) ? null : this.searchTerm.iterator();
-
 
108134
    }
-
 
108135
 
-
 
108136
    public void addToSearchTerm(String elem) {
-
 
108137
      if (this.searchTerm == null) {
-
 
108138
        this.searchTerm = new ArrayList<String>();
-
 
108139
      }
-
 
108140
      this.searchTerm.add(elem);
-
 
108141
    }
-
 
108142
 
-
 
108143
    public List<String> getSearchTerm() {
-
 
108144
      return this.searchTerm;
-
 
108145
    }
-
 
108146
 
-
 
108147
    public void setSearchTerm(List<String> searchTerm) {
-
 
108148
      this.searchTerm = searchTerm;
-
 
108149
    }
-
 
108150
 
-
 
108151
    public void unsetSearchTerm() {
-
 
108152
      this.searchTerm = null;
-
 
108153
    }
-
 
108154
 
-
 
108155
    /** Returns true if field searchTerm is set (has been assigned a value) and false otherwise */
-
 
108156
    public boolean isSetSearchTerm() {
-
 
108157
      return this.searchTerm != null;
-
 
108158
    }
-
 
108159
 
-
 
108160
    public void setSearchTermIsSet(boolean value) {
-
 
108161
      if (!value) {
-
 
108162
        this.searchTerm = null;
-
 
108163
      }
-
 
108164
    }
-
 
108165
 
-
 
108166
    public long getOffset() {
-
 
108167
      return this.offset;
-
 
108168
    }
-
 
108169
 
-
 
108170
    public void setOffset(long offset) {
-
 
108171
      this.offset = offset;
-
 
108172
      setOffsetIsSet(true);
-
 
108173
    }
-
 
108174
 
-
 
108175
    public void unsetOffset() {
-
 
108176
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
-
 
108177
    }
-
 
108178
 
-
 
108179
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
-
 
108180
    public boolean isSetOffset() {
-
 
108181
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
-
 
108182
    }
-
 
108183
 
-
 
108184
    public void setOffsetIsSet(boolean value) {
-
 
108185
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
-
 
108186
    }
-
 
108187
 
-
 
108188
    public long getLimit() {
-
 
108189
      return this.limit;
-
 
108190
    }
-
 
108191
 
-
 
108192
    public void setLimit(long limit) {
-
 
108193
      this.limit = limit;
-
 
108194
      setLimitIsSet(true);
-
 
108195
    }
-
 
108196
 
-
 
108197
    public void unsetLimit() {
-
 
108198
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
-
 
108199
    }
-
 
108200
 
-
 
108201
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
-
 
108202
    public boolean isSetLimit() {
-
 
108203
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
-
 
108204
    }
-
 
108205
 
-
 
108206
    public void setLimitIsSet(boolean value) {
-
 
108207
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
-
 
108208
    }
-
 
108209
 
-
 
108210
    public void setFieldValue(_Fields field, Object value) {
-
 
108211
      switch (field) {
-
 
108212
      case SEARCH_TERM:
-
 
108213
        if (value == null) {
-
 
108214
          unsetSearchTerm();
-
 
108215
        } else {
-
 
108216
          setSearchTerm((List<String>)value);
-
 
108217
        }
-
 
108218
        break;
-
 
108219
 
-
 
108220
      case OFFSET:
-
 
108221
        if (value == null) {
-
 
108222
          unsetOffset();
-
 
108223
        } else {
-
 
108224
          setOffset((Long)value);
-
 
108225
        }
-
 
108226
        break;
-
 
108227
 
-
 
108228
      case LIMIT:
-
 
108229
        if (value == null) {
-
 
108230
          unsetLimit();
-
 
108231
        } else {
-
 
108232
          setLimit((Long)value);
-
 
108233
        }
-
 
108234
        break;
-
 
108235
 
-
 
108236
      }
-
 
108237
    }
-
 
108238
 
-
 
108239
    public Object getFieldValue(_Fields field) {
-
 
108240
      switch (field) {
-
 
108241
      case SEARCH_TERM:
-
 
108242
        return getSearchTerm();
-
 
108243
 
-
 
108244
      case OFFSET:
-
 
108245
        return Long.valueOf(getOffset());
-
 
108246
 
-
 
108247
      case LIMIT:
-
 
108248
        return Long.valueOf(getLimit());
-
 
108249
 
-
 
108250
      }
-
 
108251
      throw new IllegalStateException();
-
 
108252
    }
-
 
108253
 
-
 
108254
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
108255
    public boolean isSet(_Fields field) {
-
 
108256
      if (field == null) {
-
 
108257
        throw new IllegalArgumentException();
-
 
108258
      }
-
 
108259
 
-
 
108260
      switch (field) {
-
 
108261
      case SEARCH_TERM:
-
 
108262
        return isSetSearchTerm();
-
 
108263
      case OFFSET:
-
 
108264
        return isSetOffset();
-
 
108265
      case LIMIT:
-
 
108266
        return isSetLimit();
-
 
108267
      }
-
 
108268
      throw new IllegalStateException();
-
 
108269
    }
-
 
108270
 
-
 
108271
    @Override
-
 
108272
    public boolean equals(Object that) {
-
 
108273
      if (that == null)
-
 
108274
        return false;
-
 
108275
      if (that instanceof searchFlipkartItems_args)
-
 
108276
        return this.equals((searchFlipkartItems_args)that);
-
 
108277
      return false;
-
 
108278
    }
-
 
108279
 
-
 
108280
    public boolean equals(searchFlipkartItems_args that) {
-
 
108281
      if (that == null)
-
 
108282
        return false;
-
 
108283
 
-
 
108284
      boolean this_present_searchTerm = true && this.isSetSearchTerm();
-
 
108285
      boolean that_present_searchTerm = true && that.isSetSearchTerm();
-
 
108286
      if (this_present_searchTerm || that_present_searchTerm) {
-
 
108287
        if (!(this_present_searchTerm && that_present_searchTerm))
-
 
108288
          return false;
-
 
108289
        if (!this.searchTerm.equals(that.searchTerm))
-
 
108290
          return false;
-
 
108291
      }
-
 
108292
 
-
 
108293
      boolean this_present_offset = true;
-
 
108294
      boolean that_present_offset = true;
-
 
108295
      if (this_present_offset || that_present_offset) {
-
 
108296
        if (!(this_present_offset && that_present_offset))
-
 
108297
          return false;
-
 
108298
        if (this.offset != that.offset)
-
 
108299
          return false;
-
 
108300
      }
-
 
108301
 
-
 
108302
      boolean this_present_limit = true;
-
 
108303
      boolean that_present_limit = true;
-
 
108304
      if (this_present_limit || that_present_limit) {
-
 
108305
        if (!(this_present_limit && that_present_limit))
-
 
108306
          return false;
-
 
108307
        if (this.limit != that.limit)
-
 
108308
          return false;
-
 
108309
      }
-
 
108310
 
-
 
108311
      return true;
-
 
108312
    }
-
 
108313
 
-
 
108314
    @Override
-
 
108315
    public int hashCode() {
-
 
108316
      return 0;
-
 
108317
    }
-
 
108318
 
-
 
108319
    public int compareTo(searchFlipkartItems_args other) {
-
 
108320
      if (!getClass().equals(other.getClass())) {
-
 
108321
        return getClass().getName().compareTo(other.getClass().getName());
-
 
108322
      }
-
 
108323
 
-
 
108324
      int lastComparison = 0;
-
 
108325
      searchFlipkartItems_args typedOther = (searchFlipkartItems_args)other;
-
 
108326
 
-
 
108327
      lastComparison = Boolean.valueOf(isSetSearchTerm()).compareTo(typedOther.isSetSearchTerm());
-
 
108328
      if (lastComparison != 0) {
-
 
108329
        return lastComparison;
-
 
108330
      }
-
 
108331
      if (isSetSearchTerm()) {
-
 
108332
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerm, typedOther.searchTerm);
-
 
108333
        if (lastComparison != 0) {
-
 
108334
          return lastComparison;
-
 
108335
        }
-
 
108336
      }
-
 
108337
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
-
 
108338
      if (lastComparison != 0) {
-
 
108339
        return lastComparison;
-
 
108340
      }
-
 
108341
      if (isSetOffset()) {
-
 
108342
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
-
 
108343
        if (lastComparison != 0) {
-
 
108344
          return lastComparison;
-
 
108345
        }
-
 
108346
      }
-
 
108347
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
-
 
108348
      if (lastComparison != 0) {
-
 
108349
        return lastComparison;
-
 
108350
      }
-
 
108351
      if (isSetLimit()) {
-
 
108352
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
-
 
108353
        if (lastComparison != 0) {
-
 
108354
          return lastComparison;
-
 
108355
        }
-
 
108356
      }
-
 
108357
      return 0;
-
 
108358
    }
-
 
108359
 
-
 
108360
    public _Fields fieldForId(int fieldId) {
-
 
108361
      return _Fields.findByThriftId(fieldId);
-
 
108362
    }
-
 
108363
 
-
 
108364
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
108365
      org.apache.thrift.protocol.TField field;
-
 
108366
      iprot.readStructBegin();
-
 
108367
      while (true)
-
 
108368
      {
-
 
108369
        field = iprot.readFieldBegin();
-
 
108370
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
108371
          break;
-
 
108372
        }
-
 
108373
        switch (field.id) {
-
 
108374
          case 1: // SEARCH_TERM
-
 
108375
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
108376
              {
-
 
108377
                org.apache.thrift.protocol.TList _list337 = iprot.readListBegin();
-
 
108378
                this.searchTerm = new ArrayList<String>(_list337.size);
-
 
108379
                for (int _i338 = 0; _i338 < _list337.size; ++_i338)
-
 
108380
                {
-
 
108381
                  String _elem339; // required
-
 
108382
                  _elem339 = iprot.readString();
-
 
108383
                  this.searchTerm.add(_elem339);
-
 
108384
                }
-
 
108385
                iprot.readListEnd();
-
 
108386
              }
-
 
108387
            } else { 
-
 
108388
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
108389
            }
-
 
108390
            break;
-
 
108391
          case 2: // OFFSET
-
 
108392
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
108393
              this.offset = iprot.readI64();
-
 
108394
              setOffsetIsSet(true);
-
 
108395
            } else { 
-
 
108396
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
108397
            }
-
 
108398
            break;
-
 
108399
          case 3: // LIMIT
-
 
108400
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
108401
              this.limit = iprot.readI64();
-
 
108402
              setLimitIsSet(true);
-
 
108403
            } else { 
-
 
108404
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
108405
            }
-
 
108406
            break;
-
 
108407
          default:
-
 
108408
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
108409
        }
-
 
108410
        iprot.readFieldEnd();
-
 
108411
      }
-
 
108412
      iprot.readStructEnd();
-
 
108413
      validate();
-
 
108414
    }
-
 
108415
 
-
 
108416
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
108417
      validate();
-
 
108418
 
-
 
108419
      oprot.writeStructBegin(STRUCT_DESC);
-
 
108420
      if (this.searchTerm != null) {
-
 
108421
        oprot.writeFieldBegin(SEARCH_TERM_FIELD_DESC);
-
 
108422
        {
-
 
108423
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerm.size()));
-
 
108424
          for (String _iter340 : this.searchTerm)
-
 
108425
          {
-
 
108426
            oprot.writeString(_iter340);
-
 
108427
          }
-
 
108428
          oprot.writeListEnd();
-
 
108429
        }
-
 
108430
        oprot.writeFieldEnd();
-
 
108431
      }
-
 
108432
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
-
 
108433
      oprot.writeI64(this.offset);
-
 
108434
      oprot.writeFieldEnd();
-
 
108435
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
-
 
108436
      oprot.writeI64(this.limit);
-
 
108437
      oprot.writeFieldEnd();
-
 
108438
      oprot.writeFieldStop();
-
 
108439
      oprot.writeStructEnd();
-
 
108440
    }
-
 
108441
 
-
 
108442
    @Override
-
 
108443
    public String toString() {
-
 
108444
      StringBuilder sb = new StringBuilder("searchFlipkartItems_args(");
-
 
108445
      boolean first = true;
-
 
108446
 
-
 
108447
      sb.append("searchTerm:");
-
 
108448
      if (this.searchTerm == null) {
-
 
108449
        sb.append("null");
-
 
108450
      } else {
-
 
108451
        sb.append(this.searchTerm);
-
 
108452
      }
-
 
108453
      first = false;
-
 
108454
      if (!first) sb.append(", ");
-
 
108455
      sb.append("offset:");
-
 
108456
      sb.append(this.offset);
-
 
108457
      first = false;
-
 
108458
      if (!first) sb.append(", ");
-
 
108459
      sb.append("limit:");
-
 
108460
      sb.append(this.limit);
-
 
108461
      first = false;
-
 
108462
      sb.append(")");
-
 
108463
      return sb.toString();
-
 
108464
    }
-
 
108465
 
-
 
108466
    public void validate() throws org.apache.thrift.TException {
-
 
108467
      // check for required fields
-
 
108468
    }
-
 
108469
 
-
 
108470
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
108471
      try {
-
 
108472
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
108473
      } catch (org.apache.thrift.TException te) {
-
 
108474
        throw new java.io.IOException(te);
-
 
108475
      }
-
 
108476
    }
-
 
108477
 
-
 
108478
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
108479
      try {
-
 
108480
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
108481
        __isset_bit_vector = new BitSet(1);
-
 
108482
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
108483
      } catch (org.apache.thrift.TException te) {
-
 
108484
        throw new java.io.IOException(te);
-
 
108485
      }
-
 
108486
    }
-
 
108487
 
-
 
108488
  }
-
 
108489
 
-
 
108490
  public static class searchFlipkartItems_result implements org.apache.thrift.TBase<searchFlipkartItems_result, searchFlipkartItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
108491
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("searchFlipkartItems_result");
-
 
108492
 
-
 
108493
    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);
-
 
108494
 
-
 
108495
    private List<FlipkartItemDetails> success; // required
-
 
108496
 
-
 
108497
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
108498
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
108499
      SUCCESS((short)0, "success");
-
 
108500
 
-
 
108501
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
108502
 
-
 
108503
      static {
-
 
108504
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
108505
          byName.put(field.getFieldName(), field);
-
 
108506
        }
-
 
108507
      }
-
 
108508
 
-
 
108509
      /**
-
 
108510
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
108511
       */
-
 
108512
      public static _Fields findByThriftId(int fieldId) {
-
 
108513
        switch(fieldId) {
-
 
108514
          case 0: // SUCCESS
-
 
108515
            return SUCCESS;
-
 
108516
          default:
-
 
108517
            return null;
-
 
108518
        }
-
 
108519
      }
-
 
108520
 
-
 
108521
      /**
-
 
108522
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
108523
       * if it is not found.
-
 
108524
       */
-
 
108525
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
108526
        _Fields fields = findByThriftId(fieldId);
-
 
108527
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
108528
        return fields;
-
 
108529
      }
-
 
108530
 
-
 
108531
      /**
-
 
108532
       * Find the _Fields constant that matches name, or null if its not found.
-
 
108533
       */
-
 
108534
      public static _Fields findByName(String name) {
-
 
108535
        return byName.get(name);
-
 
108536
      }
-
 
108537
 
-
 
108538
      private final short _thriftId;
-
 
108539
      private final String _fieldName;
-
 
108540
 
-
 
108541
      _Fields(short thriftId, String fieldName) {
-
 
108542
        _thriftId = thriftId;
-
 
108543
        _fieldName = fieldName;
-
 
108544
      }
-
 
108545
 
-
 
108546
      public short getThriftFieldId() {
-
 
108547
        return _thriftId;
-
 
108548
      }
-
 
108549
 
-
 
108550
      public String getFieldName() {
-
 
108551
        return _fieldName;
-
 
108552
      }
-
 
108553
    }
-
 
108554
 
-
 
108555
    // isset id assignments
-
 
108556
 
-
 
108557
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
108558
    static {
-
 
108559
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
108560
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
108561
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
108562
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartItemDetails.class))));
-
 
108563
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
108564
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(searchFlipkartItems_result.class, metaDataMap);
-
 
108565
    }
-
 
108566
 
-
 
108567
    public searchFlipkartItems_result() {
-
 
108568
    }
-
 
108569
 
-
 
108570
    public searchFlipkartItems_result(
-
 
108571
      List<FlipkartItemDetails> success)
-
 
108572
    {
-
 
108573
      this();
-
 
108574
      this.success = success;
-
 
108575
    }
-
 
108576
 
-
 
108577
    /**
-
 
108578
     * Performs a deep copy on <i>other</i>.
-
 
108579
     */
-
 
108580
    public searchFlipkartItems_result(searchFlipkartItems_result other) {
-
 
108581
      if (other.isSetSuccess()) {
-
 
108582
        List<FlipkartItemDetails> __this__success = new ArrayList<FlipkartItemDetails>();
-
 
108583
        for (FlipkartItemDetails other_element : other.success) {
-
 
108584
          __this__success.add(new FlipkartItemDetails(other_element));
-
 
108585
        }
-
 
108586
        this.success = __this__success;
-
 
108587
      }
-
 
108588
    }
-
 
108589
 
-
 
108590
    public searchFlipkartItems_result deepCopy() {
-
 
108591
      return new searchFlipkartItems_result(this);
-
 
108592
    }
-
 
108593
 
-
 
108594
    @Override
-
 
108595
    public void clear() {
-
 
108596
      this.success = null;
-
 
108597
    }
-
 
108598
 
-
 
108599
    public int getSuccessSize() {
-
 
108600
      return (this.success == null) ? 0 : this.success.size();
-
 
108601
    }
-
 
108602
 
-
 
108603
    public java.util.Iterator<FlipkartItemDetails> getSuccessIterator() {
-
 
108604
      return (this.success == null) ? null : this.success.iterator();
-
 
108605
    }
-
 
108606
 
-
 
108607
    public void addToSuccess(FlipkartItemDetails elem) {
-
 
108608
      if (this.success == null) {
-
 
108609
        this.success = new ArrayList<FlipkartItemDetails>();
-
 
108610
      }
-
 
108611
      this.success.add(elem);
-
 
108612
    }
-
 
108613
 
-
 
108614
    public List<FlipkartItemDetails> getSuccess() {
-
 
108615
      return this.success;
-
 
108616
    }
-
 
108617
 
-
 
108618
    public void setSuccess(List<FlipkartItemDetails> success) {
-
 
108619
      this.success = success;
-
 
108620
    }
-
 
108621
 
-
 
108622
    public void unsetSuccess() {
-
 
108623
      this.success = null;
-
 
108624
    }
-
 
108625
 
-
 
108626
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
108627
    public boolean isSetSuccess() {
-
 
108628
      return this.success != null;
-
 
108629
    }
-
 
108630
 
-
 
108631
    public void setSuccessIsSet(boolean value) {
-
 
108632
      if (!value) {
-
 
108633
        this.success = null;
-
 
108634
      }
-
 
108635
    }
-
 
108636
 
-
 
108637
    public void setFieldValue(_Fields field, Object value) {
-
 
108638
      switch (field) {
-
 
108639
      case SUCCESS:
-
 
108640
        if (value == null) {
-
 
108641
          unsetSuccess();
-
 
108642
        } else {
-
 
108643
          setSuccess((List<FlipkartItemDetails>)value);
-
 
108644
        }
-
 
108645
        break;
-
 
108646
 
-
 
108647
      }
-
 
108648
    }
-
 
108649
 
-
 
108650
    public Object getFieldValue(_Fields field) {
-
 
108651
      switch (field) {
-
 
108652
      case SUCCESS:
-
 
108653
        return getSuccess();
-
 
108654
 
-
 
108655
      }
-
 
108656
      throw new IllegalStateException();
-
 
108657
    }
-
 
108658
 
-
 
108659
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
108660
    public boolean isSet(_Fields field) {
-
 
108661
      if (field == null) {
-
 
108662
        throw new IllegalArgumentException();
-
 
108663
      }
-
 
108664
 
-
 
108665
      switch (field) {
-
 
108666
      case SUCCESS:
-
 
108667
        return isSetSuccess();
-
 
108668
      }
-
 
108669
      throw new IllegalStateException();
-
 
108670
    }
-
 
108671
 
-
 
108672
    @Override
-
 
108673
    public boolean equals(Object that) {
-
 
108674
      if (that == null)
-
 
108675
        return false;
-
 
108676
      if (that instanceof searchFlipkartItems_result)
-
 
108677
        return this.equals((searchFlipkartItems_result)that);
-
 
108678
      return false;
-
 
108679
    }
-
 
108680
 
-
 
108681
    public boolean equals(searchFlipkartItems_result that) {
-
 
108682
      if (that == null)
-
 
108683
        return false;
-
 
108684
 
-
 
108685
      boolean this_present_success = true && this.isSetSuccess();
-
 
108686
      boolean that_present_success = true && that.isSetSuccess();
-
 
108687
      if (this_present_success || that_present_success) {
-
 
108688
        if (!(this_present_success && that_present_success))
-
 
108689
          return false;
-
 
108690
        if (!this.success.equals(that.success))
-
 
108691
          return false;
-
 
108692
      }
-
 
108693
 
-
 
108694
      return true;
-
 
108695
    }
-
 
108696
 
-
 
108697
    @Override
-
 
108698
    public int hashCode() {
-
 
108699
      return 0;
-
 
108700
    }
-
 
108701
 
-
 
108702
    public int compareTo(searchFlipkartItems_result other) {
-
 
108703
      if (!getClass().equals(other.getClass())) {
-
 
108704
        return getClass().getName().compareTo(other.getClass().getName());
-
 
108705
      }
-
 
108706
 
-
 
108707
      int lastComparison = 0;
-
 
108708
      searchFlipkartItems_result typedOther = (searchFlipkartItems_result)other;
-
 
108709
 
-
 
108710
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
108711
      if (lastComparison != 0) {
-
 
108712
        return lastComparison;
-
 
108713
      }
-
 
108714
      if (isSetSuccess()) {
-
 
108715
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
108716
        if (lastComparison != 0) {
-
 
108717
          return lastComparison;
-
 
108718
        }
-
 
108719
      }
-
 
108720
      return 0;
-
 
108721
    }
-
 
108722
 
-
 
108723
    public _Fields fieldForId(int fieldId) {
-
 
108724
      return _Fields.findByThriftId(fieldId);
-
 
108725
    }
-
 
108726
 
-
 
108727
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
108728
      org.apache.thrift.protocol.TField field;
-
 
108729
      iprot.readStructBegin();
-
 
108730
      while (true)
-
 
108731
      {
-
 
108732
        field = iprot.readFieldBegin();
-
 
108733
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
108734
          break;
-
 
108735
        }
-
 
108736
        switch (field.id) {
-
 
108737
          case 0: // SUCCESS
-
 
108738
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
108739
              {
-
 
108740
                org.apache.thrift.protocol.TList _list341 = iprot.readListBegin();
-
 
108741
                this.success = new ArrayList<FlipkartItemDetails>(_list341.size);
-
 
108742
                for (int _i342 = 0; _i342 < _list341.size; ++_i342)
-
 
108743
                {
-
 
108744
                  FlipkartItemDetails _elem343; // required
-
 
108745
                  _elem343 = new FlipkartItemDetails();
-
 
108746
                  _elem343.read(iprot);
-
 
108747
                  this.success.add(_elem343);
-
 
108748
                }
-
 
108749
                iprot.readListEnd();
-
 
108750
              }
-
 
108751
            } else { 
-
 
108752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
108753
            }
-
 
108754
            break;
-
 
108755
          default:
-
 
108756
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
108757
        }
-
 
108758
        iprot.readFieldEnd();
-
 
108759
      }
-
 
108760
      iprot.readStructEnd();
-
 
108761
      validate();
-
 
108762
    }
-
 
108763
 
-
 
108764
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
108765
      oprot.writeStructBegin(STRUCT_DESC);
-
 
108766
 
-
 
108767
      if (this.isSetSuccess()) {
-
 
108768
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
108769
        {
-
 
108770
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
108771
          for (FlipkartItemDetails _iter344 : this.success)
-
 
108772
          {
-
 
108773
            _iter344.write(oprot);
-
 
108774
          }
-
 
108775
          oprot.writeListEnd();
-
 
108776
        }
-
 
108777
        oprot.writeFieldEnd();
-
 
108778
      }
-
 
108779
      oprot.writeFieldStop();
-
 
108780
      oprot.writeStructEnd();
-
 
108781
    }
-
 
108782
 
-
 
108783
    @Override
-
 
108784
    public String toString() {
-
 
108785
      StringBuilder sb = new StringBuilder("searchFlipkartItems_result(");
-
 
108786
      boolean first = true;
-
 
108787
 
-
 
108788
      sb.append("success:");
-
 
108789
      if (this.success == null) {
-
 
108790
        sb.append("null");
-
 
108791
      } else {
-
 
108792
        sb.append(this.success);
-
 
108793
      }
-
 
108794
      first = false;
-
 
108795
      sb.append(")");
-
 
108796
      return sb.toString();
-
 
108797
    }
-
 
108798
 
-
 
108799
    public void validate() throws org.apache.thrift.TException {
-
 
108800
      // check for required fields
-
 
108801
    }
-
 
108802
 
-
 
108803
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
108804
      try {
-
 
108805
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
108806
      } catch (org.apache.thrift.TException te) {
-
 
108807
        throw new java.io.IOException(te);
-
 
108808
      }
-
 
108809
    }
-
 
108810
 
-
 
108811
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
108812
      try {
-
 
108813
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
108814
      } catch (org.apache.thrift.TException te) {
-
 
108815
        throw new java.io.IOException(te);
-
 
108816
      }
-
 
108817
    }
-
 
108818
 
-
 
108819
  }
-
 
108820
 
-
 
108821
  public static class getCountForFlipkartItems_args implements org.apache.thrift.TBase<getCountForFlipkartItems_args, getCountForFlipkartItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
108822
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCountForFlipkartItems_args");
-
 
108823
 
-
 
108824
 
-
 
108825
 
-
 
108826
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
108827
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
108828
;
-
 
108829
 
-
 
108830
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
108831
 
-
 
108832
      static {
-
 
108833
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
108834
          byName.put(field.getFieldName(), field);
-
 
108835
        }
-
 
108836
      }
-
 
108837
 
-
 
108838
      /**
-
 
108839
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
108840
       */
-
 
108841
      public static _Fields findByThriftId(int fieldId) {
-
 
108842
        switch(fieldId) {
-
 
108843
          default:
-
 
108844
            return null;
-
 
108845
        }
-
 
108846
      }
-
 
108847
 
-
 
108848
      /**
-
 
108849
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
108850
       * if it is not found.
-
 
108851
       */
-
 
108852
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
108853
        _Fields fields = findByThriftId(fieldId);
-
 
108854
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
108855
        return fields;
-
 
108856
      }
-
 
108857
 
-
 
108858
      /**
-
 
108859
       * Find the _Fields constant that matches name, or null if its not found.
-
 
108860
       */
-
 
108861
      public static _Fields findByName(String name) {
-
 
108862
        return byName.get(name);
-
 
108863
      }
-
 
108864
 
-
 
108865
      private final short _thriftId;
-
 
108866
      private final String _fieldName;
-
 
108867
 
-
 
108868
      _Fields(short thriftId, String fieldName) {
-
 
108869
        _thriftId = thriftId;
-
 
108870
        _fieldName = fieldName;
-
 
108871
      }
-
 
108872
 
-
 
108873
      public short getThriftFieldId() {
-
 
108874
        return _thriftId;
-
 
108875
      }
-
 
108876
 
-
 
108877
      public String getFieldName() {
-
 
108878
        return _fieldName;
-
 
108879
      }
-
 
108880
    }
-
 
108881
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
108882
    static {
-
 
108883
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
108884
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
108885
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCountForFlipkartItems_args.class, metaDataMap);
-
 
108886
    }
-
 
108887
 
-
 
108888
    public getCountForFlipkartItems_args() {
-
 
108889
    }
-
 
108890
 
-
 
108891
    /**
-
 
108892
     * Performs a deep copy on <i>other</i>.
-
 
108893
     */
-
 
108894
    public getCountForFlipkartItems_args(getCountForFlipkartItems_args other) {
-
 
108895
    }
-
 
108896
 
-
 
108897
    public getCountForFlipkartItems_args deepCopy() {
-
 
108898
      return new getCountForFlipkartItems_args(this);
-
 
108899
    }
-
 
108900
 
-
 
108901
    @Override
-
 
108902
    public void clear() {
-
 
108903
    }
-
 
108904
 
-
 
108905
    public void setFieldValue(_Fields field, Object value) {
-
 
108906
      switch (field) {
-
 
108907
      }
-
 
108908
    }
-
 
108909
 
-
 
108910
    public Object getFieldValue(_Fields field) {
-
 
108911
      switch (field) {
-
 
108912
      }
-
 
108913
      throw new IllegalStateException();
-
 
108914
    }
-
 
108915
 
-
 
108916
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
108917
    public boolean isSet(_Fields field) {
-
 
108918
      if (field == null) {
-
 
108919
        throw new IllegalArgumentException();
-
 
108920
      }
-
 
108921
 
-
 
108922
      switch (field) {
-
 
108923
      }
-
 
108924
      throw new IllegalStateException();
-
 
108925
    }
-
 
108926
 
-
 
108927
    @Override
-
 
108928
    public boolean equals(Object that) {
-
 
108929
      if (that == null)
-
 
108930
        return false;
-
 
108931
      if (that instanceof getCountForFlipkartItems_args)
-
 
108932
        return this.equals((getCountForFlipkartItems_args)that);
-
 
108933
      return false;
-
 
108934
    }
-
 
108935
 
-
 
108936
    public boolean equals(getCountForFlipkartItems_args that) {
-
 
108937
      if (that == null)
-
 
108938
        return false;
-
 
108939
 
-
 
108940
      return true;
-
 
108941
    }
-
 
108942
 
-
 
108943
    @Override
-
 
108944
    public int hashCode() {
-
 
108945
      return 0;
-
 
108946
    }
-
 
108947
 
-
 
108948
    public int compareTo(getCountForFlipkartItems_args other) {
-
 
108949
      if (!getClass().equals(other.getClass())) {
-
 
108950
        return getClass().getName().compareTo(other.getClass().getName());
-
 
108951
      }
-
 
108952
 
-
 
108953
      int lastComparison = 0;
-
 
108954
      getCountForFlipkartItems_args typedOther = (getCountForFlipkartItems_args)other;
-
 
108955
 
-
 
108956
      return 0;
-
 
108957
    }
-
 
108958
 
-
 
108959
    public _Fields fieldForId(int fieldId) {
-
 
108960
      return _Fields.findByThriftId(fieldId);
-
 
108961
    }
-
 
108962
 
-
 
108963
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
108964
      org.apache.thrift.protocol.TField field;
-
 
108965
      iprot.readStructBegin();
-
 
108966
      while (true)
-
 
108967
      {
-
 
108968
        field = iprot.readFieldBegin();
-
 
108969
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
108970
          break;
-
 
108971
        }
-
 
108972
        switch (field.id) {
-
 
108973
          default:
-
 
108974
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
108975
        }
-
 
108976
        iprot.readFieldEnd();
-
 
108977
      }
-
 
108978
      iprot.readStructEnd();
-
 
108979
      validate();
-
 
108980
    }
-
 
108981
 
-
 
108982
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
108983
      validate();
-
 
108984
 
-
 
108985
      oprot.writeStructBegin(STRUCT_DESC);
-
 
108986
      oprot.writeFieldStop();
-
 
108987
      oprot.writeStructEnd();
-
 
108988
    }
-
 
108989
 
-
 
108990
    @Override
-
 
108991
    public String toString() {
-
 
108992
      StringBuilder sb = new StringBuilder("getCountForFlipkartItems_args(");
-
 
108993
      boolean first = true;
-
 
108994
 
-
 
108995
      sb.append(")");
-
 
108996
      return sb.toString();
-
 
108997
    }
-
 
108998
 
-
 
108999
    public void validate() throws org.apache.thrift.TException {
-
 
109000
      // check for required fields
-
 
109001
    }
-
 
109002
 
-
 
109003
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
109004
      try {
-
 
109005
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
109006
      } catch (org.apache.thrift.TException te) {
-
 
109007
        throw new java.io.IOException(te);
-
 
109008
      }
-
 
109009
    }
-
 
109010
 
-
 
109011
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
109012
      try {
-
 
109013
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
109014
      } catch (org.apache.thrift.TException te) {
-
 
109015
        throw new java.io.IOException(te);
-
 
109016
      }
-
 
109017
    }
-
 
109018
 
-
 
109019
  }
-
 
109020
 
-
 
109021
  public static class getCountForFlipkartItems_result implements org.apache.thrift.TBase<getCountForFlipkartItems_result, getCountForFlipkartItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
109022
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCountForFlipkartItems_result");
-
 
109023
 
-
 
109024
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
109025
 
-
 
109026
    private long success; // required
-
 
109027
 
-
 
109028
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
109029
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
109030
      SUCCESS((short)0, "success");
-
 
109031
 
-
 
109032
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
109033
 
-
 
109034
      static {
-
 
109035
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
109036
          byName.put(field.getFieldName(), field);
-
 
109037
        }
-
 
109038
      }
-
 
109039
 
-
 
109040
      /**
-
 
109041
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
109042
       */
-
 
109043
      public static _Fields findByThriftId(int fieldId) {
-
 
109044
        switch(fieldId) {
-
 
109045
          case 0: // SUCCESS
-
 
109046
            return SUCCESS;
-
 
109047
          default:
-
 
109048
            return null;
-
 
109049
        }
-
 
109050
      }
-
 
109051
 
-
 
109052
      /**
-
 
109053
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
109054
       * if it is not found.
-
 
109055
       */
-
 
109056
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
109057
        _Fields fields = findByThriftId(fieldId);
-
 
109058
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
109059
        return fields;
-
 
109060
      }
-
 
109061
 
-
 
109062
      /**
-
 
109063
       * Find the _Fields constant that matches name, or null if its not found.
-
 
109064
       */
-
 
109065
      public static _Fields findByName(String name) {
-
 
109066
        return byName.get(name);
-
 
109067
      }
-
 
109068
 
-
 
109069
      private final short _thriftId;
-
 
109070
      private final String _fieldName;
-
 
109071
 
-
 
109072
      _Fields(short thriftId, String fieldName) {
-
 
109073
        _thriftId = thriftId;
-
 
109074
        _fieldName = fieldName;
-
 
109075
      }
-
 
109076
 
-
 
109077
      public short getThriftFieldId() {
-
 
109078
        return _thriftId;
-
 
109079
      }
-
 
109080
 
-
 
109081
      public String getFieldName() {
-
 
109082
        return _fieldName;
-
 
109083
      }
-
 
109084
    }
-
 
109085
 
-
 
109086
    // isset id assignments
-
 
109087
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
109088
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
109089
 
-
 
109090
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
109091
    static {
-
 
109092
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
109093
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
109094
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
109095
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
109096
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCountForFlipkartItems_result.class, metaDataMap);
-
 
109097
    }
-
 
109098
 
-
 
109099
    public getCountForFlipkartItems_result() {
-
 
109100
    }
-
 
109101
 
-
 
109102
    public getCountForFlipkartItems_result(
-
 
109103
      long success)
-
 
109104
    {
-
 
109105
      this();
-
 
109106
      this.success = success;
-
 
109107
      setSuccessIsSet(true);
-
 
109108
    }
-
 
109109
 
-
 
109110
    /**
-
 
109111
     * Performs a deep copy on <i>other</i>.
-
 
109112
     */
-
 
109113
    public getCountForFlipkartItems_result(getCountForFlipkartItems_result other) {
-
 
109114
      __isset_bit_vector.clear();
-
 
109115
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
109116
      this.success = other.success;
-
 
109117
    }
-
 
109118
 
-
 
109119
    public getCountForFlipkartItems_result deepCopy() {
-
 
109120
      return new getCountForFlipkartItems_result(this);
-
 
109121
    }
-
 
109122
 
-
 
109123
    @Override
-
 
109124
    public void clear() {
-
 
109125
      setSuccessIsSet(false);
-
 
109126
      this.success = 0;
-
 
109127
    }
-
 
109128
 
-
 
109129
    public long getSuccess() {
-
 
109130
      return this.success;
-
 
109131
    }
-
 
109132
 
-
 
109133
    public void setSuccess(long success) {
-
 
109134
      this.success = success;
-
 
109135
      setSuccessIsSet(true);
-
 
109136
    }
-
 
109137
 
-
 
109138
    public void unsetSuccess() {
-
 
109139
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
109140
    }
-
 
109141
 
-
 
109142
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
109143
    public boolean isSetSuccess() {
-
 
109144
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
109145
    }
-
 
109146
 
-
 
109147
    public void setSuccessIsSet(boolean value) {
-
 
109148
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
109149
    }
-
 
109150
 
-
 
109151
    public void setFieldValue(_Fields field, Object value) {
-
 
109152
      switch (field) {
-
 
109153
      case SUCCESS:
-
 
109154
        if (value == null) {
-
 
109155
          unsetSuccess();
-
 
109156
        } else {
-
 
109157
          setSuccess((Long)value);
-
 
109158
        }
-
 
109159
        break;
-
 
109160
 
-
 
109161
      }
-
 
109162
    }
-
 
109163
 
-
 
109164
    public Object getFieldValue(_Fields field) {
-
 
109165
      switch (field) {
-
 
109166
      case SUCCESS:
-
 
109167
        return Long.valueOf(getSuccess());
-
 
109168
 
-
 
109169
      }
-
 
109170
      throw new IllegalStateException();
-
 
109171
    }
-
 
109172
 
-
 
109173
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
109174
    public boolean isSet(_Fields field) {
-
 
109175
      if (field == null) {
-
 
109176
        throw new IllegalArgumentException();
-
 
109177
      }
-
 
109178
 
-
 
109179
      switch (field) {
-
 
109180
      case SUCCESS:
-
 
109181
        return isSetSuccess();
-
 
109182
      }
-
 
109183
      throw new IllegalStateException();
-
 
109184
    }
-
 
109185
 
-
 
109186
    @Override
-
 
109187
    public boolean equals(Object that) {
-
 
109188
      if (that == null)
-
 
109189
        return false;
-
 
109190
      if (that instanceof getCountForFlipkartItems_result)
-
 
109191
        return this.equals((getCountForFlipkartItems_result)that);
-
 
109192
      return false;
-
 
109193
    }
-
 
109194
 
-
 
109195
    public boolean equals(getCountForFlipkartItems_result that) {
-
 
109196
      if (that == null)
-
 
109197
        return false;
-
 
109198
 
-
 
109199
      boolean this_present_success = true;
-
 
109200
      boolean that_present_success = true;
-
 
109201
      if (this_present_success || that_present_success) {
-
 
109202
        if (!(this_present_success && that_present_success))
-
 
109203
          return false;
-
 
109204
        if (this.success != that.success)
-
 
109205
          return false;
-
 
109206
      }
-
 
109207
 
-
 
109208
      return true;
-
 
109209
    }
-
 
109210
 
-
 
109211
    @Override
-
 
109212
    public int hashCode() {
-
 
109213
      return 0;
-
 
109214
    }
-
 
109215
 
-
 
109216
    public int compareTo(getCountForFlipkartItems_result other) {
-
 
109217
      if (!getClass().equals(other.getClass())) {
-
 
109218
        return getClass().getName().compareTo(other.getClass().getName());
-
 
109219
      }
-
 
109220
 
-
 
109221
      int lastComparison = 0;
-
 
109222
      getCountForFlipkartItems_result typedOther = (getCountForFlipkartItems_result)other;
-
 
109223
 
-
 
109224
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
109225
      if (lastComparison != 0) {
-
 
109226
        return lastComparison;
-
 
109227
      }
-
 
109228
      if (isSetSuccess()) {
-
 
109229
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
109230
        if (lastComparison != 0) {
-
 
109231
          return lastComparison;
-
 
109232
        }
-
 
109233
      }
-
 
109234
      return 0;
-
 
109235
    }
-
 
109236
 
-
 
109237
    public _Fields fieldForId(int fieldId) {
-
 
109238
      return _Fields.findByThriftId(fieldId);
-
 
109239
    }
-
 
109240
 
-
 
109241
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
109242
      org.apache.thrift.protocol.TField field;
-
 
109243
      iprot.readStructBegin();
-
 
109244
      while (true)
-
 
109245
      {
-
 
109246
        field = iprot.readFieldBegin();
-
 
109247
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
109248
          break;
-
 
109249
        }
-
 
109250
        switch (field.id) {
-
 
109251
          case 0: // SUCCESS
-
 
109252
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
109253
              this.success = iprot.readI64();
-
 
109254
              setSuccessIsSet(true);
-
 
109255
            } else { 
-
 
109256
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
109257
            }
-
 
109258
            break;
-
 
109259
          default:
-
 
109260
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
109261
        }
-
 
109262
        iprot.readFieldEnd();
-
 
109263
      }
-
 
109264
      iprot.readStructEnd();
-
 
109265
      validate();
-
 
109266
    }
-
 
109267
 
-
 
109268
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
109269
      oprot.writeStructBegin(STRUCT_DESC);
-
 
109270
 
-
 
109271
      if (this.isSetSuccess()) {
-
 
109272
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
109273
        oprot.writeI64(this.success);
-
 
109274
        oprot.writeFieldEnd();
-
 
109275
      }
-
 
109276
      oprot.writeFieldStop();
-
 
109277
      oprot.writeStructEnd();
-
 
109278
    }
-
 
109279
 
-
 
109280
    @Override
-
 
109281
    public String toString() {
-
 
109282
      StringBuilder sb = new StringBuilder("getCountForFlipkartItems_result(");
-
 
109283
      boolean first = true;
-
 
109284
 
-
 
109285
      sb.append("success:");
-
 
109286
      sb.append(this.success);
-
 
109287
      first = false;
-
 
109288
      sb.append(")");
-
 
109289
      return sb.toString();
-
 
109290
    }
-
 
109291
 
-
 
109292
    public void validate() throws org.apache.thrift.TException {
-
 
109293
      // check for required fields
-
 
109294
    }
-
 
109295
 
-
 
109296
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
109297
      try {
-
 
109298
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
109299
      } catch (org.apache.thrift.TException te) {
-
 
109300
        throw new java.io.IOException(te);
-
 
109301
      }
-
 
109302
    }
-
 
109303
 
-
 
109304
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
109305
      try {
-
 
109306
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
109307
      } catch (org.apache.thrift.TException te) {
-
 
109308
        throw new java.io.IOException(te);
-
 
109309
      }
-
 
109310
    }
-
 
109311
 
-
 
109312
  }
-
 
109313
 
-
 
109314
  public static class getFlipkartSearchResultCount_args implements org.apache.thrift.TBase<getFlipkartSearchResultCount_args, getFlipkartSearchResultCount_args._Fields>, java.io.Serializable, Cloneable   {
-
 
109315
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartSearchResultCount_args");
-
 
109316
 
-
 
109317
    private static final org.apache.thrift.protocol.TField SEARCH_TERM_FIELD_DESC = new org.apache.thrift.protocol.TField("searchTerm", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
109318
 
-
 
109319
    private List<String> searchTerm; // required
-
 
109320
 
-
 
109321
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
109322
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
109323
      SEARCH_TERM((short)1, "searchTerm");
-
 
109324
 
-
 
109325
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
109326
 
-
 
109327
      static {
-
 
109328
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
109329
          byName.put(field.getFieldName(), field);
-
 
109330
        }
-
 
109331
      }
-
 
109332
 
-
 
109333
      /**
-
 
109334
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
109335
       */
-
 
109336
      public static _Fields findByThriftId(int fieldId) {
-
 
109337
        switch(fieldId) {
-
 
109338
          case 1: // SEARCH_TERM
-
 
109339
            return SEARCH_TERM;
-
 
109340
          default:
-
 
109341
            return null;
-
 
109342
        }
-
 
109343
      }
-
 
109344
 
-
 
109345
      /**
-
 
109346
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
109347
       * if it is not found.
-
 
109348
       */
-
 
109349
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
109350
        _Fields fields = findByThriftId(fieldId);
-
 
109351
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
109352
        return fields;
-
 
109353
      }
-
 
109354
 
-
 
109355
      /**
-
 
109356
       * Find the _Fields constant that matches name, or null if its not found.
-
 
109357
       */
-
 
109358
      public static _Fields findByName(String name) {
-
 
109359
        return byName.get(name);
-
 
109360
      }
-
 
109361
 
-
 
109362
      private final short _thriftId;
-
 
109363
      private final String _fieldName;
-
 
109364
 
-
 
109365
      _Fields(short thriftId, String fieldName) {
-
 
109366
        _thriftId = thriftId;
-
 
109367
        _fieldName = fieldName;
-
 
109368
      }
-
 
109369
 
-
 
109370
      public short getThriftFieldId() {
-
 
109371
        return _thriftId;
-
 
109372
      }
-
 
109373
 
-
 
109374
      public String getFieldName() {
-
 
109375
        return _fieldName;
-
 
109376
      }
-
 
109377
    }
-
 
109378
 
-
 
109379
    // isset id assignments
-
 
109380
 
-
 
109381
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
109382
    static {
-
 
109383
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
109384
      tmpMap.put(_Fields.SEARCH_TERM, new org.apache.thrift.meta_data.FieldMetaData("searchTerm", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
109385
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
109386
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
109387
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
109388
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartSearchResultCount_args.class, metaDataMap);
-
 
109389
    }
-
 
109390
 
-
 
109391
    public getFlipkartSearchResultCount_args() {
-
 
109392
    }
-
 
109393
 
-
 
109394
    public getFlipkartSearchResultCount_args(
-
 
109395
      List<String> searchTerm)
-
 
109396
    {
-
 
109397
      this();
-
 
109398
      this.searchTerm = searchTerm;
-
 
109399
    }
-
 
109400
 
-
 
109401
    /**
-
 
109402
     * Performs a deep copy on <i>other</i>.
-
 
109403
     */
-
 
109404
    public getFlipkartSearchResultCount_args(getFlipkartSearchResultCount_args other) {
-
 
109405
      if (other.isSetSearchTerm()) {
-
 
109406
        List<String> __this__searchTerm = new ArrayList<String>();
-
 
109407
        for (String other_element : other.searchTerm) {
-
 
109408
          __this__searchTerm.add(other_element);
-
 
109409
        }
-
 
109410
        this.searchTerm = __this__searchTerm;
-
 
109411
      }
-
 
109412
    }
-
 
109413
 
-
 
109414
    public getFlipkartSearchResultCount_args deepCopy() {
-
 
109415
      return new getFlipkartSearchResultCount_args(this);
-
 
109416
    }
-
 
109417
 
-
 
109418
    @Override
-
 
109419
    public void clear() {
-
 
109420
      this.searchTerm = null;
-
 
109421
    }
-
 
109422
 
-
 
109423
    public int getSearchTermSize() {
-
 
109424
      return (this.searchTerm == null) ? 0 : this.searchTerm.size();
-
 
109425
    }
-
 
109426
 
-
 
109427
    public java.util.Iterator<String> getSearchTermIterator() {
-
 
109428
      return (this.searchTerm == null) ? null : this.searchTerm.iterator();
-
 
109429
    }
-
 
109430
 
-
 
109431
    public void addToSearchTerm(String elem) {
-
 
109432
      if (this.searchTerm == null) {
-
 
109433
        this.searchTerm = new ArrayList<String>();
-
 
109434
      }
-
 
109435
      this.searchTerm.add(elem);
-
 
109436
    }
-
 
109437
 
-
 
109438
    public List<String> getSearchTerm() {
-
 
109439
      return this.searchTerm;
-
 
109440
    }
-
 
109441
 
-
 
109442
    public void setSearchTerm(List<String> searchTerm) {
-
 
109443
      this.searchTerm = searchTerm;
-
 
109444
    }
-
 
109445
 
-
 
109446
    public void unsetSearchTerm() {
-
 
109447
      this.searchTerm = null;
-
 
109448
    }
-
 
109449
 
-
 
109450
    /** Returns true if field searchTerm is set (has been assigned a value) and false otherwise */
-
 
109451
    public boolean isSetSearchTerm() {
-
 
109452
      return this.searchTerm != null;
-
 
109453
    }
-
 
109454
 
-
 
109455
    public void setSearchTermIsSet(boolean value) {
-
 
109456
      if (!value) {
-
 
109457
        this.searchTerm = null;
-
 
109458
      }
-
 
109459
    }
-
 
109460
 
-
 
109461
    public void setFieldValue(_Fields field, Object value) {
-
 
109462
      switch (field) {
-
 
109463
      case SEARCH_TERM:
-
 
109464
        if (value == null) {
-
 
109465
          unsetSearchTerm();
-
 
109466
        } else {
-
 
109467
          setSearchTerm((List<String>)value);
-
 
109468
        }
-
 
109469
        break;
-
 
109470
 
-
 
109471
      }
-
 
109472
    }
-
 
109473
 
-
 
109474
    public Object getFieldValue(_Fields field) {
-
 
109475
      switch (field) {
-
 
109476
      case SEARCH_TERM:
-
 
109477
        return getSearchTerm();
-
 
109478
 
-
 
109479
      }
-
 
109480
      throw new IllegalStateException();
-
 
109481
    }
-
 
109482
 
-
 
109483
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
109484
    public boolean isSet(_Fields field) {
-
 
109485
      if (field == null) {
-
 
109486
        throw new IllegalArgumentException();
-
 
109487
      }
-
 
109488
 
-
 
109489
      switch (field) {
-
 
109490
      case SEARCH_TERM:
-
 
109491
        return isSetSearchTerm();
-
 
109492
      }
-
 
109493
      throw new IllegalStateException();
-
 
109494
    }
-
 
109495
 
-
 
109496
    @Override
-
 
109497
    public boolean equals(Object that) {
-
 
109498
      if (that == null)
-
 
109499
        return false;
-
 
109500
      if (that instanceof getFlipkartSearchResultCount_args)
-
 
109501
        return this.equals((getFlipkartSearchResultCount_args)that);
-
 
109502
      return false;
-
 
109503
    }
-
 
109504
 
-
 
109505
    public boolean equals(getFlipkartSearchResultCount_args that) {
-
 
109506
      if (that == null)
-
 
109507
        return false;
-
 
109508
 
-
 
109509
      boolean this_present_searchTerm = true && this.isSetSearchTerm();
-
 
109510
      boolean that_present_searchTerm = true && that.isSetSearchTerm();
-
 
109511
      if (this_present_searchTerm || that_present_searchTerm) {
-
 
109512
        if (!(this_present_searchTerm && that_present_searchTerm))
-
 
109513
          return false;
-
 
109514
        if (!this.searchTerm.equals(that.searchTerm))
-
 
109515
          return false;
-
 
109516
      }
-
 
109517
 
-
 
109518
      return true;
-
 
109519
    }
-
 
109520
 
-
 
109521
    @Override
-
 
109522
    public int hashCode() {
-
 
109523
      return 0;
-
 
109524
    }
-
 
109525
 
-
 
109526
    public int compareTo(getFlipkartSearchResultCount_args other) {
-
 
109527
      if (!getClass().equals(other.getClass())) {
-
 
109528
        return getClass().getName().compareTo(other.getClass().getName());
-
 
109529
      }
-
 
109530
 
-
 
109531
      int lastComparison = 0;
-
 
109532
      getFlipkartSearchResultCount_args typedOther = (getFlipkartSearchResultCount_args)other;
-
 
109533
 
-
 
109534
      lastComparison = Boolean.valueOf(isSetSearchTerm()).compareTo(typedOther.isSetSearchTerm());
-
 
109535
      if (lastComparison != 0) {
-
 
109536
        return lastComparison;
-
 
109537
      }
-
 
109538
      if (isSetSearchTerm()) {
-
 
109539
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchTerm, typedOther.searchTerm);
-
 
109540
        if (lastComparison != 0) {
-
 
109541
          return lastComparison;
-
 
109542
        }
-
 
109543
      }
-
 
109544
      return 0;
-
 
109545
    }
-
 
109546
 
-
 
109547
    public _Fields fieldForId(int fieldId) {
-
 
109548
      return _Fields.findByThriftId(fieldId);
-
 
109549
    }
-
 
109550
 
-
 
109551
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
109552
      org.apache.thrift.protocol.TField field;
-
 
109553
      iprot.readStructBegin();
-
 
109554
      while (true)
-
 
109555
      {
-
 
109556
        field = iprot.readFieldBegin();
-
 
109557
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
109558
          break;
-
 
109559
        }
-
 
109560
        switch (field.id) {
-
 
109561
          case 1: // SEARCH_TERM
-
 
109562
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
109563
              {
-
 
109564
                org.apache.thrift.protocol.TList _list345 = iprot.readListBegin();
-
 
109565
                this.searchTerm = new ArrayList<String>(_list345.size);
-
 
109566
                for (int _i346 = 0; _i346 < _list345.size; ++_i346)
-
 
109567
                {
-
 
109568
                  String _elem347; // required
-
 
109569
                  _elem347 = iprot.readString();
-
 
109570
                  this.searchTerm.add(_elem347);
-
 
109571
                }
-
 
109572
                iprot.readListEnd();
-
 
109573
              }
-
 
109574
            } else { 
-
 
109575
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
109576
            }
-
 
109577
            break;
-
 
109578
          default:
-
 
109579
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
109580
        }
-
 
109581
        iprot.readFieldEnd();
-
 
109582
      }
-
 
109583
      iprot.readStructEnd();
-
 
109584
      validate();
-
 
109585
    }
-
 
109586
 
-
 
109587
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
109588
      validate();
-
 
109589
 
-
 
109590
      oprot.writeStructBegin(STRUCT_DESC);
-
 
109591
      if (this.searchTerm != null) {
-
 
109592
        oprot.writeFieldBegin(SEARCH_TERM_FIELD_DESC);
-
 
109593
        {
-
 
109594
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.searchTerm.size()));
-
 
109595
          for (String _iter348 : this.searchTerm)
-
 
109596
          {
-
 
109597
            oprot.writeString(_iter348);
-
 
109598
          }
-
 
109599
          oprot.writeListEnd();
-
 
109600
        }
-
 
109601
        oprot.writeFieldEnd();
-
 
109602
      }
-
 
109603
      oprot.writeFieldStop();
-
 
109604
      oprot.writeStructEnd();
-
 
109605
    }
-
 
109606
 
-
 
109607
    @Override
-
 
109608
    public String toString() {
-
 
109609
      StringBuilder sb = new StringBuilder("getFlipkartSearchResultCount_args(");
-
 
109610
      boolean first = true;
-
 
109611
 
-
 
109612
      sb.append("searchTerm:");
-
 
109613
      if (this.searchTerm == null) {
-
 
109614
        sb.append("null");
-
 
109615
      } else {
-
 
109616
        sb.append(this.searchTerm);
-
 
109617
      }
-
 
109618
      first = false;
-
 
109619
      sb.append(")");
-
 
109620
      return sb.toString();
-
 
109621
    }
-
 
109622
 
-
 
109623
    public void validate() throws org.apache.thrift.TException {
-
 
109624
      // check for required fields
-
 
109625
    }
-
 
109626
 
-
 
109627
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
109628
      try {
-
 
109629
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
109630
      } catch (org.apache.thrift.TException te) {
-
 
109631
        throw new java.io.IOException(te);
-
 
109632
      }
-
 
109633
    }
-
 
109634
 
-
 
109635
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
109636
      try {
-
 
109637
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
109638
      } catch (org.apache.thrift.TException te) {
-
 
109639
        throw new java.io.IOException(te);
-
 
109640
      }
-
 
109641
    }
-
 
109642
 
-
 
109643
  }
-
 
109644
 
-
 
109645
  public static class getFlipkartSearchResultCount_result implements org.apache.thrift.TBase<getFlipkartSearchResultCount_result, getFlipkartSearchResultCount_result._Fields>, java.io.Serializable, Cloneable   {
-
 
109646
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartSearchResultCount_result");
-
 
109647
 
-
 
109648
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
109649
 
-
 
109650
    private long success; // required
-
 
109651
 
-
 
109652
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
109653
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
109654
      SUCCESS((short)0, "success");
-
 
109655
 
-
 
109656
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
109657
 
-
 
109658
      static {
-
 
109659
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
109660
          byName.put(field.getFieldName(), field);
-
 
109661
        }
-
 
109662
      }
-
 
109663
 
-
 
109664
      /**
-
 
109665
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
109666
       */
-
 
109667
      public static _Fields findByThriftId(int fieldId) {
-
 
109668
        switch(fieldId) {
-
 
109669
          case 0: // SUCCESS
-
 
109670
            return SUCCESS;
-
 
109671
          default:
-
 
109672
            return null;
-
 
109673
        }
-
 
109674
      }
-
 
109675
 
-
 
109676
      /**
-
 
109677
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
109678
       * if it is not found.
-
 
109679
       */
-
 
109680
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
109681
        _Fields fields = findByThriftId(fieldId);
-
 
109682
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
109683
        return fields;
-
 
109684
      }
-
 
109685
 
-
 
109686
      /**
-
 
109687
       * Find the _Fields constant that matches name, or null if its not found.
-
 
109688
       */
-
 
109689
      public static _Fields findByName(String name) {
-
 
109690
        return byName.get(name);
-
 
109691
      }
-
 
109692
 
-
 
109693
      private final short _thriftId;
-
 
109694
      private final String _fieldName;
-
 
109695
 
-
 
109696
      _Fields(short thriftId, String fieldName) {
-
 
109697
        _thriftId = thriftId;
-
 
109698
        _fieldName = fieldName;
-
 
109699
      }
-
 
109700
 
-
 
109701
      public short getThriftFieldId() {
-
 
109702
        return _thriftId;
-
 
109703
      }
-
 
109704
 
-
 
109705
      public String getFieldName() {
-
 
109706
        return _fieldName;
-
 
109707
      }
-
 
109708
    }
-
 
109709
 
-
 
109710
    // isset id assignments
-
 
109711
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
109712
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
109713
 
-
 
109714
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
109715
    static {
-
 
109716
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
109717
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
109718
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
109719
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
109720
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartSearchResultCount_result.class, metaDataMap);
-
 
109721
    }
-
 
109722
 
-
 
109723
    public getFlipkartSearchResultCount_result() {
-
 
109724
    }
-
 
109725
 
-
 
109726
    public getFlipkartSearchResultCount_result(
-
 
109727
      long success)
-
 
109728
    {
-
 
109729
      this();
-
 
109730
      this.success = success;
-
 
109731
      setSuccessIsSet(true);
-
 
109732
    }
-
 
109733
 
-
 
109734
    /**
-
 
109735
     * Performs a deep copy on <i>other</i>.
-
 
109736
     */
-
 
109737
    public getFlipkartSearchResultCount_result(getFlipkartSearchResultCount_result other) {
-
 
109738
      __isset_bit_vector.clear();
-
 
109739
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
109740
      this.success = other.success;
-
 
109741
    }
-
 
109742
 
-
 
109743
    public getFlipkartSearchResultCount_result deepCopy() {
-
 
109744
      return new getFlipkartSearchResultCount_result(this);
-
 
109745
    }
-
 
109746
 
-
 
109747
    @Override
-
 
109748
    public void clear() {
-
 
109749
      setSuccessIsSet(false);
-
 
109750
      this.success = 0;
-
 
109751
    }
-
 
109752
 
-
 
109753
    public long getSuccess() {
-
 
109754
      return this.success;
-
 
109755
    }
-
 
109756
 
-
 
109757
    public void setSuccess(long success) {
-
 
109758
      this.success = success;
-
 
109759
      setSuccessIsSet(true);
-
 
109760
    }
-
 
109761
 
-
 
109762
    public void unsetSuccess() {
-
 
109763
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
109764
    }
-
 
109765
 
-
 
109766
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
109767
    public boolean isSetSuccess() {
-
 
109768
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
109769
    }
-
 
109770
 
-
 
109771
    public void setSuccessIsSet(boolean value) {
-
 
109772
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
109773
    }
-
 
109774
 
-
 
109775
    public void setFieldValue(_Fields field, Object value) {
-
 
109776
      switch (field) {
-
 
109777
      case SUCCESS:
-
 
109778
        if (value == null) {
-
 
109779
          unsetSuccess();
-
 
109780
        } else {
-
 
109781
          setSuccess((Long)value);
-
 
109782
        }
-
 
109783
        break;
-
 
109784
 
-
 
109785
      }
-
 
109786
    }
-
 
109787
 
-
 
109788
    public Object getFieldValue(_Fields field) {
-
 
109789
      switch (field) {
-
 
109790
      case SUCCESS:
-
 
109791
        return Long.valueOf(getSuccess());
-
 
109792
 
-
 
109793
      }
-
 
109794
      throw new IllegalStateException();
-
 
109795
    }
-
 
109796
 
-
 
109797
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
109798
    public boolean isSet(_Fields field) {
-
 
109799
      if (field == null) {
-
 
109800
        throw new IllegalArgumentException();
-
 
109801
      }
-
 
109802
 
-
 
109803
      switch (field) {
-
 
109804
      case SUCCESS:
-
 
109805
        return isSetSuccess();
-
 
109806
      }
-
 
109807
      throw new IllegalStateException();
-
 
109808
    }
-
 
109809
 
-
 
109810
    @Override
-
 
109811
    public boolean equals(Object that) {
-
 
109812
      if (that == null)
-
 
109813
        return false;
-
 
109814
      if (that instanceof getFlipkartSearchResultCount_result)
-
 
109815
        return this.equals((getFlipkartSearchResultCount_result)that);
-
 
109816
      return false;
-
 
109817
    }
-
 
109818
 
-
 
109819
    public boolean equals(getFlipkartSearchResultCount_result that) {
-
 
109820
      if (that == null)
-
 
109821
        return false;
-
 
109822
 
-
 
109823
      boolean this_present_success = true;
-
 
109824
      boolean that_present_success = true;
-
 
109825
      if (this_present_success || that_present_success) {
-
 
109826
        if (!(this_present_success && that_present_success))
-
 
109827
          return false;
-
 
109828
        if (this.success != that.success)
-
 
109829
          return false;
-
 
109830
      }
-
 
109831
 
-
 
109832
      return true;
-
 
109833
    }
-
 
109834
 
-
 
109835
    @Override
-
 
109836
    public int hashCode() {
-
 
109837
      return 0;
-
 
109838
    }
-
 
109839
 
-
 
109840
    public int compareTo(getFlipkartSearchResultCount_result other) {
-
 
109841
      if (!getClass().equals(other.getClass())) {
-
 
109842
        return getClass().getName().compareTo(other.getClass().getName());
-
 
109843
      }
-
 
109844
 
-
 
109845
      int lastComparison = 0;
-
 
109846
      getFlipkartSearchResultCount_result typedOther = (getFlipkartSearchResultCount_result)other;
-
 
109847
 
-
 
109848
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
109849
      if (lastComparison != 0) {
-
 
109850
        return lastComparison;
-
 
109851
      }
-
 
109852
      if (isSetSuccess()) {
-
 
109853
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
109854
        if (lastComparison != 0) {
-
 
109855
          return lastComparison;
-
 
109856
        }
-
 
109857
      }
-
 
109858
      return 0;
-
 
109859
    }
-
 
109860
 
-
 
109861
    public _Fields fieldForId(int fieldId) {
-
 
109862
      return _Fields.findByThriftId(fieldId);
-
 
109863
    }
-
 
109864
 
-
 
109865
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
109866
      org.apache.thrift.protocol.TField field;
-
 
109867
      iprot.readStructBegin();
-
 
109868
      while (true)
-
 
109869
      {
-
 
109870
        field = iprot.readFieldBegin();
-
 
109871
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
109872
          break;
-
 
109873
        }
-
 
109874
        switch (field.id) {
-
 
109875
          case 0: // SUCCESS
-
 
109876
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
109877
              this.success = iprot.readI64();
-
 
109878
              setSuccessIsSet(true);
-
 
109879
            } else { 
-
 
109880
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
109881
            }
-
 
109882
            break;
-
 
109883
          default:
-
 
109884
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
109885
        }
-
 
109886
        iprot.readFieldEnd();
-
 
109887
      }
-
 
109888
      iprot.readStructEnd();
-
 
109889
      validate();
-
 
109890
    }
-
 
109891
 
-
 
109892
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
109893
      oprot.writeStructBegin(STRUCT_DESC);
-
 
109894
 
-
 
109895
      if (this.isSetSuccess()) {
-
 
109896
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
109897
        oprot.writeI64(this.success);
-
 
109898
        oprot.writeFieldEnd();
-
 
109899
      }
-
 
109900
      oprot.writeFieldStop();
-
 
109901
      oprot.writeStructEnd();
-
 
109902
    }
-
 
109903
 
-
 
109904
    @Override
-
 
109905
    public String toString() {
-
 
109906
      StringBuilder sb = new StringBuilder("getFlipkartSearchResultCount_result(");
-
 
109907
      boolean first = true;
-
 
109908
 
-
 
109909
      sb.append("success:");
-
 
109910
      sb.append(this.success);
-
 
109911
      first = false;
-
 
109912
      sb.append(")");
-
 
109913
      return sb.toString();
-
 
109914
    }
-
 
109915
 
-
 
109916
    public void validate() throws org.apache.thrift.TException {
-
 
109917
      // check for required fields
-
 
109918
    }
-
 
109919
 
-
 
109920
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
109921
      try {
-
 
109922
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
109923
      } catch (org.apache.thrift.TException te) {
-
 
109924
        throw new java.io.IOException(te);
-
 
109925
      }
-
 
109926
    }
-
 
109927
 
-
 
109928
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
109929
      try {
-
 
109930
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
109931
      } catch (org.apache.thrift.TException te) {
-
 
109932
        throw new java.io.IOException(te);
-
 
109933
      }
-
 
109934
    }
-
 
109935
 
-
 
109936
  }
-
 
109937
 
-
 
109938
  public static class getAllFkItems_args implements org.apache.thrift.TBase<getAllFkItems_args, getAllFkItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
109939
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFkItems_args");
-
 
109940
 
-
 
109941
 
-
 
109942
 
-
 
109943
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
109944
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
109945
;
-
 
109946
 
-
 
109947
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
109948
 
-
 
109949
      static {
-
 
109950
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
109951
          byName.put(field.getFieldName(), field);
-
 
109952
        }
-
 
109953
      }
-
 
109954
 
-
 
109955
      /**
-
 
109956
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
109957
       */
-
 
109958
      public static _Fields findByThriftId(int fieldId) {
-
 
109959
        switch(fieldId) {
-
 
109960
          default:
-
 
109961
            return null;
-
 
109962
        }
-
 
109963
      }
-
 
109964
 
-
 
109965
      /**
-
 
109966
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
109967
       * if it is not found.
-
 
109968
       */
-
 
109969
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
109970
        _Fields fields = findByThriftId(fieldId);
-
 
109971
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
109972
        return fields;
-
 
109973
      }
-
 
109974
 
-
 
109975
      /**
-
 
109976
       * Find the _Fields constant that matches name, or null if its not found.
-
 
109977
       */
-
 
109978
      public static _Fields findByName(String name) {
-
 
109979
        return byName.get(name);
-
 
109980
      }
-
 
109981
 
-
 
109982
      private final short _thriftId;
-
 
109983
      private final String _fieldName;
-
 
109984
 
-
 
109985
      _Fields(short thriftId, String fieldName) {
-
 
109986
        _thriftId = thriftId;
-
 
109987
        _fieldName = fieldName;
-
 
109988
      }
-
 
109989
 
-
 
109990
      public short getThriftFieldId() {
-
 
109991
        return _thriftId;
-
 
109992
      }
-
 
109993
 
-
 
109994
      public String getFieldName() {
-
 
109995
        return _fieldName;
-
 
109996
      }
-
 
109997
    }
-
 
109998
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
109999
    static {
-
 
110000
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
110001
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
110002
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFkItems_args.class, metaDataMap);
-
 
110003
    }
-
 
110004
 
-
 
110005
    public getAllFkItems_args() {
-
 
110006
    }
-
 
110007
 
-
 
110008
    /**
-
 
110009
     * Performs a deep copy on <i>other</i>.
-
 
110010
     */
-
 
110011
    public getAllFkItems_args(getAllFkItems_args other) {
-
 
110012
    }
-
 
110013
 
-
 
110014
    public getAllFkItems_args deepCopy() {
-
 
110015
      return new getAllFkItems_args(this);
-
 
110016
    }
-
 
110017
 
-
 
110018
    @Override
-
 
110019
    public void clear() {
-
 
110020
    }
-
 
110021
 
-
 
110022
    public void setFieldValue(_Fields field, Object value) {
-
 
110023
      switch (field) {
-
 
110024
      }
-
 
110025
    }
-
 
110026
 
-
 
110027
    public Object getFieldValue(_Fields field) {
-
 
110028
      switch (field) {
-
 
110029
      }
-
 
110030
      throw new IllegalStateException();
-
 
110031
    }
-
 
110032
 
-
 
110033
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
110034
    public boolean isSet(_Fields field) {
-
 
110035
      if (field == null) {
-
 
110036
        throw new IllegalArgumentException();
-
 
110037
      }
-
 
110038
 
-
 
110039
      switch (field) {
-
 
110040
      }
-
 
110041
      throw new IllegalStateException();
-
 
110042
    }
-
 
110043
 
-
 
110044
    @Override
-
 
110045
    public boolean equals(Object that) {
-
 
110046
      if (that == null)
-
 
110047
        return false;
-
 
110048
      if (that instanceof getAllFkItems_args)
-
 
110049
        return this.equals((getAllFkItems_args)that);
-
 
110050
      return false;
-
 
110051
    }
-
 
110052
 
-
 
110053
    public boolean equals(getAllFkItems_args that) {
-
 
110054
      if (that == null)
-
 
110055
        return false;
-
 
110056
 
-
 
110057
      return true;
-
 
110058
    }
-
 
110059
 
-
 
110060
    @Override
-
 
110061
    public int hashCode() {
-
 
110062
      return 0;
-
 
110063
    }
-
 
110064
 
-
 
110065
    public int compareTo(getAllFkItems_args other) {
-
 
110066
      if (!getClass().equals(other.getClass())) {
-
 
110067
        return getClass().getName().compareTo(other.getClass().getName());
-
 
110068
      }
-
 
110069
 
-
 
110070
      int lastComparison = 0;
-
 
110071
      getAllFkItems_args typedOther = (getAllFkItems_args)other;
-
 
110072
 
-
 
110073
      return 0;
-
 
110074
    }
-
 
110075
 
-
 
110076
    public _Fields fieldForId(int fieldId) {
-
 
110077
      return _Fields.findByThriftId(fieldId);
-
 
110078
    }
-
 
110079
 
-
 
110080
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
110081
      org.apache.thrift.protocol.TField field;
-
 
110082
      iprot.readStructBegin();
-
 
110083
      while (true)
-
 
110084
      {
-
 
110085
        field = iprot.readFieldBegin();
-
 
110086
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
110087
          break;
-
 
110088
        }
-
 
110089
        switch (field.id) {
-
 
110090
          default:
-
 
110091
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
110092
        }
-
 
110093
        iprot.readFieldEnd();
-
 
110094
      }
-
 
110095
      iprot.readStructEnd();
-
 
110096
      validate();
-
 
110097
    }
-
 
110098
 
-
 
110099
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
110100
      validate();
-
 
110101
 
-
 
110102
      oprot.writeStructBegin(STRUCT_DESC);
-
 
110103
      oprot.writeFieldStop();
-
 
110104
      oprot.writeStructEnd();
-
 
110105
    }
-
 
110106
 
-
 
110107
    @Override
-
 
110108
    public String toString() {
-
 
110109
      StringBuilder sb = new StringBuilder("getAllFkItems_args(");
-
 
110110
      boolean first = true;
-
 
110111
 
-
 
110112
      sb.append(")");
-
 
110113
      return sb.toString();
-
 
110114
    }
-
 
110115
 
-
 
110116
    public void validate() throws org.apache.thrift.TException {
-
 
110117
      // check for required fields
-
 
110118
    }
-
 
110119
 
-
 
110120
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
110121
      try {
-
 
110122
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
110123
      } catch (org.apache.thrift.TException te) {
-
 
110124
        throw new java.io.IOException(te);
-
 
110125
      }
-
 
110126
    }
-
 
110127
 
-
 
110128
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
110129
      try {
-
 
110130
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
110131
      } catch (org.apache.thrift.TException te) {
-
 
110132
        throw new java.io.IOException(te);
-
 
110133
      }
-
 
110134
    }
-
 
110135
 
-
 
110136
  }
-
 
110137
 
-
 
110138
  public static class getAllFkItems_result implements org.apache.thrift.TBase<getAllFkItems_result, getAllFkItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
110139
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllFkItems_result");
-
 
110140
 
-
 
110141
    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);
-
 
110142
 
-
 
110143
    private List<FlipkartItemDetails> success; // required
-
 
110144
 
-
 
110145
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
110146
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
110147
      SUCCESS((short)0, "success");
-
 
110148
 
-
 
110149
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
110150
 
-
 
110151
      static {
-
 
110152
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
110153
          byName.put(field.getFieldName(), field);
-
 
110154
        }
-
 
110155
      }
-
 
110156
 
-
 
110157
      /**
-
 
110158
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
110159
       */
-
 
110160
      public static _Fields findByThriftId(int fieldId) {
-
 
110161
        switch(fieldId) {
-
 
110162
          case 0: // SUCCESS
-
 
110163
            return SUCCESS;
-
 
110164
          default:
-
 
110165
            return null;
-
 
110166
        }
-
 
110167
      }
-
 
110168
 
-
 
110169
      /**
-
 
110170
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
110171
       * if it is not found.
-
 
110172
       */
-
 
110173
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
110174
        _Fields fields = findByThriftId(fieldId);
-
 
110175
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
110176
        return fields;
-
 
110177
      }
-
 
110178
 
-
 
110179
      /**
-
 
110180
       * Find the _Fields constant that matches name, or null if its not found.
-
 
110181
       */
-
 
110182
      public static _Fields findByName(String name) {
-
 
110183
        return byName.get(name);
-
 
110184
      }
-
 
110185
 
-
 
110186
      private final short _thriftId;
-
 
110187
      private final String _fieldName;
-
 
110188
 
-
 
110189
      _Fields(short thriftId, String fieldName) {
-
 
110190
        _thriftId = thriftId;
-
 
110191
        _fieldName = fieldName;
-
 
110192
      }
-
 
110193
 
-
 
110194
      public short getThriftFieldId() {
-
 
110195
        return _thriftId;
-
 
110196
      }
-
 
110197
 
-
 
110198
      public String getFieldName() {
-
 
110199
        return _fieldName;
-
 
110200
      }
-
 
110201
    }
-
 
110202
 
-
 
110203
    // isset id assignments
-
 
110204
 
-
 
110205
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
110206
    static {
-
 
110207
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
110208
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
110209
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
110210
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartItemDetails.class))));
-
 
110211
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
110212
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllFkItems_result.class, metaDataMap);
-
 
110213
    }
-
 
110214
 
-
 
110215
    public getAllFkItems_result() {
-
 
110216
    }
-
 
110217
 
-
 
110218
    public getAllFkItems_result(
-
 
110219
      List<FlipkartItemDetails> success)
-
 
110220
    {
-
 
110221
      this();
-
 
110222
      this.success = success;
-
 
110223
    }
-
 
110224
 
-
 
110225
    /**
-
 
110226
     * Performs a deep copy on <i>other</i>.
-
 
110227
     */
-
 
110228
    public getAllFkItems_result(getAllFkItems_result other) {
-
 
110229
      if (other.isSetSuccess()) {
-
 
110230
        List<FlipkartItemDetails> __this__success = new ArrayList<FlipkartItemDetails>();
-
 
110231
        for (FlipkartItemDetails other_element : other.success) {
-
 
110232
          __this__success.add(new FlipkartItemDetails(other_element));
-
 
110233
        }
-
 
110234
        this.success = __this__success;
-
 
110235
      }
-
 
110236
    }
-
 
110237
 
-
 
110238
    public getAllFkItems_result deepCopy() {
-
 
110239
      return new getAllFkItems_result(this);
-
 
110240
    }
-
 
110241
 
-
 
110242
    @Override
-
 
110243
    public void clear() {
-
 
110244
      this.success = null;
-
 
110245
    }
-
 
110246
 
-
 
110247
    public int getSuccessSize() {
-
 
110248
      return (this.success == null) ? 0 : this.success.size();
-
 
110249
    }
-
 
110250
 
-
 
110251
    public java.util.Iterator<FlipkartItemDetails> getSuccessIterator() {
-
 
110252
      return (this.success == null) ? null : this.success.iterator();
-
 
110253
    }
-
 
110254
 
-
 
110255
    public void addToSuccess(FlipkartItemDetails elem) {
-
 
110256
      if (this.success == null) {
-
 
110257
        this.success = new ArrayList<FlipkartItemDetails>();
-
 
110258
      }
-
 
110259
      this.success.add(elem);
-
 
110260
    }
-
 
110261
 
-
 
110262
    public List<FlipkartItemDetails> getSuccess() {
-
 
110263
      return this.success;
-
 
110264
    }
-
 
110265
 
-
 
110266
    public void setSuccess(List<FlipkartItemDetails> success) {
-
 
110267
      this.success = success;
-
 
110268
    }
-
 
110269
 
-
 
110270
    public void unsetSuccess() {
-
 
110271
      this.success = null;
-
 
110272
    }
-
 
110273
 
-
 
110274
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
110275
    public boolean isSetSuccess() {
-
 
110276
      return this.success != null;
-
 
110277
    }
-
 
110278
 
-
 
110279
    public void setSuccessIsSet(boolean value) {
-
 
110280
      if (!value) {
-
 
110281
        this.success = null;
-
 
110282
      }
-
 
110283
    }
-
 
110284
 
-
 
110285
    public void setFieldValue(_Fields field, Object value) {
-
 
110286
      switch (field) {
-
 
110287
      case SUCCESS:
-
 
110288
        if (value == null) {
-
 
110289
          unsetSuccess();
-
 
110290
        } else {
-
 
110291
          setSuccess((List<FlipkartItemDetails>)value);
-
 
110292
        }
-
 
110293
        break;
-
 
110294
 
-
 
110295
      }
-
 
110296
    }
-
 
110297
 
-
 
110298
    public Object getFieldValue(_Fields field) {
-
 
110299
      switch (field) {
-
 
110300
      case SUCCESS:
-
 
110301
        return getSuccess();
-
 
110302
 
-
 
110303
      }
-
 
110304
      throw new IllegalStateException();
-
 
110305
    }
-
 
110306
 
-
 
110307
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
110308
    public boolean isSet(_Fields field) {
-
 
110309
      if (field == null) {
-
 
110310
        throw new IllegalArgumentException();
-
 
110311
      }
-
 
110312
 
-
 
110313
      switch (field) {
-
 
110314
      case SUCCESS:
-
 
110315
        return isSetSuccess();
-
 
110316
      }
-
 
110317
      throw new IllegalStateException();
-
 
110318
    }
-
 
110319
 
-
 
110320
    @Override
-
 
110321
    public boolean equals(Object that) {
-
 
110322
      if (that == null)
-
 
110323
        return false;
-
 
110324
      if (that instanceof getAllFkItems_result)
-
 
110325
        return this.equals((getAllFkItems_result)that);
-
 
110326
      return false;
-
 
110327
    }
-
 
110328
 
-
 
110329
    public boolean equals(getAllFkItems_result that) {
-
 
110330
      if (that == null)
-
 
110331
        return false;
-
 
110332
 
-
 
110333
      boolean this_present_success = true && this.isSetSuccess();
-
 
110334
      boolean that_present_success = true && that.isSetSuccess();
-
 
110335
      if (this_present_success || that_present_success) {
-
 
110336
        if (!(this_present_success && that_present_success))
-
 
110337
          return false;
-
 
110338
        if (!this.success.equals(that.success))
-
 
110339
          return false;
-
 
110340
      }
-
 
110341
 
-
 
110342
      return true;
-
 
110343
    }
-
 
110344
 
-
 
110345
    @Override
-
 
110346
    public int hashCode() {
-
 
110347
      return 0;
-
 
110348
    }
-
 
110349
 
-
 
110350
    public int compareTo(getAllFkItems_result other) {
-
 
110351
      if (!getClass().equals(other.getClass())) {
-
 
110352
        return getClass().getName().compareTo(other.getClass().getName());
-
 
110353
      }
-
 
110354
 
-
 
110355
      int lastComparison = 0;
-
 
110356
      getAllFkItems_result typedOther = (getAllFkItems_result)other;
-
 
110357
 
-
 
110358
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
110359
      if (lastComparison != 0) {
-
 
110360
        return lastComparison;
-
 
110361
      }
-
 
110362
      if (isSetSuccess()) {
-
 
110363
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
110364
        if (lastComparison != 0) {
-
 
110365
          return lastComparison;
-
 
110366
        }
-
 
110367
      }
-
 
110368
      return 0;
-
 
110369
    }
-
 
110370
 
-
 
110371
    public _Fields fieldForId(int fieldId) {
-
 
110372
      return _Fields.findByThriftId(fieldId);
-
 
110373
    }
-
 
110374
 
-
 
110375
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
110376
      org.apache.thrift.protocol.TField field;
-
 
110377
      iprot.readStructBegin();
-
 
110378
      while (true)
-
 
110379
      {
-
 
110380
        field = iprot.readFieldBegin();
-
 
110381
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
110382
          break;
-
 
110383
        }
-
 
110384
        switch (field.id) {
-
 
110385
          case 0: // SUCCESS
-
 
110386
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
110387
              {
-
 
110388
                org.apache.thrift.protocol.TList _list349 = iprot.readListBegin();
-
 
110389
                this.success = new ArrayList<FlipkartItemDetails>(_list349.size);
-
 
110390
                for (int _i350 = 0; _i350 < _list349.size; ++_i350)
-
 
110391
                {
-
 
110392
                  FlipkartItemDetails _elem351; // required
-
 
110393
                  _elem351 = new FlipkartItemDetails();
-
 
110394
                  _elem351.read(iprot);
-
 
110395
                  this.success.add(_elem351);
-
 
110396
                }
-
 
110397
                iprot.readListEnd();
-
 
110398
              }
-
 
110399
            } else { 
-
 
110400
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
110401
            }
-
 
110402
            break;
-
 
110403
          default:
-
 
110404
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
110405
        }
-
 
110406
        iprot.readFieldEnd();
-
 
110407
      }
-
 
110408
      iprot.readStructEnd();
-
 
110409
      validate();
-
 
110410
    }
-
 
110411
 
-
 
110412
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
110413
      oprot.writeStructBegin(STRUCT_DESC);
-
 
110414
 
-
 
110415
      if (this.isSetSuccess()) {
-
 
110416
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
110417
        {
-
 
110418
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
110419
          for (FlipkartItemDetails _iter352 : this.success)
-
 
110420
          {
-
 
110421
            _iter352.write(oprot);
-
 
110422
          }
-
 
110423
          oprot.writeListEnd();
-
 
110424
        }
-
 
110425
        oprot.writeFieldEnd();
-
 
110426
      }
-
 
110427
      oprot.writeFieldStop();
-
 
110428
      oprot.writeStructEnd();
-
 
110429
    }
-
 
110430
 
-
 
110431
    @Override
-
 
110432
    public String toString() {
-
 
110433
      StringBuilder sb = new StringBuilder("getAllFkItems_result(");
-
 
110434
      boolean first = true;
-
 
110435
 
-
 
110436
      sb.append("success:");
-
 
110437
      if (this.success == null) {
-
 
110438
        sb.append("null");
104773
      } else {
110439
      } else {
104774
        sb.append(this.success);
110440
        sb.append(this.success);
104775
      }
110441
      }
104776
      first = false;
110442
      first = false;
104777
      sb.append(")");
110443
      sb.append(")");