Subversion Repositories SmartDukaan

Rev

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

Rev 19247 Rev 19413
Line 385... Line 385...
385
 
385
 
386
    public List<Long> addVendorItemPricingInBulk(List<VendorItemPricing> vendorItemPricingList) throws org.apache.thrift.TException;
386
    public List<Long> addVendorItemPricingInBulk(List<VendorItemPricing> vendorItemPricingList) throws org.apache.thrift.TException;
387
 
387
 
388
    public void addInventoryInBulk(List<BulkAddInventory> bulkInventoryList) throws InventoryServiceException, org.apache.thrift.TException;
388
    public void addInventoryInBulk(List<BulkAddInventory> bulkInventoryList) throws InventoryServiceException, org.apache.thrift.TException;
389
 
389
 
-
 
390
    public List<ItemLocationAvailability> getItemLocationAvailabilityCache(List<ItemLocationAvailability> itemLocations) throws org.apache.thrift.TException;
-
 
391
 
-
 
392
    public List<ItemLocationAvailability> getItemLocationAvailabilityCacheByItemId(List<Long> itemIds) throws org.apache.thrift.TException;
-
 
393
 
-
 
394
    public String getItemPincodeAvailability(List<Long> itemIds, String pincode) throws org.apache.thrift.TException;
-
 
395
 
390
  }
396
  }
391
 
397
 
392
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
398
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
393
 
399
 
394
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
400
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 555... Line 561...
555
 
561
 
556
    public void addVendorItemPricingInBulk(List<VendorItemPricing> vendorItemPricingList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemPricingInBulk_call> resultHandler) throws org.apache.thrift.TException;
562
    public void addVendorItemPricingInBulk(List<VendorItemPricing> vendorItemPricingList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemPricingInBulk_call> resultHandler) throws org.apache.thrift.TException;
557
 
563
 
558
    public void addInventoryInBulk(List<BulkAddInventory> bulkInventoryList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInventoryInBulk_call> resultHandler) throws org.apache.thrift.TException;
564
    public void addInventoryInBulk(List<BulkAddInventory> bulkInventoryList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInventoryInBulk_call> resultHandler) throws org.apache.thrift.TException;
559
 
565
 
-
 
566
    public void getItemLocationAvailabilityCache(List<ItemLocationAvailability> itemLocations, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemLocationAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
-
 
567
 
-
 
568
    public void getItemLocationAvailabilityCacheByItemId(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemLocationAvailabilityCacheByItemId_call> resultHandler) throws org.apache.thrift.TException;
-
 
569
 
-
 
570
    public void getItemPincodeAvailability(List<Long> itemIds, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPincodeAvailability_call> resultHandler) throws org.apache.thrift.TException;
-
 
571
 
560
  }
572
  }
561
 
573
 
562
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
574
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
563
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
575
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
564
      public Factory() {}
576
      public Factory() {}
Line 2535... Line 2547...
2535
        throw result.cex;
2547
        throw result.cex;
2536
      }
2548
      }
2537
      return;
2549
      return;
2538
    }
2550
    }
2539
 
2551
 
-
 
2552
    public List<ItemLocationAvailability> getItemLocationAvailabilityCache(List<ItemLocationAvailability> itemLocations) throws org.apache.thrift.TException
-
 
2553
    {
-
 
2554
      send_getItemLocationAvailabilityCache(itemLocations);
-
 
2555
      return recv_getItemLocationAvailabilityCache();
-
 
2556
    }
-
 
2557
 
-
 
2558
    public void send_getItemLocationAvailabilityCache(List<ItemLocationAvailability> itemLocations) throws org.apache.thrift.TException
-
 
2559
    {
-
 
2560
      getItemLocationAvailabilityCache_args args = new getItemLocationAvailabilityCache_args();
-
 
2561
      args.setItemLocations(itemLocations);
-
 
2562
      sendBase("getItemLocationAvailabilityCache", args);
-
 
2563
    }
-
 
2564
 
-
 
2565
    public List<ItemLocationAvailability> recv_getItemLocationAvailabilityCache() throws org.apache.thrift.TException
-
 
2566
    {
-
 
2567
      getItemLocationAvailabilityCache_result result = new getItemLocationAvailabilityCache_result();
-
 
2568
      receiveBase(result, "getItemLocationAvailabilityCache");
-
 
2569
      if (result.isSetSuccess()) {
-
 
2570
        return result.success;
-
 
2571
      }
-
 
2572
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemLocationAvailabilityCache failed: unknown result");
-
 
2573
    }
-
 
2574
 
-
 
2575
    public List<ItemLocationAvailability> getItemLocationAvailabilityCacheByItemId(List<Long> itemIds) throws org.apache.thrift.TException
-
 
2576
    {
-
 
2577
      send_getItemLocationAvailabilityCacheByItemId(itemIds);
-
 
2578
      return recv_getItemLocationAvailabilityCacheByItemId();
-
 
2579
    }
-
 
2580
 
-
 
2581
    public void send_getItemLocationAvailabilityCacheByItemId(List<Long> itemIds) throws org.apache.thrift.TException
-
 
2582
    {
-
 
2583
      getItemLocationAvailabilityCacheByItemId_args args = new getItemLocationAvailabilityCacheByItemId_args();
-
 
2584
      args.setItemIds(itemIds);
-
 
2585
      sendBase("getItemLocationAvailabilityCacheByItemId", args);
-
 
2586
    }
-
 
2587
 
-
 
2588
    public List<ItemLocationAvailability> recv_getItemLocationAvailabilityCacheByItemId() throws org.apache.thrift.TException
-
 
2589
    {
-
 
2590
      getItemLocationAvailabilityCacheByItemId_result result = new getItemLocationAvailabilityCacheByItemId_result();
-
 
2591
      receiveBase(result, "getItemLocationAvailabilityCacheByItemId");
-
 
2592
      if (result.isSetSuccess()) {
-
 
2593
        return result.success;
-
 
2594
      }
-
 
2595
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemLocationAvailabilityCacheByItemId failed: unknown result");
-
 
2596
    }
-
 
2597
 
-
 
2598
    public String getItemPincodeAvailability(List<Long> itemIds, String pincode) throws org.apache.thrift.TException
-
 
2599
    {
-
 
2600
      send_getItemPincodeAvailability(itemIds, pincode);
-
 
2601
      return recv_getItemPincodeAvailability();
-
 
2602
    }
-
 
2603
 
-
 
2604
    public void send_getItemPincodeAvailability(List<Long> itemIds, String pincode) throws org.apache.thrift.TException
-
 
2605
    {
-
 
2606
      getItemPincodeAvailability_args args = new getItemPincodeAvailability_args();
-
 
2607
      args.setItemIds(itemIds);
-
 
2608
      args.setPincode(pincode);
-
 
2609
      sendBase("getItemPincodeAvailability", args);
-
 
2610
    }
-
 
2611
 
-
 
2612
    public String recv_getItemPincodeAvailability() throws org.apache.thrift.TException
-
 
2613
    {
-
 
2614
      getItemPincodeAvailability_result result = new getItemPincodeAvailability_result();
-
 
2615
      receiveBase(result, "getItemPincodeAvailability");
-
 
2616
      if (result.isSetSuccess()) {
-
 
2617
        return result.success;
-
 
2618
      }
-
 
2619
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemPincodeAvailability failed: unknown result");
-
 
2620
    }
-
 
2621
 
2540
  }
2622
  }
2541
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2623
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2542
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2624
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2543
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2625
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2544
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2626
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5356... Line 5438...
5356
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5438
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5357
        (new Client(prot)).recv_addInventoryInBulk();
5439
        (new Client(prot)).recv_addInventoryInBulk();
5358
      }
5440
      }
5359
    }
5441
    }
5360
 
5442
 
-
 
5443
    public void getItemLocationAvailabilityCache(List<ItemLocationAvailability> itemLocations, org.apache.thrift.async.AsyncMethodCallback<getItemLocationAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException {
-
 
5444
      checkReady();
-
 
5445
      getItemLocationAvailabilityCache_call method_call = new getItemLocationAvailabilityCache_call(itemLocations, resultHandler, this, ___protocolFactory, ___transport);
-
 
5446
      this.___currentMethod = method_call;
-
 
5447
      ___manager.call(method_call);
-
 
5448
    }
-
 
5449
 
-
 
5450
    public static class getItemLocationAvailabilityCache_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5451
      private List<ItemLocationAvailability> itemLocations;
-
 
5452
      public getItemLocationAvailabilityCache_call(List<ItemLocationAvailability> itemLocations, org.apache.thrift.async.AsyncMethodCallback<getItemLocationAvailabilityCache_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 {
-
 
5453
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5454
        this.itemLocations = itemLocations;
-
 
5455
      }
-
 
5456
 
-
 
5457
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5458
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemLocationAvailabilityCache", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5459
        getItemLocationAvailabilityCache_args args = new getItemLocationAvailabilityCache_args();
-
 
5460
        args.setItemLocations(itemLocations);
-
 
5461
        args.write(prot);
-
 
5462
        prot.writeMessageEnd();
-
 
5463
      }
-
 
5464
 
-
 
5465
      public List<ItemLocationAvailability> getResult() throws org.apache.thrift.TException {
-
 
5466
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5467
          throw new IllegalStateException("Method call not finished!");
-
 
5468
        }
-
 
5469
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5470
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5471
        return (new Client(prot)).recv_getItemLocationAvailabilityCache();
-
 
5472
      }
-
 
5473
    }
-
 
5474
 
-
 
5475
    public void getItemLocationAvailabilityCacheByItemId(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getItemLocationAvailabilityCacheByItemId_call> resultHandler) throws org.apache.thrift.TException {
-
 
5476
      checkReady();
-
 
5477
      getItemLocationAvailabilityCacheByItemId_call method_call = new getItemLocationAvailabilityCacheByItemId_call(itemIds, resultHandler, this, ___protocolFactory, ___transport);
-
 
5478
      this.___currentMethod = method_call;
-
 
5479
      ___manager.call(method_call);
-
 
5480
    }
-
 
5481
 
-
 
5482
    public static class getItemLocationAvailabilityCacheByItemId_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5483
      private List<Long> itemIds;
-
 
5484
      public getItemLocationAvailabilityCacheByItemId_call(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getItemLocationAvailabilityCacheByItemId_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 {
-
 
5485
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5486
        this.itemIds = itemIds;
-
 
5487
      }
-
 
5488
 
-
 
5489
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5490
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemLocationAvailabilityCacheByItemId", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5491
        getItemLocationAvailabilityCacheByItemId_args args = new getItemLocationAvailabilityCacheByItemId_args();
-
 
5492
        args.setItemIds(itemIds);
-
 
5493
        args.write(prot);
-
 
5494
        prot.writeMessageEnd();
-
 
5495
      }
-
 
5496
 
-
 
5497
      public List<ItemLocationAvailability> getResult() throws org.apache.thrift.TException {
-
 
5498
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5499
          throw new IllegalStateException("Method call not finished!");
-
 
5500
        }
-
 
5501
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5502
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5503
        return (new Client(prot)).recv_getItemLocationAvailabilityCacheByItemId();
-
 
5504
      }
-
 
5505
    }
-
 
5506
 
-
 
5507
    public void getItemPincodeAvailability(List<Long> itemIds, String pincode, org.apache.thrift.async.AsyncMethodCallback<getItemPincodeAvailability_call> resultHandler) throws org.apache.thrift.TException {
-
 
5508
      checkReady();
-
 
5509
      getItemPincodeAvailability_call method_call = new getItemPincodeAvailability_call(itemIds, pincode, resultHandler, this, ___protocolFactory, ___transport);
-
 
5510
      this.___currentMethod = method_call;
-
 
5511
      ___manager.call(method_call);
-
 
5512
    }
-
 
5513
 
-
 
5514
    public static class getItemPincodeAvailability_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5515
      private List<Long> itemIds;
-
 
5516
      private String pincode;
-
 
