Subversion Repositories SmartDukaan

Rev

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

Rev 7190 Rev 7256
Line 344... Line 344...
344
     * @param username
344
     * @param username
345
     * @param reason
345
     * @param reason
346
     */
346
     */
347
    public boolean addAuthorizationLog(long itemId, String username, String reason) throws CatalogServiceException, org.apache.thrift.TException;
347
    public boolean addAuthorizationLog(long itemId, String username, String reason) throws CatalogServiceException, org.apache.thrift.TException;
348
 
348
 
349
    public List<Long> getClearanceSaleCatalogIds() throws CatalogServiceException, org.apache.thrift.TException;
-
 
350
 
-
 
351
    public boolean addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount) throws CatalogServiceException, org.apache.thrift.TException;
349
    public boolean addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount) throws CatalogServiceException, org.apache.thrift.TException;
352
 
350
 
353
    public boolean deleteVoucherForItem(long catalog_item_id, long voucherType) throws CatalogServiceException, org.apache.thrift.TException;
351
    public boolean deleteVoucherForItem(long catalog_item_id, long voucherType) throws CatalogServiceException, org.apache.thrift.TException;
354
 
352
 
355
    public long getVoucherAmount(long itemId, long voucherType) throws org.apache.thrift.TException;
353
    public long getVoucherAmount(long itemId, long voucherType) throws org.apache.thrift.TException;
Line 384... Line 382...
384
 
382
 
385
    public long getFreebieForItem(long itemId) throws org.apache.thrift.TException;
383
    public long getFreebieForItem(long itemId) throws org.apache.thrift.TException;
386
 
384
 
387
    public void addOrUpdateFreebieForItem(FreebieItem freebieItem) throws org.apache.thrift.TException;
385
    public void addOrUpdateFreebieForItem(FreebieItem freebieItem) throws org.apache.thrift.TException;
388
 
386
 
-
 
387
    public StorePricing getStorePricing(long itemId) throws org.apache.thrift.TException;
-
 
388
 
389
  }
389
  }
390
 
390
 
391
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
391
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
392
 
392
 
393
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
393
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 526... Line 526...
526
 
526
 
527
    public void getProductNotificationRequestCount(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductNotificationRequestCount_call> resultHandler) throws org.apache.thrift.TException;
527
    public void getProductNotificationRequestCount(long startDateTime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProductNotificationRequestCount_call> resultHandler) throws org.apache.thrift.TException;
528
 
528
 
529
    public void addAuthorizationLog(long itemId, String username, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAuthorizationLog_call> resultHandler) throws org.apache.thrift.TException;
529
    public void addAuthorizationLog(long itemId, String username, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAuthorizationLog_call> resultHandler) throws org.apache.thrift.TException;
530
 
530
 
531
    public void getClearanceSaleCatalogIds(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getClearanceSaleCatalogIds_call> resultHandler) throws org.apache.thrift.TException;
-
 
532
 
-
 
533
    public void addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addupdateVoucherForItem_call> resultHandler) throws org.apache.thrift.TException;
531
    public void addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addupdateVoucherForItem_call> resultHandler) throws org.apache.thrift.TException;
534
 
532
 
535
    public void deleteVoucherForItem(long catalog_item_id, long voucherType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteVoucherForItem_call> resultHandler) throws org.apache.thrift.TException;
533
    public void deleteVoucherForItem(long catalog_item_id, long voucherType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteVoucherForItem_call> resultHandler) throws org.apache.thrift.TException;
536
 
534
 
537
    public void getVoucherAmount(long itemId, long voucherType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVoucherAmount_call> resultHandler) throws org.apache.thrift.TException;
535
    public void getVoucherAmount(long itemId, long voucherType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getVoucherAmount_call> resultHandler) throws org.apache.thrift.TException;
Line 558... Line 556...
558
 
556
 
559
    public void getFreebieForItem(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreebieForItem_call> resultHandler) throws org.apache.thrift.TException;
557
    public void getFreebieForItem(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreebieForItem_call> resultHandler) throws org.apache.thrift.TException;
560
 
558
 
561
    public void addOrUpdateFreebieForItem(FreebieItem freebieItem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateFreebieForItem_call> resultHandler) throws org.apache.thrift.TException;
559
    public void addOrUpdateFreebieForItem(FreebieItem freebieItem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateFreebieForItem_call> resultHandler) throws org.apache.thrift.TException;
562
 
560
 
-
 
561
    public void getStorePricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStorePricing_call> resultHandler) throws org.apache.thrift.TException;
-
 
562
 
563
  }
563
  }
564
 
564
 
565
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
565
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
566
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
566
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
567
      public Factory() {}
567
      public Factory() {}
Line 2282... Line 2282...
2282
        throw result.cex;
2282
        throw result.cex;
2283
      }
2283
      }
2284
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
2284
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
2285
    }
2285
    }
2286
 
2286
 
2287
    public List<Long> getClearanceSaleCatalogIds() throws CatalogServiceException, org.apache.thrift.TException
-
 
2288
    {
-
 
2289
      send_getClearanceSaleCatalogIds();
-
 
2290
      return recv_getClearanceSaleCatalogIds();
-
 
2291
    }
-
 
2292
 
-
 
2293
    public void send_getClearanceSaleCatalogIds() throws org.apache.thrift.TException
-
 
2294
    {
-
 
2295
      getClearanceSaleCatalogIds_args args = new getClearanceSaleCatalogIds_args();
-
 
2296
      sendBase("getClearanceSaleCatalogIds", args);
-
 
2297
    }
-
 
2298
 
-
 
2299
    public List<Long> recv_getClearanceSaleCatalogIds() throws CatalogServiceException, org.apache.thrift.TException
-
 
2300
    {
-
 
2301
      getClearanceSaleCatalogIds_result result = new getClearanceSaleCatalogIds_result();
-
 
2302
      receiveBase(result, "getClearanceSaleCatalogIds");
-
 
2303
      if (result.isSetSuccess()) {
-
 
2304
        return result.success;
-
 
2305
      }
-
 
2306
      if (result.cex != null) {
-
 
2307
        throw result.cex;
-
 
2308
      }
-
 
2309
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");
-
 
2310
    }
-
 
2311
 
-
 
2312
    public boolean addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount) throws CatalogServiceException, org.apache.thrift.TException
2287
    public boolean addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount) throws CatalogServiceException, org.apache.thrift.TException
2313
    {
2288
    {
2314
      send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount);
2289
      send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount);
2315
      return recv_addupdateVoucherForItem();
2290
      return recv_addupdateVoucherForItem();
2316
    }
2291
    }
Line 2661... Line 2636...
2661
      addOrUpdateFreebieForItem_result result = new addOrUpdateFreebieForItem_result();
2636
      addOrUpdateFreebieForItem_result result = new addOrUpdateFreebieForItem_result();
2662
      receiveBase(result, "addOrUpdateFreebieForItem");
2637
      receiveBase(result, "addOrUpdateFreebieForItem");
2663
      return;
2638
      return;
2664
    }
2639
    }
2665
 
2640
 
-
 
2641
    public StorePricing getStorePricing(long itemId) throws org.apache.thrift.TException
-
 
2642
    {
-
 
2643
      send_getStorePricing(itemId);
-
 
2644
      return recv_getStorePricing();
-
 
2645
    }
-
 
2646
 
-
 
2647
    public void send_getStorePricing(long itemId) throws org.apache.thrift.TException
-
 
2648
    {
-
 
2649
      getStorePricing_args args = new getStorePricing_args();
-
 
2650
      args.setItemId(itemId);
-
 
2651
      sendBase("getStorePricing", args);
-
 
2652
    }
-
 
2653
 
-
 
2654
    public StorePricing recv_getStorePricing() throws org.apache.thrift.TException
-
 
2655
    {
-
 
2656
      getStorePricing_result result = new getStorePricing_result();
-
 
2657
      receiveBase(result, "getStorePricing");
-
 
2658
      if (result.isSetSuccess()) {
-
 
2659
        return result.success;
-
 
2660
      }
-
 
2661
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
-
 
2662
    }
-
 
2663
 
2666
  }
2664
  }
2667
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2665
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2668
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2666
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2669
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2667
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2670
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2668
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4980... Line 4978...
4980
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4978
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4981
        return (new Client(prot)).recv_addAuthorizationLog();
4979
        return (new Client(prot)).recv_addAuthorizationLog();
4982
      }
4980
      }
4983
    }
4981
    }
4984
 
4982
 
4985
    public void getClearanceSaleCatalogIds(org.apache.thrift.async.AsyncMethodCallback<getClearanceSaleCatalogIds_call> resultHandler) throws org.apache.thrift.TException {
-
 
4986
      checkReady();
-
 
4987
      getClearanceSaleCatalogIds_call method_call = new getClearanceSaleCatalogIds_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
4988
      this.___currentMethod = method_call;
-
 
4989
      ___manager.call(method_call);
-
 
4990
    }
-
 
4991
 
