Subversion Repositories SmartDukaan

Rev

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

Rev 15705 Rev 18150
Line 598... Line 598...
598
 
598
 
599
    public List<Amazonlisted> getAllItemstoListOnFbd() throws org.apache.thrift.TException;
599
    public List<Amazonlisted> getAllItemstoListOnFbd() throws org.apache.thrift.TException;
600
 
600
 
601
    public List<Amazonlisted> getAllFbdListedItems() throws org.apache.thrift.TException;
601
    public List<Amazonlisted> getAllFbdListedItems() throws org.apache.thrift.TException;
602
 
602
 
-
 
603
    public Map<Long,List<BulkItemPricing>> getBulkPricingForItems(List<Long> itemIds) throws org.apache.thrift.TException;
-
 
604
 
-
 
605
    public BulkItemPricing addBulkPricingForItem(BulkItemPricing bulkItemPricing) throws org.apache.thrift.TException;
-
 
606
 
-
 
607
    public boolean deleteBulkPricingForItemById(long id) throws org.apache.thrift.TException;
-
 
608
 
-
 
609
    public boolean deleteBulkPricingForItem(long item_id) throws org.apache.thrift.TException;
-
 
610
 
-
 
611
    public List<BulkItemPricing> getBulkPricingByItemId(long item_id) throws org.apache.thrift.TException;
-
 
612
 
603
  }
613
  }
604
 
614
 
605
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
615
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
606
 
616
 
607
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
617
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 980... Line 990...
980
 
990
 
981
    public void getAllItemstoListOnFbd(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnFbd_call> resultHandler) throws org.apache.thrift.TException;
991
    public void getAllItemstoListOnFbd(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllItemstoListOnFbd_call> resultHandler) throws org.apache.thrift.TException;
982
 
992
 
983
    public void getAllFbdListedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFbdListedItems_call> resultHandler) throws org.apache.thrift.TException;
993
    public void getAllFbdListedItems(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllFbdListedItems_call> resultHandler) throws org.apache.thrift.TException;
984
 
994
 
-
 
995
    public void getBulkPricingForItems(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBulkPricingForItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
996
 
-
 
997
    public void addBulkPricingForItem(BulkItemPricing bulkItemPricing, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBulkPricingForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
998
 
-
 
999
    public void deleteBulkPricingForItemById(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteBulkPricingForItemById_call> resultHandler) throws org.apache.thrift.TException;
-
 
1000
 
-
 
1001
    public void deleteBulkPricingForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteBulkPricingForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
1002
 
-
 
1003
    public void getBulkPricingByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBulkPricingByItemId_call> resultHandler) throws org.apache.thrift.TException;
-
 
1004
 
985
  }
1005
  }
986
 
1006
 
987
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1007
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
988
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1008
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
989
      public Factory() {}
1009
      public Factory() {}
Line 5463... Line 5483...
5463
        return result.success;
5483
        return result.success;
5464
      }
5484
      }
5465
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFbdListedItems failed: unknown result");
5485
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllFbdListedItems failed: unknown result");
5466
    }
5486
    }
5467
 
5487
 
-
 
5488
    public Map<Long,List<BulkItemPricing>> getBulkPricingForItems(List<Long> itemIds) throws org.apache.thrift.TException
-
 
5489
    {
-
 
5490
      send_getBulkPricingForItems(itemIds);
-
 
5491
      return recv_getBulkPricingForItems();
-
 
5492
    }
-
 
5493
 
-
 
5494
    public void send_getBulkPricingForItems(List<Long> itemIds) throws org.apache.thrift.TException
-
 
5495
    {
-
 
5496
      getBulkPricingForItems_args args = new getBulkPricingForItems_args();
-
 
5497
      args.setItemIds(itemIds);
-
 
5498
      sendBase("getBulkPricingForItems", args);
-
 
5499
    }
-
 
5500
 
-
 
5501
    public Map<Long,List<BulkItemPricing>> recv_getBulkPricingForItems() throws org.apache.thrift.TException
-
 
5502
    {
-
 
5503
      getBulkPricingForItems_result result = new getBulkPricingForItems_result();
-
 
5504
      receiveBase(result, "getBulkPricingForItems");
-
 
5505
      if (result.isSetSuccess()) {
-
 
5506
        return result.success;
-
 
5507
      }
-
 
5508
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBulkPricingForItems failed: unknown result");
-
 
5509
    }
-
 
5510
 
-
 
5511
    public BulkItemPricing addBulkPricingForItem(BulkItemPricing bulkItemPricing) throws org.apache.thrift.TException
-
 
5512
    {
-
 
5513
      send_addBulkPricingForItem(bulkItemPricing);
-
 
5514
      return recv_addBulkPricingForItem();
-
 
5515
    }
-
 
5516
 
-
 
5517
    public void send_addBulkPricingForItem(BulkItemPricing bulkItemPricing) throws org.apache.thrift.TException
-
 
5518
    {
-
 
5519
      addBulkPricingForItem_args args = new addBulkPricingForItem_args();
-
 
5520
      args.setBulkItemPricing(bulkItemPricing);
-
 
5521
      sendBase("addBulkPricingForItem", args);
-
 
5522
    }
-
 
5523
 
-
 
5524
    public BulkItemPricing recv_addBulkPricingForItem() throws org.apache.thrift.TException
-
 
5525
    {
-
 
5526
      addBulkPricingForItem_result result = new addBulkPricingForItem_result();
-
 
5527
      receiveBase(result, "addBulkPricingForItem");
-
 
5528
      if (result.isSetSuccess()) {
-
 
5529
        return result.success;
-
 
5530
      }
-
 
5531
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addBulkPricingForItem failed: unknown result");
-
 
5532
    }
-
 
5533
 
-
 
5534
    public boolean deleteBulkPricingForItemById(long id) throws org.apache.thrift.TException
-
 
5535
    {
-
 
5536
      send_deleteBulkPricingForItemById(id);
-
 
5537
      return recv_deleteBulkPricingForItemById();
-
 
5538
    }
-
 
5539
 
-
 
5540
    public void send_deleteBulkPricingForItemById(long id) throws org.apache.thrift.TException
-
 
5541
    {
-
 
5542
      deleteBulkPricingForItemById_args args = new deleteBulkPricingForItemById_args();
-
 
5543
      args.setId(id);
-
 
5544
      sendBase("deleteBulkPricingForItemById", args);
-
 
5545
    }
-
 
5546
 
-
 
5547
    public boolean recv_deleteBulkPricingForItemById() throws org.apache.thrift.TException
-
 
5548
    {
-
 
5549
      deleteBulkPricingForItemById_result result = new deleteBulkPricingForItemById_result();
-
 
5550
      receiveBase(result, "deleteBulkPricingForItemById");
-
 
5551
      if (result.isSetSuccess()) {
-
 
5552
        return result.success;
-
 
5553
      }
-
 
5554
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteBulkPricingForItemById failed: unknown result");
-
 
5555
    }
-
 
5556
 
-
 
5557
    public boolean deleteBulkPricingForItem(long item_id) throws org.apache.thrift.TException
-
 
5558
    {
-
 
5559
      send_deleteBulkPricingForItem(item_id);
-
 
5560
      return recv_deleteBulkPricingForItem();
-
 
5561
    }
-
 
5562
 
-
 
5563
    public void send_deleteBulkPricingForItem(long item_id) throws org.apache.thrift.TException
-
 
5564
    {
-
 
5565
      deleteBulkPricingForItem_args args = new deleteBulkPricingForItem_args();
-
 
5566
      args.setItem_id(item_id);
-
 
5567
      sendBase("deleteBulkPricingForItem", args);
-
 
5568
    }
-
 
5569
 
-
 
5570
    public boolean recv_deleteBulkPricingForItem() throws org.apache.thrift.TException
-
 
5571
    {
-
 
5572
      deleteBulkPricingForItem_result result = new deleteBulkPricingForItem_result();
-
 
5573
      receiveBase(result, "deleteBulkPricingForItem");
-
 
5574
      if (result.isSetSuccess()) {
-
 
5575
        return result.success;
-
 
5576
      }
-
 
5577
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteBulkPricingForItem failed: unknown result");
-
 
5578
    }
-
 
5579
 
-
 
5580
    public List<BulkItemPricing> getBulkPricingByItemId(long item_id) throws org.apache.thrift.TException
-
 
5581
    {
-
 
5582
      send_getBulkPricingByItemId(item_id);
-
 
5583
      return recv_getBulkPricingByItemId();
-
 
5584
    }
-
 
5585
 
-
 
5586
    public void send_getBulkPricingByItemId(long item_id) throws org.apache.thrift.TException
-
 
5587
    {
-
 
5588
      getBulkPricingByItemId_args args = new getBulkPricingByItemId_args();
-
 
5589
      args.setItem_id(item_id);
-
 
5590
      sendBase("getBulkPricingByItemId", args);
-
 
5591
    }
-
 
5592
 
-
 
5593
    public List<BulkItemPricing> recv_getBulkPricingByItemId() throws org.apache.thrift.TException
-
 
5594
    {
-
 
5595
      getBulkPricingByItemId_result result = new getBulkPricingByItemId_result();
-
 
5596
      receiveBase(result, "getBulkPricingByItemId");
-
 
5597
      if (result.isSetSuccess()) {
-
 
5598
        return result.success;
-
 
5599
      }
-
 
5600
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBulkPricingByItemId failed: unknown result");
-
 
5601
    }
-
 
5602
 
5468
  }
5603
  }
5469
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5604
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
5470
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5605
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
5471
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5606
      private org.apache.thrift.async.TAsyncClientManager clientManager;
5472
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
5607
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 11673... Line 11808...
11673
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11808
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
11674
        return (new Client(prot)).recv_getAllFbdListedItems();
11809
        return (new Client(prot)).recv_getAllFbdListedItems();
11675
      }
11810
      }
11676
    }
11811
    }
11677
 
11812
 
-
 
11813
    public void getBulkPricingForItems(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getBulkPricingForItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
11814
      checkReady();
-
 
11815
      getBulkPricingForItems_call method_call = new getBulkPricingForItems_call(itemIds, resultHandler, this, ___protocolFactory, ___transport);
-
 
11816
      this.___currentMethod = method_call;
-
 
11817
      ___manager.call(method_call);
-
 
11818
    }
-
 
11819
 
-
 
11820
    public static class getBulkPricingForItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11821
      private List<Long> itemIds;
-
 
11822
      public getBulkPricingForItems_call(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getBulkPricingForItems_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 {
-
 
11823
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11824
        this.itemIds = itemIds;
-
 
11825
      }
-
 
11826
 
-
 
11827
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11828
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBulkPricingForItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11829
        getBulkPricingForItems_args args = new getBulkPricingForItems_args();
-
 
11830
        args.setItemIds(itemIds);
-
 
11831
        args.write(prot);
-
 
11832
        prot.writeMessageEnd();
-
 
11833
      }
-
 
11834
 
-
 
11835
      public Map<Long,List<BulkItemPricing>> getResult() throws org.apache.thrift.TException {
-
 
11836
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11837
          throw new IllegalStateException("Method call not finished!");
-
 
11838
        }
-
 
11839
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11840
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11841
        return (new Client(prot)).recv_getBulkPricingForItems();
-
 
11842
      }
-
 
11843
    }
-
 
11844
 
-
 
11845
    public void addBulkPricingForItem(BulkItemPricing bulkItemPricing, org.apache.thrift.async.AsyncMethodCallback<addBulkPricingForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
11846
      checkReady();
-
 
11847
      addBulkPricingForItem_call method_call = new addBulkPricingForItem_call(bulkItemPricing, resultHandler, this, ___protocolFactory, ___transport);
-
 
11848
      this.___currentMethod = method_call;
-
 
11849
      ___manager.call(method_call);
-
 
11850
    }
-
 
11851
 
-
 
11852
    public static class addBulkPricingForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11853
      private BulkItemPricing bulkItemPricing;
-
 
11854
      public addBulkPricingForItem_call(BulkItemPricing bulkItemPricing, org.apache.thrift.async.AsyncMethodCallback<addBulkPricingForItem_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 {
-
 
11855
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11856
        this.bulkItemPricing = bulkItemPricing;
-
 
11857
      }
-
 
11858
 
-
 
11859
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11860
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBulkPricingForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11861
        addBulkPricingForItem_args args = new addBulkPricingForItem_args();
-
 
11862
        args.setBulkItemPricing(bulkItemPricing);
-
 
11863
        args.write(prot);
-
 
11864
        prot.writeMessageEnd();
-
 
11865
      }
-
 
11866
 
-
 
11867
      public BulkItemPricing getResult() throws org.apache.thrift.TException {
-
 
11868
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11869
          throw new IllegalStateException("Method call not finished!");
-
 
11870
        }
-
 
11871
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11872
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11873
        return (new Client(prot)).recv_addBulkPricingForItem();
-
 
11874
      }
-
 
11875
    }
-
 
11876
 
-
 
11877
    public void deleteBulkPricingForItemById(long id, org.apache.thrift.async.AsyncMethodCallback<deleteBulkPricingForItemById_call> resultHandler) throws org.apache.thrift.TException {
-
 
11878
      checkReady();
-
 
11879
      deleteBulkPricingForItemById_call method_call = new deleteBulkPricingForItemById_call(id, resultHandler, this, ___protocolFactory, ___transport);
-
 
11880
      this.___currentMethod = method_call;
-
 
11881
      ___manager.call(method_call);
-
 
11882
    }
-
 
11883
 
-
 
11884
    public static class deleteBulkPricingForItemById_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11885
      private long id;
-
 
11886
      public deleteBulkPricingForItemById_call(long id, org.apache.thrift.async.AsyncMethodCallback<deleteBulkPricingForItemById_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 {
-
 
11887
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11888
        this.id = id;
-
 
11889
      }
-
 
11890
 
-
 
11891
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11892
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteBulkPricingForItemById", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11893
        deleteBulkPricingForItemById_args args = new deleteBulkPricingForItemById_args();
-
 
11894
        args.setId(id);
-
 
11895
        args.write(prot);
-
 
11896
        prot.writeMessageEnd();
-
 
11897
      }
-
 
11898
 
-
 
11899
      public boolean getResult() throws org.apache.thrift.TException {
-
 
11900
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11901
          throw new IllegalStateException("Method call not finished!");
-
 
11902
        }
-
 
11903
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11904
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11905
        return (new Client(prot)).recv_deleteBulkPricingForItemById();
-
 
11906
      }
-
 
11907
    }
-
 
11908
 
-
 
11909
    public void deleteBulkPricingForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<deleteBulkPricingForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
11910
      checkReady();
-
 
11911
      deleteBulkPricingForItem_call method_call = new deleteBulkPricingForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
11912
      this.___currentMethod = method_call;
-
 
11913
      ___manager.call(method_call);
-
 
11914
    }
-
 
11915
 
-
 
11916
    public static class deleteBulkPricingForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11917
      private long item_id;
-
 
11918
      public deleteBulkPricingForItem_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<deleteBulkPricingForItem_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 {
-
 
11919
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11920
        this.item_id = item_id;
-
 
11921
      }
-
 
11922
 
-
 
11923
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11924
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteBulkPricingForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11925
        deleteBulkPricingForItem_args args = new deleteBulkPricingForItem_args();
-
 
11926
        args.setItem_id(item_id);
-
 
11927
        args.write(prot);
-
 
11928
        prot.writeMessageEnd();
-
 
11929
      }
-
 
11930
 
-
 
11931
      public boolean getResult() throws org.apache.thrift.TException {
-
 
11932
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11933
          throw new IllegalStateException("Method call not finished!");
-
 
11934
        }
-
 
11935
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11936
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11937
        return (new Client(prot)).recv_deleteBulkPricingForItem();
-
 
11938
      }
-
 
11939
    }
-
 
11940
 
-
 
11941
    public void getBulkPricingByItemId(long item_id, org.apache.thrift.async.AsyncMethodCallback<getBulkPricingByItemId_call> resultHandler) throws org.apache.thrift.TException {
-
 
11942
      checkReady();
-
 
11943
      getBulkPricingByItemId_call method_call = new getBulkPricingByItemId_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
11944
      this.___currentMethod = method_call;
-
 
11945
      ___manager.call(method_call);
-
 
11946
    }
-
 
11947
 
-
 
11948
    public static class getBulkPricingByItemId_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
11949
      private long item_id;
-
 
11950
      public getBulkPricingByItemId_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getBulkPricingByItemId_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 {
-
 
11951
        super(client, protocolFactory, transport, resultHandler, false);
-
 
11952
        this.item_id = item_id;
-
 
11953
      }
-
 
11954
 
-
 
11955
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
11956
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBulkPricingByItemId", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
11957
        getBulkPricingByItemId_args args = new getBulkPricingByItemId_args();
-
 
11958
        args.setItem_id(item_id);
-
 
11959
        args.write(prot);
-
 
11960
        prot.writeMessageEnd();
-
 
11961
      }
-
 
11962
 
-
 
11963
      public List<BulkItemPricing> getResult() throws org.apache.thrift.TException {
-
 
11964
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
11965
          throw new IllegalStateException("Method call not finished!");
-
 
11966
        }