5517
      public getItemPincodeAvailability_call(List<Long> itemIds, String pincode, org.apache.thrift.async.AsyncMethodCallback<getItemPincodeAvailability_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 {
-
 
5518
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5519
        this.itemIds = itemIds;
-
 
5520
        this.pincode = pincode;
-
 
5521
      }
-
 
5522
 
-
 
5523
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5524
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemPincodeAvailability", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5525
        getItemPincodeAvailability_args args = new getItemPincodeAvailability_args();
-
 
5526
        args.setItemIds(itemIds);
-
 
5527
        args.setPincode(pincode);
-
 
5528
        args.write(prot);
-
 
5529
        prot.writeMessageEnd();
-
 
5530
      }
-
 
5531
 
-
 
5532
      public String getResult() throws org.apache.thrift.TException {
-
 
5533
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5534
          throw new IllegalStateException("Method call not finished!");
-
 
5535
        }
-
 
5536
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5537
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5538
        return (new Client(prot)).recv_getItemPincodeAvailability();
-
 
5539
      }
-
 
5540
    }
-
 
5541
 
5361
  }
5542
  }
5362
 
5543
 
5363
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5544
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5364
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5545
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5365
    public Processor(I iface) {
5546
    public Processor(I iface) {
Line 5452... Line 5633...
5452
      processMap.put("getWanNlcForSource", new getWanNlcForSource());
5633
      processMap.put("getWanNlcForSource", new getWanNlcForSource());
5453
      processMap.put("getAllAvailableAmazonFbaItemInventory", new getAllAvailableAmazonFbaItemInventory());
5634
      processMap.put("getAllAvailableAmazonFbaItemInventory", new getAllAvailableAmazonFbaItemInventory());
5454
      processMap.put("updateItemAvailabilityForItemIds", new updateItemAvailabilityForItemIds());
5635
      processMap.put("updateItemAvailabilityForItemIds", new updateItemAvailabilityForItemIds());
5455
      processMap.put("addVendorItemPricingInBulk", new addVendorItemPricingInBulk());
5636
      processMap.put("addVendorItemPricingInBulk", new addVendorItemPricingInBulk());
5456
      processMap.put("addInventoryInBulk", new addInventoryInBulk());
5637
      processMap.put("addInventoryInBulk", new addInventoryInBulk());
-
 
5638
      processMap.put("getItemLocationAvailabilityCache", new getItemLocationAvailabilityCache());
-
 
5639
      processMap.put("getItemLocationAvailabilityCacheByItemId", new getItemLocationAvailabilityCacheByItemId());
-
 
5640
      processMap.put("getItemPincodeAvailability", new getItemPincodeAvailability());
5457
      return processMap;
5641
      return processMap;
5458
    }
5642
    }
5459
 
5643
 
5460
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
5644
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
5461
      public addWarehouse() {
5645
      public addWarehouse() {
Line 6898... Line 7082...
6898
        }
7082
        }
6899
        return result;
7083
        return result;
6900
      }
7084
      }
6901
    }
7085
    }
6902
 
7086
 
-
 
7087
    private static class getItemLocationAvailabilityCache<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemLocationAvailabilityCache_args> {
-
 
7088
      public getItemLocationAvailabilityCache() {
-
 
7089
        super("getItemLocationAvailabilityCache");
-
 
7090
      }
-
 
7091
 
-
 
7092
      protected getItemLocationAvailabilityCache_args getEmptyArgsInstance() {
-
 
7093
        return new getItemLocationAvailabilityCache_args();
-
 
7094
      }
-
 
7095
 
-
 
7096
      protected getItemLocationAvailabilityCache_result getResult(I iface, getItemLocationAvailabilityCache_args args) throws org.apache.thrift.TException {
-
 
7097
        getItemLocationAvailabilityCache_result result = new getItemLocationAvailabilityCache_result();
-
 
7098
        result.success = iface.getItemLocationAvailabilityCache(args.itemLocations);
-
 
7099
        return result;
-
 
7100
      }
-
 
7101
    }
-
 
7102
 
-
 
7103
    private static class getItemLocationAvailabilityCacheByItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemLocationAvailabilityCacheByItemId_args> {
-
 
7104
      public getItemLocationAvailabilityCacheByItemId() {
-
 
7105
        super("getItemLocationAvailabilityCacheByItemId");
-
 
7106
      }
-
 
7107
 
-
 
7108
      protected getItemLocationAvailabilityCacheByItemId_args getEmptyArgsInstance() {
-
 
7109
        return new getItemLocationAvailabilityCacheByItemId_args();
-
 
7110
      }
-
 
7111
 
-
 
7112
      protected getItemLocationAvailabilityCacheByItemId_result getResult(I iface, getItemLocationAvailabilityCacheByItemId_args args) throws org.apache.thrift.TException {
-
 
7113
        getItemLocationAvailabilityCacheByItemId_result result = new getItemLocationAvailabilityCacheByItemId_result();
-
 
7114
        result.success = iface.getItemLocationAvailabilityCacheByItemId(args.itemIds);
-
 
7115
        return result;
-
 
7116
      }
-
 
7117
    }
-
 
7118
 
-
 
7119
    private static class getItemPincodeAvailability<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemPincodeAvailability_args> {
-
 
7120
      public getItemPincodeAvailability() {
-
 
7121
        super("getItemPincodeAvailability");
-
 
7122
      }
-
 
7123
 
-
 
7124
      protected getItemPincodeAvailability_args getEmptyArgsInstance() {
-
 
7125
        return new getItemPincodeAvailability_args();
-
 
7126
      }
-
 
7127
 
-
 
7128
      protected getItemPincodeAvailability_result getResult(I iface, getItemPincodeAvailability_args args) throws org.apache.thrift.TException {
-
 
7129
        getItemPincodeAvailability_result result = new getItemPincodeAvailability_result();
-
 
7130
        result.success = iface.getItemPincodeAvailability(args.itemIds, args.pincode);
-
 
7131
        return result;
-
 
7132
      }
-
 
7133
    }
-
 
7134
 
6903
  }
7135
  }
6904
 
7136
 
6905
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
7137
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
6906
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
7138
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
6907
 
7139
 
Line 61336... Line 61568...
61336
      }
61568
      }
61337
      first = false;
61569
      first = false;
61338
      sb.append(")");
61570
      sb.append(")");
61339
      return sb.toString();
61571
      return sb.toString();
61340
    }
61572
    }
-
 
61573
 
-
 
61574
    public void validate() throws org.apache.thrift.TException {
-
 
61575
      // check for required fields
-
 
61576
    }
-
 
61577
 
-
 
61578
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
61579
      try {
-
 
61580
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
61581
      } catch (org.apache.thrift.TException te) {
-
 
61582
        throw new java.io.IOException(te);
-
 
61583
      }
-
 
61584
    }
-
 
61585
 
-
 
61586
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
61587
      try {
-
 
61588
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
61589
      } catch (org.apache.thrift.TException te) {
-
 
61590
        throw new java.io.IOException(te);
-
 
61591
      }
-
 
61592
    }
-
 
61593
 
-
 
61594
  }
-
 
61595
 
-
 
61596
  public static class getItemLocationAvailabilityCache_args implements org.apache.thrift.TBase<getItemLocationAvailabilityCache_args, getItemLocationAvailabilityCache_args._Fields>, java.io.Serializable, Cloneable   {
-
 
61597
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemLocationAvailabilityCache_args");
-
 
61598
 
-
 
61599
    private static final org.apache.thrift.protocol.TField ITEM_LOCATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemLocations", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
61600
 
-
 
61601
    private List<ItemLocationAvailability> itemLocations; // required
-
 
61602
 
-
 
61603
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
61604
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
61605
      ITEM_LOCATIONS((short)1, "itemLocations");
-
 
61606
 
-
 
61607
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
61608
 
-
 
61609
      static {
-
 
61610
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
61611
          byName.put(field.getFieldName(), field);
-
 
61612
        }
-
 
61613
      }
-
 
61614
 
-
 
61615
      /**
-
 
61616
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
61617
       */
-
 
61618
      public static _Fields findByThriftId(int fieldId) {
-
 
61619
        switch(fieldId) {
-
 
61620
          case 1: // ITEM_LOCATIONS
-
 
61621
            return ITEM_LOCATIONS;
-
 
61622
          default:
-
 
61623
            return null;
-
 
61624
        }
-
 
61625
      }
-
 
61626
 
-
 
61627
      /**
-
 
61628
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
61629
       * if it is not found.
-
 
61630
       */
-
 
61631
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
61632
        _Fields fields = findByThriftId(fieldId);
-
 
61633
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
61634
        return fields;
-
 
61635
      }
-
 
61636
 
-
 
61637
      /**
-
 
61638
       * Find the _Fields constant that matches name, or null if its not found.
-
 
61639
       */
-
 
61640
      public static _Fields findByName(String name) {
-
 
61641
        return byName.get(name);
-
 
61642
      }
-
 
61643
 
-
 
61644
      private final short _thriftId;
-
 
61645
      private final String _fieldName;
-
 
61646
 
-
 
61647
      _Fields(short thriftId, String fieldName) {
-
 
61648
        _thriftId = thriftId;
-
 
61649
        _fieldName = fieldName;
-
 
61650
      }
-
 
61651
 
-
 
61652
      public short getThriftFieldId() {
-
 
61653
        return _thriftId;
-
 
61654
      }
-
 
61655
 
-
 
61656
      public String getFieldName() {
-
 
61657
        return _fieldName;
-
 
61658
      }
-
 
61659
    }
-
 
61660
 
-
 
61661
    // isset id assignments
-
 
61662
 
-
 
61663
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
61664
    static {
-
 
61665
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
61666
      tmpMap.put(_Fields.ITEM_LOCATIONS, new org.apache.thrift.meta_data.FieldMetaData("itemLocations", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
61667
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
61668
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemLocationAvailability.class))));
-
 
61669
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
61670
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemLocationAvailabilityCache_args.class, metaDataMap);
-
 
61671
    }
-
 
61672
 
-
 
61673
    public getItemLocationAvailabilityCache_args() {
-
 
61674
    }
-
 
61675
 
-
 
61676
    public getItemLocationAvailabilityCache_args(
-
 
61677
      List<ItemLocationAvailability> itemLocations)
-
 
61678
    {
-
 
61679
      this();
-
 
61680
      this.itemLocations = itemLocations;
-
 
61681
    }
-
 
61682
 
-
 
61683
    /**
-
 
61684
     * Performs a deep copy on <i>other</i>.
-
 
61685
     */
-
 
61686
    public getItemLocationAvailabilityCache_args(getItemLocationAvailabilityCache_args other) {
-
 
61687
      if (other.isSetItemLocations()) {
-
 
61688
        List<ItemLocationAvailability> __this__itemLocations = new ArrayList<ItemLocationAvailability>();
-
 
61689
        for (ItemLocationAvailability other_element : other.itemLocations) {
-
 
61690
          __this__itemLocations.add(new ItemLocationAvailability(other_element));
-
 
61691
        }
-
 
61692
        this.itemLocations = __this__itemLocations;
-
 
61693
      }
-
 
61694
    }
-
 
61695
 
-
 
61696
    public getItemLocationAvailabilityCache_args deepCopy() {
-
 
61697
      return new getItemLocationAvailabilityCache_args(this);
-
 
61698
    }
-
 
61699
 
-
 
61700
    @Override
-
 
61701
    public void clear() {
-
 
61702
      this.itemLocations = null;
-
 
61703
    }
-
 
61704
 
-
 
61705
    public int getItemLocationsSize() {
-
 
61706
      return (this.itemLocations == null) ? 0 : this.itemLocations.size();
-
 
61707
    }
-
 
61708
 
-
 
61709
    public java.util.Iterator<ItemLocationAvailability> getItemLocationsIterator() {
-
 
61710
      return (this.itemLocations == null) ? null : this.itemLocations.iterator();
-
 
61711
    }
-
 
61712
 
-
 
61713
    public void addToItemLocations(ItemLocationAvailability elem) {
-
 
61714
      if (this.itemLocations == null) {
-
 
61715
        this.itemLocations = new ArrayList<ItemLocationAvailability>();
-
 
61716
      }
-
 
61717
      this.itemLocations.add(elem);
-
 
61718
    }