-
 
4992
    public static class getClearanceSaleCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4993
      public getClearanceSaleCatalogIds_call(org.apache.thrift.async.AsyncMethodCallback<getClearanceSaleCatalogIds_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 {
-
 
4994
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4995
      }
-
 
4996
 
-
 
4997
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4998
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getClearanceSaleCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4999
        getClearanceSaleCatalogIds_args args = new getClearanceSaleCatalogIds_args();
-
 
5000
        args.write(prot);
-
 
5001
        prot.writeMessageEnd();
-
 
5002
      }
-
 
5003
 
-
 
5004
      public List<Long> getResult() throws CatalogServiceException, org.apache.thrift.TException {
-
 
5005
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5006
          throw new IllegalStateException("Method call not finished!");
-
 
5007
        }
-
 
5008
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5009
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5010
        return (new Client(prot)).recv_getClearanceSaleCatalogIds();
-
 
5011
      }
-
 
5012
    }
-
 
5013
 
-
 
5014
    public void addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<addupdateVoucherForItem_call> resultHandler) throws org.apache.thrift.TException {
4983
    public void addupdateVoucherForItem(long catalog_item_id, long voucherType, long voucherAmount, org.apache.thrift.async.AsyncMethodCallback<addupdateVoucherForItem_call> resultHandler) throws org.apache.thrift.TException {
5015
      checkReady();
4984
      checkReady();
5016
      addupdateVoucherForItem_call method_call = new addupdateVoucherForItem_call(catalog_item_id, voucherType, voucherAmount, resultHandler, this, ___protocolFactory, ___transport);
4985
      addupdateVoucherForItem_call method_call = new addupdateVoucherForItem_call(catalog_item_id, voucherType, voucherAmount, resultHandler, this, ___protocolFactory, ___transport);
5017
      this.___currentMethod = method_call;
4986
      this.___currentMethod = method_call;
5018
      ___manager.call(method_call);
4987
      ___manager.call(method_call);
Line 5516... Line 5485...
5516
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5485
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5517
        (new Client(prot)).recv_addOrUpdateFreebieForItem();
5486
        (new Client(prot)).recv_addOrUpdateFreebieForItem();
5518
      }
5487
      }
5519
    }
5488
    }
5520
 
5489
 
-
 
5490
    public void getStorePricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<getStorePricing_call> resultHandler) throws org.apache.thrift.TException {
-
 
5491
      checkReady();
-
 
5492
      getStorePricing_call method_call = new getStorePricing_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
-
 
5493
      this.___currentMethod = method_call;
-
 
5494
      ___manager.call(method_call);
-
 
5495
    }
-
 
5496
 
-
 
5497
    public static class getStorePricing_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5498
      private long itemId;
-
 
5499
      public getStorePricing_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getStorePricing_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 {
-
 
5500
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5501
        this.itemId = itemId;
-
 
5502
      }
-
 
5503
 
-
 
5504
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5505
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getStorePricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5506
        getStorePricing_args args = new getStorePricing_args();
-
 
5507
        args.setItemId(itemId);
-
 
5508
        args.write(prot);
-
 
5509
        prot.writeMessageEnd();
-
 
5510
      }
-
 
5511
 
-
 
5512
      public StorePricing getResult() throws org.apache.thrift.TException {
-
 
5513
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5514
          throw new IllegalStateException("Method call not finished!");
-
 
5515
        }
-
 
5516
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5517
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5518
        return (new Client(prot)).recv_getStorePricing();
-
 
5519
      }
-
 
5520
    }
-
 
5521
 
5521
  }
5522
  }
5522
 
5523
 
5523
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5524
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5524
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5525
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5525
    public Processor(I iface) {
5526
    public Processor(I iface) {
Line 5598... Line 5599...
5598
      processMap.put("searchItemsInRange", new searchItemsInRange());
5599
      processMap.put("searchItemsInRange", new searchItemsInRange());
5599
      processMap.put("getSearchResultCount", new getSearchResultCount());
5600
      processMap.put("getSearchResultCount", new getSearchResultCount());
5600
      processMap.put("getProductNotifications", new getProductNotifications());
5601
      processMap.put("getProductNotifications", new getProductNotifications());
5601
      processMap.put("getProductNotificationRequestCount", new getProductNotificationRequestCount());
5602
      processMap.put("getProductNotificationRequestCount", new getProductNotificationRequestCount());
5602
      processMap.put("addAuthorizationLog", new addAuthorizationLog());
5603
      processMap.put("addAuthorizationLog", new addAuthorizationLog());
5603
      processMap.put("getClearanceSaleCatalogIds", new getClearanceSaleCatalogIds());
-
 
5604
      processMap.put("addupdateVoucherForItem", new addupdateVoucherForItem());
5604
      processMap.put("addupdateVoucherForItem", new addupdateVoucherForItem());
5605
      processMap.put("deleteVoucherForItem", new deleteVoucherForItem());
5605
      processMap.put("deleteVoucherForItem", new deleteVoucherForItem());
5606
      processMap.put("getVoucherAmount", new getVoucherAmount());
5606
      processMap.put("getVoucherAmount", new getVoucherAmount());
5607
      processMap.put("getAllItemVouchers", new getAllItemVouchers());
5607
      processMap.put("getAllItemVouchers", new getAllItemVouchers());
5608
      processMap.put("isValidCatalogItemId", new isValidCatalogItemId());
5608
      processMap.put("isValidCatalogItemId", new isValidCatalogItemId());
Line 5614... Line 5614...
5614
      processMap.put("getInsurer", new getInsurer());
5614
      processMap.put("getInsurer", new getInsurer());
5615
      processMap.put("getAllInsurers", new getAllInsurers());
5615
      processMap.put("getAllInsurers", new getAllInsurers());
5616
      processMap.put("updateInsuranceDeclaredAmount", new updateInsuranceDeclaredAmount());
5616
      processMap.put("updateInsuranceDeclaredAmount", new updateInsuranceDeclaredAmount());
5617
      processMap.put("getFreebieForItem", new getFreebieForItem());
5617
      processMap.put("getFreebieForItem", new getFreebieForItem());
5618
      processMap.put("addOrUpdateFreebieForItem", new addOrUpdateFreebieForItem());
5618
      processMap.put("addOrUpdateFreebieForItem", new addOrUpdateFreebieForItem());
-
 
5619
      processMap.put("getStorePricing", new getStorePricing());
5619
      return processMap;
5620
      return processMap;
5620
    }
5621
    }
5621
 
5622
 
5622
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
5623
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
5623
      public addItem() {
5624
      public addItem() {
Line 6880... Line 6881...
6880
        }
6881
        }
6881
        return result;
6882
        return result;
6882
      }
6883
      }
6883
    }
6884
    }
6884
 
6885
 
6885
    private static class getClearanceSaleCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getClearanceSaleCatalogIds_args> {
-
 
6886
      public getClearanceSaleCatalogIds() {
-
 
6887
        super("getClearanceSaleCatalogIds");
-
 
6888
      }
-
 
6889
 
-
 
6890
      protected getClearanceSaleCatalogIds_args getEmptyArgsInstance() {
-
 
6891
        return new getClearanceSaleCatalogIds_args();
-
 
6892
      }
-
 
6893
 
-
 
6894
      protected getClearanceSaleCatalogIds_result getResult(I iface, getClearanceSaleCatalogIds_args args) throws org.apache.thrift.TException {
-
 
6895
        getClearanceSaleCatalogIds_result result = new getClearanceSaleCatalogIds_result();
-
 
6896
        try {
-
 
6897
          result.success = iface.getClearanceSaleCatalogIds();
-
 
6898
        } catch (CatalogServiceException cex) {
-
 
6899
          result.cex = cex;
-
 
6900
        }
-
 
6901
        return result;
-
 
6902
      }
-
 
6903
    }
-
 
6904
 
-
 
6905
    private static class addupdateVoucherForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addupdateVoucherForItem_args> {
6886
    private static class addupdateVoucherForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addupdateVoucherForItem_args> {
6906
      public addupdateVoucherForItem() {
6887
      public addupdateVoucherForItem() {
6907
        super("addupdateVoucherForItem");
6888
        super("addupdateVoucherForItem");
6908
      }
6889
      }
6909
 
6890
 
Line 7156... Line 7137...
7156
        iface.addOrUpdateFreebieForItem(args.freebieItem);
7137
        iface.addOrUpdateFreebieForItem(args.freebieItem);
7157
        return result;
7138
        return result;
7158
      }
7139
      }
7159
    }
7140
    }
7160
 
7141
 
-
 
7142
    private static class getStorePricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getStorePricing_args> {
-
 
7143
      public getStorePricing() {
-
 
7144
        super("getStorePricing");
-
 
7145
      }
-
 
7146
 
-
 
7147
      protected getStorePricing_args getEmptyArgsInstance() {
-
 
7148
        return new getStorePricing_args();
-
 
7149
      }
-
 
7150
 
-
 
7151
      protected getStorePricing_result getResult(I iface, getStorePricing_args args) throws org.apache.thrift.TException {
-
 
7152
        getStorePricing_result result = new getStorePricing_result();
-
 
7153
        result.success = iface.getStorePricing(args.itemId);
-
 
7154
        return result;
-
 
7155
      }
-
 
7156
    }