-
 
11967
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
11968
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
11969
        return (new Client(prot)).recv_getBulkPricingByItemId();
-
 
11970
      }
-
 
11971
    }
-
 
11972
 
11678
  }
11973
  }
11679
 
11974
 
11680
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11975
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
11681
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11976
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
11682
    public Processor(I iface) {
11977
    public Processor(I iface) {
Line 11875... Line 12170...
11875
      processMap.put("getHsItem", new getHsItem());
12170
      processMap.put("getHsItem", new getHsItem());
11876
      processMap.put("updateHsItem", new updateHsItem());
12171
      processMap.put("updateHsItem", new updateHsItem());
11877
      processMap.put("getPricingForDtr", new getPricingForDtr());
12172
      processMap.put("getPricingForDtr", new getPricingForDtr());
11878
      processMap.put("getAllItemstoListOnFbd", new getAllItemstoListOnFbd());
12173
      processMap.put("getAllItemstoListOnFbd", new getAllItemstoListOnFbd());
11879
      processMap.put("getAllFbdListedItems", new getAllFbdListedItems());
12174
      processMap.put("getAllFbdListedItems", new getAllFbdListedItems());
-
 
12175
      processMap.put("getBulkPricingForItems", new getBulkPricingForItems());
-
 
12176
      processMap.put("addBulkPricingForItem", new addBulkPricingForItem());
-
 
12177
      processMap.put("deleteBulkPricingForItemById", new deleteBulkPricingForItemById());
-
 
12178
      processMap.put("deleteBulkPricingForItem", new deleteBulkPricingForItem());
-
 
12179
      processMap.put("getBulkPricingByItemId", new getBulkPricingByItemId());
11880
      return processMap;
12180
      return processMap;
11881
    }
12181
    }
11882
 
12182
 
11883
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
12183
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
11884
      public addItem() {
12184
      public addItem() {
Line 15149... Line 15449...
15149
        result.success = iface.getAllFbdListedItems();
15449
        result.success = iface.getAllFbdListedItems();
15150
        return result;
15450
        return result;
15151
      }
15451
      }
15152
    }
15452
    }
15153
 
15453
 
-
 
15454
    private static class getBulkPricingForItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBulkPricingForItems_args> {
-
 
15455
      public getBulkPricingForItems() {
-
 
15456
        super("getBulkPricingForItems");
-
 
15457
      }
-
 
15458
 
-
 
15459
      protected getBulkPricingForItems_args getEmptyArgsInstance() {
-
 
15460
        return new getBulkPricingForItems_args();
-
 
15461
      }
-
 
15462
 
-
 
15463
      protected getBulkPricingForItems_result getResult(I iface, getBulkPricingForItems_args args) throws org.apache.thrift.TException {
-
 
15464
        getBulkPricingForItems_result result = new getBulkPricingForItems_result();
-
 
15465
        result.success = iface.getBulkPricingForItems(args.itemIds);
-
 
15466
        return result;
-
 
15467
      }
-
 
15468
    }
-
 
15469
 
-
 
15470
    private static class addBulkPricingForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBulkPricingForItem_args> {
-
 
15471
      public addBulkPricingForItem() {
-
 
15472
        super("addBulkPricingForItem");
-
 
15473
      }
-
 
15474
 
-
 
15475
      protected addBulkPricingForItem_args getEmptyArgsInstance() {
-
 
15476
        return new addBulkPricingForItem_args();
-
 
15477
      }
-
 
15478
 
-
 
15479
      protected addBulkPricingForItem_result getResult(I iface, addBulkPricingForItem_args args) throws org.apache.thrift.TException {
-
 
15480
        addBulkPricingForItem_result result = new addBulkPricingForItem_result();
-
 
15481
        result.success = iface.addBulkPricingForItem(args.bulkItemPricing);
-
 
15482
        return result;
-
 
15483
      }
-
 
15484
    }
-
 
15485
 
-
 
15486
    private static class deleteBulkPricingForItemById<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteBulkPricingForItemById_args> {
-
 
15487
      public deleteBulkPricingForItemById() {
-
 
15488
        super("deleteBulkPricingForItemById");
-
 
15489
      }
-
 
15490
 
-
 
15491
      protected deleteBulkPricingForItemById_args getEmptyArgsInstance() {
-
 
15492
        return new deleteBulkPricingForItemById_args();
-
 
15493
      }
-
 
15494
 
-
 
15495
      protected deleteBulkPricingForItemById_result getResult(I iface, deleteBulkPricingForItemById_args args) throws org.apache.thrift.TException {
-
 
15496
        deleteBulkPricingForItemById_result result = new deleteBulkPricingForItemById_result();
-
 
15497
        result.success = iface.deleteBulkPricingForItemById(args.id);
-
 
15498
        result.setSuccessIsSet(true);
-
 
15499
        return result;
-
 
15500
      }
-
 
15501
    }
-
 
15502
 
-
 
15503
    private static class deleteBulkPricingForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteBulkPricingForItem_args> {
-
 
15504
      public deleteBulkPricingForItem() {
-
 
15505
        super("deleteBulkPricingForItem");
-
 
15506
      }
-
 
15507
 
-
 
15508
      protected deleteBulkPricingForItem_args getEmptyArgsInstance() {
-
 
15509
        return new deleteBulkPricingForItem_args();
-
 
15510
      }
-
 
15511
 
-
 
15512
      protected deleteBulkPricingForItem_result getResult(I iface, deleteBulkPricingForItem_args args) throws org.apache.thrift.TException {
-
 
15513
        deleteBulkPricingForItem_result result = new deleteBulkPricingForItem_result();
-
 
15514
        result.success = iface.deleteBulkPricingForItem(args.item_id);
-
 
15515
        result.setSuccessIsSet(true);
-
 
15516
        return result;
-
 
15517
      }
-
 
15518
    }
-
 
15519
 
-
 
15520
    private static class getBulkPricingByItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBulkPricingByItemId_args> {
-
 
15521
      public getBulkPricingByItemId() {
-
 
15522
        super("getBulkPricingByItemId");
-
 
15523
      }
-
 
15524
 
-
 
15525
      protected getBulkPricingByItemId_args getEmptyArgsInstance() {
-
 
15526
        return new getBulkPricingByItemId_args();
-
 
15527
      }
-
 
15528
 
-
 
15529
      protected getBulkPricingByItemId_result getResult(I iface, getBulkPricingByItemId_args args) throws org.apache.thrift.TException {
-
 
15530
        getBulkPricingByItemId_result result = new getBulkPricingByItemId_result();
-
 
15531
        result.success = iface.getBulkPricingByItemId(args.item_id);
-
 
15532
        return result;
-
 
15533
      }
-
 
15534
    }
-
 
15535
 
15154
  }
15536
  }
15155
 
15537
 
15156
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
15538
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
15157
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
15539
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
15158
 
15540
 
Line 136006... Line 136388...
136006
      boolean first = true;
136388
      boolean first = true;
136007
 
136389
 
136008
      sb.append("success:");
136390
      sb.append("success:");
136009
      if (this.success == null) {
136391
      if (this.success == null) {
136010
        sb.append("null");
136392
        sb.append("null");
-
 
136393
      } else {
-
 
136394
        sb.append(this.success);
-
 
136395
      }
-
 
136396
      first = false;
-
 
136397
      sb.append(")");
-
 
136398
      return sb.toString();
-
 
136399
    }
-
 
136400
 
-
 
136401
    public void validate() throws org.apache.thrift.TException {
-
 
136402
      // check for required fields
-
 
136403
    }
-
 
136404
 
-
 
136405
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
136406
      try {
-
 
136407
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
136408
      } catch (org.apache.thrift.TException te) {
-
 
136409
        throw new java.io.IOException(te);
-
 
136410
      }
-
 
136411
    }
-
 
136412
 
-
 
136413
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
136414
      try {
-
 
136415
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
136416
      } catch (org.apache.thrift.TException te) {
-
 
136417
        throw new java.io.IOException(te);
-
 
136418
      }
-
 
136419
    }
-
 
136420
 
-
 
136421
  }
-
 
136422
 
-
 
136423
  public static class getBulkPricingForItems_args implements org.apache.thrift.TBase<getBulkPricingForItems_args, getBulkPricingForItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
136424
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBulkPricingForItems_args");
-
 
136425
 
-
 
136426
    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);
-
 
136427
 
-
 
136428
    private List<Long> itemIds; // required
-
 
136429
 
-
 
136430
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
136431
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
136432
      ITEM_IDS((short)1, "itemIds");
-
 
136433
 
-
 
136434
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
136435
 
-
 
136436
      static {
-
 
136437
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
136438
          byName.put(field.getFieldName(), field);
-
 
136439
        }
-
 
136440
      }
-
 
136441
 
-
 
136442
      /**
-
 
136443
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
136444
       */
-
 
136445
      public static _Fields findByThriftId(int fieldId) {
-
 
136446
        switch(fieldId) {
-
 
136447
          case 1: // ITEM_IDS
-
 
136448
            return ITEM_IDS;
-
 
136449
          default:
-
 
136450
            return null;
-
 
136451
        }
-
 
136452
      }
-
 
136453
 
-
 
136454
      /**
-
 
136455
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
136456
       * if it is not found.
-
 
136457
       */
-
 
136458
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
136459
        _Fields fields = findByThriftId(fieldId);
-
 
136460
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
136461
        return fields;
-
 
136462
      }
-
 
136463
 
-
 
136464
      /**
-
 
136465
       * Find the _Fields constant that matches name, or null if its not found.
-
 
136466
       */
-
 
136467
      public static _Fields findByName(String name) {
-
 
136468
        return byName.get(name);
-
 
136469
      }
-
 
136470
 
-
 
136471
      private final short _thriftId;
-
 
136472
      private final String _fieldName;
-
 
136473
 
-
 
136474
      _Fields(short thriftId, String fieldName) {
-
 
136475
        _thriftId = thriftId;
-
 
136476
        _fieldName = fieldName;
-
 
136477
      }
-
 
136478
 
-
 
136479
      public short getThriftFieldId() {
-
 
136480
        return _thriftId;
-
 
136481
      }
-
 
136482
 
-
 
136483
      public String getFieldName() {
-
 
136484
        return _fieldName;
-
 
136485
      }
-
 
136486
    }
-
 
136487
 
-
 
136488
    // isset id assignments
-
 
136489
 
-
 
136490
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
136491
    static {
-
 
136492
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
136493
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
136494
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
136495
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
136496
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
136497
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBulkPricingForItems_args.class, metaDataMap);
-
 
136498
    }
-
 
136499
 
-
 
136500
    public getBulkPricingForItems_args() {
-
 
136501
    }
-
 
136502
 
-
 
136503
    public getBulkPricingForItems_args(
-
 
136504
      List<Long> itemIds)
-
 
136505
    {
-
 
136506
      this();
-
 
136507
      this.itemIds = itemIds;
-
 
136508
    }
-
 
136509
 
-
 
136510
    /**
-
 
136511
     * Performs a deep copy on <i>other</i>.
-
 
136512
     */
-
 
136513
    public getBulkPricingForItems_args(getBulkPricingForItems_args other) {
-
 
136514
      if (other.isSetItemIds()) {
-
 
136515
        List<Long> __this__itemIds = new ArrayList<Long>();
-
 
136516
        for (Long other_element : other.itemIds) {
-
 
136517
          __this__itemIds.add(other_element);
-
 
136518
        }
-
 
136519
        this.itemIds = __this__itemIds;
-
 
136520
      }
-
 
136521
    }
-
 
136522
 
-
 
136523
    public getBulkPricingForItems_args deepCopy() {
-
 
136524
      return new getBulkPricingForItems_args(this);
-
 
136525
    }
-
 
136526
 
-
 
136527
    @Override
-
 
136528
    public void clear() {
-
 
136529
      this.itemIds = null;
-
 
136530
    }
-
 
136531
 
-
 
136532
    public int getItemIdsSize() {
-
 
136533
      return (this.itemIds == null) ? 0 : this.itemIds.size();
-
 
136534
    }
-
 
136535
 
-
 
136536
    public java.util.Iterator<Long> getItemIdsIterator() {
-
 
136537
      return (this.itemIds == null) ? null : this.itemIds.iterator();
-
 
136538
    }
-
 
136539
 
-
 
136540
    public void addToItemIds(long elem) {
-
 
136541
      if (this.itemIds == null) {
-
 
136542
        this.itemIds = new ArrayList<Long>();
-
 
136543
      }
-
 
136544
      this.itemIds.add(elem);
-
 
136545
    }
-
 
136546
 
-
 
136547
    public List<Long> getItemIds() {
-
 
136548
      return this.itemIds;
-
 
136549
    }
-
 
136550
 
-
 
136551
    public void setItemIds(List<Long> itemIds) {
-
 
136552
      this.itemIds = itemIds;
-
 
136553
    }
-
 
136554
 
-
 
136555
    public void unsetItemIds() {
-
 
136556
      this.itemIds = null;
-
 
136557
    }
-
 
136558
 
-
 
136559
    /** Returns true if field itemIds is set (has been assigned a value) and false otherwise */
-
 
136560
    public boolean isSetItemIds() {
-
 
136561
      return this.itemIds != null;
-
 
136562
    }
-
 
136563
 
-
 
136564
    public void setItemIdsIsSet(boolean value) {
-
 
136565
      if (!value) {
-
 
136566
        this.itemIds = null;
-
 
136567
      }
-
 
136568
    }
-
 
136569
 
-
 
136570
    public void setFieldValue(_Fields field, Object value) {
-
 
136571
      switch (field) {
-
 
136572
      case ITEM_IDS:
-
 
136573
        if (value == null) {
-
 
136574
          unsetItemIds();
-
 
136575
        } else {
-
 
136576
          setItemIds((List<Long>)value);
-
 
136577
        }
-
 
136578
        break;
-
 
136579
 
-
 
136580
      }
-
 
136581
    }
-
 
136582
 
-
 
136583
    public Object getFieldValue(_Fields field) {
-
 
136584
      switch (field) {
-
 
136585
      case ITEM_IDS:
-
 
136586
        return getItemIds();
-
 
136587
 
-
 
136588
      }
-
 
136589
      throw new IllegalStateException();
-
 
136590
    }
-
 
136591
 
-
 
136592
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
136593
    public boolean isSet(_Fields field) {
-
 
136594
      if (field == null) {
-
 
136595
        throw new IllegalArgumentException();
-
 
136596
      }
-
 
136597
 
-
 
136598
      switch (field) {
-
 
136599
      case ITEM_IDS:
-
 
136600
        return isSetItemIds();
-
 
136601
      }
-
 
136602
      throw new IllegalStateException();
-
 
136603
    }
-
 
136604
 
-
 
136605
    @Override
-
 
136606
    public boolean equals(Object that) {
-
 
136607
      if (that == null)
-
 
136608
        return false;
-
 
136609
      if (that instanceof getBulkPricingForItems_args)
-
 
136610
        return this.equals((getBulkPricingForItems_args)that);
-
 
136611
      return false;
-
 
136612
    }
-
 
136613
 
-
 
136614
    public boolean equals(getBulkPricingForItems_args that) {
-
 
136615
      if (that == null)
-
 
136616
        return false;
-
 
136617
 
-
 
136618
      boolean this_present_itemIds = true && this.isSetItemIds();
-
 
136619
      boolean that_present_itemIds = true && that.isSetItemIds();
-
 
136620
      if (this_present_itemIds || that_present_itemIds) {
-
 
136621
        if (!(this_present_itemIds && that_present_itemIds))
-
 
136622
          return false;
-
 
136623
        if (!this.itemIds.equals(that.itemIds))
-
 
136624
          return false;
-
 
136625
      }
-
 
136626
 
-
 
136627
      return true;
-
 
136628
    }
-
 
136629
 
-
 
136630
    @Override
-
 
136631
    public int hashCode() {
-
 
136632
      return 0;
-
 
136633
    }
-
 
136634
 
-
 
136635
    public int compareTo(getBulkPricingForItems_args other) {
-
 
136636
      if (!getClass().equals(other.getClass())) {
-
 
136637
        return getClass().getName().compareTo(other.getClass().getName());
-
 
136638
      }
-
 
136639
 
-
 
136640
      int lastComparison = 0;
-
 
136641
      getBulkPricingForItems_args typedOther = (getBulkPricingForItems_args)other;
-
 
136642
 
-
 
136643
      lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());
-
 
136644
      if (lastComparison != 0) {
-
 
136645
        return lastComparison;
-
 
136646
      }
-
 
136647
      if (isSetItemIds()) {
-
 
136648
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);
-
 
136649
        if (lastComparison != 0) {
-
 
136650
          return lastComparison;
-
 
136651
        }
-
 
136652
      }
-
 
136653
      return 0;
-
 
136654
    }
-
 
136655
 
-
 
136656
    public _Fields fieldForId(int fieldId) {
-
 
136657
      return _Fields.findByThriftId(fieldId);
-
 
136658
    }
-
 
136659
 
-
 
136660
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
136661
      org.apache.thrift.protocol.TField field;
-
 
136662
      iprot.readStructBegin();