-
 
61719
 
-
 
61720
    public List<ItemLocationAvailability> getItemLocations() {
-
 
61721
      return this.itemLocations;
-
 
61722
    }
-
 
61723
 
-
 
61724
    public void setItemLocations(List<ItemLocationAvailability> itemLocations) {
-
 
61725
      this.itemLocations = itemLocations;
-
 
61726
    }
-
 
61727
 
-
 
61728
    public void unsetItemLocations() {
-
 
61729
      this.itemLocations = null;
-
 
61730
    }
-
 
61731
 
-
 
61732
    /** Returns true if field itemLocations is set (has been assigned a value) and false otherwise */
-
 
61733
    public boolean isSetItemLocations() {
-
 
61734
      return this.itemLocations != null;
-
 
61735
    }
-
 
61736
 
-
 
61737
    public void setItemLocationsIsSet(boolean value) {
-
 
61738
      if (!value) {
-
 
61739
        this.itemLocations = null;
-
 
61740
      }
-
 
61741
    }
-
 
61742
 
-
 
61743
    public void setFieldValue(_Fields field, Object value) {
-
 
61744
      switch (field) {
-
 
61745
      case ITEM_LOCATIONS:
-
 
61746
        if (value == null) {
-
 
61747
          unsetItemLocations();
-
 
61748
        } else {
-
 
61749
          setItemLocations((List<ItemLocationAvailability>)value);
-
 
61750
        }
-
 
61751
        break;
-
 
61752
 
-
 
61753
      }
-
 
61754
    }
-
 
61755
 
-
 
61756
    public Object getFieldValue(_Fields field) {
-
 
61757
      switch (field) {
-
 
61758
      case ITEM_LOCATIONS:
-
 
61759
        return getItemLocations();
-
 
61760
 
-
 
61761
      }
-
 
61762
      throw new IllegalStateException();
-
 
61763
    }
-
 
61764
 
-
 
61765
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
61766
    public boolean isSet(_Fields field) {
-
 
61767
      if (field == null) {
-
 
61768
        throw new IllegalArgumentException();
-
 
61769
      }
-
 
61770
 
-
 
61771
      switch (field) {
-
 
61772
      case ITEM_LOCATIONS:
-
 
61773
        return isSetItemLocations();
-
 
61774
      }
-
 
61775
      throw new IllegalStateException();
-
 
61776
    }
-
 
61777
 
-
 
61778
    @Override
-
 
61779
    public boolean equals(Object that) {
-
 
61780
      if (that == null)
-
 
61781
        return false;
-
 
61782
      if (that instanceof getItemLocationAvailabilityCache_args)
-
 
61783
        return this.equals((getItemLocationAvailabilityCache_args)that);
-
 
61784
      return false;
-
 
61785
    }
-
 
61786
 
-
 
61787
    public boolean equals(getItemLocationAvailabilityCache_args that) {
-
 
61788
      if (that == null)
-
 
61789
        return false;
-
 
61790
 
-
 
61791
      boolean this_present_itemLocations = true && this.isSetItemLocations();
-
 
61792
      boolean that_present_itemLocations = true && that.isSetItemLocations();
-
 
61793
      if (this_present_itemLocations || that_present_itemLocations) {
-
 
61794
        if (!(this_present_itemLocations && that_present_itemLocations))
-
 
61795
          return false;
-
 
61796
        if (!this.itemLocations.equals(that.itemLocations))
-
 
61797
          return false;
-
 
61798
      }
-
 
61799
 
-
 
61800
      return true;
-
 
61801
    }
-
 
61802
 
-
 
61803
    @Override
-
 
61804
    public int hashCode() {
-
 
61805
      return 0;
-
 
61806
    }
-
 
61807
 
-
 
61808
    public int compareTo(getItemLocationAvailabilityCache_args other) {
-
 
61809
      if (!getClass().equals(other.getClass())) {
-
 
61810
        return getClass().getName().compareTo(other.getClass().getName());
-
 
61811
      }
-
 
61812
 
-
 
61813
      int lastComparison = 0;
-
 
61814
      getItemLocationAvailabilityCache_args typedOther = (getItemLocationAvailabilityCache_args)other;
-
 
61815
 
-
 
61816
      lastComparison = Boolean.valueOf(isSetItemLocations()).compareTo(typedOther.isSetItemLocations());
-
 
61817
      if (lastComparison != 0) {
-
 
61818
        return lastComparison;
-
 
61819
      }
-
 
61820
      if (isSetItemLocations()) {
-
 
61821
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemLocations, typedOther.itemLocations);
-
 
61822
        if (lastComparison != 0) {
-
 
61823
          return lastComparison;
-
 
61824
        }
-
 
61825
      }
-
 
61826
      return 0;
-
 
61827
    }
-
 
61828
 
-
 
61829
    public _Fields fieldForId(int fieldId) {
-
 
61830
      return _Fields.findByThriftId(fieldId);
-
 
61831
    }
-
 
61832
 
-
 
61833
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
61834
      org.apache.thrift.protocol.TField field;
-
 
61835
      iprot.readStructBegin();
-
 
61836
      while (true)
-
 
61837
      {
-
 
61838
        field = iprot.readFieldBegin();
-
 
61839
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
61840
          break;
-
 
61841
        }
-
 
61842
        switch (field.id) {
-
 
61843
          case 1: // ITEM_LOCATIONS
-
 
61844
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
61845
              {
-
 
61846
                org.apache.thrift.protocol.TList _list212 = iprot.readListBegin();
-
 
61847
                this.itemLocations = new ArrayList<ItemLocationAvailability>(_list212.size);
-
 
61848
                for (int _i213 = 0; _i213 < _list212.size; ++_i213)
-
 
61849
                {
-
 
61850
                  ItemLocationAvailability _elem214; // required
-
 
61851
                  _elem214 = new ItemLocationAvailability();
-
 
61852
                  _elem214.read(iprot);
-
 
61853
                  this.itemLocations.add(_elem214);
-
 
61854
                }
-
 
61855
                iprot.readListEnd();
-
 
61856
              }
-
 
61857
            } else { 
-
 
61858
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61859
            }
-
 
61860
            break;
-
 
61861
          default:
-
 
61862
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61863
        }
-
 
61864
        iprot.readFieldEnd();
-
 
61865
      }
-
 
61866
      iprot.readStructEnd();
-
 
61867
      validate();
-
 
61868
    }
-
 
61869
 
-
 
61870
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
61871
      validate();
-
 
61872
 
-
 
61873
      oprot.writeStructBegin(STRUCT_DESC);
-
 
61874
      if (this.itemLocations != null) {
-
 
61875
        oprot.writeFieldBegin(ITEM_LOCATIONS_FIELD_DESC);
-
 
61876
        {
-
 
61877
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.itemLocations.size()));
-
 
61878
          for (ItemLocationAvailability _iter215 : this.itemLocations)
-
 
61879
          {
-
 
61880
            _iter215.write(oprot);
-
 
61881
          }
-
 
61882
          oprot.writeListEnd();
-
 
61883
        }
-
 
61884
        oprot.writeFieldEnd();
-
 
61885
      }
-
 
61886
      oprot.writeFieldStop();
-
 
61887
      oprot.writeStructEnd();
-
 
61888
    }
-
 
61889
 
-
 
61890
    @Override
-
 
61891
    public String toString() {
-
 
61892
      StringBuilder sb = new StringBuilder("getItemLocationAvailabilityCache_args(");
-
 
61893
      boolean first = true;
-
 
61894
 
-
 
61895
      sb.append("itemLocations:");
-
 
61896
      if (this.itemLocations == null) {
-
 
61897
        sb.append("null");
-
 
61898
      } else {
-
 
61899
        sb.append(this.itemLocations);
-
 
61900
      }
-
 
61901
      first = false;
-
 
61902
      sb.append(")");
-
 
61903
      return sb.toString();
-
 
61904
    }
-
 
61905
 
-
 
61906
    public void validate() throws org.apache.thrift.TException {
-
 
61907
      // check for required fields
-
 
61908
    }
-
 
61909
 
-
 
61910
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
61911
      try {
-
 
61912
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
61913
      } catch (org.apache.thrift.TException te) {
-
 
61914
        throw new java.io.IOException(te);
-
 
61915
      }
-
 
61916
    }
-
 
61917
 
-
 
61918
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
61919
      try {
-
 
61920
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
61921
      } catch (org.apache.thrift.TException te) {
-
 
61922
        throw new java.io.IOException(te);
-
 
61923
      }
-
 
61924
    }
-
 
61925
 
-
 
61926
  }
-
 
61927
 
-
 
61928
  public static class getItemLocationAvailabilityCache_result implements org.apache.thrift.TBase<getItemLocationAvailabilityCache_result, getItemLocationAvailabilityCache_result._Fields>, java.io.Serializable, Cloneable   {
-
 
61929
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemLocationAvailabilityCache_result");
-
 
61930
 
-
 
61931
    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);
-
 
61932
 
-
 
61933
    private List<ItemLocationAvailability> success; // required
-
 
61934
 
-
 
61935
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
61936
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
61937
      SUCCESS((short)0, "success");
-
 
61938
 
-
 
61939
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
61940
 
-
 
61941
      static {
-
 
61942
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
61943
          byName.put(field.getFieldName(), field);
-
 
61944
        }
-
 
61945
      }
-
 
61946
 
-
 
61947
      /**
-
 
61948
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
61949
       */
-
 
61950
      public static _Fields findByThriftId(int fieldId) {
-
 
61951
        switch(fieldId) {
-
 
61952
          case 0: // SUCCESS
-
 
61953
            return SUCCESS;
-
 
61954
          default:
-
 
61955
            return null;
-
 
61956
        }
-
 
61957
      }
-
 
61958
 
-
 
61959
      /**
-
 
61960
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
61961
       * if it is not found.
-
 
61962
       */
-
 
61963
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
61964
        _Fields fields = findByThriftId(fieldId);
-
 
61965
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
61966
        return fields;
-
 
61967
      }
-
 
61968
 
-
 
61969
      /**
-
 
61970
       * Find the _Fields constant that matches name, or null if its not found.
-
 
61971
       */
-
 
61972
      public static _Fields findByName(String name) {
-
 
61973
        return byName.get(name);
-
 
61974
      }
-
 
61975
 
-
 
61976
      private final short _thriftId;
-
 
61977
      private final String _fieldName;
-
 
61978
 
-
 
61979
      _Fields(short thriftId, String fieldName) {
-
 
61980
        _thriftId = thriftId;
-
 
61981
        _fieldName = fieldName;
-
 
61982
      }
-
 
61983
 
-
 
61984
      public short getThriftFieldId() {
-
 
61985
        return _thriftId;
-
 
61986
      }
-
 
61987
 
-
 
61988
      public String getFieldName() {
-
 
61989
        return _fieldName;
-
 
61990
      }
-
 
61991
    }
-
 
61992
 
-
 
61993
    // isset id assignments
-
 
61994
 
-
 
61995
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
61996
    static {
-
 
61997
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
61998
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
61999
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
62000
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemLocationAvailability.class))));
-
 
62001
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
62002
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemLocationAvailabilityCache_result.class, metaDataMap);
-
 
62003
    }
-
 
62004
 
-
 
62005
    public getItemLocationAvailabilityCache_result() {
-
 
62006
    }
-
 
62007
 
-
 
62008
    public getItemLocationAvailabilityCache_result(
-
 
62009
      List<ItemLocationAvailability> success)
-
 
62010
    {
-
 
62011
      this();
-
 
62012
      this.success = success;
-
 
62013
    }
-
 
62014
 
-
 
62015
    /**
-
 
62016
     * Performs a deep copy on <i>other</i>.
-
 
62017
     */
-
 
62018
    public getItemLocationAvailabilityCache_result(getItemLocationAvailabilityCache_result other) {
-
 
62019
      if (other.isSetSuccess()) {
-
 
62020
        List<ItemLocationAvailability> __this__success = new ArrayList<ItemLocationAvailability>();
-
 
62021
        for (ItemLocationAvailability other_element : other.success) {
-
 
62022
          __this__success.add(new ItemLocationAvailability(other_element));
-
 
62023
        }
-
 
62024
        this.success = __this__success;
-
 
62025
      }
-
 
62026
    }