-
 
7157
 
7161
  }
7158
  }
7162
 
7159
 
7163
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
7160
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
7164
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
7161
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
7165
 
7162
 
Line 54006... Line 54003...
54006
      }
54003
      }
54007
    }
54004
    }
54008
 
54005
 
54009
  }
54006
  }
54010
 
54007
 
54011
  public static class getClearanceSaleCatalogIds_args implements org.apache.thrift.TBase<getClearanceSaleCatalogIds_args, getClearanceSaleCatalogIds_args._Fields>, java.io.Serializable, Cloneable   {
-
 
54012
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClearanceSaleCatalogIds_args");
-
 
54013
 
-
 
54014
 
-
 
54015
 
-
 
54016
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
54017
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
54018
;
-
 
54019
 
-
 
54020
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
54021
 
-
 
54022
      static {
-
 
54023
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
54024
          byName.put(field.getFieldName(), field);
-
 
54025
        }
-
 
54026
      }
-
 
54027
 
-
 
54028
      /**
-
 
54029
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
54030
       */
-
 
54031
      public static _Fields findByThriftId(int fieldId) {
-
 
54032
        switch(fieldId) {
-
 
54033
          default:
-
 
54034
            return null;
-
 
54035
        }
-
 
54036
      }
-
 
54037
 
-
 
54038
      /**
-
 
54039
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
54040
       * if it is not found.
-
 
54041
       */
-
 
54042
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
54043
        _Fields fields = findByThriftId(fieldId);
-
 
54044
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
54045
        return fields;
-
 
54046
      }
-
 
54047
 
-
 
54048
      /**
-
 
54049
       * Find the _Fields constant that matches name, or null if its not found.
-
 
54050
       */
-
 
54051
      public static _Fields findByName(String name) {
-
 
54052
        return byName.get(name);
-
 
54053
      }
-
 
54054
 
-
 
54055
      private final short _thriftId;
-
 
54056
      private final String _fieldName;
-
 
54057
 
-
 
54058
      _Fields(short thriftId, String fieldName) {
-
 
54059
        _thriftId = thriftId;
-
 
54060
        _fieldName = fieldName;
-
 
54061
      }
-
 
54062
 
-
 
54063
      public short getThriftFieldId() {
-
 
54064
        return _thriftId;
-
 
54065
      }
-
 
54066
 
-
 
54067
      public String getFieldName() {
-
 
54068
        return _fieldName;
-
 
54069
      }
-
 
54070
    }
-
 
54071
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
54072
    static {
-
 
54073
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
54074
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
54075
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getClearanceSaleCatalogIds_args.class, metaDataMap);
-
 
54076
    }
-
 
54077
 
-
 
54078
    public getClearanceSaleCatalogIds_args() {
-
 
54079
    }
-
 
54080
 
-
 
54081
    /**
-
 
54082
     * Performs a deep copy on <i>other</i>.
-
 
54083
     */
-
 
54084
    public getClearanceSaleCatalogIds_args(getClearanceSaleCatalogIds_args other) {
-
 
54085
    }
-
 
54086
 
-
 
54087
    public getClearanceSaleCatalogIds_args deepCopy() {
-
 
54088
      return new getClearanceSaleCatalogIds_args(this);
-
 
54089
    }
-
 
54090
 
-
 
54091
    @Override
-
 
54092
    public void clear() {
-
 
54093
    }
-
 
54094
 
-
 
54095
    public void setFieldValue(_Fields field, Object value) {
-
 
54096
      switch (field) {
-
 
54097
      }
-
 
54098
    }
-
 
54099
 
-
 
54100
    public Object getFieldValue(_Fields field) {
-
 
54101
      switch (field) {
-
 
54102
      }
-
 
54103
      throw new IllegalStateException();
-
 
54104
    }
-
 
54105
 
-
 
54106
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
54107
    public boolean isSet(_Fields field) {
-
 
54108
      if (field == null) {
-
 
54109
        throw new IllegalArgumentException();
-
 
54110
      }
-
 
54111
 
-
 
54112
      switch (field) {
-
 
54113
      }
-
 
54114
      throw new IllegalStateException();
-
 
54115
    }
-
 
54116
 
-
 
54117
    @Override
-
 
54118
    public boolean equals(Object that) {
-
 
54119
      if (that == null)
-
 
54120
        return false;
-
 
54121
      if (that instanceof getClearanceSaleCatalogIds_args)
-
 
54122
        return this.equals((getClearanceSaleCatalogIds_args)that);
-
 
54123
      return false;
-
 
54124
    }
-
 
54125
 
-
 
54126
    public boolean equals(getClearanceSaleCatalogIds_args that) {
-
 
54127
      if (that == null)
-
 
54128
        return false;
-
 
54129
 
-
 
54130
      return true;
-
 
54131
    }
-
 
54132
 
-
 
54133
    @Override
-
 
54134
    public int hashCode() {
-
 
54135
      return 0;
-
 
54136
    }
-
 
54137
 
-
 
54138
    public int compareTo(getClearanceSaleCatalogIds_args other) {
-
 
54139
      if (!getClass().equals(other.getClass())) {
-
 
54140
        return getClass().getName().compareTo(other.getClass().getName());
-
 
54141
      }
-
 
54142
 
-
 
54143
      int lastComparison = 0;
-
 
54144
      getClearanceSaleCatalogIds_args typedOther = (getClearanceSaleCatalogIds_args)other;
-
 
54145
 
-
 
54146
      return 0;
-
 
54147
    }
-
 
54148
 
-
 
54149
    public _Fields fieldForId(int fieldId) {
-
 
54150
      return _Fields.findByThriftId(fieldId);
-
 
54151
    }
-
 
54152
 
-
 
54153
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
54154
      org.apache.thrift.protocol.TField field;
-
 
54155
      iprot.readStructBegin();
-
 
54156
      while (true)
-
 
54157
      {
-
 
54158
        field = iprot.readFieldBegin();
-
 
54159
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
54160
          break;
-
 
54161
        }
-
 
54162
        switch (field.id) {
-
 
54163
          default:
-
 
54164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54165
        }
-
 
54166
        iprot.readFieldEnd();
-
 
54167
      }
-
 
54168
      iprot.readStructEnd();
-
 
54169
      validate();
-
 
54170
    }
-
 
54171
 
-
 
54172
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
54173
      validate();
-
 
54174
 
-
 
54175
      oprot.writeStructBegin(STRUCT_DESC);
-
 
54176
      oprot.writeFieldStop();
-
 
54177
      oprot.writeStructEnd();
-
 
54178
    }
-
 
54179
 
-
 
54180
    @Override
-
 
54181
    public String toString() {
-
 
54182
      StringBuilder sb = new StringBuilder("getClearanceSaleCatalogIds_args(");
-
 
54183
      boolean first = true;
-
 
54184
 
-
 
54185
      sb.append(")");
-
 
54186
      return sb.toString();
-
 
54187
    }
-
 
54188
 
-
 
54189
    public void validate() throws org.apache.thrift.TException {
-
 
54190
      // check for required fields
-
 
54191
    }
-
 
54192
 
-
 
54193
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
54194
      try {
-
 
54195
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
54196
      } catch (org.apache.thrift.TException te) {
-
 
54197
        throw new java.io.IOException(te);
-
 
54198
      }
-
 
54199
    }
-
 
54200
 
-
 
54201
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
54202
      try {
-
 
54203
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
54204
      } catch (org.apache.thrift.TException te) {
-
 
54205
        throw new java.io.IOException(te);
-
 
54206
      }
-
 
54207
    }
-
 
54208
 
-
 
54209
  }
-
 
54210
 
-
 
54211
  public static class getClearanceSaleCatalogIds_result implements org.apache.thrift.TBase<getClearanceSaleCatalogIds_result, getClearanceSaleCatalogIds_result._Fields>, java.io.Serializable, Cloneable   {
-
 
54212
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getClearanceSaleCatalogIds_result");
-
 
54213
 
-
 
54214
    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);
-
 
54215
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
54216
 
-
 
54217
    private List<Long> success; // required
-
 
54218
    private CatalogServiceException cex; // required
-
 
54219
 
-
 
54220
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
54221
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
54222
      SUCCESS((short)0, "success"),
-
 
54223
      CEX((short)1, "cex");
-
 
54224
 
-
 
54225
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
54226
 
-
 
54227
      static {
-
 
54228
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
54229
          byName.put(field.getFieldName(), field);
-
 
54230
        }
-
 
54231
      }
-
 
54232
 
-
 
54233
      /**
-
 
54234
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
54235
       */
-
 