-
 
136663
      while (true)
-
 
136664
      {
-
 
136665
        field = iprot.readFieldBegin();
-
 
136666
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
136667
          break;
-
 
136668
        }
-
 
136669
        switch (field.id) {
-
 
136670
          case 1: // ITEM_IDS
-
 
136671
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
136672
              {
-
 
136673
                org.apache.thrift.protocol.TList _list492 = iprot.readListBegin();
-
 
136674
                this.itemIds = new ArrayList<Long>(_list492.size);
-
 
136675
                for (int _i493 = 0; _i493 < _list492.size; ++_i493)
-
 
136676
                {
-
 
136677
                  long _elem494; // required
-
 
136678
                  _elem494 = iprot.readI64();
-
 
136679
                  this.itemIds.add(_elem494);
-
 
136680
                }
-
 
136681
                iprot.readListEnd();
-
 
136682
              }
-
 
136683
            } else { 
-
 
136684
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
136685
            }
-
 
136686
            break;
-
 
136687
          default:
-
 
136688
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
136689
        }
-
 
136690
        iprot.readFieldEnd();
-
 
136691
      }
-
 
136692
      iprot.readStructEnd();
-
 
136693
      validate();
-
 
136694
    }
-
 
136695
 
-
 
136696
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
136697
      validate();
-
 
136698
 
-
 
136699
      oprot.writeStructBegin(STRUCT_DESC);
-
 
136700
      if (this.itemIds != null) {
-
 
136701
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
-
 
136702
        {
-
 
136703
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
-
 
136704
          for (long _iter495 : this.itemIds)
-
 
136705
          {
-
 
136706
            oprot.writeI64(_iter495);
-
 
136707
          }
-
 
136708
          oprot.writeListEnd();
-
 
136709
        }
-
 
136710
        oprot.writeFieldEnd();
-
 
136711
      }
-
 
136712
      oprot.writeFieldStop();
-
 
136713
      oprot.writeStructEnd();
-
 
136714
    }
-
 
136715
 
-
 
136716
    @Override
-
 
136717
    public String toString() {
-
 
136718
      StringBuilder sb = new StringBuilder("getBulkPricingForItems_args(");
-
 
136719
      boolean first = true;
-
 
136720
 
-
 
136721
      sb.append("itemIds:");
-
 
136722
      if (this.itemIds == null) {
-
 
136723
        sb.append("null");
-
 
136724
      } else {
-
 
136725
        sb.append(this.itemIds);
-
 
136726
      }
-
 
136727
      first = false;
-
 
136728
      sb.append(")");
-
 
136729
      return sb.toString();
-
 
136730
    }
-
 
136731
 
-
 
136732
    public void validate() throws org.apache.thrift.TException {
-
 
136733
      // check for required fields
-
 
136734
    }
-
 
136735
 
-
 
136736
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
136737
      try {
-
 
136738
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
136739
      } catch (org.apache.thrift.TException te) {
-
 
136740
        throw new java.io.IOException(te);
-
 
136741
      }
-
 
136742
    }
-
 
136743
 
-
 
136744
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
136745
      try {
-
 
136746
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
136747
      } catch (org.apache.thrift.TException te) {
-
 
136748
        throw new java.io.IOException(te);
-
 
136749
      }
-
 
136750
    }
-
 
136751
 
-
 
136752
  }
-
 
136753
 
-
 
136754
  public static class getBulkPricingForItems_result implements org.apache.thrift.TBase<getBulkPricingForItems_result, getBulkPricingForItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
136755
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBulkPricingForItems_result");
-
 
136756
 
-
 
136757
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
-
 
136758
 
-
 
136759
    private Map<Long,List<BulkItemPricing>> success; // required
-
 
136760
 
-
 
136761
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
136762
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
136763
      SUCCESS((short)0, "success");
-
 
136764
 
-
 
136765
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
136766
 
-
 
136767
      static {
-
 
136768
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
136769
          byName.put(field.getFieldName(), field);
-
 
136770
        }
-
 
136771
      }
-
 
136772
 
-
 
136773
      /**
-
 
136774
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
136775
       */
-
 
136776
      public static _Fields findByThriftId(int fieldId) {
-
 
136777
        switch(fieldId) {
-
 
136778
          case 0: // SUCCESS
-
 
136779
            return SUCCESS;
-
 
136780
          default:
-
 
136781
            return null;
-
 
136782
        }
-
 
136783
      }
-
 
136784
 
-
 
136785
      /**
-
 
136786
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
136787
       * if it is not found.
-
 
136788
       */
-
 
136789
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
136790
        _Fields fields = findByThriftId(fieldId);
-
 
136791
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
136792
        return fields;
-
 
136793
      }
-
 
136794
 
-
 
136795
      /**
-
 
136796
       * Find the _Fields constant that matches name, or null if its not found.
-
 
136797
       */
-
 
136798
      public static _Fields findByName(String name) {
-
 
136799
        return byName.get(name);
-
 
136800
      }
-
 
136801
 
-
 
136802
      private final short _thriftId;
-
 
136803
      private final String _fieldName;
-
 
136804
 
-
 
136805
      _Fields(short thriftId, String fieldName) {
-
 
136806
        _thriftId = thriftId;
-
 
136807
        _fieldName = fieldName;
-
 
136808
      }
-
 
136809
 
-
 
136810
      public short getThriftFieldId() {
-
 
136811
        return _thriftId;
-
 
136812
      }
-
 
136813
 
-
 
136814
      public String getFieldName() {
-
 
136815
        return _fieldName;
-
 
136816
      }
-
 
136817
    }
-
 
136818
 
-
 
136819
    // isset id assignments
-
 
136820
 
-
 
136821
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
136822
    static {
-
 
136823
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
136824
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
136825
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
136826
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
136827
              new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
136828
                  new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BulkItemPricing.class)))));
-
 
136829
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
136830
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBulkPricingForItems_result.class, metaDataMap);
-
 
136831
    }
-
 
136832
 
-
 
136833
    public getBulkPricingForItems_result() {
-
 
136834
    }
-
 
136835
 
-
 
136836
    public getBulkPricingForItems_result(
-
 
136837
      Map<Long,List<BulkItemPricing>> success)
-
 
136838
    {
-
 
136839
      this();
-
 
136840
      this.success = success;
-
 
136841
    }
-
 
136842
 
-
 
136843
    /**
-
 
136844
     * Performs a deep copy on <i>other</i>.
-
 
136845
     */
-
 
136846
    public getBulkPricingForItems_result(getBulkPricingForItems_result other) {
-
 
136847
      if (other.isSetSuccess()) {
-
 
136848
        Map<Long,List<BulkItemPricing>> __this__success = new HashMap<Long,List<BulkItemPricing>>();
-
 
136849
        for (Map.Entry<Long, List<BulkItemPricing>> other_element : other.success.entrySet()) {
-
 
136850
 
-
 
136851
          Long other_element_key = other_element.getKey();
-
 
136852
          List<BulkItemPricing> other_element_value = other_element.getValue();
-
 
136853
 
-
 
136854
          Long __this__success_copy_key = other_element_key;
-
 
136855
 
-
 
136856
          List<BulkItemPricing> __this__success_copy_value = new ArrayList<BulkItemPricing>();
-
 
136857
          for (BulkItemPricing other_element_value_element : other_element_value) {
-
 
136858
            __this__success_copy_value.add(new BulkItemPricing(other_element_value_element));
-
 
136859
          }
-
 
136860
 
-
 
136861
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
136862
        }
-
 
136863
        this.success = __this__success;
-
 
136864
      }
-
 
136865
    }
-
 
136866
 
-
 
136867
    public getBulkPricingForItems_result deepCopy() {
-
 
136868
      return new getBulkPricingForItems_result(this);
-
 
136869
    }
-
 
136870
 
-
 
136871
    @Override
-
 
136872
    public void clear() {
-
 
136873
      this.success = null;
-
 
136874
    }
-
 
136875
 
-
 
136876
    public int getSuccessSize() {
-
 
136877
      return (this.success == null) ? 0 : this.success.size();
-
 
136878
    }
-
 
136879
 
-
 
136880
    public void putToSuccess(long key, List<BulkItemPricing> val) {
-
 
136881
      if (this.success == null) {
-
 
136882
        this.success = new HashMap<Long,List<BulkItemPricing>>();
-
 
136883
      }
-
 
136884
      this.success.put(key, val);
-
 
136885
    }
-
 
136886
 
-
 
136887
    public Map<Long,List<BulkItemPricing>> getSuccess() {
-
 
136888
      return this.success;
-
 
136889
    }
-
 
136890
 
-
 
136891
    public void setSuccess(Map<Long,List<BulkItemPricing>> success) {
-
 
136892
      this.success = success;
-
 
136893
    }
-
 
136894
 
-
 
136895
    public void unsetSuccess() {
-
 
136896
      this.success = null;
-
 
136897
    }
-
 
136898
 
-
 
136899
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
136900
    public boolean isSetSuccess() {
-
 
136901
      return this.success != null;
-
 
136902
    }
-
 
136903
 
-
 
136904
    public void setSuccessIsSet(boolean value) {
-
 
136905
      if (!value) {
-
 
136906
        this.success = null;
-
 
136907
      }
-
 
136908
    }
-
 
136909
 
-
 
136910
    public void setFieldValue(_Fields field, Object value) {
-
 
136911
      switch (field) {
-
 
136912
      case SUCCESS:
-
 
136913
        if (value == null) {
-
 
136914
          unsetSuccess();
-
 
136915
        } else {
-
 
136916
          setSuccess((Map<Long,List<BulkItemPricing>>)value);
-
 
136917
        }
-
 
136918
        break;
-
 
136919
 
-
 
136920
      }
-
 
136921
    }
-
 
136922
 
-
 
136923
    public Object getFieldValue(_Fields field) {
-
 
136924
      switch (field) {
-
 
136925
      case SUCCESS:
-
 
136926
        return getSuccess();
-
 
136927
 
-
 
136928
      }
-
 
136929
      throw new IllegalStateException();
-
 
136930
    }
-
 
136931
 
-
 
136932
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
136933
    public boolean isSet(_Fields field) {
-
 
136934
      if (field == null) {
-
 
136935
        throw new IllegalArgumentException();
-
 
136936
      }
-
 
136937
 
-
 
136938
      switch (field) {
-
 
136939
      case SUCCESS:
-
 
136940
        return isSetSuccess();
-
 
136941
      }
-
 
136942
      throw new IllegalStateException();
-
 
136943
    }
-
 
136944
 
-
 
136945
    @Override
-
 
136946
    public boolean equals(Object that) {
-
 
136947
      if (that == null)
-
 
136948
        return false;
-
 
136949
      if (that instanceof getBulkPricingForItems_result)
-
 
136950
        return this.equals((getBulkPricingForItems_result)that);
-
 
136951
      return false;
-
 
136952
    }
-
 
136953
 
-
 
136954
    public boolean equals(getBulkPricingForItems_result that) {
-
 
136955
      if (that == null)
-
 
136956
        return false;
-
 
136957
 
-
 
136958
      boolean this_present_success = true && this.isSetSuccess();
-
 
136959
      boolean that_present_success = true && that.isSetSuccess();
-
 
136960
      if (this_present_success || that_present_success) {
-
 
136961
        if (!(this_present_success && that_present_success))
-
 
136962
          return false;
-
 
136963
        if (!this.success.equals(that.success))
-
 
136964
          return false;
-
 
136965
      }
-
 
136966
 
-
 
136967
      return true;
-
 
136968
    }
-
 
136969
 
-
 
136970
    @Override
-
 
136971
    public int hashCode() {
-
 
136972
      return 0;
-
 
136973
    }
-
 
136974
 
-
 
136975
    public int compareTo(getBulkPricingForItems_result other) {
-
 
136976
      if (!getClass().equals(other.getClass())) {
-
 
136977
        return getClass().getName().compareTo(other.getClass().getName());
-
 
136978
      }
-
 
136979
 
-
 
136980
      int lastComparison = 0;
-
 
136981
      getBulkPricingForItems_result typedOther = (getBulkPricingForItems_result)other;
-
 
136982
 
-
 
136983
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
136984
      if (lastComparison != 0) {
-
 
136985
        return lastComparison;
-
 
136986
      }
-
 
136987
      if (isSetSuccess()) {
-
 
136988
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
136989
        if (lastComparison != 0) {
-
 
136990
          return lastComparison;
-
 
136991
        }
-
 
136992
      }
-
 
136993
      return 0;
-
 
136994
    }
-
 
136995
 
-
 
136996
    public _Fields fieldForId(int fieldId) {
-
 
136997
      return _Fields.findByThriftId(fieldId);
-
 
136998
    }
-
 
136999
 
-
 
137000
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
137001
      org.apache.thrift.protocol.TField field;
-
 
137002
      iprot.readStructBegin();
-
 
137003
      while (true)
-
 
137004
      {
-
 
137005
        field = iprot.readFieldBegin();
-
 
137006
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
137007
          break;
-
 
137008
        }
-
 
137009
        switch (field.id) {
-
 
137010
          case 0: // SUCCESS
-
 
137011
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
137012
              {
-
 
137013
                org.apache.thrift.protocol.TMap _map496 = iprot.readMapBegin();
-
 
137014
                this.success = new HashMap<Long,List<BulkItemPricing>>(2*_map496.size);
-
 
137015
                for (int _i497 = 0; _i497 < _map496.size; ++_i497)
-
 
137016
                {
-
 
137017
                  long _key498; // required
-
 
137018
                  List<BulkItemPricing> _val499; // required
-
 
137019
                  _key498 = iprot.readI64();
-
 
137020
                  {
-
 
137021
                    org.apache.thrift.protocol.TList _list500 = iprot.readListBegin();
-
 
137022
                    _val499 = new ArrayList<BulkItemPricing>(_list500.size);
-
 
137023
                    for (int _i501 = 0; _i501 < _list500.size; ++_i501)
-
 
137024
                    {
-
 
137025
                      BulkItemPricing _elem502; // required
-
 
137026
                      _elem502 = new BulkItemPricing();
-
 
137027
                      _elem502.read(iprot);
-
 
137028
                      _val499.add(_elem502);
-
 
137029
                    }
-
 
137030
                    iprot.readListEnd();
-
 
137031
                  }
-
 
137032
                  this.success.put(_key498, _val499);
-
 
137033
                }
-
 
137034
                iprot.readMapEnd();
-
 
137035
              }
-
 
137036
            } else { 
-
 
137037
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
137038
            }
-
 
137039
            break;
-
 
137040
          default:
-
 
137041
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
137042
        }
-
 
137043
        iprot.readFieldEnd();
-
 
137044
      }
-
 
137045
      iprot.readStructEnd();
-
 
137046
      validate();
-
 
137047
    }
-
 
137048
 
-
 
137049
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
137050
      oprot.writeStructBegin(STRUCT_DESC);
-
 
137051
 
-
 
137052
      if (this.isSetSuccess()) {
-
 
137053
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
137054
        {
-
 
137055
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.LIST, this.success.size()));
-
 
137056
          for (Map.Entry<Long, List<BulkItemPricing>> _iter503 : this.success.entrySet())
-
 
137057
          {
-
 
137058
            oprot.writeI64(_iter503.getKey());
-
 
137059
            {
-
 
137060
              oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter503.getValue().size()));
-
 
137061
              for (BulkItemPricing _iter504 : _iter503.getValue())
-
 
137062
              {
-
 
137063
                _iter504.write(oprot);
-
 
137064
              }
-
 
137065
              oprot.writeListEnd();
-
 
137066
            }
-
 
137067
          }
-
 
137068
          oprot.writeMapEnd();
-
 
137069
        }
-
 
137070
        oprot.writeFieldEnd();
-
 
137071
      }
-
 
137072
      oprot.writeFieldStop();
-
 
137073
      oprot.writeStructEnd();
-
 
137074
    }
-
 
137075
 
-
 
137076
    @Override
-
 
137077
    public String toString() {
-
 
137078
      StringBuilder sb = new StringBuilder("getBulkPricingForItems_result(");
-
 
137079
      boolean first = true;
-
 
137080
 
-
 
137081
      sb.append("success:");
-
 
137082
      if (this.success == null) {
-
 
137083
        sb.append("null");
-
 
137084
      } else {
-
 
137085
        sb.append(this.success);
-
 
137086
      }
-
 
137087
      first = false;
-
 
137088
      sb.append(")");
-
 
137089
      return sb.toString();
-
 
137090
    }
-
 
137091
 
-
 
137092
    public void validate() throws org.apache.thrift.TException {
-
 
137093
      // check for required fields
-
 
137094
    }
-
 
137095
 
-
 
137096
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
137097
      try {
-
 
137098
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
137099
      } catch (org.apache.thrift.TException te) {
-
 
137100
        throw new java.io.IOException(te);
-
 
137101
      }
-
 
137102
    }
-
 
137103
 
-
 
137104
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
137105
      try {
-
 
137106
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
137107
      } catch (org.apache.thrift.TException te) {
-
 
137108
        throw new java.io.IOException(te);
-
 
137109
      }
-
 
137110
    }
-
 
137111
 
-
 
137112
  }