-
 
62027
 
-
 
62028
    public getItemLocationAvailabilityCache_result deepCopy() {
-
 
62029
      return new getItemLocationAvailabilityCache_result(this);
-
 
62030
    }
-
 
62031
 
-
 
62032
    @Override
-
 
62033
    public void clear() {
-
 
62034
      this.success = null;
-
 
62035
    }
-
 
62036
 
-
 
62037
    public int getSuccessSize() {
-
 
62038
      return (this.success == null) ? 0 : this.success.size();
-
 
62039
    }
-
 
62040
 
-
 
62041
    public java.util.Iterator<ItemLocationAvailability> getSuccessIterator() {
-
 
62042
      return (this.success == null) ? null : this.success.iterator();
-
 
62043
    }
-
 
62044
 
-
 
62045
    public void addToSuccess(ItemLocationAvailability elem) {
-
 
62046
      if (this.success == null) {
-
 
62047
        this.success = new ArrayList<ItemLocationAvailability>();
-
 
62048
      }
-
 
62049
      this.success.add(elem);
-
 
62050
    }
-
 
62051
 
-
 
62052
    public List<ItemLocationAvailability> getSuccess() {
-
 
62053
      return this.success;
-
 
62054
    }
-
 
62055
 
-
 
62056
    public void setSuccess(List<ItemLocationAvailability> success) {
-
 
62057
      this.success = success;
-
 
62058
    }
-
 
62059
 
-
 
62060
    public void unsetSuccess() {
-
 
62061
      this.success = null;
-
 
62062
    }
-
 
62063
 
-
 
62064
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
62065
    public boolean isSetSuccess() {
-
 
62066
      return this.success != null;
-
 
62067
    }
-
 
62068
 
-
 
62069
    public void setSuccessIsSet(boolean value) {
-
 
62070
      if (!value) {
-
 
62071
        this.success = null;
-
 
62072
      }
-
 
62073
    }
-
 
62074
 
-
 
62075
    public void setFieldValue(_Fields field, Object value) {
-
 
62076
      switch (field) {
-
 
62077
      case SUCCESS:
-
 
62078
        if (value == null) {
-
 
62079
          unsetSuccess();
-
 
62080
        } else {
-
 
62081
          setSuccess((List<ItemLocationAvailability>)value);
-
 
62082
        }
-
 
62083
        break;
-
 
62084
 
-
 
62085
      }
-
 
62086
    }
-
 
62087
 
-
 
62088
    public Object getFieldValue(_Fields field) {
-
 
62089
      switch (field) {
-
 
62090
      case SUCCESS:
-
 
62091
        return getSuccess();
-
 
62092
 
-
 
62093
      }
-
 
62094
      throw new IllegalStateException();
-
 
62095
    }
-
 
62096
 
-
 
62097
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
62098
    public boolean isSet(_Fields field) {
-
 
62099
      if (field == null) {
-
 
62100
        throw new IllegalArgumentException();
-
 
62101
      }
-
 
62102
 
-
 
62103
      switch (field) {
-
 
62104
      case SUCCESS:
-
 
62105
        return isSetSuccess();
-
 
62106
      }
-
 
62107
      throw new IllegalStateException();
-
 
62108
    }
-
 
62109
 
-
 
62110
    @Override
-
 
62111
    public boolean equals(Object that) {
-
 
62112
      if (that == null)
-
 
62113
        return false;
-
 
62114
      if (that instanceof getItemLocationAvailabilityCache_result)
-
 
62115
        return this.equals((getItemLocationAvailabilityCache_result)that);
-
 
62116
      return false;
-
 
62117
    }
-
 
62118
 
-
 
62119
    public boolean equals(getItemLocationAvailabilityCache_result that) {
-
 
62120
      if (that == null)
-
 
62121
        return false;
-
 
62122
 
-
 
62123
      boolean this_present_success = true && this.isSetSuccess();
-
 
62124
      boolean that_present_success = true && that.isSetSuccess();
-
 
62125
      if (this_present_success || that_present_success) {
-
 
62126
        if (!(this_present_success && that_present_success))
-
 
62127
          return false;
-
 
62128
        if (!this.success.equals(that.success))
-
 
62129
          return false;
-
 
62130
      }
-
 
62131
 
-
 
62132
      return true;
-
 
62133
    }
-
 
62134
 
-
 
62135
    @Override
-
 
62136
    public int hashCode() {
-
 
62137
      return 0;
-
 
62138
    }
-
 
62139
 
-
 
62140
    public int compareTo(getItemLocationAvailabilityCache_result other) {
-
 
62141
      if (!getClass().equals(other.getClass())) {
-
 
62142
        return getClass().getName().compareTo(other.getClass().getName());
-
 
62143
      }
-
 
62144
 
-
 
62145
      int lastComparison = 0;
-
 
62146
      getItemLocationAvailabilityCache_result typedOther = (getItemLocationAvailabilityCache_result)other;
-
 
62147
 
-
 
62148
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
62149
      if (lastComparison != 0) {
-
 
62150
        return lastComparison;
-
 
62151
      }
-
 
62152
      if (isSetSuccess()) {
-
 
62153
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
62154
        if (lastComparison != 0) {
-
 
62155
          return lastComparison;
-
 
62156
        }
-
 
62157
      }
-
 
62158
      return 0;
-
 
62159
    }
-
 
62160
 
-
 
62161
    public _Fields fieldForId(int fieldId) {
-
 
62162
      return _Fields.findByThriftId(fieldId);
-
 
62163
    }
-
 
62164
 
-
 
62165
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
62166
      org.apache.thrift.protocol.TField field;
-
 
62167
      iprot.readStructBegin();
-
 
62168
      while (true)
-
 
62169
      {
-
 
62170
        field = iprot.readFieldBegin();
-
 
62171
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
62172
          break;
-
 
62173
        }
-
 
62174
        switch (field.id) {
-
 
62175
          case 0: // SUCCESS
-
 
62176
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
62177
              {
-
 
62178
                org.apache.thrift.protocol.TList _list216 = iprot.readListBegin();
-
 
62179
                this.success = new ArrayList<ItemLocationAvailability>(_list216.size);
-
 
62180
                for (int _i217 = 0; _i217 < _list216.size; ++_i217)
-
 
62181
                {
-
 
62182
                  ItemLocationAvailability _elem218; // required
-
 
62183
                  _elem218 = new ItemLocationAvailability();
-
 
62184
                  _elem218.read(iprot);
-
 
62185
                  this.success.add(_elem218);
-
 
62186
                }
-
 
62187
                iprot.readListEnd();
-
 
62188
              }
-
 
62189
            } else { 
-
 
62190
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
62191
            }
-
 
62192
            break;
-
 
62193
          default:
-
 
62194
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
62195
        }
-
 
62196
        iprot.readFieldEnd();
-
 
62197
      }
-
 
62198
      iprot.readStructEnd();
-
 
62199
      validate();
-
 
62200
    }
-
 
62201
 
-
 
62202
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
62203
      oprot.writeStructBegin(STRUCT_DESC);
-
 
62204
 
-
 
62205
      if (this.isSetSuccess()) {
-
 
62206
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
62207
        {
-
 
62208
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
62209
          for (ItemLocationAvailability _iter219 : this.success)
-
 
62210
          {
-
 
62211
            _iter219.write(oprot);
-
 
62212
          }
-
 
62213
          oprot.writeListEnd();
-
 
62214
        }
-
 
62215
        oprot.writeFieldEnd();
-
 
62216
      }
-
 
62217
      oprot.writeFieldStop();
-
 
62218
      oprot.writeStructEnd();
-
 
62219
    }
-
 
62220
 
-
 
62221
    @Override
-
 
62222
    public String toString() {
-
 
62223
      StringBuilder sb = new StringBuilder("getItemLocationAvailabilityCache_result(");
-
 
62224
      boolean first = true;
-
 
62225
 
-
 
62226
      sb.append("success:");
-
 
62227
      if (this.success == null) {
-
 
62228
        sb.append("null");
-
 
62229
      } else {
-
 
62230
        sb.append(this.success);
-
 
62231
      }
-
 
62232
      first = false;
-
 
62233
      sb.append(")");
-
 
62234
      return sb.toString();
-
 
62235
    }
-
 
62236
 
-
 
62237
    public void validate() throws org.apache.thrift.TException {
-
 
62238
      // check for required fields
-
 
62239
    }
-
 
62240
 
-
 
62241
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
62242
      try {
-
 
62243
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
62244
      } catch (org.apache.thrift.TException te) {
-
 
62245
        throw new java.io.IOException(te);
-
 
62246
      }
-
 
62247
    }
-
 
62248
 
-
 
62249
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
62250
      try {
-
 
62251
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
62252
      } catch (org.apache.thrift.TException te) {
-
 
62253
        throw new java.io.IOException(te);
-
 
62254
      }
-
 
62255
    }
-
 
62256
 
-
 
62257
  }
-
 
62258
 
-
 
62259
  public static class getItemLocationAvailabilityCacheByItemId_args implements org.apache.thrift.TBase<getItemLocationAvailabilityCacheByItemId_args, getItemLocationAvailabilityCacheByItemId_args._Fields>, java.io.Serializable, Cloneable   {
-
 
62260
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemLocationAvailabilityCacheByItemId_args");
-
 
62261
 
-
 
62262
    private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
62263
 
-
 
62264
    private List<Long> itemIds; // required
-
 
62265
 
-
 
62266
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
62267
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
62268
      ITEM_IDS((short)1, "itemIds");
-
 
62269
 
-
 
62270
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
62271
 
-
 
62272
      static {
-
 
62273
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
62274
          byName.put(field.getFieldName(), field);
-
 
62275
        }
-
 
62276
      }
-
 
62277
 
-
 
62278
      /**
-
 
62279
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
62280
       */
-
 
62281
      public static _Fields findByThriftId(int fieldId) {
-
 
62282
        switch(fieldId) {
-
 
62283
          case 1: // ITEM_IDS
-
 
62284
            return ITEM_IDS;
-
 
62285
          default:
-
 
62286
            return null;
-
 
62287
        }
-
 
62288
      }
-
 
62289
 
-
 
62290
      /**
-
 
62291
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
62292
       * if it is not found.
-
 
62293
       */
-
 
62294
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
62295
        _Fields fields = findByThriftId(fieldId);
-
 
62296
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
62297
        return fields;
-
 
62298
      }
-
 
62299
 
-
 
62300
      /**
-
 
62301
       * Find the _Fields constant that matches name, or null if its not found.
-
 
62302
       */
-
 
62303
      public static _Fields findByName(String name) {
-
 
62304
        return byName.get(name);
-
 
62305
      }
-
 
62306
 
-
 
62307
      private final short _thriftId;
-
 
62308
      private final String _fieldName;
-
 
62309
 
-
 
62310
      _Fields(short thriftId, String fieldName) {
-
 
62311
        _thriftId = thriftId;
-
 
62312
        _fieldName = fieldName;
-
 
62313
      }
-
 
62314
 
-
 
62315
      public short getThriftFieldId() {
-
 
62316
        return _thriftId;
-
 
62317
      }
-
 
62318
 
-
 
62319
      public String getFieldName() {
-
 
62320
        return _fieldName;
-
 
62321
      }
-
 
62322
    }
-
 
62323
 
-
 
62324
    // isset id assignments
-
 
62325
 
-
 
62326
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
62327
    static {
-
 
62328
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
62329
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
62330
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
62331
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
62332
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
62333
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemLocationAvailabilityCacheByItemId_args.class, metaDataMap);
-
 
62334
    }
-
 
62335
 
-
 
62336
    public getItemLocationAvailabilityCacheByItemId_args() {
-
 
62337
    }
-
 
62338
 
-
 
62339
    public getItemLocationAvailabilityCacheByItemId_args(
-
 
62340
      List<Long> itemIds)
-
 
62341
    {
-
 
62342
      this();
-
 
62343
      this.itemIds = itemIds;
-
 
62344
    }