54236
      public static _Fields findByThriftId(int fieldId) {
-
 
54237
        switch(fieldId) {
-
 
54238
          case 0: // SUCCESS
-
 
54239
            return SUCCESS;
-
 
54240
          case 1: // CEX
-
 
54241
            return CEX;
-
 
54242
          default:
-
 
54243
            return null;
-
 
54244
        }
-
 
54245
      }
-
 
54246
 
-
 
54247
      /**
-
 
54248
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
54249
       * if it is not found.
-
 
54250
       */
-
 
54251
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
54252
        _Fields fields = findByThriftId(fieldId);
-
 
54253
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
54254
        return fields;
-
 
54255
      }
-
 
54256
 
-
 
54257
      /**
-
 
54258
       * Find the _Fields constant that matches name, or null if its not found.
-
 
54259
       */
-
 
54260
      public static _Fields findByName(String name) {
-
 
54261
        return byName.get(name);
-
 
54262
      }
-
 
54263
 
-
 
54264
      private final short _thriftId;
-
 
54265
      private final String _fieldName;
-
 
54266
 
-
 
54267
      _Fields(short thriftId, String fieldName) {
-
 
54268
        _thriftId = thriftId;
-
 
54269
        _fieldName = fieldName;
-
 
54270
      }
-
 
54271
 
-
 
54272
      public short getThriftFieldId() {
-
 
54273
        return _thriftId;
-
 
54274
      }
-
 
54275
 
-
 
54276
      public String getFieldName() {
-
 
54277
        return _fieldName;
-
 
54278
      }
-
 
54279
    }
-
 
54280
 
-
 
54281
    // isset id assignments
-
 
54282
 
-
 
54283
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
54284
    static {
-
 
54285
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
54286
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
54287
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
54288
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
54289
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
54290
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
54291
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
54292
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getClearanceSaleCatalogIds_result.class, metaDataMap);
-
 
54293
    }
-
 
54294
 
-
 
54295
    public getClearanceSaleCatalogIds_result() {
-
 
54296
    }
-
 
54297
 
-
 
54298
    public getClearanceSaleCatalogIds_result(
-
 
54299
      List<Long> success,
-
 
54300
      CatalogServiceException cex)
-
 
54301
    {
-
 
54302
      this();
-
 
54303
      this.success = success;
-
 
54304
      this.cex = cex;
-
 
54305
    }
-
 
54306
 
-
 
54307
    /**
-
 
54308
     * Performs a deep copy on <i>other</i>.
-
 
54309
     */
-
 
54310
    public getClearanceSaleCatalogIds_result(getClearanceSaleCatalogIds_result other) {
-
 
54311
      if (other.isSetSuccess()) {
-
 
54312
        List<Long> __this__success = new ArrayList<Long>();
-
 
54313
        for (Long other_element : other.success) {
-
 
54314
          __this__success.add(other_element);
-
 
54315
        }
-
 
54316
        this.success = __this__success;
-
 
54317
      }
-
 
54318
      if (other.isSetCex()) {
-
 
54319
        this.cex = new CatalogServiceException(other.cex);
-
 
54320
      }
-
 
54321
    }
-
 
54322
 
-
 
54323
    public getClearanceSaleCatalogIds_result deepCopy() {
-
 
54324
      return new getClearanceSaleCatalogIds_result(this);
-
 
54325
    }
-
 
54326
 
-
 
54327
    @Override
-
 
54328
    public void clear() {
-
 
54329
      this.success = null;
-
 
54330
      this.cex = null;
-
 
54331
    }
-
 
54332
 
-
 
54333
    public int getSuccessSize() {
-
 
54334
      return (this.success == null) ? 0 : this.success.size();
-
 
54335
    }
-
 
54336
 
-
 
54337
    public java.util.Iterator<Long> getSuccessIterator() {
-
 
54338
      return (this.success == null) ? null : this.success.iterator();
-
 
54339
    }
-
 
54340
 
-
 
54341
    public void addToSuccess(long elem) {
-
 
54342
      if (this.success == null) {
-
 
54343
        this.success = new ArrayList<Long>();
-
 
54344
      }
-
 
54345
      this.success.add(elem);
-
 
54346
    }
-
 
54347
 
-
 
54348
    public List<Long> getSuccess() {
-
 
54349
      return this.success;
-
 
54350
    }
-
 
54351
 
-
 
54352
    public void setSuccess(List<Long> success) {
-
 
54353
      this.success = success;
-
 
54354
    }
-
 
54355
 
-
 
54356
    public void unsetSuccess() {
-
 
54357
      this.success = null;
-
 
54358
    }
-
 
54359
 
-
 
54360
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
54361
    public boolean isSetSuccess() {
-
 
54362
      return this.success != null;
-
 
54363
    }
-
 
54364
 
-
 
54365
    public void setSuccessIsSet(boolean value) {
-
 
54366
      if (!value) {
-
 
54367
        this.success = null;
-
 
54368
      }
-
 
54369
    }
-
 
54370
 
-
 
54371
    public CatalogServiceException getCex() {
-
 
54372
      return this.cex;
-
 
54373
    }
-
 
54374
 
-
 
54375
    public void setCex(CatalogServiceException cex) {
-
 
54376
      this.cex = cex;
-
 
54377
    }
-
 
54378
 
-
 
54379
    public void unsetCex() {
-
 
54380
      this.cex = null;
-
 
54381
    }
-
 
54382
 
-
 
54383
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
54384
    public boolean isSetCex() {
-
 
54385
      return this.cex != null;
-
 
54386
    }
-
 
54387
 
-
 
54388
    public void setCexIsSet(boolean value) {
-
 
54389
      if (!value) {
-
 
54390
        this.cex = null;
-
 
54391
      }
-
 
54392
    }
-
 
54393
 
-
 
54394
    public void setFieldValue(_Fields field, Object value) {
-
 
54395
      switch (field) {
-
 
54396
      case SUCCESS:
-
 
54397
        if (value == null) {
-
 
54398
          unsetSuccess();
-
 
54399
        } else {
-
 
54400
          setSuccess((List<Long>)value);
-
 
54401
        }
-
 
54402
        break;
-
 
54403
 
-
 
54404
      case CEX:
-
 
54405
        if (value == null) {
-
 
54406
          unsetCex();
-
 
54407
        } else {
-
 
54408
          setCex((CatalogServiceException)value);
-
 
54409
        }
-
 
54410
        break;
-
 
54411
 
-
 
54412
      }
-
 
54413
    }
-
 
54414
 
-
 
54415
    public Object getFieldValue(_Fields field) {
-
 
54416
      switch (field) {
-
 
54417
      case SUCCESS:
-
 
54418
        return getSuccess();
-
 
54419
 
-
 
54420
      case CEX:
-
 
54421
        return getCex();
-
 
54422
 
-
 
54423
      }
-
 
54424
      throw new IllegalStateException();
-
 
54425
    }
-
 
54426
 
-
 
54427
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
54428
    public boolean isSet(_Fields field) {
-
 
54429
      if (field == null) {
-
 
54430
        throw new IllegalArgumentException();
-
 
54431
      }
-
 
54432
 
-
 
54433
      switch (field) {
-
 
54434
      case SUCCESS:
-
 
54435
        return isSetSuccess();
-
 
54436
      case CEX:
-
 
54437
        return isSetCex();
-
 
54438
      }
-
 
54439
      throw new IllegalStateException();
-
 
54440
    }
-
 
54441
 
-
 
54442
    @Override
-
 
54443
    public boolean equals(Object that) {
-
 
54444
      if (that == null)
-
 
54445
        return false;
-
 
54446
      if (that instanceof getClearanceSaleCatalogIds_result)
-
 
54447
        return this.equals((getClearanceSaleCatalogIds_result)that);
-
 
54448
      return false;
-
 
54449
    }
-
 
54450
 
-
 
54451
    public boolean equals(getClearanceSaleCatalogIds_result that) {
-
 
54452
      if (that == null)
-
 
54453
        return false;
-
 
54454
 
-
 
54455
      boolean this_present_success = true && this.isSetSuccess();
-
 
54456
      boolean that_present_success = true && that.isSetSuccess();
-
 
54457
      if (this_present_success || that_present_success) {
-
 
54458
        if (!(this_present_success && that_present_success))
-
 
54459
          return false;
-
 
54460
        if (!this.success.equals(that.success))
-
 
54461
          return false;
-
 
54462
      }
-
 
54463
 
-
 
54464
      boolean this_present_cex = true && this.isSetCex();
-
 
54465
      boolean that_present_cex = true && that.isSetCex();
-
 
54466
      if (this_present_cex || that_present_cex) {
-
 
54467
        if (!(this_present_cex && that_present_cex))
-
 
54468
          return false;
-
 
54469
        if (!this.cex.equals(that.cex))
-
 
54470
          return false;
-
 
54471
      }
-
 
54472
 
-
 
54473
      return true;
-
 
54474
    }
-
 
54475
 
-
 
54476
    @Override
-
 
54477
    public int hashCode() {
-
 
54478
      return 0;
-
 
54479
    }