-
 
137113
 
-
 
137114
  public static class addBulkPricingForItem_args implements org.apache.thrift.TBase<addBulkPricingForItem_args, addBulkPricingForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
137115
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBulkPricingForItem_args");
-
 
137116
 
-
 
137117
    private static final org.apache.thrift.protocol.TField BULK_ITEM_PRICING_FIELD_DESC = new org.apache.thrift.protocol.TField("bulkItemPricing", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
137118
 
-
 
137119
    private BulkItemPricing bulkItemPricing; // required
-
 
137120
 
-
 
137121
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
137122
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
137123
      BULK_ITEM_PRICING((short)1, "bulkItemPricing");
-
 
137124
 
-
 
137125
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
137126
 
-
 
137127
      static {
-
 
137128
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
137129
          byName.put(field.getFieldName(), field);
-
 
137130
        }
-
 
137131
      }
-
 
137132
 
-
 
137133
      /**
-
 
137134
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
137135
       */
-
 
137136
      public static _Fields findByThriftId(int fieldId) {
-
 
137137
        switch(fieldId) {
-
 
137138
          case 1: // BULK_ITEM_PRICING
-
 
137139
            return BULK_ITEM_PRICING;
-
 
137140
          default:
-
 
137141
            return null;
-
 
137142
        }
-
 
137143
      }
-
 
137144
 
-
 
137145
      /**
-
 
137146
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
137147
       * if it is not found.
-
 
137148
       */
-
 
137149
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
137150
        _Fields fields = findByThriftId(fieldId);
-
 
137151
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
137152
        return fields;
-
 
137153
      }
-
 
137154
 
-
 
137155
      /**
-
 
137156
       * Find the _Fields constant that matches name, or null if its not found.
-
 
137157
       */
-
 
137158
      public static _Fields findByName(String name) {
-
 
137159
        return byName.get(name);
-
 
137160
      }
-
 
137161
 
-
 
137162
      private final short _thriftId;
-
 
137163
      private final String _fieldName;
-
 
137164
 
-
 
137165
      _Fields(short thriftId, String fieldName) {
-
 
137166
        _thriftId = thriftId;
-
 
137167
        _fieldName = fieldName;
-
 
137168
      }
-
 
137169
 
-
 
137170
      public short getThriftFieldId() {
-
 
137171
        return _thriftId;
-
 
137172
      }
-
 
137173
 
-
 
137174
      public String getFieldName() {
-
 
137175
        return _fieldName;
-
 
137176
      }
-
 
137177
    }
-
 
137178
 
-
 
137179
    // isset id assignments
-
 
137180
 
-
 
137181
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
137182
    static {
-
 
137183
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
137184
      tmpMap.put(_Fields.BULK_ITEM_PRICING, new org.apache.thrift.meta_data.FieldMetaData("bulkItemPricing", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
137185
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BulkItemPricing.class)));
-
 
137186
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
137187
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBulkPricingForItem_args.class, metaDataMap);
-
 
137188
    }
-
 
137189
 
-
 
137190
    public addBulkPricingForItem_args() {
-
 
137191
    }
-
 
137192
 
-
 
137193
    public addBulkPricingForItem_args(
-
 
137194
      BulkItemPricing bulkItemPricing)
-
 
137195
    {
-
 
137196
      this();
-
 
137197
      this.bulkItemPricing = bulkItemPricing;
-
 
137198
    }
-
 
137199
 
-
 
137200
    /**
-
 
137201
     * Performs a deep copy on <i>other</i>.
-
 
137202
     */
-
 
137203
    public addBulkPricingForItem_args(addBulkPricingForItem_args other) {
-
 
137204
      if (other.isSetBulkItemPricing()) {
-
 
137205
        this.bulkItemPricing = new BulkItemPricing(other.bulkItemPricing);
-
 
137206
      }
-
 
137207
    }
-
 
137208
 
-
 
137209
    public addBulkPricingForItem_args deepCopy() {
-
 
137210
      return new addBulkPricingForItem_args(this);
-
 
137211
    }
-
 
137212
 
-
 
137213
    @Override
-
 
137214
    public void clear() {
-
 
137215
      this.bulkItemPricing = null;
-
 
137216
    }
-
 
137217
 
-
 
137218
    public BulkItemPricing getBulkItemPricing() {
-
 
137219
      return this.bulkItemPricing;
-
 
137220
    }
-
 
137221
 
-
 
137222
    public void setBulkItemPricing(BulkItemPricing bulkItemPricing) {
-
 
137223
      this.bulkItemPricing = bulkItemPricing;
-
 
137224
    }
-
 
137225
 
-
 
137226
    public void unsetBulkItemPricing() {
-
 
137227
      this.bulkItemPricing = null;
-
 
137228
    }
-
 
137229
 
-
 
137230
    /** Returns true if field bulkItemPricing is set (has been assigned a value) and false otherwise */
-
 
137231
    public boolean isSetBulkItemPricing() {
-
 
137232
      return this.bulkItemPricing != null;
-
 
137233
    }
-
 
137234
 
-
 
137235
    public void setBulkItemPricingIsSet(boolean value) {
-
 
137236
      if (!value) {
-
 
137237
        this.bulkItemPricing = null;
-
 
137238
      }
-
 
137239
    }
-
 
137240
 
-
 
137241
    public void setFieldValue(_Fields field, Object value) {
-
 
137242
      switch (field) {
-
 
137243
      case BULK_ITEM_PRICING:
-
 
137244
        if (value == null) {
-
 
137245
          unsetBulkItemPricing();
-
 
137246
        } else {
-
 
137247
          setBulkItemPricing((BulkItemPricing)value);
-
 
137248
        }
-
 
137249
        break;
-
 
137250
 
-
 
137251
      }
-
 
137252
    }
-
 
137253
 
-
 
137254
    public Object getFieldValue(_Fields field) {
-
 
137255
      switch (field) {
-
 
137256
      case BULK_ITEM_PRICING:
-
 
137257
        return getBulkItemPricing();
-
 
137258
 
-
 
137259
      }
-
 
137260
      throw new IllegalStateException();
-
 
137261
    }
-
 
137262
 
-
 
137263
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
137264
    public boolean isSet(_Fields field) {
-
 
137265
      if (field == null) {
-
 
137266
        throw new IllegalArgumentException();
-
 
137267
      }
-
 
137268
 
-
 
137269
      switch (field) {
-
 
137270
      case BULK_ITEM_PRICING:
-
 
137271
        return isSetBulkItemPricing();
-
 
137272
      }
-
 
137273
      throw new IllegalStateException();
-
 
137274
    }
-
 
137275
 
-
 
137276
    @Override
-
 
137277
    public boolean equals(Object that) {
-
 
137278
      if (that == null)
-
 
137279
        return false;
-
 
137280
      if (that instanceof addBulkPricingForItem_args)
-
 
137281
        return this.equals((addBulkPricingForItem_args)that);
-
 
137282
      return false;
-
 
137283
    }
-
 
137284
 
-
 
137285
    public boolean equals(addBulkPricingForItem_args that) {
-
 
137286
      if (that == null)
-
 
137287
        return false;
-
 
137288
 
-
 
137289
      boolean this_present_bulkItemPricing = true && this.isSetBulkItemPricing();
-
 
137290
      boolean that_present_bulkItemPricing = true && that.isSetBulkItemPricing();
-
 
137291
      if (this_present_bulkItemPricing || that_present_bulkItemPricing) {
-
 
137292
        if (!(this_present_bulkItemPricing && that_present_bulkItemPricing))
-
 
137293
          return false;
-
 
137294
        if (!this.bulkItemPricing.equals(that.bulkItemPricing))
-
 
137295
          return false;
-
 
137296
      }
-
 
137297
 
-
 
137298
      return true;
-
 
137299
    }
-
 
137300
 
-
 
137301
    @Override
-
 
137302
    public int hashCode() {
-
 
137303
      return 0;
-
 
137304
    }
-
 
137305
 
-
 
137306
    public int compareTo(addBulkPricingForItem_args other) {
-
 
137307
      if (!getClass().equals(other.getClass())) {
-
 
137308
        return getClass().getName().compareTo(other.getClass().getName());
-
 
137309
      }
-
 
137310
 
-
 
137311
      int lastComparison = 0;
-
 
137312
      addBulkPricingForItem_args typedOther = (addBulkPricingForItem_args)other;
-
 
137313
 
-
 
137314
      lastComparison = Boolean.valueOf(isSetBulkItemPricing()).compareTo(typedOther.isSetBulkItemPricing());
-
 
137315
      if (lastComparison != 0) {
-
 
137316
        return lastComparison;
-
 
137317
      }
-
 
137318
      if (isSetBulkItemPricing()) {
-
 
137319
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bulkItemPricing, typedOther.bulkItemPricing);
-
 
137320
        if (lastComparison != 0) {
-
 
137321
          return lastComparison;
-
 
137322
        }
-
 
137323
      }
-
 
137324
      return 0;
-
 
137325
    }
-
 
137326
 
-
 
137327
    public _Fields fieldForId(int fieldId) {
-
 
137328
      return _Fields.findByThriftId(fieldId);
-
 
137329
    }
-
 
137330
 
-
 
137331
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
137332
      org.apache.thrift.protocol.TField field;
-
 
137333
      iprot.readStructBegin();
-
 
137334
      while (true)
-
 
137335
      {
-
 
137336
        field = iprot.readFieldBegin();
-
 
137337
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
137338
          break;
-
 
137339
        }
-
 
137340
        switch (field.id) {
-
 
137341
          case 1: // BULK_ITEM_PRICING
-
 
137342
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
137343
              this.bulkItemPricing = new BulkItemPricing();
-
 
137344
              this.bulkItemPricing.read(iprot);
-
 
137345
            } else { 
-
 
137346
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
137347
            }
-
 
137348
            break;
-
 
137349
          default:
-
 
137350
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
137351
        }
-
 
137352
        iprot.readFieldEnd();
-
 
137353
      }
-
 
137354
      iprot.readStructEnd();
-
 
137355
      validate();
-
 
137356
    }
-
 
137357
 
-
 
137358
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
137359
      validate();
-
 
137360
 
-
 
137361
      oprot.writeStructBegin(STRUCT_DESC);
-
 
137362
      if (this.bulkItemPricing != null) {
-
 
137363
        oprot.writeFieldBegin(BULK_ITEM_PRICING_FIELD_DESC);
-
 
137364
        this.bulkItemPricing.write(oprot);
-
 
137365
        oprot.writeFieldEnd();
-
 
137366
      }
-
 
137367
      oprot.writeFieldStop();
-
 
137368
      oprot.writeStructEnd();
-
 
137369
    }
-
 
137370
 
-
 
137371
    @Override
-
 
137372
    public String toString() {
-
 
137373
      StringBuilder sb = new StringBuilder("addBulkPricingForItem_args(");
-
 
137374
      boolean first = true;
-
 
137375
 
-
 
137376
      sb.append("bulkItemPricing:");
-
 
137377
      if (this.bulkItemPricing == null) {
-
 
137378
        sb.append("null");
-
 
137379
      } else {
-
 
137380
        sb.append(this.bulkItemPricing);
-
 
137381
      }
-
 
137382
      first = false;
-
 
137383
      sb.append(")");
-
 
137384
      return sb.toString();
-
 
137385
    }
-
 
137386
 
-
 
137387
    public void validate() throws org.apache.thrift.TException {
-
 
137388
      // check for required fields
-
 
137389
    }
-
 
137390
 
-
 
137391
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
137392
      try {
-
 
137393
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
137394
      } catch (org.apache.thrift.TException te) {
-
 
137395
        throw new java.io.IOException(te);
-
 
137396
      }
-
 
137397
    }
-
 
137398
 
-
 
137399
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
137400
      try {
-
 
137401
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
137402
      } catch (org.apache.thrift.TException te) {
-
 
137403
        throw new java.io.IOException(te);
-
 
137404
      }
-
 
137405
    }
-
 
137406
 
-
 
137407
  }
-
 
137408
 
-
 
137409
  public static class addBulkPricingForItem_result implements org.apache.thrift.TBase<addBulkPricingForItem_result, addBulkPricingForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
137410
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBulkPricingForItem_result");
-
 
137411
 
-
 
137412
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
137413
 
-
 
137414
    private BulkItemPricing success; // required
-
 
137415
 
-
 
137416
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
137417
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
137418
      SUCCESS((short)0, "success");
-
 
137419
 
-
 
137420
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
137421
 
-
 
137422
      static {
-
 
137423
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
137424
          byName.put(field.getFieldName(), field);
-
 
137425
        }
-
 
137426
      }
-
 
137427
 
-
 
137428
      /**
-
 
137429
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
137430
       */
-
 
137431
      public static _Fields findByThriftId(int fieldId) {
-
 
137432
        switch(fieldId) {
-
 
137433
          case 0: // SUCCESS
-
 
137434
            return SUCCESS;
-
 
137435
          default:
-
 
137436
            return null;
-
 
137437
        }
-
 
137438
      }
-
 
137439
 
-
 
137440
      /**
-
 
137441
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
137442
       * if it is not found.
-
 
137443
       */
-
 
137444
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
137445
        _Fields fields = findByThriftId(fieldId);
-
 
137446
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
137447
        return fields;
-
 
137448
      }
-
 
137449
 
-
 
137450
      /**
-
 
137451
       * Find the _Fields constant that matches name, or null if its not found.
-
 
137452
       */
-
 
137453
      public static _Fields findByName(String name) {
-
 
137454
        return byName.get(name);
-
 
137455
      }
-
 
137456
 
-
 
137457
      private final short _thriftId;
-
 
137458
      private final String _fieldName;
-
 
137459
 
-
 
137460
      _Fields(short thriftId, String fieldName) {
-
 
137461
        _thriftId = thriftId;
-
 
137462
        _fieldName = fieldName;
-
 
137463
      }
-
 
137464
 
-
 
137465
      public short getThriftFieldId() {
-
 
137466
        return _thriftId;
-
 
137467
      }
-
 
137468
 
-
 
137469
      public String getFieldName() {
-
 
137470
        return _fieldName;
-
 
137471
      }
-
 
137472
    }
-
 
137473
 
-
 
137474
    // isset id assignments
-
 
137475
 
-
 
137476
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
137477
    static {
-
 
137478
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
137479
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
137480
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BulkItemPricing.class)));
-
 
137481
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
137482
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBulkPricingForItem_result.class, metaDataMap);
-
 
137483
    }
-
 
137484
 
-
 
137485
    public addBulkPricingForItem_result() {
-
 
137486
    }
-
 
137487
 
-
 
137488
    public addBulkPricingForItem_result(
-
 
137489
      BulkItemPricing success)
-
 
137490
    {
-
 
137491
      this();
-
 
137492
      this.success = success;
-
 
137493
    }
-
 
137494
 
-
 
137495
    /**
-
 
137496
     * Performs a deep copy on <i>other</i>.
-
 
137497
     */
-
 
137498
    public addBulkPricingForItem_result(addBulkPricingForItem_result other) {
-
 
137499
      if (other.isSetSuccess()) {
-
 
137500
        this.success = new BulkItemPricing(other.success);
-
 
137501
      }
-
 
137502
    }
-
 
137503
 
-
 
137504
    public addBulkPricingForItem_result deepCopy() {
-
 
137505
      return new addBulkPricingForItem_result(this);
-
 
137506
    }
-
 
137507
 
-
 
137508
    @Override
-
 
137509
    public void clear() {
-
 
137510
      this.success = null;
-
 
137511
    }
-
 
137512
 
-
 
137513
    public BulkItemPricing getSuccess() {
-
 
137514
      return this.success;
-
 
137515
    }
-
 
137516
 
-
 
137517
    public void setSuccess(BulkItemPricing success) {
-
 
137518
      this.success = success;
-
 
137519
    }
-
 
137520
 
-
 
137521
    public void unsetSuccess() {
-
 
137522
      this.success = null;
-
 
137523
    }
-
 
137524
 
-
 
137525
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
137526
    public boolean isSetSuccess() {
-
 
137527
      return this.success != null;
-
 
137528
    }
-
 
137529
 
-
 
137530
    public void setSuccessIsSet(boolean value) {
-
 
137531
      if (!value) {
-
 
137532
        this.success = null;
-
 
137533
      }
-
 
137534
    }
-
 
137535
 
-
 
137536
    public void setFieldValue(_Fields field, Object value) {
-
 
137537
      switch (field) {
-
 
137538
      case SUCCESS:
-
 
137539
        if (value == null) {
-
 
137540
          unsetSuccess();
-
 
137541
        } else {
-
 
137542
          setSuccess((BulkItemPricing)value);
-
 
137543
        }
-
 
137544
        break;
-
 
137545
 
-
 
137546
      }
-
 
137547
    }
-
 
137548
 
-
 
137549
    public Object getFieldValue(_Fields field) {
-
 
137550
      switch (field) {
-
 
137551
      case SUCCESS:
-
 
137552
        return getSuccess();
-
 
137553
 
-
 
137554
      }
-
 
137555
      throw new IllegalStateException();
-
 
137556
    }
-
 
137557
 
-
 