-
 
62345
 
-
 
62346
    /**
-
 
62347
     * Performs a deep copy on <i>other</i>.
-
 
62348
     */
-
 
62349
    public getItemLocationAvailabilityCacheByItemId_args(getItemLocationAvailabilityCacheByItemId_args other) {
-
 
62350
      if (other.isSetItemIds()) {
-
 
62351
        List<Long> __this__itemIds = new ArrayList<Long>();
-
 
62352
        for (Long other_element : other.itemIds) {
-
 
62353
          __this__itemIds.add(other_element);
-
 
62354
        }
-
 
62355
        this.itemIds = __this__itemIds;
-
 
62356
      }
-
 
62357
    }
-
 
62358
 
-
 
62359
    public getItemLocationAvailabilityCacheByItemId_args deepCopy() {
-
 
62360
      return new getItemLocationAvailabilityCacheByItemId_args(this);
-
 
62361
    }
-
 
62362
 
-
 
62363
    @Override
-
 
62364
    public void clear() {
-
 
62365
      this.itemIds = null;
-
 
62366
    }
-
 
62367
 
-
 
62368
    public int getItemIdsSize() {
-
 
62369
      return (this.itemIds == null) ? 0 : this.itemIds.size();
-
 
62370
    }
-
 
62371
 
-
 
62372
    public java.util.Iterator<Long> getItemIdsIterator() {
-
 
62373
      return (this.itemIds == null) ? null : this.itemIds.iterator();
-
 
62374
    }
-
 
62375
 
-
 
62376
    public void addToItemIds(long elem) {
-
 
62377
      if (this.itemIds == null) {
-
 
62378
        this.itemIds = new ArrayList<Long>();
-
 
62379
      }
-
 
62380
      this.itemIds.add(elem);
-
 
62381
    }
-
 
62382
 
-
 
62383
    public List<Long> getItemIds() {
-
 
62384
      return this.itemIds;
-
 
62385
    }
-
 
62386
 
-
 
62387
    public void setItemIds(List<Long> itemIds) {
-
 
62388
      this.itemIds = itemIds;
-
 
62389
    }
-
 
62390
 
-
 
62391
    public void unsetItemIds() {
-
 
62392
      this.itemIds = null;
-
 
62393
    }
-
 
62394
 
-
 
62395
    /** Returns true if field itemIds is set (has been assigned a value) and false otherwise */
-
 
62396
    public boolean isSetItemIds() {
-
 
62397
      return this.itemIds != null;
-
 
62398
    }
-
 
62399
 
-
 
62400
    public void setItemIdsIsSet(boolean value) {
-
 
62401
      if (!value) {
-
 
62402
        this.itemIds = null;
-
 
62403
      }
-
 
62404
    }
-
 
62405
 
-
 
62406
    public void setFieldValue(_Fields field, Object value) {
-
 
62407
      switch (field) {
-
 
62408
      case ITEM_IDS:
-
 
62409
        if (value == null) {
-
 
62410
          unsetItemIds();
-
 
62411
        } else {
-
 
62412
          setItemIds((List<Long>)value);
-
 
62413
        }
-
 
62414
        break;
-
 
62415
 
-
 
62416
      }
-
 
62417
    }
-
 
62418
 
-
 
62419
    public Object getFieldValue(_Fields field) {
-
 
62420
      switch (field) {
-
 
62421
      case ITEM_IDS:
-
 
62422
        return getItemIds();
-
 
62423
 
-
 
62424
      }
-
 
62425
      throw new IllegalStateException();
-
 
62426
    }
-
 
62427
 
-
 
62428
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
62429
    public boolean isSet(_Fields field) {
-
 
62430
      if (field == null) {
-
 
62431
        throw new IllegalArgumentException();
-
 
62432
      }
-
 
62433
 
-
 
62434
      switch (field) {
-
 
62435
      case ITEM_IDS:
-
 
62436
        return isSetItemIds();
-
 
62437
      }
-
 
62438
      throw new IllegalStateException();
-
 
62439
    }
-
 
62440
 
-
 
62441
    @Override
-
 
62442
    public boolean equals(Object that) {
-
 
62443
      if (that == null)
-
 
62444
        return false;
-
 
62445
      if (that instanceof getItemLocationAvailabilityCacheByItemId_args)
-
 
62446
        return this.equals((getItemLocationAvailabilityCacheByItemId_args)that);
-
 
62447
      return false;
-
 
62448
    }
-
 
62449
 
-
 
62450
    public boolean equals(getItemLocationAvailabilityCacheByItemId_args that) {
-
 
62451
      if (that == null)
-
 
62452
        return false;
-
 
62453
 
-
 
62454
      boolean this_present_itemIds = true && this.isSetItemIds();
-
 
62455
      boolean that_present_itemIds = true && that.isSetItemIds();
-
 
62456
      if (this_present_itemIds || that_present_itemIds) {
-
 
62457
        if (!(this_present_itemIds && that_present_itemIds))
-
 
62458
          return false;
-
 
62459
        if (!this.itemIds.equals(that.itemIds))
-
 
62460
          return false;
-
 
62461
      }
-
 
62462
 
-
 
62463
      return true;
-
 
62464
    }
-
 
62465
 
-
 
62466
    @Override
-
 
62467
    public int hashCode() {
-
 
62468
      return 0;
-
 
62469
    }
-
 
62470
 
-
 
62471
    public int compareTo(getItemLocationAvailabilityCacheByItemId_args other) {
-
 
62472
      if (!getClass().equals(other.getClass())) {
-
 
62473
        return getClass().getName().compareTo(other.getClass().getName());
-
 
62474
      }
-
 
62475
 
-
 
62476
      int lastComparison = 0;
-
 
62477
      getItemLocationAvailabilityCacheByItemId_args typedOther = (getItemLocationAvailabilityCacheByItemId_args)other;
-
 
62478
 
-
 
62479
      lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());
-
 
62480
      if (lastComparison != 0) {
-
 
62481
        return lastComparison;
-
 
62482
      }
-
 
62483
      if (isSetItemIds()) {
-
 
62484
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);
-
 
62485
        if (lastComparison != 0) {
-
 
62486
          return lastComparison;
-
 
62487
        }
-
 
62488
      }
-
 
62489
      return 0;
-
 
62490
    }
-
 
62491
 
-
 
62492
    public _Fields fieldForId(int fieldId) {
-
 
62493
      return _Fields.findByThriftId(fieldId);
-
 
62494
    }
-
 
62495
 
-
 
62496
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
62497
      org.apache.thrift.protocol.TField field;
-
 
62498
      iprot.readStructBegin();
-
 
62499
      while (true)
-
 
62500
      {
-
 
62501
        field = iprot.readFieldBegin();
-
 
62502
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
62503
          break;
-
 
62504
        }
-
 
62505
        switch (field.id) {
-
 
62506
          case 1: // ITEM_IDS
-
 
62507
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
62508
              {
-
 
62509
                org.apache.thrift.protocol.TList _list220 = iprot.readListBegin();
-
 
62510
                this.itemIds = new ArrayList<Long>(_list220.size);
-
 
62511
                for (int _i221 = 0; _i221 < _list220.size; ++_i221)
-
 
62512
                {
-
 
62513
                  long _elem222; // required
-
 
62514
                  _elem222 = iprot.readI64();
-
 
62515
                  this.itemIds.add(_elem222);
-
 
62516
                }
-
 
62517
                iprot.readListEnd();
-
 
62518
              }
-
 
62519
            } else { 
-
 
62520
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
62521
            }
-
 
62522
            break;
-
 
62523
          default:
-
 
62524
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
62525
        }
-
 
62526
        iprot.readFieldEnd();
-
 
62527
      }
-
 
62528
      iprot.readStructEnd();
-
 
62529
      validate();
-
 
62530
    }
-
 
62531
 
-
 
62532
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
62533
      validate();
-
 
62534
 
-
 
62535
      oprot.writeStructBegin(STRUCT_DESC);
-
 
62536
      if (this.itemIds != null) {
-
 
62537
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
-
 
62538
        {
-
 
62539
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
-
 
62540
          for (long _iter223 : this.itemIds)
-
 
62541
          {
-
 
62542
            oprot.writeI64(_iter223);
-
 
62543
          }
-
 
62544
          oprot.writeListEnd();
-
 
62545
        }
-
 
62546
        oprot.writeFieldEnd();
-
 
62547
      }
-
 
62548
      oprot.writeFieldStop();
-
 
62549
      oprot.writeStructEnd();
-
 
62550
    }
-
 
62551
 
-
 
62552
    @Override
-
 
62553
    public String toString() {
-
 
62554
      StringBuilder sb = new StringBuilder("getItemLocationAvailabilityCacheByItemId_args(");
-
 
62555
      boolean first = true;
-
 
62556
 
-
 
62557
      sb.append("itemIds:");
-
 
62558
      if (this.itemIds == null) {
-
 
62559
        sb.append("null");
-
 
62560
      } else {
-
 
62561
        sb.append(this.itemIds);
-
 
62562
      }
-
 
62563
      first = false;
-
 
62564
      sb.append(")");
-
 
62565
      return sb.toString();
-
 
62566
    }
-
 
62567
 
-
 
62568
    public void validate() throws org.apache.thrift.TException {
-
 
62569
      // check for required fields
-
 
62570
    }
-
 
62571
 
-
 
62572
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
62573
      try {
-
 
62574
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
62575
      } catch (org.apache.thrift.TException te) {
-
 
62576
        throw new java.io.IOException(te);
-
 
62577
      }
-
 
62578
    }
-
 
62579
 
-
 
62580
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
62581
      try {
-
 
62582
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
62583
      } catch (org.apache.thrift.TException te) {
-
 
62584
        throw new java.io.IOException(te);
-
 
62585
      }
-
 
62586
    }
-
 
62587
 
-
 
62588
  }
-
 
62589
 
-
 
62590
  public static class getItemLocationAvailabilityCacheByItemId_result implements org.apache.thrift.TBase<getItemLocationAvailabilityCacheByItemId_result, getItemLocationAvailabilityCacheByItemId_result._Fields>, java.io.Serializable, Cloneable   {
-
 
62591
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemLocationAvailabilityCacheByItemId_result");
-
 
62592
 
-
 
62593
    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);
-
 
62594
 
-
 
62595
    private List<ItemLocationAvailability> success; // required
-
 
62596
 
-
 
62597
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
62598
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
62599
      SUCCESS((short)0, "success");
-
 
62600
 
-
 
62601
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
62602
 
-
 
62603
      static {
-
 
62604
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
62605
          byName.put(field.getFieldName(), field);
-
 
62606
        }
-
 
62607
      }
-
 
62608
 
-
 
62609
      /**
-
 
62610
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
62611
       */
-
 
62612
      public static _Fields findByThriftId(int fieldId) {
-
 
62613
        switch(fieldId) {
-
 
62614
          case 0: // SUCCESS
-
 
62615
            return SUCCESS;
-
 
62616
          default:
-
 
62617
            return null;
-
 
62618
        }
-
 
62619
      }
-
 
62620
 
-
 
62621
      /**
-
 
62622
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
62623
       * if it is not found.
-
 
62624
       */
-
 
62625
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
62626
        _Fields fields = findByThriftId(fieldId);
-
 
62627
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
62628
        return fields;
-
 
62629
      }
-
 
62630
 
-
 
62631
      /**
-
 
62632
       * Find the _Fields constant that matches name, or null if its not found.
-
 
62633
       */
-
 
62634
      public static _Fields findByName(String name) {
-
 
62635
        return byName.get(name);
-
 
62636
      }
-
 
62637
 
-
 
62638
      private final short _thriftId;
-
 
62639
      private final String _fieldName;
-
 
62640
 
-
 
62641
      _Fields(short thriftId, String fieldName) {
-
 
62642
        _thriftId = thriftId;
-
 
62643
        _fieldName = fieldName;
-
 
62644
      }
-
 
62645
 
-
 
62646
      public short getThriftFieldId() {
-
 
62647
        return _thriftId;
-
 
62648
      }
-
 
62649
 
-
 