-
 
54480
 
-
 
54481
    public int compareTo(getClearanceSaleCatalogIds_result other) {
-
 
54482
      if (!getClass().equals(other.getClass())) {
-
 
54483
        return getClass().getName().compareTo(other.getClass().getName());
-
 
54484
      }
-
 
54485
 
-
 
54486
      int lastComparison = 0;
-
 
54487
      getClearanceSaleCatalogIds_result typedOther = (getClearanceSaleCatalogIds_result)other;
-
 
54488
 
-
 
54489
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
54490
      if (lastComparison != 0) {
-
 
54491
        return lastComparison;
-
 
54492
      }
-
 
54493
      if (isSetSuccess()) {
-
 
54494
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
54495
        if (lastComparison != 0) {
-
 
54496
          return lastComparison;
-
 
54497
        }
-
 
54498
      }
-
 
54499
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
54500
      if (lastComparison != 0) {
-
 
54501
        return lastComparison;
-
 
54502
      }
-
 
54503
      if (isSetCex()) {
-
 
54504
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
54505
        if (lastComparison != 0) {
-
 
54506
          return lastComparison;
-
 
54507
        }
-
 
54508
      }
-
 
54509
      return 0;
-
 
54510
    }
-
 
54511
 
-
 
54512
    public _Fields fieldForId(int fieldId) {
-
 
54513
      return _Fields.findByThriftId(fieldId);
-
 
54514
    }
-
 
54515
 
-
 
54516
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
54517
      org.apache.thrift.protocol.TField field;
-
 
54518
      iprot.readStructBegin();
-
 
54519
      while (true)
-
 
54520
      {
-
 
54521
        field = iprot.readFieldBegin();
-
 
54522
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
54523
          break;
-
 
54524
        }
-
 
54525
        switch (field.id) {
-
 
54526
          case 0: // SUCCESS
-
 
54527
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
54528
              {
-
 
54529
                org.apache.thrift.protocol.TList _list154 = iprot.readListBegin();
-
 
54530
                this.success = new ArrayList<Long>(_list154.size);
-
 
54531
                for (int _i155 = 0; _i155 < _list154.size; ++_i155)
-
 
54532
                {
-
 
54533
                  long _elem156; // required
-
 
54534
                  _elem156 = iprot.readI64();
-
 
54535
                  this.success.add(_elem156);
-
 
54536
                }
-
 
54537
                iprot.readListEnd();
-
 
54538
              }
-
 
54539
            } else { 
-
 
54540
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54541
            }
-
 
54542
            break;
-
 
54543
          case 1: // CEX
-
 
54544
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
54545
              this.cex = new CatalogServiceException();
-
 
54546
              this.cex.read(iprot);
-
 
54547
            } else { 
-
 
54548
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54549
            }
-
 
54550
            break;
-
 
54551
          default:
-
 
54552
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
54553
        }
-
 
54554
        iprot.readFieldEnd();
-
 
54555
      }
-
 
54556
      iprot.readStructEnd();
-
 
54557
      validate();
-
 
54558
    }
-
 
54559
 
-
 
54560
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
54561
      oprot.writeStructBegin(STRUCT_DESC);
-
 
54562
 
-
 
54563
      if (this.isSetSuccess()) {
-
 
54564
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
54565
        {
-
 
54566
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
54567
          for (long _iter157 : this.success)
-
 
54568
          {
-
 
54569
            oprot.writeI64(_iter157);
-
 
54570
          }
-
 
54571
          oprot.writeListEnd();
-
 
54572
        }
-
 
54573
        oprot.writeFieldEnd();
-
 
54574
      } else if (this.isSetCex()) {
-
 
54575
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
54576
        this.cex.write(oprot);
-
 
54577
        oprot.writeFieldEnd();
-
 
54578
      }
-
 
54579
      oprot.writeFieldStop();
-
 
54580
      oprot.writeStructEnd();
-
 
54581
    }
-
 
54582
 
-
 
54583
    @Override
-
 
54584
    public String toString() {
-
 
54585
      StringBuilder sb = new StringBuilder("getClearanceSaleCatalogIds_result(");
-
 
54586
      boolean first = true;
-
 
54587
 
-
 
54588
      sb.append("success:");
-
 
54589
      if (this.success == null) {
-
 
54590
        sb.append("null");
-
 
54591
      } else {
-
 
54592
        sb.append(this.success);
-
 
54593
      }
-
 
54594
      first = false;
-
 
54595
      if (!first) sb.append(", ");
-
 
54596
      sb.append("cex:");
-
 
54597
      if (this.cex == null) {
-
 
54598
        sb.append("null");
-
 
54599
      } else {
-
 
54600
        sb.append(this.cex);
-
 
54601
      }
-
 
54602
      first = false;
-
 
54603
      sb.append(")");
-
 
54604
      return sb.toString();
-
 
54605
    }
-
 
54606
 
-
 
54607
    public void validate() throws org.apache.thrift.TException {
-
 
54608
      // check for required fields
-
 
54609
    }
-
 
54610
 
-
 
54611
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
54612
      try {
-
 
54613
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
54614
      } catch (org.apache.thrift.TException te) {
-
 
54615
        throw new java.io.IOException(te);
-
 
54616
      }
-
 
54617
    }
-
 
54618
 
-
 
54619
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
54620
      try {
-
 
54621
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
54622
      } catch (org.apache.thrift.TException te) {
-
 
54623
        throw new java.io.IOException(te);
-
 
54624
      }
-
 
54625
    }
-
 
54626
 
-
 
54627
  }
-
 
54628
 
-
 
54629
  public static class addupdateVoucherForItem_args implements org.apache.thrift.TBase<addupdateVoucherForItem_args, addupdateVoucherForItem_args._Fields>, java.io.Serializable, Cloneable   {
54008
  public static class addupdateVoucherForItem_args implements org.apache.thrift.TBase<addupdateVoucherForItem_args, addupdateVoucherForItem_args._Fields>, java.io.Serializable, Cloneable   {
54630
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addupdateVoucherForItem_args");
54009
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addupdateVoucherForItem_args");
54631
 
54010
 
54632
    private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalog_item_id", org.apache.thrift.protocol.TType.I64, (short)1);
54011
    private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalog_item_id", org.apache.thrift.protocol.TType.I64, (short)1);
54633
    private static final org.apache.thrift.protocol.TField VOUCHER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherType", org.apache.thrift.protocol.TType.I64, (short)2);
54012
    private static final org.apache.thrift.protocol.TField VOUCHER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("voucherType", org.apache.thrift.protocol.TType.I64, (short)2);
Line 57437... Line 56816...
57437
        }
56816
        }
57438
        switch (field.id) {
56817
        switch (field.id) {
57439
          case 0: // SUCCESS
56818
          case 0: // SUCCESS
57440
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
56819
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
57441
              {
56820
              {
57442
                org.apache.thrift.protocol.TList _list158 = iprot.readListBegin();
56821
                org.apache.thrift.protocol.TList _list154 = iprot.readListBegin();
57443
                this.success = new ArrayList<VoucherItemMapping>(_list158.size);
56822
                this.success = new ArrayList<VoucherItemMapping>(_list154.size);
57444
                for (int _i159 = 0; _i159 < _list158.size; ++_i159)
56823
                for (int _i155 = 0; _i155 < _list154.size; ++_i155)
57445
                {
56824
                {
57446
                  VoucherItemMapping _elem160; // required
56825
                  VoucherItemMapping _elem156; // required
57447
                  _elem160 = new VoucherItemMapping();
56826
                  _elem156 = new VoucherItemMapping();
57448
                  _elem160.read(iprot);
56827
                  _elem156.read(iprot);
57449
                  this.success.add(_elem160);
56828
                  this.success.add(_elem156);
57450
                }
56829
                }
57451
                iprot.readListEnd();
56830
                iprot.readListEnd();
57452
              }
56831
              }
57453
            } else { 
56832
            } else { 
57454
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
56833
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 57468... Line 56847...
57468
 
56847
 
57469
      if (this.isSetSuccess()) {
56848
      if (this.isSetSuccess()) {
57470
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
56849
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
57471
        {
56850
        {
57472
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
56851
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
57473
          for (VoucherItemMapping _iter161 : this.success)
56852
          for (VoucherItemMapping _iter157 : this.success)
57474
          {
56853
          {
57475
            _iter161.write(oprot);
56854
            _iter157.write(oprot);
57476
          }
56855
          }
57477
          oprot.writeListEnd();
56856
          oprot.writeListEnd();
57478
        }
56857
        }
57479
        oprot.writeFieldEnd();
56858
        oprot.writeFieldEnd();
57480
      }
56859
      }
Line 60072... Line 59451...
60072
        }
59451
        }