137558
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
137559
    public boolean isSet(_Fields field) {
-
 
137560
      if (field == null) {
-
 
137561
        throw new IllegalArgumentException();
-
 
137562
      }
-
 
137563
 
-
 
137564
      switch (field) {
-
 
137565
      case SUCCESS:
-
 
137566
        return isSetSuccess();
-
 
137567
      }
-
 
137568
      throw new IllegalStateException();
-
 
137569
    }
-
 
137570
 
-
 
137571
    @Override
-
 
137572
    public boolean equals(Object that) {
-
 
137573
      if (that == null)
-
 
137574
        return false;
-
 
137575
      if (that instanceof addBulkPricingForItem_result)
-
 
137576
        return this.equals((addBulkPricingForItem_result)that);
-
 
137577
      return false;
-
 
137578
    }
-
 
137579
 
-
 
137580
    public boolean equals(addBulkPricingForItem_result that) {
-
 
137581
      if (that == null)
-
 
137582
        return false;
-
 
137583
 
-
 
137584
      boolean this_present_success = true && this.isSetSuccess();
-
 
137585
      boolean that_present_success = true && that.isSetSuccess();
-
 
137586
      if (this_present_success || that_present_success) {
-
 
137587
        if (!(this_present_success && that_present_success))
-
 
137588
          return false;
-
 
137589
        if (!this.success.equals(that.success))
-
 
137590
          return false;
-
 
137591
      }
-
 
137592
 
-
 
137593
      return true;
-
 
137594
    }
-
 
137595
 
-
 
137596
    @Override
-
 
137597
    public int hashCode() {
-
 
137598
      return 0;
-
 
137599
    }
-
 
137600
 
-
 
137601
    public int compareTo(addBulkPricingForItem_result other) {
-
 
137602
      if (!getClass().equals(other.getClass())) {
-
 
137603
        return getClass().getName().compareTo(other.getClass().getName());
-
 
137604
      }
-
 
137605
 
-
 
137606
      int lastComparison = 0;
-
 
137607
      addBulkPricingForItem_result typedOther = (addBulkPricingForItem_result)other;
-
 
137608
 
-
 
137609
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
137610
      if (lastComparison != 0) {
-
 
137611
        return lastComparison;
-
 
137612
      }
-
 
137613
      if (isSetSuccess()) {
-
 
137614
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
137615
        if (lastComparison != 0) {
-
 
137616
          return lastComparison;
-
 
137617
        }
-
 
137618
      }
-
 
137619
      return 0;
-
 
137620
    }
-
 
137621
 
-
 
137622
    public _Fields fieldForId(int fieldId) {
-
 
137623
      return _Fields.findByThriftId(fieldId);
-
 
137624
    }
-
 
137625
 
-
 
137626
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
137627
      org.apache.thrift.protocol.TField field;
-
 
137628
      iprot.readStructBegin();
-
 
137629
      while (true)
-
 
137630
      {
-
 
137631
        field = iprot.readFieldBegin();
-
 
137632
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
137633
          break;
-
 
137634
        }
-
 
137635
        switch (field.id) {
-
 
137636
          case 0: // SUCCESS
-
 
137637
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
137638
              this.success = new BulkItemPricing();
-
 
137639
              this.success.read(iprot);
-
 
137640
            } else { 
-
 
137641
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
137642
            }
-
 
137643
            break;
-
 
137644
          default:
-
 
137645
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
137646
        }
-
 
137647
        iprot.readFieldEnd();
-
 
137648
      }
-
 
137649
      iprot.readStructEnd();
-
 
137650
      validate();
-
 
137651
    }
-
 
137652
 
-
 
137653
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
137654
      oprot.writeStructBegin(STRUCT_DESC);
-
 
137655
 
-
 
137656
      if (this.isSetSuccess()) {
-
 
137657
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
137658
        this.success.write(oprot);
-
 
137659
        oprot.writeFieldEnd();
-
 
137660
      }
-
 
137661
      oprot.writeFieldStop();
-
 
137662
      oprot.writeStructEnd();
-
 
137663
    }
-
 
137664
 
-
 
137665
    @Override
-
 
137666
    public String toString() {
-
 
137667
      StringBuilder sb = new StringBuilder("addBulkPricingForItem_result(");
-
 
137668
      boolean first = true;
-
 
137669
 
-
 
137670
      sb.append("success:");
-
 
137671
      if (this.success == null) {
-
 
137672
        sb.append("null");
-
 
137673
      } else {
-
 
137674
        sb.append(this.success);
-
 
137675
      }
-
 
137676
      first = false;
-
 
137677
      sb.append(")");
-
 
137678
      return sb.toString();
-
 
137679
    }
-
 
137680
 
-
 
137681
    public void validate() throws org.apache.thrift.TException {
-
 
137682
      // check for required fields
-
 
137683
    }
-
 
137684
 
-
 
137685
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
137686
      try {
-
 
137687
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
137688
      } catch (org.apache.thrift.TException te) {
-
 
137689
        throw new java.io.IOException(te);
-
 
137690
      }
-
 
137691
    }
-
 
137692
 
-
 
137693
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
137694
      try {
-
 
137695
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
137696
      } catch (org.apache.thrift.TException te) {
-
 
137697
        throw new java.io.IOException(te);
-
 
137698
      }
-
 
137699
    }
-
 
137700
 
-
 
137701
  }
-
 
137702
 
-
 
137703
  public static class deleteBulkPricingForItemById_args implements org.apache.thrift.TBase<deleteBulkPricingForItemById_args, deleteBulkPricingForItemById_args._Fields>, java.io.Serializable, Cloneable   {
-
 
137704
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteBulkPricingForItemById_args");
-
 
137705
 
-
 
137706
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
137707
 
-
 
137708
    private long id; // required
-
 
137709
 
-
 
137710
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
137711
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
137712
      ID((short)1, "id");
-
 
137713
 
-
 
137714
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
137715
 
-
 
137716
      static {
-
 
137717
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
137718
          byName.put(field.getFieldName(), field);
-
 
137719
        }
-
 
137720
      }
-
 
137721
 
-
 
137722
      /**
-
 
137723
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
137724
       */
-
 
137725
      public static _Fields findByThriftId(int fieldId) {
-
 
137726
        switch(fieldId) {
-
 
137727
          case 1: // ID
-
 
137728
            return ID;
-
 
137729
          default:
-
 
137730
            return null;
-
 
137731
        }
-
 
137732
      }
-
 
137733
 
-
 
137734
      /**
-
 
137735
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
137736
       * if it is not found.
-
 
137737
       */
-
 
137738
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
137739
        _Fields fields = findByThriftId(fieldId);
-
 
137740
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
137741
        return fields;
-
 
137742
      }
-
 
137743
 
-
 
137744
      /**
-
 
137745
       * Find the _Fields constant that matches name, or null if its not found.
-
 
137746
       */
-
 
137747
      public static _Fields findByName(String name) {
-
 
137748
        return byName.get(name);
-
 
137749
      }
-
 
137750
 
-
 
137751
      private final short _thriftId;
-
 
137752
      private final String _fieldName;
-
 
137753
 
-
 
137754
      _Fields(short thriftId, String fieldName) {
-
 
137755
        _thriftId = thriftId;
-
 
137756
        _fieldName = fieldName;
-
 
137757
      }
-
 
137758
 
-
 
137759
      public short getThriftFieldId() {
-
 
137760
        return _thriftId;
-
 
137761
      }
-
 
137762
 
-
 
137763
      public String getFieldName() {
-
 
137764
        return _fieldName;
-
 
137765
      }
-
 
137766
    }
-
 
137767
 
-
 
137768
    // isset id assignments
-
 
137769
    private static final int __ID_ISSET_ID = 0;
-
 
137770
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
137771
 
-
 
137772
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
137773
    static {
-
 
137774
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
137775
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
137776
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
137777
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
137778
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteBulkPricingForItemById_args.class, metaDataMap);
-
 
137779
    }
-
 
137780
 
-
 
137781
    public deleteBulkPricingForItemById_args() {
-
 
137782
    }
-
 
137783
 
-
 
137784
    public deleteBulkPricingForItemById_args(
-
 
137785
      long id)
-
 
137786
    {
-
 
137787
      this();
-
 
137788
      this.id = id;
-
 
137789
      setIdIsSet(true);
-
 
137790
    }
-
 
137791
 
-
 
137792
    /**
-
 
137793
     * Performs a deep copy on <i>other</i>.
-
 
137794
     */
-
 
137795
    public deleteBulkPricingForItemById_args(deleteBulkPricingForItemById_args other) {
-
 
137796
      __isset_bit_vector.clear();
-
 
137797
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
137798
      this.id = other.id;
-
 
137799
    }
-
 
137800
 
-
 
137801
    public deleteBulkPricingForItemById_args deepCopy() {
-
 
137802
      return new deleteBulkPricingForItemById_args(this);
-
 
137803
    }
-
 
137804
 
-
 
137805
    @Override
-
 
137806
    public void clear() {
-
 
137807
      setIdIsSet(false);
-
 
137808
      this.id = 0;
-
 
137809
    }
-
 
137810
 
-
 
137811
    public long getId() {
-
 
137812
      return this.id;
-
 
137813
    }
-
 
137814
 
-
 
137815
    public void setId(long id) {
-
 
137816
      this.id = id;
-
 
137817
      setIdIsSet(true);
-
 
137818
    }
-
 
137819
 
-
 
137820
    public void unsetId() {
-
 
137821
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
137822
    }
-
 
137823
 
-
 
137824
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
-
 
137825
    public boolean isSetId() {
-
 
137826
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
137827
    }
-
 
137828
 
-
 
137829
    public void setIdIsSet(boolean value) {
-
 
137830
      __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
137831
    }
-
 
137832
 
-
 
137833
    public void setFieldValue(_Fields field, Object value) {
-
 
137834
      switch (field) {
-
 
137835
      case ID:
-
 
137836
        if (value == null) {
-
 
137837
          unsetId();
-
 
137838
        } else {
-
 
137839
          setId((Long)value);
-
 
137840
        }
-
 
137841
        break;
-
 
137842
 
-
 
137843
      }
-
 
137844
    }
-
 
137845
 
-
 
137846
    public Object getFieldValue(_Fields field) {
-
 
137847
      switch (field) {
-
 
137848
      case ID:
-
 
137849
        return Long.valueOf(getId());
-
 
137850
 
-
 
137851
      }
-
 
137852
      throw new IllegalStateException();
-
 
137853
    }
-
 
137854
 
-
 
137855
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
137856
    public boolean isSet(_Fields field) {
-
 
137857
      if (field == null) {
-
 
137858
        throw new IllegalArgumentException();
-
 
137859
      }
-
 
137860
 
-
 
137861
      switch (field) {
-
 
137862
      case ID:
-
 
137863
        return isSetId();
-
 
137864
      }
-
 
137865
      throw new IllegalStateException();
-
 
137866
    }
-
 
137867
 
-
 
137868
    @Override
-
 
137869
    public boolean equals(Object that) {
-
 
137870
      if (that == null)
-
 
137871
        return false;
-
 
137872
      if (that instanceof deleteBulkPricingForItemById_args)
-
 
137873
        return this.equals((deleteBulkPricingForItemById_args)that);
-
 
137874
      return false;
-
 
137875
    }
-
 
137876
 
-
 
137877
    public boolean equals(deleteBulkPricingForItemById_args that) {
-
 
137878
      if (that == null)
-
 
137879
        return false;
-
 
137880
 
-
 
137881
      boolean this_present_id = true;
-
 
137882
      boolean that_present_id = true;
-
 
137883
      if (this_present_id || that_present_id) {
-
 
137884
        if (!(this_present_id && that_present_id))
-
 
137885
          return false;
-
 
137886
        if (this.id != that.id)
-
 
137887
          return false;
-
 
137888
      }
-
 
137889
 
-
 
137890
      return true;
-
 
137891
    }
-
 
137892
 
-
 
137893
    @Override
-
 
137894
    public int hashCode() {
-
 
137895
      return 0;
-
 
137896
    }
-
 
137897
 
-
 
137898
    public int compareTo(deleteBulkPricingForItemById_args other) {
-
 
137899
      if (!getClass().equals(other.getClass())) {
-
 
137900
        return getClass().getName().compareTo(other.getClass().getName());
-
 
137901
      }
-
 
137902
 
-
 
137903
      int lastComparison = 0;
-
 
137904
      deleteBulkPricingForItemById_args typedOther = (deleteBulkPricingForItemById_args)other;
-
 
137905
 
-
 
137906
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
-
 
137907
      if (lastComparison != 0) {
-
 
137908
        return lastComparison;
-
 
137909
      }
-
 
137910
      if (isSetId()) {
-
 
137911
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
-
 
137912
        if (lastComparison != 0) {
-
 
137913
          return lastComparison;
-
 
137914
        }
-
 
137915
      }
-
 
137916
      return 0;
-
 
137917
    }
-
 
137918
 
-
 
137919
    public _Fields fieldForId(int fieldId) {
-
 
137920
      return _Fields.findByThriftId(fieldId);
-
 
137921
    }
-
 
137922
 
-
 
137923
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
137924
      org.apache.thrift.protocol.TField field;
-
 
137925
      iprot.readStructBegin();
-
 
137926
      while (true)
-
 
137927
      {
-
 
137928
        field = iprot.readFieldBegin();
-
 
137929
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
137930
          break;
-
 
137931
        }
-
 
137932
        switch (field.id) {
-
 
137933
          case 1: // ID
-
 
137934
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
137935
              this.id = iprot.readI64();
-
 
137936
              setIdIsSet(true);
-
 
137937
            } else { 
-
 
137938
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
137939
            }
-
 
137940
            break;
-
 
137941
          default:
-
 
137942
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
137943
        }
-
 
137944
        iprot.readFieldEnd();
-
 
137945
      }
-
 
137946
      iprot.readStructEnd();
-
 
137947
      validate();
-
 
137948
    }
-
 
137949
 
-
 
137950
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
137951
      validate();
-
 
137952
 
-
 
137953
      oprot.writeStructBegin(STRUCT_DESC);
-
 
137954
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
137955
      oprot.writeI64(this.id);
-
 
137956
      oprot.writeFieldEnd();
-
 
137957
      oprot.writeFieldStop();
-
 
137958
      oprot.writeStructEnd();
-
 
137959
    }
-
 
137960
 
-
 
137961
    @Override
-
 
137962
    public String toString() {
-
 
137963
      StringBuilder sb = new StringBuilder("deleteBulkPricingForItemById_args(");
-
 
137964
      boolean first = true;
-
 
137965
 
-
 
137966
      sb.append("id:");
-
 
137967
      sb.append(this.id);
-
 
137968
      first = false;
-
 
137969
      sb.append(")");
-
 
137970
      return sb.toString();
-
 
137971
    }
-
 
137972
 
-
 
137973
    public void validate() throws org.apache.thrift.TException {
-
 
137974
      // check for required fields
-
 
137975
    }
-
 
137976
 
-
 
137977
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
137978
      try {
-
 
137979
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
137980
      } catch (org.apache.thrift.TException te) {
-
 
137981
        throw new java.io.IOException(te);
-
 
137982
      }
-
 
137983
    }
-
 
137984
 
-
 
137985
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
137986
      try {
-
 
137987
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
137988
        __isset_bit_vector = new BitSet(1);
-
 
137989
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
137990
      } catch (org.apache.thrift.TException te) {
-
 
137991
        throw new java.io.IOException(te);
-
 
137992
      }
-
 
137993
    }
-
 
137994
 
-
 
137995
  }
-
 
137996
 
-
 
137997
  public static class deleteBulkPricingForItemById_result implements org.apache.thrift.TBase<deleteBulkPricingForItemById_result, deleteBulkPricingForItemById_result._Fields>, java.io.Serializable, Cloneable   {
-
 
137998
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteBulkPricingForItemById_result");
-
 
137999
 
-
 
138000
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
138001
 
-
 
138002
    private boolean success; // required
-
 
138003
 
-
 
138004
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
138005
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
138006
      SUCCESS((short)0, "success");
-
 
138007
 
-
 
138008
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
138009
 
-
 
138010
      static {
-
 
138011
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
138012
          byName.put(field.getFieldName(), field);
-
 
138013
        }
-
 
138014
      }
-
 
138015
 
-
 
138016
      /**
-
 
138017
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
138018
       */
-
 
138019
      public static _Fields findByThriftId(int fieldId) {
-
 
138020
        switch(fieldId) {
-
 
138021
          case 0: // SUCCESS
-
 
138022
            return SUCCESS;
-
 
138023
          default:
-
 
138024
            return null;
-
 
138025
        }
-
 
138026
      }
-
 
138027
 
-
 
138028
      /**
-
 
138029
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
138030
       * if it is not found.
-
 
138031
       */
-
 
138032
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
138033
        _Fields fields = findByThriftId(fieldId);
-
 
138034
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
138035
        return fields;
-
 
138036
      }
-
 
138037
 
-
 
138038
      /**
-
 
138039
       * Find the _Fields constant that matches name, or null if its not found.
-
 
138040
       */
-
 
138041
      public static _Fields findByName(String name) {
-
 
138042
        return byName.get(name);
-
 
138043
      }