62650
      public String getFieldName() {
-
 
62651
        return _fieldName;
-
 
62652
      }
-
 
62653
    }
-
 
62654
 
-
 
62655
    // isset id assignments
-
 
62656
 
-
 
62657
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
62658
    static {
-
 
62659
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
62660
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
62661
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
62662
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemLocationAvailability.class))));
-
 
62663
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
62664
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemLocationAvailabilityCacheByItemId_result.class, metaDataMap);
-
 
62665
    }
-
 
62666
 
-
 
62667
    public getItemLocationAvailabilityCacheByItemId_result() {
-
 
62668
    }
-
 
62669
 
-
 
62670
    public getItemLocationAvailabilityCacheByItemId_result(
-
 
62671
      List<ItemLocationAvailability> success)
-
 
62672
    {
-
 
62673
      this();
-
 
62674
      this.success = success;
-
 
62675
    }
-
 
62676
 
-
 
62677
    /**
-
 
62678
     * Performs a deep copy on <i>other</i>.
-
 
62679
     */
-
 
62680
    public getItemLocationAvailabilityCacheByItemId_result(getItemLocationAvailabilityCacheByItemId_result other) {
-
 
62681
      if (other.isSetSuccess()) {
-
 
62682
        List<ItemLocationAvailability> __this__success = new ArrayList<ItemLocationAvailability>();
-
 
62683
        for (ItemLocationAvailability other_element : other.success) {
-
 
62684
          __this__success.add(new ItemLocationAvailability(other_element));
-
 
62685
        }
-
 
62686
        this.success = __this__success;
-
 
62687
      }
-
 
62688
    }
-
 
62689
 
-
 
62690
    public getItemLocationAvailabilityCacheByItemId_result deepCopy() {
-
 
62691
      return new getItemLocationAvailabilityCacheByItemId_result(this);
-
 
62692
    }
-
 
62693
 
-
 
62694
    @Override
-
 
62695
    public void clear() {
-
 
62696
      this.success = null;
-
 
62697
    }
-
 
62698
 
-
 
62699
    public int getSuccessSize() {
-
 
62700
      return (this.success == null) ? 0 : this.success.size();
-
 
62701
    }
-
 
62702
 
-
 
62703
    public java.util.Iterator<ItemLocationAvailability> getSuccessIterator() {
-
 
62704
      return (this.success == null) ? null : this.success.iterator();
-
 
62705
    }
-
 
62706
 
-
 
62707
    public void addToSuccess(ItemLocationAvailability elem) {
-
 
62708
      if (this.success == null) {
-
 
62709
        this.success = new ArrayList<ItemLocationAvailability>();
-
 
62710
      }
-
 
62711
      this.success.add(elem);
-
 
62712
    }
-
 
62713
 
-
 
62714
    public List<ItemLocationAvailability> getSuccess() {
-
 
62715
      return this.success;
-
 
62716
    }
-
 
62717
 
-
 
62718
    public void setSuccess(List<ItemLocationAvailability> success) {
-
 
62719
      this.success = success;
-
 
62720
    }
-
 
62721
 
-
 
62722
    public void unsetSuccess() {
-
 
62723
      this.success = null;
-
 
62724
    }
-
 
62725
 
-
 
62726
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
62727
    public boolean isSetSuccess() {
-
 
62728
      return this.success != null;
-
 
62729
    }
-
 
62730
 
-
 
62731
    public void setSuccessIsSet(boolean value) {
-
 
62732
      if (!value) {
-
 
62733
        this.success = null;
-
 
62734
      }
-
 
62735
    }
-
 
62736
 
-
 
62737
    public void setFieldValue(_Fields field, Object value) {
-
 
62738
      switch (field) {
-
 
62739
      case SUCCESS:
-
 
62740
        if (value == null) {
-
 
62741
          unsetSuccess();
-
 
62742
        } else {
-
 
62743
          setSuccess((List<ItemLocationAvailability>)value);
-
 
62744
        }
-
 
62745
        break;
-
 
62746
 
-
 
62747
      }
-
 
62748
    }
-
 
62749
 
-
 
62750
    public Object getFieldValue(_Fields field) {
-
 
62751
      switch (field) {
-
 
62752
      case SUCCESS:
-
 
62753
        return getSuccess();
-
 
62754
 
-
 
62755
      }
-
 
62756
      throw new IllegalStateException();
-
 
62757
    }
-
 
62758
 
-
 
62759
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
62760
    public boolean isSet(_Fields field) {
-
 
62761
      if (field == null) {
-
 
62762
        throw new IllegalArgumentException();
-
 
62763
      }
-
 
62764
 
-
 
62765
      switch (field) {
-
 
62766
      case SUCCESS:
-
 
62767
        return isSetSuccess();
-
 
62768
      }
-
 
62769
      throw new IllegalStateException();
-
 
62770
    }
-
 
62771
 
-
 
62772
    @Override
-
 
62773
    public boolean equals(Object that) {
-
 
62774
      if (that == null)
-
 
62775
        return false;
-
 
62776
      if (that instanceof getItemLocationAvailabilityCacheByItemId_result)
-
 
62777
        return this.equals((getItemLocationAvailabilityCacheByItemId_result)that);
-
 
62778
      return false;
-
 
62779
    }
-
 
62780
 
-
 
62781
    public boolean equals(getItemLocationAvailabilityCacheByItemId_result that) {
-
 
62782
      if (that == null)
-
 
62783
        return false;
-
 
62784
 
-
 
62785
      boolean this_present_success = true && this.isSetSuccess();
-
 
62786
      boolean that_present_success = true && that.isSetSuccess();
-
 
62787
      if (this_present_success || that_present_success) {
-
 
62788
        if (!(this_present_success && that_present_success))
-
 
62789
          return false;
-
 
62790
        if (!this.success.equals(that.success))
-
 
62791
          return false;
-
 
62792
      }
-
 
62793
 
-
 
62794
      return true;
-
 
62795
    }
-
 
62796
 
-
 
62797
    @Override
-
 
62798
    public int hashCode() {
-
 
62799
      return 0;
-
 
62800
    }
-
 
62801
 
-
 
62802
    public int compareTo(getItemLocationAvailabilityCacheByItemId_result other) {
-
 
62803
      if (!getClass().equals(other.getClass())) {
-
 
62804
        return getClass().getName().compareTo(other.getClass().getName());
-
 
62805
      }
-
 
62806
 
-
 
62807
      int lastComparison = 0;
-
 
62808
      getItemLocationAvailabilityCacheByItemId_result typedOther = (getItemLocationAvailabilityCacheByItemId_result)other;
-
 
62809
 
-
 
62810
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
62811
      if (lastComparison != 0) {
-
 
62812
        return lastComparison;
-
 
62813
      }
-
 
62814
      if (isSetSuccess()) {
-
 
62815
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
62816
        if (lastComparison != 0) {
-
 
62817
          return lastComparison;
-
 
62818
        }
-
 
62819
      }
-
 
62820
      return 0;
-
 
62821
    }
-
 
62822
 
-
 
62823
    public _Fields fieldForId(int fieldId) {
-
 
62824
      return _Fields.findByThriftId(fieldId);
-
 
62825
    }
-
 
62826
 
-
 
62827
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
62828
      org.apache.thrift.protocol.TField field;
-
 
62829
      iprot.readStructBegin();
-
 
62830
      while (true)
-
 
62831
      {
-
 
62832
        field = iprot.readFieldBegin();
-
 
62833
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
62834
          break;
-
 
62835
        }
-
 
62836
        switch (field.id) {
-
 
62837
          case 0: // SUCCESS
-
 
62838
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
62839
              {
-
 
62840
                org.apache.thrift.protocol.TList _list224 = iprot.readListBegin();
-
 
62841
                this.success = new ArrayList<ItemLocationAvailability>(_list224.size);
-
 
62842
                for (int _i225 = 0; _i225 < _list224.size; ++_i225)
-
 
62843
                {
-
 
62844
                  ItemLocationAvailability _elem226; // required
-
 
62845
                  _elem226 = new ItemLocationAvailability();
-
 
62846
                  _elem226.read(iprot);
-
 
62847
                  this.success.add(_elem226);
-
 
62848
                }
-
 
62849
                iprot.readListEnd();
-
 
62850
              }
-
 
62851
            } else { 
-
 
62852
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
62853
            }
-
 
62854
            break;
-
 
62855
          default:
-
 
62856
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
62857
        }
-
 
62858
        iprot.readFieldEnd();
-
 
62859
      }
-
 
62860
      iprot.readStructEnd();
-
 
62861
      validate();
-
 
62862
    }
-
 
62863
 
-
 
62864
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
62865
      oprot.writeStructBegin(STRUCT_DESC);
-
 
62866
 
-
 
62867
      if (this.isSetSuccess()) {
-
 
62868
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
62869
        {
-
 
62870
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
62871
          for (ItemLocationAvailability _iter227 : this.success)
-
 
62872
          {
-
 
62873
            _iter227.write(oprot);
-
 
62874
          }
-
 
62875
          oprot.writeListEnd();
-
 
62876
        }
-
 
62877
        oprot.writeFieldEnd();
-
 
62878
      }
-
 
62879
      oprot.writeFieldStop();
-
 
62880
      oprot.writeStructEnd();
-
 
62881
    }
-
 
62882
 
-
 
62883
    @Override
-
 
62884
    public String toString() {
-
 
62885
      StringBuilder sb = new StringBuilder("getItemLocationAvailabilityCacheByItemId_result(");
-
 
62886
      boolean first = true;
-
 
62887
 
-
 
62888
      sb.append("success:");
-
 
62889
      if (this.success == null) {
-
 
62890
        sb.append("null");
-
 
62891
      } else {
-
 
62892
        sb.append(this.success);
-
 
62893
      }
-
 
62894
      first = false;
-
 
62895
      sb.append(")");
-
 
62896
      return sb.toString();
-
 
62897
    }
-
 
62898
 
-
 
62899
    public void validate() throws org.apache.thrift.TException {
-
 
62900
      // check for required fields
-
 
62901
    }
-
 
62902
 
-
 
62903
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
62904
      try {
-
 
62905
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
62906
      } catch (org.apache.thrift.TException te) {
-
 
62907
        throw new java.io.IOException(te);
-
 
62908
      }
-
 
62909
    }
-
 
62910
 
-
 
62911
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
62912
      try {
-
 
62913
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
62914
      } catch (org.apache.thrift.TException te) {
-
 
62915
        throw new java.io.IOException(te);
-
 
62916
      }
-
 
62917
    }
-
 
62918
 
-
 
62919
  }
-
 
62920
 
-
 
62921
  public static class getItemPincodeAvailability_args implements org.apache.thrift.TBase<getItemPincodeAvailability_args, getItemPincodeAvailability_args._Fields>, java.io.Serializable, Cloneable   {
-
 
62922
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPincodeAvailability_args");
-
 
62923
 
-
 
62924
    private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
62925
    private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
62926
 
-
 
62927
    private List<Long> itemIds; // required
-
 
62928
    private String pincode; // required
-
 
62929
 
-
 
62930
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
62931
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
62932
      ITEM_IDS((short)1, "itemIds"),
-
 
62933
      PINCODE((short)2, "pincode");
-
 
62934
 
-
 
62935
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
62936
 
-
 
62937
      static {
-
 
62938
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
62939
          byName.put(field.getFieldName(), field);
-
 
62940
        }
-
 
62941
      }
-
 
62942
 
-
 
62943
      /**
-
 
62944
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
62945
       */
-
 
62946
      public static _Fields findByThriftId(int fieldId) {
-
 
62947
        switch(fieldId) {
-
 
62948
          case 1: // ITEM_IDS
-
 
62949
            return ITEM_IDS;
-
 
62950
          case 2: // PINCODE
-
 
62951
            return PINCODE;
-
 
62952
          default:
-
 
62953
            return null;
-
 
62954
        }
-
 
62955
      }
-
 
62956
 
-
 
62957
      /**
-
 
62958
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
62959
       * if it is not found.
-
 
62960
       */
-
 
62961
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
62962
        _Fields fields = findByThriftId(fieldId);
-
 
62963
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
62964
        return fields;