60073
        switch (field.id) {
59452
        switch (field.id) {
60074
          case 0: // SUCCESS
59453
          case 0: // SUCCESS
60075
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
59454
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
60076
              {
59455
              {
60077
                org.apache.thrift.protocol.TList _list162 = iprot.readListBegin();
59456
                org.apache.thrift.protocol.TList _list158 = iprot.readListBegin();
60078
                this.success = new ArrayList<Item>(_list162.size);
59457
                this.success = new ArrayList<Item>(_list158.size);
60079
                for (int _i163 = 0; _i163 < _list162.size; ++_i163)
59458
                for (int _i159 = 0; _i159 < _list158.size; ++_i159)
60080
                {
59459
                {
60081
                  Item _elem164; // required
59460
                  Item _elem160; // required
60082
                  _elem164 = new Item();
59461
                  _elem160 = new Item();
60083
                  _elem164.read(iprot);
59462
                  _elem160.read(iprot);
60084
                  this.success.add(_elem164);
59463
                  this.success.add(_elem160);
60085
                }
59464
                }
60086
                iprot.readListEnd();
59465
                iprot.readListEnd();
60087
              }
59466
              }
60088
            } else { 
59467
            } else { 
60089
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59468
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 60103... Line 59482...
60103
 
59482
 
60104
      if (this.isSetSuccess()) {
59483
      if (this.isSetSuccess()) {
60105
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
59484
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
60106
        {
59485
        {
60107
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
59486
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
60108
          for (Item _iter165 : this.success)
59487
          for (Item _iter161 : this.success)
60109
          {
59488
          {
60110
            _iter165.write(oprot);
59489
            _iter161.write(oprot);
60111
          }
59490
          }
60112
          oprot.writeListEnd();
59491
          oprot.writeListEnd();
60113
        }
59492
        }
60114
        oprot.writeFieldEnd();
59493
        oprot.writeFieldEnd();
60115
      }
59494
      }
Line 60603... Line 59982...
60603
        }
59982
        }
60604
        switch (field.id) {
59983
        switch (field.id) {
60605
          case 0: // SUCCESS
59984
          case 0: // SUCCESS
60606
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
59985
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
60607
              {
59986
              {
60608
                org.apache.thrift.protocol.TList _list166 = iprot.readListBegin();
59987
                org.apache.thrift.protocol.TList _list162 = iprot.readListBegin();
60609
                this.success = new ArrayList<Item>(_list166.size);
59988
                this.success = new ArrayList<Item>(_list162.size);
60610
                for (int _i167 = 0; _i167 < _list166.size; ++_i167)
59989
                for (int _i163 = 0; _i163 < _list162.size; ++_i163)
60611
                {
59990
                {
60612
                  Item _elem168; // required
59991
                  Item _elem164; // required
60613
                  _elem168 = new Item();
59992
                  _elem164 = new Item();
60614
                  _elem168.read(iprot);
59993
                  _elem164.read(iprot);
60615
                  this.success.add(_elem168);
59994
                  this.success.add(_elem164);
60616
                }
59995
                }
60617
                iprot.readListEnd();
59996
                iprot.readListEnd();
60618
              }
59997
              }
60619
            } else { 
59998
            } else { 
60620
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
59999
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 60634... Line 60013...
60634
 
60013
 
60635
      if (this.isSetSuccess()) {
60014
      if (this.isSetSuccess()) {
60636
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
60015
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
60637
        {
60016
        {
60638
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
60017
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
60639
          for (Item _iter169 : this.success)
60018
          for (Item _iter165 : this.success)
60640
          {
60019
          {
60641
            _iter169.write(oprot);
60020
            _iter165.write(oprot);
60642
          }
60021
          }
60643
          oprot.writeListEnd();
60022
          oprot.writeListEnd();
60644
        }
60023
        }
60645
        oprot.writeFieldEnd();
60024
        oprot.writeFieldEnd();
60646
      }
60025
      }
Line 62556... Line 61935...
62556
        }
61935
        }
62557
        switch (field.id) {
61936
        switch (field.id) {
62558
          case 0: // SUCCESS
61937
          case 0: // SUCCESS
62559
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
61938
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
62560
              {
61939
              {
62561
                org.apache.thrift.protocol.TList _list170 = iprot.readListBegin();
61940
                org.apache.thrift.protocol.TList _list166 = iprot.readListBegin();
62562
                this.success = new ArrayList<Insurer>(_list170.size);
61941
                this.success = new ArrayList<Insurer>(_list166.size);
62563
                for (int _i171 = 0; _i171 < _list170.size; ++_i171)
61942
                for (int _i167 = 0; _i167 < _list166.size; ++_i167)
62564
                {
61943
                {
62565
                  Insurer _elem172; // required
61944
                  Insurer _elem168; // required
62566
                  _elem172 = new Insurer();
61945
                  _elem168 = new Insurer();
62567
                  _elem172.read(iprot);
61946
                  _elem168.read(iprot);
62568
                  this.success.add(_elem172);
61947
                  this.success.add(_elem168);
62569
                }
61948
                }
62570
                iprot.readListEnd();
61949
                iprot.readListEnd();
62571
              }
61950
              }
62572
            } else { 
61951
            } else { 
62573
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
61952
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 62587... Line 61966...
62587
 
61966
 
62588
      if (this.isSetSuccess()) {
61967
      if (this.isSetSuccess()) {
62589
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
61968
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
62590
        {
61969
        {
62591
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
61970
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
62592
          for (Insurer _iter173 : this.success)
61971
          for (Insurer _iter169 : this.success)
62593
          {
61972
          {
62594
            _iter173.write(oprot);
61973
            _iter169.write(oprot);
62595
          }
61974
          }
62596
          oprot.writeListEnd();
61975
          oprot.writeListEnd();
62597
        }
61976
        }
62598
        oprot.writeFieldEnd();
61977
        oprot.writeFieldEnd();
62599
      }
61978
      }
Line 64273... Line 63652...
64273
      sb.append(")");
63652
      sb.append(")");
64274
      return sb.toString();
63653
      return sb.toString();
64275
    }
63654
    }
64276
 
63655
 
64277
    public void validate() throws org.apache.thrift.TException {
63656
    public void validate() throws org.apache.thrift.TException {
-
 
63657
      // check for required fields
-
 
63658
    }
-
 
63659
 
-
 
63660
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
63661
      try {
-
 
63662
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
63663
      } catch (org.apache.thrift.TException te) {
-
 
63664
        throw new java.io.IOException(te);
-
 
63665
      }
-
 
63666
    }
-
 
63667
 
-
 
63668
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
63669
      try {
-
 
63670
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
63671
      } catch (org.apache.thrift.TException te) {
-
 
63672
        throw new java.io.IOException(te);
-
 
63673
      }
-
 
63674
    }
-
 
63675
 
-
 
63676
  }
-
 
63677
 
-
 
63678
  public static class getStorePricing_args implements org.apache.thrift.TBase<getStorePricing_args, getStorePricing_args._Fields>, java.io.Serializable, Cloneable   {
-
 
63679
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStorePricing_args");
-
 
63680
 
-
 
63681
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
63682
 
-
 
63683
    private long itemId; // required
-
 
63684
 
-
 
63685
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
63686
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
63687
      ITEM_ID((short)1, "itemId");
-
 
63688
 
-
 
63689
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
63690
 
-
 
63691
      static {
-
 
63692
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
63693
          byName.put(field.getFieldName(), field);
-
 
63694
        }
-
 
63695
      }
-
 
63696
 
-
 
63697
      /**
-
 
63698
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
63699
       */
-
 
63700
      public static _Fields findByThriftId(int fieldId) {
-
 
63701
        switch(fieldId) {
-
 
63702
          case 1: // ITEM_ID
-
 
63703
            return ITEM_ID;
-
 
63704
          default:
-
 
63705
            return null;
-
 
63706
        }
-
 
63707
      }
-
 
63708
 
-
 
63709
      /**
-
 
63710
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
63711
       * if it is not found.
-
 
63712
       */
-
 
63713
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
63714
        _Fields fields = findByThriftId(fieldId);
-
 
63715
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
63716
        return fields;
-
 
63717
      }
-
 
63718
 
-
 
63719
      /**
-
 
63720
       * Find the _Fields constant that matches name, or null if its not found.
-
 
63721
       */
-
 
63722
      public static _Fields findByName(String name) {
-
 
63723
        return byName.get(name);
-
 
63724
      }
-
 
63725
 
-
 
63726
      private final short _thriftId;
-
 
63727
      private final String _fieldName;
-
 
63728
 
-
 
63729
      _Fields(short thriftId, String fieldName) {
-
 
63730
        _thriftId = thriftId;
-
 
63731
        _fieldName = fieldName;
-
 
63732
      }
-
 
63733
 
-
 
63734
      public short getThriftFieldId() {
-
 
63735
        return _thriftId;
-
 
63736
      }
-
 
63737
 
-
 
63738
      public String getFieldName() {
-
 
63739
        return _fieldName;
-
 
63740
      }
-
 
63741
    }
-
 
63742
 
-
 
63743
    // isset id assignments
-
 
63744
    private static final int __ITEMID_ISSET_ID = 0;
-
 