-
 
138044
 
-
 
138045
      private final short _thriftId;
-
 
138046
      private final String _fieldName;
-
 
138047
 
-
 
138048
      _Fields(short thriftId, String fieldName) {
-
 
138049
        _thriftId = thriftId;
-
 
138050
        _fieldName = fieldName;
-
 
138051
      }
-
 
138052
 
-
 
138053
      public short getThriftFieldId() {
-
 
138054
        return _thriftId;
-
 
138055
      }
-
 
138056
 
-
 
138057
      public String getFieldName() {
-
 
138058
        return _fieldName;
-
 
138059
      }
-
 
138060
    }
-
 
138061
 
-
 
138062
    // isset id assignments
-
 
138063
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
138064
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
138065
 
-
 
138066
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
138067
    static {
-
 
138068
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
138069
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
138070
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
138071
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
138072
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteBulkPricingForItemById_result.class, metaDataMap);
-
 
138073
    }
-
 
138074
 
-
 
138075
    public deleteBulkPricingForItemById_result() {
-
 
138076
    }
-
 
138077
 
-
 
138078
    public deleteBulkPricingForItemById_result(
-
 
138079
      boolean success)
-
 
138080
    {
-
 
138081
      this();
-
 
138082
      this.success = success;
-
 
138083
      setSuccessIsSet(true);
-
 
138084
    }
-
 
138085
 
-
 
138086
    /**
-
 
138087
     * Performs a deep copy on <i>other</i>.
-
 
138088
     */
-
 
138089
    public deleteBulkPricingForItemById_result(deleteBulkPricingForItemById_result other) {
-
 
138090
      __isset_bit_vector.clear();
-
 
138091
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
138092
      this.success = other.success;
-
 
138093
    }
-
 
138094
 
-
 
138095
    public deleteBulkPricingForItemById_result deepCopy() {
-
 
138096
      return new deleteBulkPricingForItemById_result(this);
-
 
138097
    }
-
 
138098
 
-
 
138099
    @Override
-
 
138100
    public void clear() {
-
 
138101
      setSuccessIsSet(false);
-
 
138102
      this.success = false;
-
 
138103
    }
-
 
138104
 
-
 
138105
    public boolean isSuccess() {
-
 
138106
      return this.success;
-
 
138107
    }
-
 
138108
 
-
 
138109
    public void setSuccess(boolean success) {
-
 
138110
      this.success = success;
-
 
138111
      setSuccessIsSet(true);
-
 
138112
    }
-
 
138113
 
-
 
138114
    public void unsetSuccess() {
-
 
138115
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
138116
    }
-
 
138117
 
-
 
138118
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
138119
    public boolean isSetSuccess() {
-
 
138120
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
138121
    }
-
 
138122
 
-
 
138123
    public void setSuccessIsSet(boolean value) {
-
 
138124
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
138125
    }
-
 
138126
 
-
 
138127
    public void setFieldValue(_Fields field, Object value) {
-
 
138128
      switch (field) {
-
 
138129
      case SUCCESS:
-
 
138130
        if (value == null) {
-
 
138131
          unsetSuccess();
-
 
138132
        } else {
-
 
138133
          setSuccess((Boolean)value);
-
 
138134
        }
-
 
138135
        break;
-
 
138136
 
-
 
138137
      }
-
 
138138
    }
-
 
138139
 
-
 
138140
    public Object getFieldValue(_Fields field) {
-
 
138141
      switch (field) {
-
 
138142
      case SUCCESS:
-
 
138143
        return Boolean.valueOf(isSuccess());
-
 
138144
 
-
 
138145
      }
-
 
138146
      throw new IllegalStateException();
-
 
138147
    }
-
 
138148
 
-
 
138149
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
138150
    public boolean isSet(_Fields field) {
-
 
138151
      if (field == null) {
-
 
138152
        throw new IllegalArgumentException();
-
 
138153
      }
-
 
138154
 
-
 
138155
      switch (field) {
-
 
138156
      case SUCCESS:
-
 
138157
        return isSetSuccess();
-
 
138158
      }
-
 
138159
      throw new IllegalStateException();
-
 
138160
    }
-
 
138161
 
-
 
138162
    @Override
-
 
138163
    public boolean equals(Object that) {
-
 
138164
      if (that == null)
-
 
138165
        return false;
-
 
138166
      if (that instanceof deleteBulkPricingForItemById_result)
-
 
138167
        return this.equals((deleteBulkPricingForItemById_result)that);
-
 
138168
      return false;
-
 
138169
    }
-
 
138170
 
-
 
138171
    public boolean equals(deleteBulkPricingForItemById_result that) {
-
 
138172
      if (that == null)
-
 
138173
        return false;
-
 
138174
 
-
 
138175
      boolean this_present_success = true;
-
 
138176
      boolean that_present_success = true;
-
 
138177
      if (this_present_success || that_present_success) {
-
 
138178
        if (!(this_present_success && that_present_success))
-
 
138179
          return false;
-
 
138180
        if (this.success != that.success)
-
 
138181
          return false;
-
 
138182
      }
-
 
138183
 
-
 
138184
      return true;
-
 
138185
    }
-
 
138186
 
-
 
138187
    @Override
-
 
138188
    public int hashCode() {
-
 
138189
      return 0;
-
 
138190
    }
-
 
138191
 
-
 
138192
    public int compareTo(deleteBulkPricingForItemById_result other) {
-
 
138193
      if (!getClass().equals(other.getClass())) {
-
 
138194
        return getClass().getName().compareTo(other.getClass().getName());
-
 
138195
      }
-
 
138196
 
-
 
138197
      int lastComparison = 0;
-
 
138198
      deleteBulkPricingForItemById_result typedOther = (deleteBulkPricingForItemById_result)other;
-
 
138199
 
-
 
138200
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
138201
      if (lastComparison != 0) {
-
 
138202
        return lastComparison;
-
 
138203
      }
-
 
138204
      if (isSetSuccess()) {
-
 
138205
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
138206
        if (lastComparison != 0) {
-
 
138207
          return lastComparison;
-
 
138208
        }
-
 
138209
      }
-
 
138210
      return 0;
-
 
138211
    }
-
 
138212
 
-
 
138213
    public _Fields fieldForId(int fieldId) {
-
 
138214
      return _Fields.findByThriftId(fieldId);
-
 
138215
    }
-
 
138216
 
-
 
138217
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
138218
      org.apache.thrift.protocol.TField field;
-
 
138219
      iprot.readStructBegin();
-
 
138220
      while (true)
-
 
138221
      {
-
 
138222
        field = iprot.readFieldBegin();
-
 
138223
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
138224
          break;
-
 
138225
        }
-
 
138226
        switch (field.id) {
-
 
138227
          case 0: // SUCCESS
-
 
138228
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
138229
              this.success = iprot.readBool();
-
 
138230
              setSuccessIsSet(true);
-
 
138231
            } else { 
-
 
138232
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
138233
            }
-
 
138234
            break;
-
 
138235
          default:
-
 
138236
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
138237
        }
-
 
138238
        iprot.readFieldEnd();
-
 
138239
      }
-
 
138240
      iprot.readStructEnd();
-
 
138241
      validate();
-
 
138242
    }
-
 
138243
 
-
 
138244
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
138245
      oprot.writeStructBegin(STRUCT_DESC);
-
 
138246
 
-
 
138247
      if (this.isSetSuccess()) {
-
 
138248
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
138249
        oprot.writeBool(this.success);
-
 
138250
        oprot.writeFieldEnd();
-
 
138251
      }
-
 
138252
      oprot.writeFieldStop();
-
 
138253
      oprot.writeStructEnd();
-
 
138254
    }
-
 
138255
 
-
 
138256
    @Override
-
 
138257
    public String toString() {
-
 
138258
      StringBuilder sb = new StringBuilder("deleteBulkPricingForItemById_result(");
-
 
138259
      boolean first = true;
-
 
138260
 
-
 
138261
      sb.append("success:");
-
 
138262
      sb.append(this.success);
-
 
138263
      first = false;
-
 
138264
      sb.append(")");
-
 
138265
      return sb.toString();
-
 
138266
    }
-
 
138267
 
-
 
138268
    public void validate() throws org.apache.thrift.TException {
-
 
138269
      // check for required fields
-
 
138270
    }
-
 
138271
 
-
 
138272
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
138273
      try {
-
 
138274
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
138275
      } catch (org.apache.thrift.TException te) {
-
 
138276
        throw new java.io.IOException(te);
-
 
138277
      }
-
 
138278
    }
-
 
138279
 
-
 
138280
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
138281
      try {
-
 
138282
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
138283
      } catch (org.apache.thrift.TException te) {
-
 
138284
        throw new java.io.IOException(te);
-
 
138285
      }
-
 
138286
    }
-
 
138287
 
-
 
138288
  }
-
 
138289
 
-
 
138290
  public static class deleteBulkPricingForItem_args implements org.apache.thrift.TBase<deleteBulkPricingForItem_args, deleteBulkPricingForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
138291
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteBulkPricingForItem_args");
-
 
138292
 
-
 
138293
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
138294
 
-
 
138295
    private long item_id; // required
-
 
138296
 
-
 
138297
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
138298
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
138299
      ITEM_ID((short)1, "item_id");
-
 
138300
 
-
 
138301
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
138302
 
-
 
138303
      static {
-
 
138304
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
138305
          byName.put(field.getFieldName(), field);
-
 
138306
        }
-
 
138307
      }
-
 
138308
 
-
 
138309
      /**
-
 
138310
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
138311
       */
-
 
138312
      public static _Fields findByThriftId(int fieldId) {
-
 
138313
        switch(fieldId) {
-
 
138314
          case 1: // ITEM_ID
-
 
138315
            return ITEM_ID;
-
 
138316
          default:
-
 
138317
            return null;
-
 
138318
        }
-
 
138319
      }
-
 
138320
 
-
 
138321
      /**
-
 
138322
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
138323
       * if it is not found.
-
 
138324
       */
-
 
138325
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
138326
        _Fields fields = findByThriftId(fieldId);
-
 
138327
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
138328
        return fields;
-
 
138329
      }
-
 
138330
 
-
 
138331
      /**
-
 
138332
       * Find the _Fields constant that matches name, or null if its not found.
-
 
138333
       */
-
 
138334
      public static _Fields findByName(String name) {
-
 
138335
        return byName.get(name);
-
 
138336
      }
-
 
138337
 
-
 
138338
      private final short _thriftId;
-
 
138339
      private final String _fieldName;
-
 
138340
 
-
 
138341
      _Fields(short thriftId, String fieldName) {
-
 
138342
        _thriftId = thriftId;
-
 
138343
        _fieldName = fieldName;
-
 
138344
      }
-
 
138345
 
-
 
138346
      public short getThriftFieldId() {
-
 
138347
        return _thriftId;
-
 
138348
      }
-
 
138349
 
-
 
138350
      public String getFieldName() {
-
 
138351
        return _fieldName;
-
 
138352
      }
-
 
138353
    }
-
 
138354
 
-
 
138355
    // isset id assignments
-
 
138356
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
138357
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
138358
 
-
 
138359
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
138360
    static {
-
 
138361
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
138362
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
138363
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
138364
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
138365
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteBulkPricingForItem_args.class, metaDataMap);
-
 
138366
    }
-
 
138367
 
-
 
138368
    public deleteBulkPricingForItem_args() {
-
 
138369
    }
-
 
138370
 
-
 
138371
    public deleteBulkPricingForItem_args(
-
 
138372
      long item_id)
-
 
138373
    {
-
 
138374
      this();
-
 
138375
      this.item_id = item_id;
-
 
138376
      setItem_idIsSet(true);
-
 
138377
    }
-
 
138378
 
-
 
138379
    /**
-
 
138380
     * Performs a deep copy on <i>other</i>.
-
 
138381
     */
-
 
138382
    public deleteBulkPricingForItem_args(deleteBulkPricingForItem_args other) {
-
 
138383
      __isset_bit_vector.clear();
-
 
138384
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
138385
      this.item_id = other.item_id;
-
 
138386
    }
-
 
138387
 
-
 
138388
    public deleteBulkPricingForItem_args deepCopy() {
-
 
138389
      return new deleteBulkPricingForItem_args(this);
-
 
138390
    }
-
 
138391
 
-
 
138392
    @Override
-
 
138393
    public void clear() {
-
 
138394
      setItem_idIsSet(false);
-
 
138395
      this.item_id = 0;
-
 
138396
    }
-
 
138397
 
-
 
138398
    public long getItem_id() {
-
 
138399
      return this.item_id;
-
 
138400
    }
-
 
138401
 
-
 
138402
    public void setItem_id(long item_id) {
-
 
138403
      this.item_id = item_id;
-
 
138404
      setItem_idIsSet(true);
-
 
138405
    }
-
 
138406
 
-
 
138407
    public void unsetItem_id() {
-
 
138408
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
138409
    }
-
 
138410
 
-
 
138411
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
138412
    public boolean isSetItem_id() {
-
 
138413
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
138414
    }
-
 
138415
 
-
 
138416
    public void setItem_idIsSet(boolean value) {
-
 
138417
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
138418
    }
-
 
138419
 
-
 
138420
    public void setFieldValue(_Fields field, Object value) {
-
 
138421
      switch (field) {
-
 
138422
      case ITEM_ID:
-
 
138423
        if (value == null) {
-
 
138424
          unsetItem_id();
-
 
138425
        } else {
-
 
138426
          setItem_id((Long)value);
-
 
138427
        }
-
 
138428
        break;
-
 
138429
 
-
 
138430
      }
-
 
138431
    }
-
 
138432
 
-
 
138433
    public Object getFieldValue(_Fields field) {
-
 
138434
      switch (field) {
-
 
138435
      case ITEM_ID:
-
 
138436
        return Long.valueOf(getItem_id());
-
 
138437
 
-
 
138438
      }
-
 
138439
      throw new IllegalStateException();
-
 
138440
    }
-
 
138441
 
-
 
138442
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
138443
    public boolean isSet(_Fields field) {
-
 
138444
      if (field == null) {
-
 
138445
        throw new IllegalArgumentException();
-
 
138446
      }
-
 
138447
 
-
 
138448
      switch (field) {
-
 
138449
      case ITEM_ID:
-
 
138450
        return isSetItem_id();
-
 
138451
      }
-
 
138452
      throw new IllegalStateException();
-
 
138453
    }
-
 
138454
 
-
 
138455
    @Override
-
 
138456
    public boolean equals(Object that) {
-
 
138457
      if (that == null)
-
 
138458
        return false;
-
 
138459
      if (that instanceof deleteBulkPricingForItem_args)
-
 
138460
        return this.equals((deleteBulkPricingForItem_args)that);
-
 
138461
      return false;
-
 
138462
    }
-
 
138463
 
-
 
138464
    public boolean equals(deleteBulkPricingForItem_args that) {
-
 
138465
      if (that == null)
-
 
138466
        return false;
-
 
138467
 
-
 
138468
      boolean this_present_item_id = true;
-
 
138469
      boolean that_present_item_id = true;
-
 
138470
      if (this_present_item_id || that_present_item_id) {
-
 
138471
        if (!(this_present_item_id && that_present_item_id))
-
 
138472
          return false;
-
 
138473
        if (this.item_id != that.item_id)
-
 
138474
          return false;
-
 
138475
      }
-
 
138476
 
-
 
138477
      return true;
-
 
138478
    }
-
 
138479
 
-
 
138480
    @Override
-
 
138481
    public int hashCode() {
-
 
138482
      return 0;
-
 
138483
    }
-
 
138484
 
-
 
138485
    public int compareTo(deleteBulkPricingForItem_args other) {
-
 
138486
      if (!getClass().equals(other.getClass())) {
-
 
138487
        return getClass().getName().compareTo(other.getClass().getName());
-
 
138488
      }
-
 
138489
 
-
 
138490
      int lastComparison = 0;
-
 
138491
      deleteBulkPricingForItem_args typedOther = (deleteBulkPricingForItem_args)other;
-
 
138492
 
-
 
138493
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
138494
      if (lastComparison != 0) {
-
 
138495
        return lastComparison;
-
 
138496
      }
-
 
138497
      if (isSetItem_id()) {
-
 
138498
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
138499
        if (lastComparison != 0) {
-
 
138500
          return lastComparison;
-
 
138501
        }
-
 
138502
      }
-
 
138503
      return 0;
-
 
138504
    }
-
 
138505
 
-
 
138506
    public _Fields fieldForId(int fieldId) {
-
 
138507
      return _Fields.findByThriftId(fieldId);
-
 
138508
    }
-
 
138509
 
-
 
138510
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
138511
      org.apache.thrift.protocol.TField field;
-
 
138512
      iprot.readStructBegin();
-
 
138513
      while (true)
-
 
138514
      {
-
 
138515
        field = iprot.readFieldBegin();
-
 
138516
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
138517
          break;
-
 
138518
        }
-
 
138519
        switch (field.id) {
-
 
138520
          case 1: // ITEM_ID
-
 
138521
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
138522
              this.item_id = iprot.readI64();
-
 
138523
              setItem_idIsSet(true);
-
 
138524
            } else { 
-
 
138525
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
138526
            }