-
 
62965
      }
-
 
62966
 
-
 
62967
      /**
-
 
62968
       * Find the _Fields constant that matches name, or null if its not found.
-
 
62969
       */
-
 
62970
      public static _Fields findByName(String name) {
-
 
62971
        return byName.get(name);
-
 
62972
      }
-
 
62973
 
-
 
62974
      private final short _thriftId;
-
 
62975
      private final String _fieldName;
-
 
62976
 
-
 
62977
      _Fields(short thriftId, String fieldName) {
-
 
62978
        _thriftId = thriftId;
-
 
62979
        _fieldName = fieldName;
-
 
62980
      }
-
 
62981
 
-
 
62982
      public short getThriftFieldId() {
-
 
62983
        return _thriftId;
-
 
62984
      }
-
 
62985
 
-
 
62986
      public String getFieldName() {
-
 
62987
        return _fieldName;
-
 
62988
      }
-
 
62989
    }
-
 
62990
 
-
 
62991
    // isset id assignments
-
 
62992
 
-
 
62993
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
62994
    static {
-
 
62995
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
62996
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
62997
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
62998
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
62999
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
63000
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
63001
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
63002
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPincodeAvailability_args.class, metaDataMap);
-
 
63003
    }
-
 
63004
 
-
 
63005
    public getItemPincodeAvailability_args() {
-
 
63006
    }
-
 
63007
 
-
 
63008
    public getItemPincodeAvailability_args(
-
 
63009
      List<Long> itemIds,
-
 
63010
      String pincode)
-
 
63011
    {
-
 
63012
      this();
-
 
63013
      this.itemIds = itemIds;
-
 
63014
      this.pincode = pincode;
-
 
63015
    }
-
 
63016
 
-
 
63017
    /**
-
 
63018
     * Performs a deep copy on <i>other</i>.
-
 
63019
     */
-
 
63020
    public getItemPincodeAvailability_args(getItemPincodeAvailability_args other) {
-
 
63021
      if (other.isSetItemIds()) {
-
 
63022
        List<Long> __this__itemIds = new ArrayList<Long>();
-
 
63023
        for (Long other_element : other.itemIds) {
-
 
63024
          __this__itemIds.add(other_element);
-
 
63025
        }
-
 
63026
        this.itemIds = __this__itemIds;
-
 
63027
      }
-
 
63028
      if (other.isSetPincode()) {
-
 
63029
        this.pincode = other.pincode;
-
 
63030
      }
-
 
63031
    }
-
 
63032
 
-
 
63033
    public getItemPincodeAvailability_args deepCopy() {
-
 
63034
      return new getItemPincodeAvailability_args(this);
-
 
63035
    }
-
 
63036
 
-
 
63037
    @Override
-
 
63038
    public void clear() {
-
 
63039
      this.itemIds = null;
-
 
63040
      this.pincode = null;
-
 
63041
    }
-
 
63042
 
-
 
63043
    public int getItemIdsSize() {
-
 
63044
      return (this.itemIds == null) ? 0 : this.itemIds.size();
-
 
63045
    }
-
 
63046
 
-
 
63047
    public java.util.Iterator<Long> getItemIdsIterator() {
-
 
63048
      return (this.itemIds == null) ? null : this.itemIds.iterator();
-
 
63049
    }
-
 
63050
 
-
 
63051
    public void addToItemIds(long elem) {
-
 
63052
      if (this.itemIds == null) {
-
 
63053
        this.itemIds = new ArrayList<Long>();
-
 
63054
      }
-
 
63055
      this.itemIds.add(elem);
-
 
63056
    }
-
 
63057
 
-
 
63058
    public List<Long> getItemIds() {
-
 
63059
      return this.itemIds;
-
 
63060
    }
-
 
63061
 
-
 
63062
    public void setItemIds(List<Long> itemIds) {
-
 
63063
      this.itemIds = itemIds;
-
 
63064
    }
-
 
63065
 
-
 
63066
    public void unsetItemIds() {
-
 
63067
      this.itemIds = null;
-
 
63068
    }
-
 
63069
 
-
 
63070
    /** Returns true if field itemIds is set (has been assigned a value) and false otherwise */
-
 
63071
    public boolean isSetItemIds() {
-
 
63072
      return this.itemIds != null;
-
 
63073
    }
-
 
63074
 
-
 
63075
    public void setItemIdsIsSet(boolean value) {
-
 
63076
      if (!value) {
-
 
63077
        this.itemIds = null;
-
 
63078
      }
-
 
63079
    }
-
 
63080
 
-
 
63081
    public String getPincode() {
-
 
63082
      return this.pincode;
-
 
63083
    }
-
 
63084
 
-
 
63085
    public void setPincode(String pincode) {
-
 
63086
      this.pincode = pincode;
-
 
63087
    }
-
 
63088
 
-
 
63089
    public void unsetPincode() {
-
 
63090
      this.pincode = null;
-
 
63091
    }
-
 
63092
 
-
 
63093
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
-
 
63094
    public boolean isSetPincode() {
-
 
63095
      return this.pincode != null;
-
 
63096
    }
-
 
63097
 
-
 
63098
    public void setPincodeIsSet(boolean value) {
-
 
63099
      if (!value) {
-
 
63100
        this.pincode = null;
-
 
63101
      }
-
 
63102
    }
-
 
63103
 
-
 
63104
    public void setFieldValue(_Fields field, Object value) {
-
 
63105
      switch (field) {
-
 
63106
      case ITEM_IDS:
-
 
63107
        if (value == null) {
-
 
63108
          unsetItemIds();
-
 
63109
        } else {
-
 
63110
          setItemIds((List<Long>)value);
-
 
63111
        }
-
 
63112
        break;
-
 
63113
 
-
 
63114
      case PINCODE:
-
 
63115
        if (value == null) {
-
 
63116
          unsetPincode();
-
 
63117
        } else {
-
 
63118
          setPincode((String)value);
-
 
63119
        }
-
 
63120
        break;
-
 
63121
 
-
 
63122
      }
-
 
63123
    }
-
 
63124
 
-
 
63125
    public Object getFieldValue(_Fields field) {
-
 
63126
      switch (field) {
-
 
63127
      case ITEM_IDS:
-
 
63128
        return getItemIds();
-
 
63129
 
-
 
63130
      case PINCODE:
-
 
63131
        return getPincode();
-
 
63132
 
-
 
63133
      }
-
 
63134
      throw new IllegalStateException();
-
 
63135
    }
-
 
63136
 
-
 
63137
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
63138
    public boolean isSet(_Fields field) {
-
 
63139
      if (field == null) {
-
 
63140
        throw new IllegalArgumentException();
-
 
63141
      }
-
 
63142
 
-
 
63143
      switch (field) {
-
 
63144
      case ITEM_IDS:
-
 
63145
        return isSetItemIds();
-
 
63146
      case PINCODE:
-
 
63147
        return isSetPincode();
-
 
63148
      }
-
 
63149
      throw new IllegalStateException();
-
 
63150
    }
-
 
63151
 
-
 
63152
    @Override
-
 
63153
    public boolean equals(Object that) {
-
 
63154
      if (that == null)
-
 
63155
        return false;
-
 
63156
      if (that instanceof getItemPincodeAvailability_args)
-
 
63157
        return this.equals((getItemPincodeAvailability_args)that);
-
 
63158
      return false;
-
 
63159
    }
-
 
63160
 
-
 
63161
    public boolean equals(getItemPincodeAvailability_args that) {
-
 
63162
      if (that == null)
-
 
63163
        return false;
-
 
63164
 
-
 
63165
      boolean this_present_itemIds = true && this.isSetItemIds();
-
 
63166
      boolean that_present_itemIds = true && that.isSetItemIds();
-
 
63167
      if (this_present_itemIds || that_present_itemIds) {
-
 
63168
        if (!(this_present_itemIds && that_present_itemIds))
-
 
63169
          return false;
-
 
63170
        if (!this.itemIds.equals(that.itemIds))
-
 
63171
          return false;
-
 
63172
      }
-
 
63173
 
-
 
63174
      boolean this_present_pincode = true && this.isSetPincode();
-
 
63175
      boolean that_present_pincode = true && that.isSetPincode();
-
 
63176
      if (this_present_pincode || that_present_pincode) {
-
 
63177
        if (!(this_present_pincode && that_present_pincode))
-
 
63178
          return false;
-
 
63179
        if (!this.pincode.equals(that.pincode))
-
 
63180
          return false;
-
 
63181
      }
-
 
63182
 
-
 
63183
      return true;
-
 
63184
    }
-
 
63185
 
-
 
63186
    @Override
-
 
63187
    public int hashCode() {
-
 
63188
      return 0;
-
 
63189
    }
-
 
63190
 
-
 
63191
    public int compareTo(getItemPincodeAvailability_args other) {
-
 
63192
      if (!getClass().equals(other.getClass())) {
-
 
63193
        return getClass().getName().compareTo(other.getClass().getName());
-
 
63194
      }
-
 
63195
 
-
 
63196
      int lastComparison = 0;
-
 
63197
      getItemPincodeAvailability_args typedOther = (getItemPincodeAvailability_args)other;
-
 
63198
 
-
 
63199
      lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());
-
 
63200
      if (lastComparison != 0) {
-
 
63201
        return lastComparison;
-
 
63202
      }
-
 
63203
      if (isSetItemIds()) {
-
 
63204
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);
-
 
63205
        if (lastComparison != 0) {
-
 
63206
          return lastComparison;
-
 
63207
        }
-
 
63208
      }
-
 
63209
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
-
 
63210
      if (lastComparison != 0) {
-
 
63211
        return lastComparison;
-
 
63212
      }
-
 
63213
      if (isSetPincode()) {
-
 
63214
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
-
 
63215
        if (lastComparison != 0) {
-
 
63216
          return lastComparison;
-
 
63217
        }
-
 
63218
      }
-
 
63219
      return 0;
-
 
63220
    }
-
 
63221
 
-
 
63222
    public _Fields fieldForId(int fieldId) {
-
 
63223
      return _Fields.findByThriftId(fieldId);
-
 
63224
    }
-
 
63225
 
-
 
63226
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
63227
      org.apache.thrift.protocol.TField field;
-
 
63228
      iprot.readStructBegin();
-
 
63229
      while (true)
-
 
63230
      {
-
 
63231
        field = iprot.readFieldBegin();
-
 
63232
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
63233
          break;
-
 
63234
        }
-
 
63235
        switch (field.id) {
-
 
63236
          case 1: // ITEM_IDS
-
 
63237
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
63238
              {
-
 
63239
                org.apache.thrift.protocol.TList _list228 = iprot.readListBegin();
-
 
63240
                this.itemIds = new ArrayList<Long>(_list228.size);
-
 
63241
                for (int _i229 = 0; _i229 < _list228.size; ++_i229)
-
 
63242
                {
-
 
63243
                  long _elem230; // required
-
 
63244
                  _elem230 = iprot.readI64();
-
 
63245
                  this.itemIds.add(_elem230);
-
 
63246
                }
-
 
63247
                iprot.readListEnd();
-
 
63248
              }
-
 
63249
            } else { 
-
 
63250
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
63251
            }
-
 
63252
            break;
-
 
63253
          case 2: // PINCODE
-
 
63254
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
63255
              this.pincode = iprot.readString();
-
 
63256
            } else { 
-
 
63257
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
63258
            }
-
 
63259
            break;
-
 
63260
          default:
-
 
63261
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
63262
        }
-
 
63263
        iprot.readFieldEnd();
-
 
63264
      }
-
 
63265
      iprot.readStructEnd();
-
 
63266
      validate();
-
 
63267
    }
-
 
63268
 
-
 
63269
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
63270
      validate();
-
 
63271
 
-
 
63272
      oprot.writeStructBegin(STRUCT_DESC);
-
 
63273
      if (this.itemIds != null) {
-
 
63274
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
-
 
63275
        {
-
 
63276
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
-
 
63277
          for (long _iter231 : this.itemIds)
-
 
63278
          {
-
 
63279
            oprot.writeI64(_iter231);
-
 
63280
          }
-
 
63281
          oprot.writeListEnd();
-
 
63282
        }
-
 
63283
        oprot.writeFieldEnd();
-
 
63284
      }