63745
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
63746
 
-
 
63747
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
63748
    static {
-
 
63749
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
63750
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
63751
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
63752
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
63753
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStorePricing_args.class, metaDataMap);
-
 
63754
    }
-
 
63755
 
-
 
63756
    public getStorePricing_args() {
-
 
63757
    }
-
 
63758
 
-
 
63759
    public getStorePricing_args(
-
 
63760
      long itemId)
-
 
63761
    {
-
 
63762
      this();
-
 
63763
      this.itemId = itemId;
-
 
63764
      setItemIdIsSet(true);
-
 
63765
    }
-
 
63766
 
-
 
63767
    /**
-
 
63768
     * Performs a deep copy on <i>other</i>.
-
 
63769
     */
-
 
63770
    public getStorePricing_args(getStorePricing_args other) {
-
 
63771
      __isset_bit_vector.clear();
-
 
63772
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
63773
      this.itemId = other.itemId;
-
 
63774
    }
-
 
63775
 
-
 
63776
    public getStorePricing_args deepCopy() {
-
 
63777
      return new getStorePricing_args(this);
-
 
63778
    }
-
 
63779
 
-
 
63780
    @Override
-
 
63781
    public void clear() {
-
 
63782
      setItemIdIsSet(false);
-
 
63783
      this.itemId = 0;
-
 
63784
    }
-
 
63785
 
-
 
63786
    public long getItemId() {
-
 
63787
      return this.itemId;
-
 
63788
    }
-
 
63789
 
-
 
63790
    public void setItemId(long itemId) {
-
 
63791
      this.itemId = itemId;
-
 
63792
      setItemIdIsSet(true);
-
 
63793
    }
-
 
63794
 
-
 
63795
    public void unsetItemId() {
-
 
63796
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
63797
    }
-
 
63798
 
-
 
63799
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
63800
    public boolean isSetItemId() {
-
 
63801
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
63802
    }
-
 
63803
 
-
 
63804
    public void setItemIdIsSet(boolean value) {
-
 
63805
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
63806
    }
-
 
63807
 
-
 
63808
    public void setFieldValue(_Fields field, Object value) {
-
 
63809
      switch (field) {
-
 
63810
      case ITEM_ID:
-
 
63811
        if (value == null) {
-
 
63812
          unsetItemId();
-
 
63813
        } else {
-
 
63814
          setItemId((Long)value);
-
 
63815
        }
-
 
63816
        break;
-
 
63817
 
-
 
63818
      }
-
 
63819
    }
-
 
63820
 
-
 
63821
    public Object getFieldValue(_Fields field) {
-
 
63822
      switch (field) {
-
 
63823
      case ITEM_ID:
-
 
63824
        return Long.valueOf(getItemId());
-
 
63825
 
-
 
63826
      }
-
 
63827
      throw new IllegalStateException();
-
 
63828
    }
-
 
63829
 
-
 
63830
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
63831
    public boolean isSet(_Fields field) {
-
 
63832
      if (field == null) {
-
 
63833
        throw new IllegalArgumentException();
-
 
63834
      }
-
 
63835
 
-
 
63836
      switch (field) {
-
 
63837
      case ITEM_ID:
-
 
63838
        return isSetItemId();
-
 
63839
      }
-
 
63840
      throw new IllegalStateException();
-
 
63841
    }
-
 
63842
 
-
 
63843
    @Override
-
 
63844
    public boolean equals(Object that) {
-
 
63845
      if (that == null)
-
 
63846
        return false;
-
 
63847
      if (that instanceof getStorePricing_args)
-
 
63848
        return this.equals((getStorePricing_args)that);
-
 
63849
      return false;
-
 
63850
    }
-
 
63851
 
-
 
63852
    public boolean equals(getStorePricing_args that) {
-
 
63853
      if (that == null)
-
 
63854
        return false;
-
 
63855
 
-
 
63856
      boolean this_present_itemId = true;
-
 
63857
      boolean that_present_itemId = true;
-
 
63858
      if (this_present_itemId || that_present_itemId) {
-
 
63859
        if (!(this_present_itemId && that_present_itemId))
-
 
63860
          return false;
-
 
63861
        if (this.itemId != that.itemId)
-
 
63862
          return false;
-
 
63863
      }
-
 
63864
 
-
 
63865
      return true;
-
 
63866
    }
-
 
63867
 
-
 
63868
    @Override
-
 
63869
    public int hashCode() {
-
 
63870
      return 0;
-
 
63871
    }
-
 
63872
 
-
 
63873
    public int compareTo(getStorePricing_args other) {
-
 
63874
      if (!getClass().equals(other.getClass())) {
-
 
63875
        return getClass().getName().compareTo(other.getClass().getName());
-
 
63876
      }
-
 
63877
 
-
 
63878
      int lastComparison = 0;
-
 
63879
      getStorePricing_args typedOther = (getStorePricing_args)other;
-
 
63880
 
-
 
63881
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
63882
      if (lastComparison != 0) {
-
 
63883
        return lastComparison;
-
 
63884
      }
-
 
63885
      if (isSetItemId()) {
-
 
63886
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
63887
        if (lastComparison != 0) {
-
 
63888
          return lastComparison;
-
 
63889
        }
-
 
63890
      }
-
 
63891
      return 0;
-
 
63892
    }
-
 
63893
 
-
 
63894
    public _Fields fieldForId(int fieldId) {
-
 
63895
      return _Fields.findByThriftId(fieldId);
-
 
63896
    }
-
 
63897
 
-
 
63898
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
63899
      org.apache.thrift.protocol.TField field;
-
 
63900
      iprot.readStructBegin();
-
 
63901
      while (true)
-
 
63902
      {
-
 
63903
        field = iprot.readFieldBegin();
-
 
63904
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
63905
          break;
-
 
63906
        }
-
 
63907
        switch (field.id) {
-
 
63908
          case 1: // ITEM_ID
-
 
63909
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
63910
              this.itemId = iprot.readI64();
-
 
63911
              setItemIdIsSet(true);
-
 
63912
            } else { 
-
 
63913
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
63914
            }
-
 
63915
            break;
-
 
63916
          default:
-
 
63917
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
63918
        }
-
 
63919
        iprot.readFieldEnd();
-
 
63920
      }
-
 
63921
      iprot.readStructEnd();
-
 
63922
      validate();
-
 
63923
    }
-
 
63924
 
-
 
63925
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
63926
      validate();
-
 
63927
 
-
 
63928
      oprot.writeStructBegin(STRUCT_DESC);
-
 
63929
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
63930
      oprot.writeI64(this.itemId);
-
 
63931
      oprot.writeFieldEnd();
-
 
63932
      oprot.writeFieldStop();
-
 
63933
      oprot.writeStructEnd();
-
 
63934
    }
-
 
63935
 
-
 
63936
    @Override
-
 
63937
    public String toString() {
-
 
63938
      StringBuilder sb = new StringBuilder("getStorePricing_args(");
-
 
63939
      boolean first = true;
-
 
63940
 
-
 
63941
      sb.append("itemId:");
-
 
63942
      sb.append(this.itemId);
-
 
63943
      first = false;
-
 
63944
      sb.append(")");
-
 
63945
      return sb.toString();
-
 
63946
    }
-
 
63947
 
-
 
63948
    public void validate() throws org.apache.thrift.TException {
-
 
63949
      // check for required fields
-
 
63950
    }
-
 
63951
 
-
 
63952
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
63953
      try {
-
 
63954
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
63955
      } catch (org.apache.thrift.TException te) {
-
 
63956
        throw new java.io.IOException(te);
-
 
63957
      }
-
 
63958
    }
-
 
63959
 
-
 
63960
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
63961
      try {
-
 
63962
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
63963
        __isset_bit_vector = new BitSet(1);
-
 
63964
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
63965
      } catch (org.apache.thrift.TException te) {
-
 
63966
        throw new java.io.IOException(te);
-
 
63967
      }
-
 
63968
    }
-
 
63969
 
-
 
63970
  }
-
 
63971
 
-
 
63972
  public static class getStorePricing_result implements org.apache.thrift.TBase<getStorePricing_result, getStorePricing_result._Fields>, java.io.Serializable, Cloneable   {
-
 
63973
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStorePricing_result");
-
 
63974
 
-
 
63975
    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);
-
 
63976
 
-
 
63977
    private StorePricing success; // required
-
 
63978
 
-
 
63979
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
63980
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
63981
      SUCCESS((short)0, "success");
-
 
63982
 
-
 
63983
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
63984
 
-
 
63985
      static {
-
 
63986
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
63987
          byName.put(field.getFieldName(), field);
-
 
63988
        }
-
 
63989
      }
-
 
63990
 
-
 
63991
      /**
-
 
63992
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
63993
       */
-
 
63994
      public static _Fields findByThriftId(int fieldId) {
-
 
63995
        switch(fieldId) {
-
 
63996
          case 0: // SUCCESS
-
 
63997
            return SUCCESS;
-
 
63998
          default:
-
 
63999
            return null;
-
 
64000
        }
-
 
64001
      }