-
 
138527
            break;
-
 
138528
          default:
-
 
138529
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
138530
        }
-
 
138531
        iprot.readFieldEnd();
-
 
138532
      }
-
 
138533
      iprot.readStructEnd();
-
 
138534
      validate();
-
 
138535
    }
-
 
138536
 
-
 
138537
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
138538
      validate();
-
 
138539
 
-
 
138540
      oprot.writeStructBegin(STRUCT_DESC);
-
 
138541
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
138542
      oprot.writeI64(this.item_id);
-
 
138543
      oprot.writeFieldEnd();
-
 
138544
      oprot.writeFieldStop();
-
 
138545
      oprot.writeStructEnd();
-
 
138546
    }
-
 
138547
 
-
 
138548
    @Override
-
 
138549
    public String toString() {
-
 
138550
      StringBuilder sb = new StringBuilder("deleteBulkPricingForItem_args(");
-
 
138551
      boolean first = true;
-
 
138552
 
-
 
138553
      sb.append("item_id:");
-
 
138554
      sb.append(this.item_id);
-
 
138555
      first = false;
-
 
138556
      sb.append(")");
-
 
138557
      return sb.toString();
-
 
138558
    }
-
 
138559
 
-
 
138560
    public void validate() throws org.apache.thrift.TException {
-
 
138561
      // check for required fields
-
 
138562
    }
-
 
138563
 
-
 
138564
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
138565
      try {
-
 
138566
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
138567
      } catch (org.apache.thrift.TException te) {
-
 
138568
        throw new java.io.IOException(te);
-
 
138569
      }
-
 
138570
    }
-
 
138571
 
-
 
138572
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
138573
      try {
-
 
138574
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
138575
        __isset_bit_vector = new BitSet(1);
-
 
138576
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
138577
      } catch (org.apache.thrift.TException te) {
-
 
138578
        throw new java.io.IOException(te);
-
 
138579
      }
-
 
138580
    }
-
 
138581
 
-
 
138582
  }
-
 
138583
 
-
 
138584
  public static class deleteBulkPricingForItem_result implements org.apache.thrift.TBase<deleteBulkPricingForItem_result, deleteBulkPricingForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
138585
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteBulkPricingForItem_result");
-
 
138586
 
-
 
138587
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
138588
 
-
 
138589
    private boolean success; // required
-
 
138590
 
-
 
138591
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
138592
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
138593
      SUCCESS((short)0, "success");
-
 
138594
 
-
 
138595
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
138596
 
-
 
138597
      static {
-
 
138598
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
138599
          byName.put(field.getFieldName(), field);
-
 
138600
        }
-
 
138601
      }
-
 
138602
 
-
 
138603
      /**
-
 
138604
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
138605
       */
-
 
138606
      public static _Fields findByThriftId(int fieldId) {
-
 
138607
        switch(fieldId) {
-
 
138608
          case 0: // SUCCESS
-
 
138609
            return SUCCESS;
-
 
138610
          default:
-
 
138611
            return null;
-
 
138612
        }
-
 
138613
      }
-
 
138614
 
-
 
138615
      /**
-
 
138616
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
138617
       * if it is not found.
-
 
138618
       */
-
 
138619
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
138620
        _Fields fields = findByThriftId(fieldId);
-
 
138621
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
138622
        return fields;
-
 
138623
      }
-
 
138624
 
-
 
138625
      /**
-
 
138626
       * Find the _Fields constant that matches name, or null if its not found.
-
 
138627
       */
-
 
138628
      public static _Fields findByName(String name) {
-
 
138629
        return byName.get(name);
-
 
138630
      }
-
 
138631
 
-
 
138632
      private final short _thriftId;
-
 
138633
      private final String _fieldName;
-
 
138634
 
-
 
138635
      _Fields(short thriftId, String fieldName) {
-
 
138636
        _thriftId = thriftId;
-
 
138637
        _fieldName = fieldName;
-
 
138638
      }
-
 
138639
 
-
 
138640
      public short getThriftFieldId() {
-
 
138641
        return _thriftId;
-
 
138642
      }
-
 
138643
 
-
 
138644
      public String getFieldName() {
-
 
138645
        return _fieldName;
-
 
138646
      }
-
 
138647
    }
-
 
138648
 
-
 
138649
    // isset id assignments
-
 
138650
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
138651
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
138652
 
-
 
138653
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
138654
    static {
-
 
138655
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
138656
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
138657
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
138658
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
138659
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteBulkPricingForItem_result.class, metaDataMap);
-
 
138660
    }
-
 
138661
 
-
 
138662
    public deleteBulkPricingForItem_result() {
-
 
138663
    }
-
 
138664
 
-
 
138665
    public deleteBulkPricingForItem_result(
-
 
138666
      boolean success)
-
 
138667
    {
-
 
138668
      this();
-
 
138669
      this.success = success;
-
 
138670
      setSuccessIsSet(true);
-
 
138671
    }
-
 
138672
 
-
 
138673
    /**
-
 
138674
     * Performs a deep copy on <i>other</i>.
-
 
138675
     */
-
 
138676
    public deleteBulkPricingForItem_result(deleteBulkPricingForItem_result other) {
-
 
138677
      __isset_bit_vector.clear();
-
 
138678
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
138679
      this.success = other.success;
-
 
138680
    }
-
 
138681
 
-
 
138682
    public deleteBulkPricingForItem_result deepCopy() {
-
 
138683
      return new deleteBulkPricingForItem_result(this);
-
 
138684
    }
-
 
138685
 
-
 
138686
    @Override
-
 
138687
    public void clear() {
-
 
138688
      setSuccessIsSet(false);
-
 
138689
      this.success = false;
-
 
138690
    }
-
 
138691
 
-
 
138692
    public boolean isSuccess() {
-
 
138693
      return this.success;
-
 
138694
    }
-
 
138695
 
-
 
138696
    public void setSuccess(boolean success) {
-
 
138697
      this.success = success;
-
 
138698
      setSuccessIsSet(true);
-
 
138699
    }
-
 
138700
 
-
 
138701
    public void unsetSuccess() {
-
 
138702
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
138703
    }
-
 
138704
 
-
 
138705
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
138706
    public boolean isSetSuccess() {
-
 
138707
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
138708
    }
-
 
138709
 
-
 
138710
    public void setSuccessIsSet(boolean value) {
-
 
138711
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
138712
    }
-
 
138713
 
-
 
138714
    public void setFieldValue(_Fields field, Object value) {
-
 
138715
      switch (field) {
-
 
138716
      case SUCCESS:
-
 
138717
        if (value == null) {
-
 
138718
          unsetSuccess();
-
 
138719
        } else {
-
 
138720
          setSuccess((Boolean)value);
-
 
138721
        }
-
 
138722
        break;
-
 
138723
 
-
 
138724
      }
-
 
138725
    }
-
 
138726
 
-
 
138727
    public Object getFieldValue(_Fields field) {
-
 
138728
      switch (field) {
-
 
138729
      case SUCCESS:
-
 
138730
        return Boolean.valueOf(isSuccess());
-
 
138731
 
-
 
138732
      }
-
 
138733
      throw new IllegalStateException();
-
 
138734
    }
-
 
138735
 
-
 
138736
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
138737
    public boolean isSet(_Fields field) {
-
 
138738
      if (field == null) {
-
 
138739
        throw new IllegalArgumentException();
-
 
138740
      }
-
 
138741
 
-
 
138742
      switch (field) {
-
 
138743
      case SUCCESS:
-
 
138744
        return isSetSuccess();
-
 
138745
      }
-
 
138746
      throw new IllegalStateException();
-
 
138747
    }
-
 
138748
 
-
 
138749
    @Override
-
 
138750
    public boolean equals(Object that) {
-
 
138751
      if (that == null)
-
 
138752
        return false;
-
 
138753
      if (that instanceof deleteBulkPricingForItem_result)
-
 
138754
        return this.equals((deleteBulkPricingForItem_result)that);
-
 
138755
      return false;
-
 
138756
    }
-
 
138757
 
-
 
138758
    public boolean equals(deleteBulkPricingForItem_result that) {
-
 
138759
      if (that == null)
-
 
138760
        return false;
-
 
138761
 
-
 
138762
      boolean this_present_success = true;
-
 
138763
      boolean that_present_success = true;
-
 
138764
      if (this_present_success || that_present_success) {
-
 
138765
        if (!(this_present_success && that_present_success))
-
 
138766
          return false;
-
 
138767
        if (this.success != that.success)
-
 
138768
          return false;
-
 
138769
      }
-
 
138770
 
-
 
138771
      return true;
-
 
138772
    }
-
 
138773
 
-
 
138774
    @Override
-
 
138775
    public int hashCode() {
-
 
138776
      return 0;
-
 
138777
    }
-
 
138778
 
-
 
138779
    public int compareTo(deleteBulkPricingForItem_result other) {
-
 
138780
      if (!getClass().equals(other.getClass())) {
-
 
138781
        return getClass().getName().compareTo(other.getClass().getName());
-
 
138782
      }
-
 
138783
 
-
 
138784
      int lastComparison = 0;
-
 
138785
      deleteBulkPricingForItem_result typedOther = (deleteBulkPricingForItem_result)other;
-
 
138786
 
-
 
138787
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
138788
      if (lastComparison != 0) {
-
 
138789
        return lastComparison;
-
 
138790
      }
-
 
138791
      if (isSetSuccess()) {
-
 
138792
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
138793
        if (lastComparison != 0) {
-
 
138794
          return lastComparison;
-
 
138795
        }
-
 
138796
      }
-
 
138797
      return 0;
-
 
138798
    }
-
 
138799
 
-
 
138800
    public _Fields fieldForId(int fieldId) {
-
 
138801
      return _Fields.findByThriftId(fieldId);
-
 
138802
    }
-
 
138803
 
-
 
138804
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
138805
      org.apache.thrift.protocol.TField field;
-
 
138806
      iprot.readStructBegin();
-
 
138807
      while (true)
-
 
138808
      {
-
 
138809
        field = iprot.readFieldBegin();
-
 
138810
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
138811
          break;
-
 
138812
        }
-
 
138813
        switch (field.id) {
-
 
138814
          case 0: // SUCCESS
-
 
138815
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
138816
              this.success = iprot.readBool();
-
 
138817
              setSuccessIsSet(true);
-
 
138818
            } else { 
-
 
138819
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
138820
            }
-
 
138821
            break;
-
 
138822
          default:
-
 
138823
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
138824
        }
-
 
138825
        iprot.readFieldEnd();
-
 
138826
      }
-
 
138827
      iprot.readStructEnd();
-
 
138828
      validate();
-
 
138829
    }
-
 
138830
 
-
 
138831
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
138832
      oprot.writeStructBegin(STRUCT_DESC);
-
 
138833
 
-
 
138834
      if (this.isSetSuccess()) {
-
 
138835
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
138836
        oprot.writeBool(this.success);
-
 
138837
        oprot.writeFieldEnd();
-
 
138838
      }
-
 
138839
      oprot.writeFieldStop();
-
 
138840
      oprot.writeStructEnd();
-
 
138841
    }
-
 
138842
 
-
 
138843
    @Override
-
 
138844
    public String toString() {
-
 
138845
      StringBuilder sb = new StringBuilder("deleteBulkPricingForItem_result(");
-
 
138846
      boolean first = true;
-
 
138847
 
-
 
138848
      sb.append("success:");
-
 
138849
      sb.append(this.success);
-
 
138850
      first = false;
-
 
138851
      sb.append(")");
-
 
138852
      return sb.toString();
-
 
138853
    }
-
 
138854
 
-
 
138855
    public void validate() throws org.apache.thrift.TException {
-
 
138856
      // check for required fields
-
 
138857
    }
-
 
138858
 
-
 
138859
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
138860
      try {
-
 
138861
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
138862
      } catch (org.apache.thrift.TException te) {
-
 
138863
        throw new java.io.IOException(te);
-
 
138864
      }
-
 
138865
    }
-
 
138866
 
-
 
138867
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
138868
      try {
-
 
138869
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
138870
      } catch (org.apache.thrift.TException te) {
-
 
138871
        throw new java.io.IOException(te);
-
 
138872
      }
-
 
138873
    }
-
 
138874
 
-
 
138875
  }
-
 
138876
 
-
 
138877
  public static class getBulkPricingByItemId_args implements org.apache.thrift.TBase<getBulkPricingByItemId_args, getBulkPricingByItemId_args._Fields>, java.io.Serializable, Cloneable   {
-
 
138878
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBulkPricingByItemId_args");
-
 
138879
 
-
 
138880
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
138881
 
-
 
138882
    private long item_id; // required
-
 
138883
 
-
 
138884
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
138885
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
138886
      ITEM_ID((short)1, "item_id");
-
 
138887
 
-
 
138888
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
138889
 
-
 
138890
      static {
-
 
138891
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
138892
          byName.put(field.getFieldName(), field);
-
 
138893
        }
-
 
138894
      }
-
 
138895
 
-
 
138896
      /**
-
 
138897
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
138898
       */
-
 
138899
      public static _Fields findByThriftId(int fieldId) {
-
 
138900
        switch(fieldId) {
-
 
138901
          case 1: // ITEM_ID
-
 
138902
            return ITEM_ID;
-
 
138903
          default:
-
 
138904
            return null;
-
 
138905
        }
-
 
138906
      }
-
 
138907
 
-
 
138908
      /**
-
 
138909
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
138910
       * if it is not found.
-
 
138911
       */
-
 
138912
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
138913
        _Fields fields = findByThriftId(fieldId);
-
 
138914
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
138915
        return fields;
-
 
138916
      }
-
 
138917
 
-
 
138918
      /**
-
 
138919
       * Find the _Fields constant that matches name, or null if its not found.
-
 
138920
       */
-
 
138921
      public static _Fields findByName(String name) {
-
 
138922
        return byName.get(name);
-
 
138923
      }
-
 
138924
 
-
 
138925
      private final short _thriftId;
-
 
138926
      private final String _fieldName;
-
 
138927
 
-
 
138928
      _Fields(short thriftId, String fieldName) {
-
 
138929
        _thriftId = thriftId;
-
 
138930
        _fieldName = fieldName;
-
 
138931
      }
-
 
138932
 
-
 
138933
      public short getThriftFieldId() {
-
 
138934
        return _thriftId;
-
 
138935
      }
-
 
138936
 
-
 
138937
      public String getFieldName() {
-
 
138938
        return _fieldName;
-
 
138939
      }
-
 
138940
    }
-
 
138941
 
-
 
138942
    // isset id assignments
-
 
138943
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
138944
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
138945
 
-
 
138946
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
138947
    static {
-
 
138948
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
138949
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
138950
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
138951
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
138952
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBulkPricingByItemId_args.class, metaDataMap);
-
 
138953
    }
-
 
138954
 
-
 
138955
    public getBulkPricingByItemId_args() {
-
 
138956
    }
-
 
138957
 
-
 
138958
    public getBulkPricingByItemId_args(
-
 
138959
      long item_id)
-
 
138960
    {
-
 
138961
      this();
-
 
138962
      this.item_id = item_id;
-
 
138963
      setItem_idIsSet(true);
-
 
138964
    }
-
 
138965
 
-
 
138966
    /**
-
 
138967
     * Performs a deep copy on <i>other</i>.
-
 
138968
     */
-
 
138969
    public getBulkPricingByItemId_args(getBulkPricingByItemId_args other) {
-
 
138970
      __isset_bit_vector.clear();
-
 
138971
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
138972
      this.item_id = other.item_id;
-
 
138973
    }
-
 
138974
 
-
 
138975
    public getBulkPricingByItemId_args deepCopy() {
-
 
138976
      return new getBulkPricingByItemId_args(this);
-
 
138977
    }
-
 
138978
 
-
 
138979
    @Override
-
 
138980
    public void clear() {
-
 
138981
      setItem_idIsSet(false);
-
 
138982
      this.item_id = 0;
-
 
138983
    }
-
 
138984
 
-
 
138985
    public long getItem_id() {
-
 
138986
      return this.item_id;
-
 
138987
    }
-
 
138988
 
-
 
138989
    public void setItem_id(long item_id) {
-
 
138990
      this.item_id = item_id;
-
 
138991
      setItem_idIsSet(true);
-
 
138992
    }
-
 
138993
 
-
 
138994
    public void unsetItem_id() {
-
 
138995
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
138996
    }
-
 
138997
 
-
 
138998
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
138999
    public boolean isSetItem_id() {
-
 
139000
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
139001
    }
-
 
139002
 
-
 
139003
    public void setItem_idIsSet(boolean value) {
-
 
139004
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
139005
    }
-
 
139006
 
-
 
139007
    public void setFieldValue(_Fields field, Object value) {
-
 
139008
      switch (field) {
-
 
139009
      case ITEM_ID:
-
 
139010
        if (value == null) {
-
 
139011
          unsetItem_id();
-
 
139012
        } else {
-
 
139013
          setItem_id((Long)value);
-
 
139014
        }
-
 
139015
        break;
-
 
139016
 
-
 
139017
      }
-
 
139018
    }
-
 
139019
 
-
 