-
 
63285
      if (this.pincode != null) {
-
 
63286
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
-
 
63287
        oprot.writeString(this.pincode);
-
 
63288
        oprot.writeFieldEnd();
-
 
63289
      }
-
 
63290
      oprot.writeFieldStop();
-
 
63291
      oprot.writeStructEnd();
-
 
63292
    }
-
 
63293
 
-
 
63294
    @Override
-
 
63295
    public String toString() {
-
 
63296
      StringBuilder sb = new StringBuilder("getItemPincodeAvailability_args(");
-
 
63297
      boolean first = true;
-
 
63298
 
-
 
63299
      sb.append("itemIds:");
-
 
63300
      if (this.itemIds == null) {
-
 
63301
        sb.append("null");
-
 
63302
      } else {
-
 
63303
        sb.append(this.itemIds);
-
 
63304
      }
-
 
63305
      first = false;
-
 
63306
      if (!first) sb.append(", ");
-
 
63307
      sb.append("pincode:");
-
 
63308
      if (this.pincode == null) {
-
 
63309
        sb.append("null");
-
 
63310
      } else {
-
 
63311
        sb.append(this.pincode);
-
 
63312
      }
-
 
63313
      first = false;
-
 
63314
      sb.append(")");
-
 
63315
      return sb.toString();
-
 
63316
    }
-
 
63317
 
-
 
63318
    public void validate() throws org.apache.thrift.TException {
-
 
63319
      // check for required fields
-
 
63320
    }
-
 
63321
 
-
 
63322
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
63323
      try {
-
 
63324
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
63325
      } catch (org.apache.thrift.TException te) {
-
 
63326
        throw new java.io.IOException(te);
-
 
63327
      }
-
 
63328
    }
-
 
63329
 
-
 
63330
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
63331
      try {
-
 
63332
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
63333
      } catch (org.apache.thrift.TException te) {
-
 
63334
        throw new java.io.IOException(te);
-
 
63335
      }
-
 
63336
    }
-
 
63337
 
-
 
63338
  }
-
 
63339
 
-
 
63340
  public static class getItemPincodeAvailability_result implements org.apache.thrift.TBase<getItemPincodeAvailability_result, getItemPincodeAvailability_result._Fields>, java.io.Serializable, Cloneable   {
-
 
63341
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemPincodeAvailability_result");
-
 
63342
 
-
 
63343
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
-
 
63344
 
-
 
63345
    private String success; // required
-
 
63346
 
-
 
63347
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
63348
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
63349
      SUCCESS((short)0, "success");
-
 
63350
 
-
 
63351
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
63352
 
-
 
63353
      static {
-
 
63354
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
63355
          byName.put(field.getFieldName(), field);
-
 
63356
        }
-
 
63357
      }
-
 
63358
 
-
 
63359
      /**
-
 
63360
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
63361
       */
-
 
63362
      public static _Fields findByThriftId(int fieldId) {
-
 
63363
        switch(fieldId) {
-
 
63364
          case 0: // SUCCESS
-
 
63365
            return SUCCESS;
-
 
63366
          default:
-
 
63367
            return null;
-
 
63368
        }
-
 
63369
      }
-
 
63370
 
-
 
63371
      /**
-
 
63372
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
63373
       * if it is not found.
-
 
63374
       */
-
 
63375
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
63376
        _Fields fields = findByThriftId(fieldId);
-
 
63377
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
63378
        return fields;
-
 
63379
      }
-
 
63380
 
-
 
63381
      /**
-
 
63382
       * Find the _Fields constant that matches name, or null if its not found.
-
 
63383
       */
-
 
63384
      public static _Fields findByName(String name) {
-
 
63385
        return byName.get(name);
-
 
63386
      }
-
 
63387
 
-
 
63388
      private final short _thriftId;
-
 
63389
      private final String _fieldName;
-
 
63390
 
-
 
63391
      _Fields(short thriftId, String fieldName) {
-
 
63392
        _thriftId = thriftId;
-
 
63393
        _fieldName = fieldName;
-
 
63394
      }
-
 
63395
 
-
 
63396
      public short getThriftFieldId() {
-
 
63397
        return _thriftId;
-
 
63398
      }
-
 
63399
 
-
 
63400
      public String getFieldName() {
-
 
63401
        return _fieldName;
-
 
63402
      }
-
 
63403
    }
-
 
63404
 
-
 
63405
    // isset id assignments
-
 
63406
 
-
 
63407
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
63408
    static {
-
 
63409
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
63410
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
63411
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
63412
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
63413
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemPincodeAvailability_result.class, metaDataMap);
-
 
63414
    }
-
 
63415
 
-
 
63416
    public getItemPincodeAvailability_result() {
-
 
63417
    }
-
 
63418
 
-
 
63419
    public getItemPincodeAvailability_result(
-
 
63420
      String success)
-
 
63421
    {
-
 
63422
      this();
-
 
63423
      this.success = success;
-
 
63424
    }
-
 
63425
 
-
 
63426
    /**
-
 
63427
     * Performs a deep copy on <i>other</i>.
-
 
63428
     */
-
 
63429
    public getItemPincodeAvailability_result(getItemPincodeAvailability_result other) {
-
 
63430
      if (other.isSetSuccess()) {
-
 
63431
        this.success = other.success;
-
 
63432
      }
-
 
63433
    }
-
 
63434
 
-
 
63435
    public getItemPincodeAvailability_result deepCopy() {
-
 
63436
      return new getItemPincodeAvailability_result(this);
-
 
63437
    }
-
 
63438
 
-
 
63439
    @Override
-
 
63440
    public void clear() {
-
 
63441
      this.success = null;
-
 
63442
    }
-
 
63443
 
-
 
63444
    public String getSuccess() {
-
 
63445
      return this.success;
-
 
63446
    }
-
 
63447
 
-
 
63448
    public void setSuccess(String success) {
-
 
63449
      this.success = success;
-
 
63450
    }
-
 
63451
 
-
 
63452
    public void unsetSuccess() {
-
 
63453
      this.success = null;
-
 
63454
    }
-
 
63455
 
-
 
63456
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
63457
    public boolean isSetSuccess() {
-
 
63458
      return this.success != null;
-
 
63459
    }
-
 
63460
 
-
 
63461
    public void setSuccessIsSet(boolean value) {
-
 
63462
      if (!value) {
-
 
63463
        this.success = null;
-
 
63464
      }
-
 
63465
    }
-
 
63466
 
-
 
63467
    public void setFieldValue(_Fields field, Object value) {
-
 
63468
      switch (field) {
-
 
63469
      case SUCCESS:
-
 
63470
        if (value == null) {
-
 
63471
          unsetSuccess();
-
 
63472
        } else {
-
 
63473
          setSuccess((String)value);
-
 
63474
        }
-
 
63475
        break;
-
 
63476
 
-
 
63477
      }
-
 
63478
    }
-
 
63479
 
-
 
63480
    public Object getFieldValue(_Fields field) {
-
 
63481
      switch (field) {
-
 
63482
      case SUCCESS:
-
 
63483
        return getSuccess();
-
 
63484
 
-
 
63485
      }
-
 
63486
      throw new IllegalStateException();
-
 
63487
    }
-
 
63488
 
-
 
63489
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
63490
    public boolean isSet(_Fields field) {
-
 
63491
      if (field == null) {
-
 
63492
        throw new IllegalArgumentException();
-
 
63493
      }
-
 
63494
 
-
 
63495
      switch (field) {
-
 
63496
      case SUCCESS:
-
 
63497
        return isSetSuccess();
-
 
63498
      }
-
 
63499
      throw new IllegalStateException();
-
 
63500
    }
-
 
63501
 
-
 
63502
    @Override
-
 
63503
    public boolean equals(Object that) {
-
 
63504
      if (that == null)
-
 
63505
        return false;
-
 
63506
      if (that instanceof getItemPincodeAvailability_result)
-
 
63507
        return this.equals((getItemPincodeAvailability_result)that);
-
 
63508
      return false;
-
 
63509
    }
-
 
63510
 
-
 
63511
    public boolean equals(getItemPincodeAvailability_result that) {
-
 
63512
      if (that == null)
-
 
63513
        return false;
-
 
63514
 
-
 
63515
      boolean this_present_success = true && this.isSetSuccess();
-
 
63516
      boolean that_present_success = true && that.isSetSuccess();
-
 
63517
      if (this_present_success || that_present_success) {
-
 
63518
        if (!(this_present_success && that_present_success))
-
 
63519
          return false;
-
 
63520
        if (!this.success.equals(that.success))
-
 
63521
          return false;
-
 
63522
      }
-
 
63523
 
-
 
63524
      return true;
-
 
63525
    }
-
 
63526
 
-
 
63527
    @Override
-
 
63528
    public int hashCode() {
-
 
63529
      return 0;
-
 
63530
    }
-
 
63531
 
-
 
63532
    public int compareTo(getItemPincodeAvailability_result other) {
-
 
63533
      if (!getClass().equals(other.getClass())) {
-
 
63534
        return getClass().getName().compareTo(other.getClass().getName());
-
 
63535
      }
-
 
63536
 
-
 
63537
      int lastComparison = 0;
-
 
63538
      getItemPincodeAvailability_result typedOther = (getItemPincodeAvailability_result)other;
-
 
63539
 
-
 
63540
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
63541
      if (lastComparison != 0) {
-
 
63542
        return lastComparison;
-
 
63543
      }
-
 
63544
      if (isSetSuccess()) {
-
 
63545
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
63546
        if (lastComparison != 0) {
-
 
63547
          return lastComparison;
-
 
63548
        }
-
 
63549
      }
-
 
63550
      return 0;
-
 
63551
    }
-
 
63552
 
-
 
63553
    public _Fields fieldForId(int fieldId) {
-
 
63554
      return _Fields.findByThriftId(fieldId);
-
 
63555
    }
-
 
63556
 
-
 
63557
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
63558
      org.apache.thrift.protocol.TField field;
-
 
63559
      iprot.readStructBegin();
-
 
63560
      while (true)
-
 
63561
      {
-
 
63562
        field = iprot.readFieldBegin();
-
 
63563
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
63564
          break;
-
 
63565
        }
-
 
63566
        switch (field.id) {
-
 
63567
          case 0: // SUCCESS
-
 
63568
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
63569
              this.success = iprot.readString();
-
 
63570
            } else { 
-
 
63571
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
63572
            }
-
 
63573
            break;
-
 
63574
          default:
-
 
63575
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
63576
        }
-
 
63577
        iprot.readFieldEnd();
-
 
63578
      }
-
 
63579
      iprot.readStructEnd();
-
 
63580
      validate();
-
 
63581
    }
-
 
63582
 
-
 
63583
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
63584
      oprot.writeStructBegin(STRUCT_DESC);
-
 
63585
 
-
 
63586
      if (this.isSetSuccess()) {
-
 
63587
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
63588
        oprot.writeString(this.success);
-
 
63589
        oprot.writeFieldEnd();
-
 
63590
      }
-
 
63591
      oprot.writeFieldStop();
-
 
63592
      oprot.writeStructEnd();
-
 
63593
    }
-
 
63594
 
-
 
63595
    @Override
-
 
63596
    public String toString() {
-
 
63597
      StringBuilder sb = new StringBuilder("getItemPincodeAvailability_result(");
-
 
63598
      boolean first = true;
-
 
63599
 
-
 
63600
      sb.append("success:");
-
 
63601
      if (this.success == null) {
-
 
63602
        sb.append("null");
-
 
63603
      } else {
-
 
63604
        sb.append(this.success);
-
 
63605
      }
-
 
63606
      first = false;
-
 
63607
      sb.append(")");
-
 
63608
      return sb.toString();
-
 
63609
    }
61341
 
63610
 
61342
    public void validate() throws org.apache.thrift.TException {
63611
    public void validate() throws org.apache.thrift.TException {
61343
      // check for required fields
63612
      // check for required fields
61344
    }
63613
    }
61345
 
63614