-
 
64002
 
-
 
64003
      /**
-
 
64004
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
64005
       * if it is not found.
-
 
64006
       */
-
 
64007
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
64008
        _Fields fields = findByThriftId(fieldId);
-
 
64009
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
64010
        return fields;
-
 
64011
      }
-
 
64012
 
-
 
64013
      /**
-
 
64014
       * Find the _Fields constant that matches name, or null if its not found.
-
 
64015
       */
-
 
64016
      public static _Fields findByName(String name) {
-
 
64017
        return byName.get(name);
-
 
64018
      }
-
 
64019
 
-
 
64020
      private final short _thriftId;
-
 
64021
      private final String _fieldName;
-
 
64022
 
-
 
64023
      _Fields(short thriftId, String fieldName) {
-
 
64024
        _thriftId = thriftId;
-
 
64025
        _fieldName = fieldName;
-
 
64026
      }
-
 
64027
 
-
 
64028
      public short getThriftFieldId() {
-
 
64029
        return _thriftId;
-
 
64030
      }
-
 
64031
 
-
 
64032
      public String getFieldName() {
-
 
64033
        return _fieldName;
-
 
64034
      }
-
 
64035
    }
-
 
64036
 
-
 
64037
    // isset id assignments
-
 
64038
 
-
 
64039
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
64040
    static {
-
 
64041
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
64042
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
64043
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StorePricing.class)));
-
 
64044
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
64045
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStorePricing_result.class, metaDataMap);
-
 
64046
    }
-
 
64047
 
-
 
64048
    public getStorePricing_result() {
-
 
64049
    }
-
 
64050
 
-
 
64051
    public getStorePricing_result(
-
 
64052
      StorePricing success)
-
 
64053
    {
-
 
64054
      this();
-
 
64055
      this.success = success;
-
 
64056
    }
-
 
64057
 
-
 
64058
    /**
-
 
64059
     * Performs a deep copy on <i>other</i>.
-
 
64060
     */
-
 
64061
    public getStorePricing_result(getStorePricing_result other) {
-
 
64062
      if (other.isSetSuccess()) {
-
 
64063
        this.success = new StorePricing(other.success);
-
 
64064
      }
-
 
64065
    }
-
 
64066
 
-
 
64067
    public getStorePricing_result deepCopy() {
-
 
64068
      return new getStorePricing_result(this);
-
 
64069
    }
-
 
64070
 
-
 
64071
    @Override
-
 
64072
    public void clear() {
-
 
64073
      this.success = null;
-
 
64074
    }
-
 
64075
 
-
 
64076
    public StorePricing getSuccess() {
-
 
64077
      return this.success;
-
 
64078
    }
-
 
64079
 
-
 
64080
    public void setSuccess(StorePricing success) {
-
 
64081
      this.success = success;
-
 
64082
    }
-
 
64083
 
-
 
64084
    public void unsetSuccess() {
-
 
64085
      this.success = null;
-
 
64086
    }
-
 
64087
 
-
 
64088
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
64089
    public boolean isSetSuccess() {
-
 
64090
      return this.success != null;
-
 
64091
    }
-
 
64092
 
-
 
64093
    public void setSuccessIsSet(boolean value) {
-
 
64094
      if (!value) {
-
 
64095
        this.success = null;
-
 
64096
      }
-
 
64097
    }
-
 
64098
 
-
 
64099
    public void setFieldValue(_Fields field, Object value) {
-
 
64100
      switch (field) {
-
 
64101
      case SUCCESS:
-
 
64102
        if (value == null) {
-
 
64103
          unsetSuccess();
-
 
64104
        } else {
-
 
64105
          setSuccess((StorePricing)value);
-
 
64106
        }
-
 
64107
        break;
-
 
64108
 
-
 
64109
      }
-
 
64110
    }
-
 
64111
 
-
 
64112
    public Object getFieldValue(_Fields field) {
-
 
64113
      switch (field) {
-
 
64114
      case SUCCESS:
-
 
64115
        return getSuccess();
-
 
64116
 
-
 
64117
      }
-
 
64118
      throw new IllegalStateException();
-
 
64119
    }
-
 
64120
 
-
 
64121
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
64122
    public boolean isSet(_Fields field) {
-
 
64123
      if (field == null) {
-
 
64124
        throw new IllegalArgumentException();
-
 
64125
      }
-
 
64126
 
-
 
64127
      switch (field) {
-
 
64128
      case SUCCESS:
-
 
64129
        return isSetSuccess();
-
 
64130
      }
-
 
64131
      throw new IllegalStateException();
-
 
64132
    }
-
 
64133
 
-
 
64134
    @Override
-
 
64135
    public boolean equals(Object that) {
-
 
64136
      if (that == null)
-
 
64137
        return false;
-
 
64138
      if (that instanceof getStorePricing_result)
-
 
64139
        return this.equals((getStorePricing_result)that);
-
 
64140
      return false;
-
 
64141
    }
-
 
64142
 
-
 
64143
    public boolean equals(getStorePricing_result that) {
-
 
64144
      if (that == null)
-
 
64145
        return false;
-
 
64146
 
-
 
64147
      boolean this_present_success = true && this.isSetSuccess();
-
 
64148
      boolean that_present_success = true && that.isSetSuccess();
-
 
64149
      if (this_present_success || that_present_success) {
-
 
64150
        if (!(this_present_success && that_present_success))
-
 
64151
          return false;
-
 
64152
        if (!this.success.equals(that.success))
-
 
64153
          return false;
-
 
64154
      }
-
 
64155
 
-
 
64156
      return true;
-
 
64157
    }
-
 
64158
 
-
 
64159
    @Override
-
 
64160
    public int hashCode() {
-
 
64161
      return 0;
-
 
64162
    }
-
 
64163
 
-
 
64164
    public int compareTo(getStorePricing_result other) {
-
 
64165
      if (!getClass().equals(other.getClass())) {
-
 
64166
        return getClass().getName().compareTo(other.getClass().getName());
-
 
64167
      }
-
 
64168
 
-
 
64169
      int lastComparison = 0;
-
 
64170
      getStorePricing_result typedOther = (getStorePricing_result)other;
-
 
64171
 
-
 
64172
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
64173
      if (lastComparison != 0) {
-
 
64174
        return lastComparison;
-
 
64175
      }
-
 
64176
      if (isSetSuccess()) {
-
 
64177
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
64178
        if (lastComparison != 0) {
-
 
64179
          return lastComparison;
-
 
64180
        }
-
 
64181
      }
-
 
64182
      return 0;
-
 
64183
    }
-
 
64184
 
-
 
64185
    public _Fields fieldForId(int fieldId) {
-
 
64186
      return _Fields.findByThriftId(fieldId);
-
 
64187
    }
-
 
64188
 
-
 
64189
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
64190
      org.apache.thrift.protocol.TField field;
-
 
64191
      iprot.readStructBegin();
-
 
64192
      while (true)
-
 
64193
      {
-
 
64194
        field = iprot.readFieldBegin();
-
 
64195
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
64196
          break;
-
 
64197
        }
-
 
64198
        switch (field.id) {
-
 
64199
          case 0: // SUCCESS
-
 
64200
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
64201
              this.success = new StorePricing();
-
 
64202
              this.success.read(iprot);
-
 
64203
            } else { 
-
 
64204
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
64205
            }
-
 
64206
            break;
-
 
64207
          default:
-
 
64208
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
64209
        }
-
 
64210
        iprot.readFieldEnd();
-
 
64211
      }
-
 
64212
      iprot.readStructEnd();
-
 
64213
      validate();
-
 
64214
    }
-
 
64215
 
-
 
64216
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
64217
      oprot.writeStructBegin(STRUCT_DESC);
-
 
64218
 
-
 
64219
      if (this.isSetSuccess()) {
-
 
64220
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
64221
        this.success.write(oprot);
-
 
64222
        oprot.writeFieldEnd();
-
 
64223
      }
-
 
64224
      oprot.writeFieldStop();
-
 
64225
      oprot.writeStructEnd();
-
 
64226
    }
-
 
64227
 
-
 
64228
    @Override
-
 
64229
    public String toString() {
-
 
64230
      StringBuilder sb = new StringBuilder("getStorePricing_result(");
-
 
64231
      boolean first = true;
-
 
64232
 
-
 
64233
      sb.append("success:");
-
 
64234
      if (this.success == null) {
-
 
64235
        sb.append("null");
-
 
64236
      } else {
-
 
64237
        sb.append(this.success);
-
 
64238
      }
-
 
64239
      first = false;
-
 
64240
      sb.append(")");
-
 
64241
      return sb.toString();
-
 
64242
    }
-
 
64243
 
-
 
64244
    public void validate() throws org.apache.thrift.TException {
64278
      // check for required fields
64245
      // check for required fields
64279
    }
64246
    }
64280
 
64247
 
64281
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
64248
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
64282
      try {
64249
      try {