139020
    public Object getFieldValue(_Fields field) {
-
 
139021
      switch (field) {
-
 
139022
      case ITEM_ID:
-
 
139023
        return Long.valueOf(getItem_id());
-
 
139024
 
-
 
139025
      }
-
 
139026
      throw new IllegalStateException();
-
 
139027
    }
-
 
139028
 
-
 
139029
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
139030
    public boolean isSet(_Fields field) {
-
 
139031
      if (field == null) {
-
 
139032
        throw new IllegalArgumentException();
-
 
139033
      }
-
 
139034
 
-
 
139035
      switch (field) {
-
 
139036
      case ITEM_ID:
-
 
139037
        return isSetItem_id();
-
 
139038
      }
-
 
139039
      throw new IllegalStateException();
-
 
139040
    }
-
 
139041
 
-
 
139042
    @Override
-
 
139043
    public boolean equals(Object that) {
-
 
139044
      if (that == null)
-
 
139045
        return false;
-
 
139046
      if (that instanceof getBulkPricingByItemId_args)
-
 
139047
        return this.equals((getBulkPricingByItemId_args)that);
-
 
139048
      return false;
-
 
139049
    }
-
 
139050
 
-
 
139051
    public boolean equals(getBulkPricingByItemId_args that) {
-
 
139052
      if (that == null)
-
 
139053
        return false;
-
 
139054
 
-
 
139055
      boolean this_present_item_id = true;
-
 
139056
      boolean that_present_item_id = true;
-
 
139057
      if (this_present_item_id || that_present_item_id) {
-
 
139058
        if (!(this_present_item_id && that_present_item_id))
-
 
139059
          return false;
-
 
139060
        if (this.item_id != that.item_id)
-
 
139061
          return false;
-
 
139062
      }
-
 
139063
 
-
 
139064
      return true;
-
 
139065
    }
-
 
139066
 
-
 
139067
    @Override
-
 
139068
    public int hashCode() {
-
 
139069
      return 0;
-
 
139070
    }
-
 
139071
 
-
 
139072
    public int compareTo(getBulkPricingByItemId_args other) {
-
 
139073
      if (!getClass().equals(other.getClass())) {
-
 
139074
        return getClass().getName().compareTo(other.getClass().getName());
-
 
139075
      }
-
 
139076
 
-
 
139077
      int lastComparison = 0;
-
 
139078
      getBulkPricingByItemId_args typedOther = (getBulkPricingByItemId_args)other;
-
 
139079
 
-
 
139080
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
139081
      if (lastComparison != 0) {
-
 
139082
        return lastComparison;
-
 
139083
      }
-
 
139084
      if (isSetItem_id()) {
-
 
139085
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
139086
        if (lastComparison != 0) {
-
 
139087
          return lastComparison;
-
 
139088
        }
-
 
139089
      }
-
 
139090
      return 0;
-
 
139091
    }
-
 
139092
 
-
 
139093
    public _Fields fieldForId(int fieldId) {
-
 
139094
      return _Fields.findByThriftId(fieldId);
-
 
139095
    }
-
 
139096
 
-
 
139097
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
139098
      org.apache.thrift.protocol.TField field;
-
 
139099
      iprot.readStructBegin();
-
 
139100
      while (true)
-
 
139101
      {
-
 
139102
        field = iprot.readFieldBegin();
-
 
139103
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
139104
          break;
-
 
139105
        }
-
 
139106
        switch (field.id) {
-
 
139107
          case 1: // ITEM_ID
-
 
139108
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
139109
              this.item_id = iprot.readI64();
-
 
139110
              setItem_idIsSet(true);
-
 
139111
            } else { 
-
 
139112
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
139113
            }
-
 
139114
            break;
-
 
139115
          default:
-
 
139116
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
139117
        }
-
 
139118
        iprot.readFieldEnd();
-
 
139119
      }
-
 
139120
      iprot.readStructEnd();
-
 
139121
      validate();
-
 
139122
    }
-
 
139123
 
-
 
139124
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
139125
      validate();
-
 
139126
 
-
 
139127
      oprot.writeStructBegin(STRUCT_DESC);
-
 
139128
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
139129
      oprot.writeI64(this.item_id);
-
 
139130
      oprot.writeFieldEnd();
-
 
139131
      oprot.writeFieldStop();
-
 
139132
      oprot.writeStructEnd();
-
 
139133
    }
-
 
139134
 
-
 
139135
    @Override
-
 
139136
    public String toString() {
-
 
139137
      StringBuilder sb = new StringBuilder("getBulkPricingByItemId_args(");
-
 
139138
      boolean first = true;
-
 
139139
 
-
 
139140
      sb.append("item_id:");
-
 
139141
      sb.append(this.item_id);
-
 
139142
      first = false;
-
 
139143
      sb.append(")");
-
 
139144
      return sb.toString();
-
 
139145
    }
-
 
139146
 
-
 
139147
    public void validate() throws org.apache.thrift.TException {
-
 
139148
      // check for required fields
-
 
139149
    }
-
 
139150
 
-
 
139151
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
139152
      try {
-
 
139153
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
139154
      } catch (org.apache.thrift.TException te) {
-
 
139155
        throw new java.io.IOException(te);
-
 
139156
      }
-
 
139157
    }
-
 
139158
 
-
 
139159
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
139160
      try {
-
 
139161
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
139162
        __isset_bit_vector = new BitSet(1);
-
 
139163
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
139164
      } catch (org.apache.thrift.TException te) {
-
 
139165
        throw new java.io.IOException(te);
-
 
139166
      }
-
 
139167
    }
-
 
139168
 
-
 
139169
  }
-
 
139170
 
-
 
139171
  public static class getBulkPricingByItemId_result implements org.apache.thrift.TBase<getBulkPricingByItemId_result, getBulkPricingByItemId_result._Fields>, java.io.Serializable, Cloneable   {
-
 
139172
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBulkPricingByItemId_result");
-
 
139173
 
-
 
139174
    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);
-
 
139175
 
-
 
139176
    private List<BulkItemPricing> success; // required
-
 
139177
 
-
 
139178
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
139179
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
139180
      SUCCESS((short)0, "success");
-
 
139181
 
-
 
139182
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
139183
 
-
 
139184
      static {
-
 
139185
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
139186
          byName.put(field.getFieldName(), field);
-
 
139187
        }
-
 
139188
      }
-
 
139189
 
-
 
139190
      /**
-
 
139191
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
139192
       */
-
 
139193
      public static _Fields findByThriftId(int fieldId) {
-
 
139194
        switch(fieldId) {
-
 
139195
          case 0: // SUCCESS
-
 
139196
            return SUCCESS;
-
 
139197
          default:
-
 
139198
            return null;
-
 
139199
        }
-
 
139200
      }
-
 
139201
 
-
 
139202
      /**
-
 
139203
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
139204
       * if it is not found.
-
 
139205
       */
-
 
139206
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
139207
        _Fields fields = findByThriftId(fieldId);
-
 
139208
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
139209
        return fields;
-
 
139210
      }
-
 
139211
 
-
 
139212
      /**
-
 
139213
       * Find the _Fields constant that matches name, or null if its not found.
-
 
139214
       */
-
 
139215
      public static _Fields findByName(String name) {
-
 
139216
        return byName.get(name);
-
 
139217
      }
-
 
139218
 
-
 
139219
      private final short _thriftId;
-
 
139220
      private final String _fieldName;
-
 
139221
 
-
 
139222
      _Fields(short thriftId, String fieldName) {
-
 
139223
        _thriftId = thriftId;
-
 
139224
        _fieldName = fieldName;
-
 
139225
      }
-
 
139226
 
-
 
139227
      public short getThriftFieldId() {
-
 
139228
        return _thriftId;
-
 
139229
      }
-
 
139230
 
-
 
139231
      public String getFieldName() {
-
 
139232
        return _fieldName;
-
 
139233
      }
-
 
139234
    }
-
 
139235
 
-
 
139236
    // isset id assignments
-
 
139237
 
-
 
139238
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
139239
    static {
-
 
139240
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
139241
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
139242
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
139243
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BulkItemPricing.class))));
-
 
139244
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
139245
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBulkPricingByItemId_result.class, metaDataMap);
-
 
139246
    }
-
 
139247
 
-
 
139248
    public getBulkPricingByItemId_result() {
-
 
139249
    }
-
 
139250
 
-
 
139251
    public getBulkPricingByItemId_result(
-
 
139252
      List<BulkItemPricing> success)
-
 
139253
    {
-
 
139254
      this();
-
 
139255
      this.success = success;
-
 
139256
    }
-
 
139257
 
-
 
139258
    /**
-
 
139259
     * Performs a deep copy on <i>other</i>.
-
 
139260
     */
-
 
139261
    public getBulkPricingByItemId_result(getBulkPricingByItemId_result other) {
-
 
139262
      if (other.isSetSuccess()) {
-
 
139263
        List<BulkItemPricing> __this__success = new ArrayList<BulkItemPricing>();
-
 
139264
        for (BulkItemPricing other_element : other.success) {
-
 
139265
          __this__success.add(new BulkItemPricing(other_element));
-
 
139266
        }
-
 
139267
        this.success = __this__success;
-
 
139268
      }
-
 
139269
    }
-
 
139270
 
-
 
139271
    public getBulkPricingByItemId_result deepCopy() {
-
 
139272
      return new getBulkPricingByItemId_result(this);
-
 
139273
    }
-
 
139274
 
-
 
139275
    @Override
-
 
139276
    public void clear() {
-
 
139277
      this.success = null;
-
 
139278
    }
-
 
139279
 
-
 
139280
    public int getSuccessSize() {
-
 
139281
      return (this.success == null) ? 0 : this.success.size();
-
 
139282
    }
-
 
139283
 
-
 
139284
    public java.util.Iterator<BulkItemPricing> getSuccessIterator() {
-
 
139285
      return (this.success == null) ? null : this.success.iterator();
-
 
139286
    }
-
 
139287
 
-
 
139288
    public void addToSuccess(BulkItemPricing elem) {
-
 
139289
      if (this.success == null) {
-
 
139290
        this.success = new ArrayList<BulkItemPricing>();
-
 
139291
      }
-
 
139292
      this.success.add(elem);
-
 
139293
    }
-
 
139294
 
-
 
139295
    public List<BulkItemPricing> getSuccess() {
-
 
139296
      return this.success;
-
 
139297
    }
-
 
139298
 
-
 
139299
    public void setSuccess(List<BulkItemPricing> success) {
-
 
139300
      this.success = success;
-
 
139301
    }
-
 
139302
 
-
 
139303
    public void unsetSuccess() {
-
 
139304
      this.success = null;
-
 
139305
    }
-
 
139306
 
-
 
139307
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
139308
    public boolean isSetSuccess() {
-
 
139309
      return this.success != null;
-
 
139310
    }
-
 
139311
 
-
 
139312
    public void setSuccessIsSet(boolean value) {
-
 
139313
      if (!value) {
-
 
139314
        this.success = null;
-
 
139315
      }
-
 
139316
    }
-
 
139317
 
-
 
139318
    public void setFieldValue(_Fields field, Object value) {
-
 
139319
      switch (field) {
-
 
139320
      case SUCCESS:
-
 
139321
        if (value == null) {
-
 
139322
          unsetSuccess();
-
 
139323
        } else {
-
 
139324
          setSuccess((List<BulkItemPricing>)value);
-
 
139325
        }
-
 
139326
        break;
-
 
139327
 
-
 
139328
      }
-
 
139329
    }
-
 
139330
 
-
 
139331
    public Object getFieldValue(_Fields field) {
-
 
139332
      switch (field) {
-
 
139333
      case SUCCESS:
-
 
139334
        return getSuccess();
-
 
139335
 
-
 
139336
      }
-
 
139337
      throw new IllegalStateException();
-
 
139338
    }
-
 
139339
 
-
 
139340
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
139341
    public boolean isSet(_Fields field) {
-
 
139342
      if (field == null) {
-
 
139343
        throw new IllegalArgumentException();
-
 
139344
      }
-
 
139345
 
-
 
139346
      switch (field) {
-
 
139347
      case SUCCESS:
-
 
139348
        return isSetSuccess();
-
 
139349
      }
-
 
139350
      throw new IllegalStateException();
-
 
139351
    }
-
 
139352
 
-
 
139353
    @Override
-
 
139354
    public boolean equals(Object that) {
-
 
139355
      if (that == null)
-
 
139356
        return false;
-
 
139357
      if (that instanceof getBulkPricingByItemId_result)
-
 
139358
        return this.equals((getBulkPricingByItemId_result)that);
-
 
139359
      return false;
-
 
139360
    }
-
 
139361
 
-
 
139362
    public boolean equals(getBulkPricingByItemId_result that) {
-
 
139363
      if (that == null)
-
 
139364
        return false;
-
 
139365
 
-
 
139366
      boolean this_present_success = true && this.isSetSuccess();
-
 
139367
      boolean that_present_success = true && that.isSetSuccess();
-
 
139368
      if (this_present_success || that_present_success) {
-
 
139369
        if (!(this_present_success && that_present_success))
-
 
139370
          return false;
-
 
139371
        if (!this.success.equals(that.success))
-
 
139372
          return false;
-
 
139373
      }
-
 
139374
 
-
 
139375
      return true;
-
 
139376
    }
-
 
139377
 
-
 
139378
    @Override
-
 
139379
    public int hashCode() {
-
 
139380
      return 0;
-
 
139381
    }
-
 
139382
 
-
 
139383
    public int compareTo(getBulkPricingByItemId_result other) {
-
 
139384
      if (!getClass().equals(other.getClass())) {
-
 
139385
        return getClass().getName().compareTo(other.getClass().getName());
-
 
139386
      }
-
 
139387
 
-
 
139388
      int lastComparison = 0;
-
 
139389
      getBulkPricingByItemId_result typedOther = (getBulkPricingByItemId_result)other;
-
 
139390
 
-
 
139391
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
139392
      if (lastComparison != 0) {
-
 
139393
        return lastComparison;
-
 
139394
      }
-
 
139395
      if (isSetSuccess()) {
-
 
139396
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
139397
        if (lastComparison != 0) {
-
 
139398
          return lastComparison;
-
 
139399
        }
-
 
139400
      }
-
 
139401
      return 0;
-
 
139402
    }
-
 
139403
 
-
 
139404
    public _Fields fieldForId(int fieldId) {
-
 
139405
      return _Fields.findByThriftId(fieldId);
-
 
139406
    }
-
 
139407
 
-
 
139408
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
139409
      org.apache.thrift.protocol.TField field;
-
 
139410
      iprot.readStructBegin();
-
 
139411
      while (true)
-
 
139412
      {
-
 
139413
        field = iprot.readFieldBegin();
-
 
139414
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
139415
          break;
-
 
139416
        }
-
 
139417
        switch (field.id) {
-
 
139418
          case 0: // SUCCESS
-
 
139419
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
139420
              {
-
 
139421
                org.apache.thrift.protocol.TList _list505 = iprot.readListBegin();
-
 
139422
                this.success = new ArrayList<BulkItemPricing>(_list505.size);
-
 
139423
                for (int _i506 = 0; _i506 < _list505.size; ++_i506)
-
 
139424
                {
-
 
139425
                  BulkItemPricing _elem507; // required
-
 
139426
                  _elem507 = new BulkItemPricing();
-
 
139427
                  _elem507.read(iprot);
-
 
139428
                  this.success.add(_elem507);
-
 
139429
                }
-
 
139430
                iprot.readListEnd();
-
 
139431
              }
-
 
139432
            } else { 
-
 
139433
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
139434
            }
-
 
139435
            break;
-
 
139436
          default:
-
 
139437
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
139438
        }
-
 
139439
        iprot.readFieldEnd();
-
 
139440
      }
-
 
139441
      iprot.readStructEnd();
-
 
139442
      validate();
-
 
139443
    }
-
 
139444
 
-
 
139445
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
139446
      oprot.writeStructBegin(STRUCT_DESC);
-
 
139447
 
-
 
139448
      if (this.isSetSuccess()) {
-
 
139449
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
139450
        {
-
 
139451
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
139452
          for (BulkItemPricing _iter508 : this.success)
-
 
139453
          {
-
 
139454
            _iter508.write(oprot);
-
 
139455
          }
-
 
139456
          oprot.writeListEnd();
-
 
139457
        }
-
 
139458
        oprot.writeFieldEnd();
-
 
139459
      }
-
 
139460
      oprot.writeFieldStop();
-
 
139461
      oprot.writeStructEnd();
-
 
139462
    }
-
 
139463
 
-
 
139464
    @Override
-
 
139465
    public String toString() {
-
 
139466
      StringBuilder sb = new StringBuilder("getBulkPricingByItemId_result(");
-
 
139467
      boolean first = true;
-
 
139468
 
-
 
139469
      sb.append("success:");
-
 
139470
      if (this.success == null) {
-
 
139471
        sb.append("null");
136011
      } else {
139472
      } else {
136012
        sb.append(this.success);
139473
        sb.append(this.success);
136013
      }
139474
      }
136014
      first = false;
139475
      first = false;
136015
      sb.append(")");
139476
      sb.append(")");