Subversion Repositories SmartDukaan

Rev

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

Rev 7256 Rev 7272
Line 382... Line 382...
382
 
382
 
383
    public long getFreebieForItem(long itemId) throws org.apache.thrift.TException;
383
    public long getFreebieForItem(long itemId) throws org.apache.thrift.TException;
384
 
384
 
385
    public void addOrUpdateFreebieForItem(FreebieItem freebieItem) throws org.apache.thrift.TException;
385
    public void addOrUpdateFreebieForItem(FreebieItem freebieItem) throws org.apache.thrift.TException;
386
 
386
 
-
 
387
    public void addOrUpdateBrandInfo(BrandInfo brandInfo) throws org.apache.thrift.TException;
-
 
388
 
-
 
389
    public Map<String,BrandInfo> getBrandInfo() throws org.apache.thrift.TException;
-
 
390
 
387
    public StorePricing getStorePricing(long itemId) throws org.apache.thrift.TException;
391
    public StorePricing getStorePricing(long itemId) throws org.apache.thrift.TException;
388
 
392
 
-
 
393
    public void updateStorePricing(StorePricing sp) throws org.apache.thrift.TException;
-
 
394
 
389
  }
395
  }
390
 
396
 
391
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
397
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
392
 
398
 
393
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
399
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 556... Line 562...
556
 
562
 
557
    public void getFreebieForItem(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreebieForItem_call> resultHandler) throws org.apache.thrift.TException;
563
    public void getFreebieForItem(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreebieForItem_call> resultHandler) throws org.apache.thrift.TException;
558
 
564
 
559
    public void addOrUpdateFreebieForItem(FreebieItem freebieItem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateFreebieForItem_call> resultHandler) throws org.apache.thrift.TException;
565
    public void addOrUpdateFreebieForItem(FreebieItem freebieItem, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateFreebieForItem_call> resultHandler) throws org.apache.thrift.TException;
560
 
566
 
-
 
567
    public void addOrUpdateBrandInfo(BrandInfo brandInfo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateBrandInfo_call> resultHandler) throws org.apache.thrift.TException;
-
 
568
 
-
 
569
    public void getBrandInfo(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBrandInfo_call> resultHandler) throws org.apache.thrift.TException;
-
 
570
 
561
    public void getStorePricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStorePricing_call> resultHandler) throws org.apache.thrift.TException;
571
    public void getStorePricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStorePricing_call> resultHandler) throws org.apache.thrift.TException;
562
 
572
 
-
 
573
    public void updateStorePricing(StorePricing sp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateStorePricing_call> resultHandler) throws org.apache.thrift.TException;
-
 
574
 
563
  }
575
  }
564
 
576
 
565
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
577
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
566
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
578
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
567
      public Factory() {}
579
      public Factory() {}
Line 2636... Line 2648...
2636
      addOrUpdateFreebieForItem_result result = new addOrUpdateFreebieForItem_result();
2648
      addOrUpdateFreebieForItem_result result = new addOrUpdateFreebieForItem_result();
2637
      receiveBase(result, "addOrUpdateFreebieForItem");
2649
      receiveBase(result, "addOrUpdateFreebieForItem");
2638
      return;
2650
      return;
2639
    }
2651
    }
2640
 
2652
 
-
 
2653
    public void addOrUpdateBrandInfo(BrandInfo brandInfo) throws org.apache.thrift.TException
-
 
2654
    {
-
 
2655
      send_addOrUpdateBrandInfo(brandInfo);
-
 
2656
      recv_addOrUpdateBrandInfo();
-
 
2657
    }
-
 
2658
 
-
 
2659
    public void send_addOrUpdateBrandInfo(BrandInfo brandInfo) throws org.apache.thrift.TException
-
 
2660
    {
-
 
2661
      addOrUpdateBrandInfo_args args = new addOrUpdateBrandInfo_args();
-
 
2662
      args.setBrandInfo(brandInfo);
-
 
2663
      sendBase("addOrUpdateBrandInfo", args);
-
 
2664
    }
-
 
2665
 
-
 
2666
    public void recv_addOrUpdateBrandInfo() throws org.apache.thrift.TException
-
 
2667
    {
-
 
2668
      addOrUpdateBrandInfo_result result = new addOrUpdateBrandInfo_result();
-
 
2669
      receiveBase(result, "addOrUpdateBrandInfo");
-
 
2670
      return;
-
 
2671
    }
-
 
2672
 
-
 
2673
    public Map<String,BrandInfo> getBrandInfo() throws org.apache.thrift.TException
-
 
2674
    {
-
 
2675
      send_getBrandInfo();
-
 
2676
      return recv_getBrandInfo();
-
 
2677
    }
-
 
2678
 
-
 
2679
    public void send_getBrandInfo() throws org.apache.thrift.TException
-
 
2680
    {
-
 
2681
      getBrandInfo_args args = new getBrandInfo_args();
-
 
2682
      sendBase("getBrandInfo", args);
-
 
2683
    }
-
 
2684
 
-
 
2685
    public Map<String,BrandInfo> recv_getBrandInfo() throws org.apache.thrift.TException
-
 
2686
    {
-
 
2687
      getBrandInfo_result result = new getBrandInfo_result();
-
 
2688
      receiveBase(result, "getBrandInfo");
-
 
2689
      if (result.isSetSuccess()) {
-
 
2690
        return result.success;
-
 
2691
      }
-
 
2692
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBrandInfo failed: unknown result");
-
 
2693
    }
-
 
2694
 
2641
    public StorePricing getStorePricing(long itemId) throws org.apache.thrift.TException
2695
    public StorePricing getStorePricing(long itemId) throws org.apache.thrift.TException
2642
    {
2696
    {
2643
      send_getStorePricing(itemId);
2697
      send_getStorePricing(itemId);
2644
      return recv_getStorePricing();
2698
      return recv_getStorePricing();
2645
    }
2699
    }
Line 2659... Line 2713...
2659
        return result.success;
2713
        return result.success;
2660
      }
2714
      }
2661
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
2715
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
2662
    }
2716
    }
2663
 
2717
 
-
 
2718
    public void updateStorePricing(StorePricing sp) throws org.apache.thrift.TException
-
 
2719
    {
-
 
2720
      send_updateStorePricing(sp);
-
 
2721
      recv_updateStorePricing();
-
 
2722
    }
-
 
2723
 
-
 
2724
    public void send_updateStorePricing(StorePricing sp) throws org.apache.thrift.TException
-
 
2725
    {
-
 
2726
      updateStorePricing_args args = new updateStorePricing_args();
-
 
2727
      args.setSp(sp);
-
 
2728
      sendBase("updateStorePricing", args);
-
 
2729
    }
-
 
2730
 
-
 
2731
    public void recv_updateStorePricing() throws org.apache.thrift.TException
-
 
2732
    {
-
 
2733
      updateStorePricing_result result = new updateStorePricing_result();
-
 
2734
      receiveBase(result, "updateStorePricing");
-
 
2735
      return;
-
 
2736
    }
-
 
2737
 
2664
  }
2738
  }
2665
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2739
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2666
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2740
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2667
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2741
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2668
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2742
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5485... Line 5559...
5485
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5559
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5486
        (new Client(prot)).recv_addOrUpdateFreebieForItem();
5560
        (new Client(prot)).recv_addOrUpdateFreebieForItem();
5487
      }
5561
      }
5488
    }
5562
    }
5489
 
5563
 
-
 
5564
    public void addOrUpdateBrandInfo(BrandInfo brandInfo, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateBrandInfo_call> resultHandler) throws org.apache.thrift.TException {
-
 
5565
      checkReady();
-
 
5566
      addOrUpdateBrandInfo_call method_call = new addOrUpdateBrandInfo_call(brandInfo, resultHandler, this, ___protocolFactory, ___transport);
-
 
5567
      this.___currentMethod = method_call;
-
 
5568
      ___manager.call(method_call);
-
 
5569
    }
-
 
5570
 
-
 
5571
    public static class addOrUpdateBrandInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5572
      private BrandInfo brandInfo;
-
 
5573
      public addOrUpdateBrandInfo_call(BrandInfo brandInfo, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateBrandInfo_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 {
-
 
5574
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5575
        this.brandInfo = brandInfo;
-
 
5576
      }
-
 
5577
 
-
 
5578
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5579
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateBrandInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5580
        addOrUpdateBrandInfo_args args = new addOrUpdateBrandInfo_args();
-
 
5581
        args.setBrandInfo(brandInfo);
-
 
5582
        args.write(prot);
-
 
5583
        prot.writeMessageEnd();
-
 
5584
      }
-
 
5585
 
-
 
5586
      public void getResult() throws org.apache.thrift.TException {
-
 
5587
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5588
          throw new IllegalStateException("Method call not finished!");
-
 
5589
        }
-
 
5590
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5591
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5592
        (new Client(prot)).recv_addOrUpdateBrandInfo();
-
 
5593
      }
-
 
5594
    }
-
 
5595
 
-
 
5596
    public void getBrandInfo(org.apache.thrift.async.AsyncMethodCallback<getBrandInfo_call> resultHandler) throws org.apache.thrift.TException {
-
 
5597
      checkReady();
-
 
5598
      getBrandInfo_call method_call = new getBrandInfo_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
5599
      this.___currentMethod = method_call;
-
 
5600
      ___manager.call(method_call);
-
 
5601
    }
-
 
5602
 
-
 
5603
    public static class getBrandInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5604
      public getBrandInfo_call(org.apache.thrift.async.AsyncMethodCallback<getBrandInfo_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 {
-
 
5605
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5606
      }
-
 
5607
 
-
 
5608
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5609
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBrandInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5610
        getBrandInfo_args args = new getBrandInfo_args();
-
 
5611
        args.write(prot);
-
 
5612
        prot.writeMessageEnd();
-
 
5613
      }
-
 
5614
 
-
 
5615
      public Map<String,BrandInfo> getResult() throws org.apache.thrift.TException {
-
 
5616
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5617
          throw new IllegalStateException("Method call not finished!");
-
 
5618
        }
-
 
5619
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5620
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5621
        return (new Client(prot)).recv_getBrandInfo();
-
 
5622
      }
-
 
5623
    }
-
 
5624
 
5490
    public void getStorePricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<getStorePricing_call> resultHandler) throws org.apache.thrift.TException {
5625
    public void getStorePricing(long itemId, org.apache.thrift.async.AsyncMethodCallback<getStorePricing_call> resultHandler) throws org.apache.thrift.TException {
5491
      checkReady();
5626
      checkReady();
5492
      getStorePricing_call method_call = new getStorePricing_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
5627
      getStorePricing_call method_call = new getStorePricing_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
5493
      this.___currentMethod = method_call;
5628
      this.___currentMethod = method_call;
5494
      ___manager.call(method_call);
5629
      ___manager.call(method_call);
Line 5517... Line 5652...
5517
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5652
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5518
        return (new Client(prot)).recv_getStorePricing();
5653
        return (new Client(prot)).recv_getStorePricing();
5519
      }
5654
      }
5520
    }
5655
    }
5521
 
5656
 
-
 
5657
    public void updateStorePricing(StorePricing sp, org.apache.thrift.async.AsyncMethodCallback<updateStorePricing_call> resultHandler) throws org.apache.thrift.TException {
-
 
5658
      checkReady();
-
 
5659
      updateStorePricing_call method_call = new updateStorePricing_call(sp, resultHandler, this, ___protocolFactory, ___transport);
-
 
5660
      this.___currentMethod = method_call;
-
 
5661
      ___manager.call(method_call);
-
 
5662
    }
-
 
5663
 
-
 
5664
    public static class updateStorePricing_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5665
      private StorePricing sp;
-
 
5666
      public updateStorePricing_call(StorePricing sp, org.apache.thrift.async.AsyncMethodCallback<updateStorePricing_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 {
-
 
5667
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5668
        this.sp = sp;
-
 
5669
      }
-
 
5670
 
-
 
5671
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5672
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateStorePricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5673
        updateStorePricing_args args = new updateStorePricing_args();
-
 
5674
        args.setSp(sp);
-
 
5675
        args.write(prot);
-
 
5676
        prot.writeMessageEnd();
-
 
5677
      }
-
 
5678
 
-
 
5679
      public void getResult() throws org.apache.thrift.TException {
-
 
5680
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5681
          throw new IllegalStateException("Method call not finished!");
-
 
5682
        }
-
 
5683
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5684
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5685
        (new Client(prot)).recv_updateStorePricing();
-
 
5686
      }
-
 
5687
    }
-
 
5688
 
5522
  }
5689
  }
5523
 
5690
 
5524
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5691
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5525
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5692
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5526
    public Processor(I iface) {
5693
    public Processor(I iface) {
Line 5614... Line 5781...
5614
      processMap.put("getInsurer", new getInsurer());
5781
      processMap.put("getInsurer", new getInsurer());
5615
      processMap.put("getAllInsurers", new getAllInsurers());
5782
      processMap.put("getAllInsurers", new getAllInsurers());
5616
      processMap.put("updateInsuranceDeclaredAmount", new updateInsuranceDeclaredAmount());
5783
      processMap.put("updateInsuranceDeclaredAmount", new updateInsuranceDeclaredAmount());
5617
      processMap.put("getFreebieForItem", new getFreebieForItem());
5784
      processMap.put("getFreebieForItem", new getFreebieForItem());
5618
      processMap.put("addOrUpdateFreebieForItem", new addOrUpdateFreebieForItem());
5785
      processMap.put("addOrUpdateFreebieForItem", new addOrUpdateFreebieForItem());
-
 
5786
      processMap.put("addOrUpdateBrandInfo", new addOrUpdateBrandInfo());
-
 
5787
      processMap.put("getBrandInfo", new getBrandInfo());
5619
      processMap.put("getStorePricing", new getStorePricing());
5788
      processMap.put("getStorePricing", new getStorePricing());
-
 
5789
      processMap.put("updateStorePricing", new updateStorePricing());
5620
      return processMap;
5790
      return processMap;
5621
    }
5791
    }
5622
 
5792
 
5623
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
5793
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
5624
      public addItem() {
5794
      public addItem() {
Line 7137... Line 7307...
7137
        iface.addOrUpdateFreebieForItem(args.freebieItem);
7307
        iface.addOrUpdateFreebieForItem(args.freebieItem);
7138
        return result;
7308
        return result;
7139
      }
7309
      }
7140
    }
7310
    }
7141
 
7311
 
-
 
7312
    private static class addOrUpdateBrandInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateBrandInfo_args> {
-
 
7313
      public addOrUpdateBrandInfo() {
-
 
7314
        super("addOrUpdateBrandInfo");
-
 
7315
      }
-
 
7316
 
-
 
7317
      protected addOrUpdateBrandInfo_args getEmptyArgsInstance() {
-
 
7318
        return new addOrUpdateBrandInfo_args();
-
 
7319
      }
-
 
7320
 
-
 
7321
      protected addOrUpdateBrandInfo_result getResult(I iface, addOrUpdateBrandInfo_args args) throws org.apache.thrift.TException {
-
 
7322
        addOrUpdateBrandInfo_result result = new addOrUpdateBrandInfo_result();
-
 
7323
        iface.addOrUpdateBrandInfo(args.brandInfo);
-
 
7324
        return result;
-
 
7325
      }
-
 
7326
    }
-
 
7327
 
-
 
7328
    private static class getBrandInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBrandInfo_args> {
-
 
7329
      public getBrandInfo() {
-
 
7330
        super("getBrandInfo");
-
 
7331
      }
-
 
7332
 
-
 
7333
      protected getBrandInfo_args getEmptyArgsInstance() {
-
 
7334
        return new getBrandInfo_args();
-
 
7335
      }
-
 
7336
 
-
 
7337
      protected getBrandInfo_result getResult(I iface, getBrandInfo_args args) throws org.apache.thrift.TException {
-
 
7338
        getBrandInfo_result result = new getBrandInfo_result();
-
 
7339
        result.success = iface.getBrandInfo();
-
 
7340
        return result;
-
 
7341
      }
-
 
7342
    }
-
 
7343
 
7142
    private static class getStorePricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getStorePricing_args> {
7344
    private static class getStorePricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getStorePricing_args> {
7143
      public getStorePricing() {
7345
      public getStorePricing() {
7144
        super("getStorePricing");
7346
        super("getStorePricing");
7145
      }
7347
      }
7146
 
7348
 
Line 7153... Line 7355...
7153
        result.success = iface.getStorePricing(args.itemId);
7355
        result.success = iface.getStorePricing(args.itemId);
7154
        return result;
7356
        return result;
7155
      }
7357
      }
7156
    }
7358
    }
7157
 
7359
 
-
 
7360
    private static class updateStorePricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateStorePricing_args> {
-
 
7361
      public updateStorePricing() {
-
 
7362
        super("updateStorePricing");
-
 
7363
      }
-
 
7364
 
-
 
7365
      protected updateStorePricing_args getEmptyArgsInstance() {
-
 
7366
        return new updateStorePricing_args();
-
 
7367
      }
-
 
7368
 
-
 
7369
      protected updateStorePricing_result getResult(I iface, updateStorePricing_args args) throws org.apache.thrift.TException {
-
 
7370
        updateStorePricing_result result = new updateStorePricing_result();
-
 
7371
        iface.updateStorePricing(args.sp);
-
 
7372
        return result;
-
 
7373
      }
-
 
7374
    }
-
 
7375
 
7158
  }
7376
  }
7159
 
7377
 
7160
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
7378
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
7161
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
7379
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
7162
 
7380
 
Line 63673... Line 63891...
63673
      }
63891
      }
63674
    }
63892
    }
63675
 
63893
 
63676
  }
63894
  }
63677
 
63895
 
-
 
63896
  public static class addOrUpdateBrandInfo_args implements org.apache.thrift.TBase<addOrUpdateBrandInfo_args, addOrUpdateBrandInfo_args._Fields>, java.io.Serializable, Cloneable   {
-
 
63897
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateBrandInfo_args");
-
 
63898
 
-
 
63899
    private static final org.apache.thrift.protocol.TField BRAND_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("brandInfo", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
63900
 
-
 
63901
    private BrandInfo brandInfo; // required
-
 
63902
 
-
 
63903
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
63904
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
63905
      BRAND_INFO((short)1, "brandInfo");
-
 
63906
 
-
 
63907
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
63908
 
-
 
63909
      static {
-
 
63910
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
63911
          byName.put(field.getFieldName(), field);
-
 
63912
        }
-
 
63913
      }
-
 
63914
 
-
 
63915
      /**
-
 
63916
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
63917
       */
-
 
63918
      public static _Fields findByThriftId(int fieldId) {
-
 
63919
        switch(fieldId) {
-
 
63920
          case 1: // BRAND_INFO
-
 
63921
            return BRAND_INFO;
-
 
63922
          default:
-
 
63923
            return null;
-
 
63924
        }
-
 
63925
      }
-
 
63926
 
-
 
63927
      /**
-
 
63928
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
63929
       * if it is not found.
-
 
63930
       */
-
 
63931
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
63932
        _Fields fields = findByThriftId(fieldId);
-
 
63933
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
63934
        return fields;
-
 
63935
      }
-
 
63936
 
-
 
63937
      /**
-
 
63938
       * Find the _Fields constant that matches name, or null if its not found.
-
 
63939
       */
-
 
63940
      public static _Fields findByName(String name) {
-
 
63941
        return byName.get(name);
-
 
63942
      }
-
 
63943
 
-
 
63944
      private final short _thriftId;
-
 
63945
      private final String _fieldName;
-
 
63946
 
-
 
63947
      _Fields(short thriftId, String fieldName) {
-
 
63948
        _thriftId = thriftId;
-
 
63949
        _fieldName = fieldName;
-
 
63950
      }
-
 
63951
 
-
 
63952
      public short getThriftFieldId() {
-
 
63953
        return _thriftId;
-
 
63954
      }
-
 
63955
 
-
 
63956
      public String getFieldName() {
-
 
63957
        return _fieldName;
-
 
63958
      }
-
 
63959
    }
-
 
63960
 
-
 
63961
    // isset id assignments
-
 
63962
 
-
 
63963
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
63964
    static {
-
 
63965
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
63966
      tmpMap.put(_Fields.BRAND_INFO, new org.apache.thrift.meta_data.FieldMetaData("brandInfo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
63967
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BrandInfo.class)));
-
 
63968
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
63969
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateBrandInfo_args.class, metaDataMap);
-
 
63970
    }
-
 
63971
 
-
 
63972
    public addOrUpdateBrandInfo_args() {
-
 
63973
    }
-
 
63974
 
-
 
63975
    public addOrUpdateBrandInfo_args(
-
 
63976
      BrandInfo brandInfo)
-
 
63977
    {
-
 
63978
      this();
-
 
63979
      this.brandInfo = brandInfo;
-
 
63980
    }
-
 
63981
 
-
 
63982
    /**
-
 
63983
     * Performs a deep copy on <i>other</i>.
-
 
63984
     */
-
 
63985
    public addOrUpdateBrandInfo_args(addOrUpdateBrandInfo_args other) {
-
 
63986
      if (other.isSetBrandInfo()) {
-
 
63987
        this.brandInfo = new BrandInfo(other.brandInfo);
-
 
63988
      }
-
 
63989
    }
-
 
63990
 
-
 
63991
    public addOrUpdateBrandInfo_args deepCopy() {
-
 
63992
      return new addOrUpdateBrandInfo_args(this);
-
 
63993
    }
-
 
63994
 
-
 
63995
    @Override
-
 
63996
    public void clear() {
-
 
63997
      this.brandInfo = null;
-
 
63998
    }
-
 
63999
 
-
 
64000
    public BrandInfo getBrandInfo() {
-
 
64001
      return this.brandInfo;
-
 
64002
    }
-
 
64003
 
-
 
64004
    public void setBrandInfo(BrandInfo brandInfo) {
-
 
64005
      this.brandInfo = brandInfo;
-
 
64006
    }
-
 
64007
 
-
 
64008
    public void unsetBrandInfo() {
-
 
64009
      this.brandInfo = null;
-
 
64010
    }
-
 
64011
 
-
 
64012
    /** Returns true if field brandInfo is set (has been assigned a value) and false otherwise */
-
 
64013
    public boolean isSetBrandInfo() {
-
 
64014
      return this.brandInfo != null;
-
 
64015
    }
-
 
64016
 
-
 
64017
    public void setBrandInfoIsSet(boolean value) {
-
 
64018
      if (!value) {
-
 
64019
        this.brandInfo = null;
-
 
64020
      }
-
 
64021
    }
-
 
64022
 
-
 
64023
    public void setFieldValue(_Fields field, Object value) {
-
 
64024
      switch (field) {
-
 
64025
      case BRAND_INFO:
-
 
64026
        if (value == null) {
-
 
64027
          unsetBrandInfo();
-
 
64028
        } else {
-
 
64029
          setBrandInfo((BrandInfo)value);
-
 
64030
        }
-
 
64031
        break;
-
 
64032
 
-
 
64033
      }
-
 
64034
    }
-
 
64035
 
-
 
64036
    public Object getFieldValue(_Fields field) {
-
 
64037
      switch (field) {
-
 
64038
      case BRAND_INFO:
-
 
64039
        return getBrandInfo();
-
 
64040
 
-
 
64041
      }
-
 
64042
      throw new IllegalStateException();
-
 
64043
    }
-
 
64044
 
-
 
64045
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
64046
    public boolean isSet(_Fields field) {
-
 
64047
      if (field == null) {
-
 
64048
        throw new IllegalArgumentException();
-
 
64049
      }
-
 
64050
 
-
 
64051
      switch (field) {
-
 
64052
      case BRAND_INFO:
-
 
64053
        return isSetBrandInfo();
-
 
64054
      }
-
 
64055
      throw new IllegalStateException();
-
 
64056
    }
-
 
64057
 
-
 
64058
    @Override
-
 
64059
    public boolean equals(Object that) {
-
 
64060
      if (that == null)
-
 
64061
        return false;
-
 
64062
      if (that instanceof addOrUpdateBrandInfo_args)
-
 
64063
        return this.equals((addOrUpdateBrandInfo_args)that);
-
 
64064
      return false;
-
 
64065
    }
-
 
64066
 
-
 
64067
    public boolean equals(addOrUpdateBrandInfo_args that) {
-
 
64068
      if (that == null)
-
 
64069
        return false;
-
 
64070
 
-
 
64071
      boolean this_present_brandInfo = true && this.isSetBrandInfo();
-
 
64072
      boolean that_present_brandInfo = true && that.isSetBrandInfo();
-
 
64073
      if (this_present_brandInfo || that_present_brandInfo) {
-
 
64074
        if (!(this_present_brandInfo && that_present_brandInfo))
-
 
64075
          return false;
-
 
64076
        if (!this.brandInfo.equals(that.brandInfo))
-
 
64077
          return false;
-
 
64078
      }
-
 
64079
 
-
 
64080
      return true;
-
 
64081
    }
-
 
64082
 
-
 
64083
    @Override
-
 
64084
    public int hashCode() {
-
 
64085
      return 0;
-
 
64086
    }
-
 
64087
 
-
 
64088
    public int compareTo(addOrUpdateBrandInfo_args other) {
-
 
64089
      if (!getClass().equals(other.getClass())) {
-
 
64090
        return getClass().getName().compareTo(other.getClass().getName());
-
 
64091
      }
-
 
64092
 
-
 
64093
      int lastComparison = 0;
-
 
64094
      addOrUpdateBrandInfo_args typedOther = (addOrUpdateBrandInfo_args)other;
-
 
64095
 
-
 
64096
      lastComparison = Boolean.valueOf(isSetBrandInfo()).compareTo(typedOther.isSetBrandInfo());
-
 
64097
      if (lastComparison != 0) {
-
 
64098
        return lastComparison;
-
 
64099
      }
-
 
64100
      if (isSetBrandInfo()) {
-
 
64101
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brandInfo, typedOther.brandInfo);
-
 
64102
        if (lastComparison != 0) {
-
 
64103
          return lastComparison;
-
 
64104
        }
-
 
64105
      }
-
 
64106
      return 0;
-
 
64107
    }
-
 
64108
 
-
 
64109
    public _Fields fieldForId(int fieldId) {
-
 
64110
      return _Fields.findByThriftId(fieldId);
-
 
64111
    }
-
 
64112
 
-
 
64113
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
64114
      org.apache.thrift.protocol.TField field;
-
 
64115
      iprot.readStructBegin();
-
 
64116
      while (true)
-
 
64117
      {
-
 
64118
        field = iprot.readFieldBegin();
-
 
64119
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
64120
          break;
-
 
64121
        }
-
 
64122
        switch (field.id) {
-
 
64123
          case 1: // BRAND_INFO
-
 
64124
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
64125
              this.brandInfo = new BrandInfo();
-
 
64126
              this.brandInfo.read(iprot);
-
 
64127
            } else { 
-
 
64128
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
64129
            }
-
 
64130
            break;
-
 
64131
          default:
-
 
64132
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
64133
        }
-
 
64134
        iprot.readFieldEnd();
-
 
64135
      }
-
 
64136
      iprot.readStructEnd();
-
 
64137
      validate();
-
 
64138
    }
-
 
64139
 
-
 
64140
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
64141
      validate();
-
 
64142
 
-
 
64143
      oprot.writeStructBegin(STRUCT_DESC);
-
 
64144
      if (this.brandInfo != null) {
-
 
64145
        oprot.writeFieldBegin(BRAND_INFO_FIELD_DESC);
-
 
64146
        this.brandInfo.write(oprot);
-
 
64147
        oprot.writeFieldEnd();
-
 
64148
      }
-
 
64149
      oprot.writeFieldStop();
-
 
64150
      oprot.writeStructEnd();
-
 
64151
    }
-
 
64152
 
-
 
64153
    @Override
-
 
64154
    public String toString() {
-
 
64155
      StringBuilder sb = new StringBuilder("addOrUpdateBrandInfo_args(");
-
 
64156
      boolean first = true;
-
 
64157
 
-
 
64158
      sb.append("brandInfo:");
-
 
64159
      if (this.brandInfo == null) {
-
 
64160
        sb.append("null");
-
 
64161
      } else {
-
 
64162
        sb.append(this.brandInfo);
-
 
64163
      }
-
 
64164
      first = false;
-
 
64165
      sb.append(")");
-
 
64166
      return sb.toString();
-
 
64167
    }
-
 
64168
 
-
 
64169
    public void validate() throws org.apache.thrift.TException {
-
 
64170
      // check for required fields
-
 
64171
    }
-
 
64172
 
-
 
64173
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
64174
      try {
-
 
64175
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
64176
      } catch (org.apache.thrift.TException te) {
-
 
64177
        throw new java.io.IOException(te);
-
 
64178
      }
-
 
64179
    }
-
 
64180
 
-
 
64181
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
64182
      try {
-
 
64183
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
64184
      } catch (org.apache.thrift.TException te) {
-
 
64185
        throw new java.io.IOException(te);
-
 
64186
      }
-
 
64187
    }
-
 
64188
 
-
 
64189
  }
-
 
64190
 
-
 
64191
  public static class addOrUpdateBrandInfo_result implements org.apache.thrift.TBase<addOrUpdateBrandInfo_result, addOrUpdateBrandInfo_result._Fields>, java.io.Serializable, Cloneable   {
-
 
64192
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateBrandInfo_result");
-
 
64193
 
-
 
64194
 
-
 
64195
 
-
 
64196
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
64197
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
64198
;
-
 
64199
 
-
 
64200
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
64201
 
-
 
64202
      static {
-
 
64203
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
64204
          byName.put(field.getFieldName(), field);
-
 
64205
        }
-
 
64206
      }
-
 
64207
 
-
 
64208
      /**
-
 
64209
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
64210
       */
-
 
64211
      public static _Fields findByThriftId(int fieldId) {
-
 
64212
        switch(fieldId) {
-
 
64213
          default:
-
 
64214
            return null;
-
 
64215
        }
-
 
64216
      }
-
 
64217
 
-
 
64218
      /**
-
 
64219
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
64220
       * if it is not found.
-
 
64221
       */
-
 
64222
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
64223
        _Fields fields = findByThriftId(fieldId);
-
 
64224
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
64225
        return fields;
-
 
64226
      }
-
 
64227
 
-
 
64228
      /**
-
 
64229
       * Find the _Fields constant that matches name, or null if its not found.
-
 
64230
       */
-
 
64231
      public static _Fields findByName(String name) {
-
 
64232
        return byName.get(name);
-
 
64233
      }
-
 
64234
 
-
 
64235
      private final short _thriftId;
-
 
64236
      private final String _fieldName;
-
 
64237
 
-
 
64238
      _Fields(short thriftId, String fieldName) {
-
 
64239
        _thriftId = thriftId;
-
 
64240
        _fieldName = fieldName;
-
 
64241
      }
-
 
64242
 
-
 
64243
      public short getThriftFieldId() {
-
 
64244
        return _thriftId;
-
 
64245
      }
-
 
64246
 
-
 
64247
      public String getFieldName() {
-
 
64248
        return _fieldName;
-
 
64249
      }
-
 
64250
    }
-
 
64251
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
64252
    static {
-
 
64253
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
64254
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
64255
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateBrandInfo_result.class, metaDataMap);
-
 
64256
    }
-
 
64257
 
-
 
64258
    public addOrUpdateBrandInfo_result() {
-
 
64259
    }
-
 
64260
 
-
 
64261
    /**
-
 
64262
     * Performs a deep copy on <i>other</i>.
-
 
64263
     */
-
 
64264
    public addOrUpdateBrandInfo_result(addOrUpdateBrandInfo_result other) {
-
 
64265
    }
-
 
64266
 
-
 
64267
    public addOrUpdateBrandInfo_result deepCopy() {
-
 
64268
      return new addOrUpdateBrandInfo_result(this);
-
 
64269
    }
-
 
64270
 
-
 
64271
    @Override
-
 
64272
    public void clear() {
-
 
64273
    }
-
 
64274
 
-
 
64275
    public void setFieldValue(_Fields field, Object value) {
-
 
64276
      switch (field) {
-
 
64277
      }
-
 
64278
    }
-
 
64279
 
-
 
64280
    public Object getFieldValue(_Fields field) {
-
 
64281
      switch (field) {
-
 
64282
      }
-
 
64283
      throw new IllegalStateException();
-
 
64284
    }
-
 
64285
 
-
 
64286
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
64287
    public boolean isSet(_Fields field) {
-
 
64288
      if (field == null) {
-
 
64289
        throw new IllegalArgumentException();
-
 
64290
      }
-
 
64291
 
-
 
64292
      switch (field) {
-
 
64293
      }
-
 
64294
      throw new IllegalStateException();
-
 
64295
    }
-
 
64296
 
-
 
64297
    @Override
-
 
64298
    public boolean equals(Object that) {
-
 
64299
      if (that == null)
-
 
64300
        return false;
-
 
64301
      if (that instanceof addOrUpdateBrandInfo_result)
-
 
64302
        return this.equals((addOrUpdateBrandInfo_result)that);
-
 
64303
      return false;
-
 
64304
    }
-
 
64305
 
-
 
64306
    public boolean equals(addOrUpdateBrandInfo_result that) {
-
 
64307
      if (that == null)
-
 
64308
        return false;
-
 
64309
 
-
 
64310
      return true;
-
 
64311
    }
-
 
64312
 
-
 
64313
    @Override
-
 
64314
    public int hashCode() {
-
 
64315
      return 0;
-
 
64316
    }
-
 
64317
 
-
 
64318
    public int compareTo(addOrUpdateBrandInfo_result other) {
-
 
64319
      if (!getClass().equals(other.getClass())) {
-
 
64320
        return getClass().getName().compareTo(other.getClass().getName());
-
 
64321
      }
-
 
64322
 
-
 
64323
      int lastComparison = 0;
-
 
64324
      addOrUpdateBrandInfo_result typedOther = (addOrUpdateBrandInfo_result)other;
-
 
64325
 
-
 
64326
      return 0;
-
 
64327
    }
-
 
64328
 
-
 
64329
    public _Fields fieldForId(int fieldId) {
-
 
64330
      return _Fields.findByThriftId(fieldId);
-
 
64331
    }
-
 
64332
 
-
 
64333
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
64334
      org.apache.thrift.protocol.TField field;
-
 
64335
      iprot.readStructBegin();
-
 
64336
      while (true)
-
 
64337
      {
-
 
64338
        field = iprot.readFieldBegin();
-
 
64339
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
64340
          break;
-
 
64341
        }
-
 
64342
        switch (field.id) {
-
 
64343
          default:
-
 
64344
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
64345
        }
-
 
64346
        iprot.readFieldEnd();
-
 
64347
      }
-
 
64348
      iprot.readStructEnd();
-
 
64349
      validate();
-
 
64350
    }
-
 
64351
 
-
 
64352
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
64353
      oprot.writeStructBegin(STRUCT_DESC);
-
 
64354
 
-
 
64355
      oprot.writeFieldStop();
-
 
64356
      oprot.writeStructEnd();
-
 
64357
    }
-
 
64358
 
-
 
64359
    @Override
-
 
64360
    public String toString() {
-
 
64361
      StringBuilder sb = new StringBuilder("addOrUpdateBrandInfo_result(");
-
 
64362
      boolean first = true;
-
 
64363
 
-
 
64364
      sb.append(")");
-
 
64365
      return sb.toString();
-
 
64366
    }
-
 
64367
 
-
 
64368
    public void validate() throws org.apache.thrift.TException {
-
 
64369
      // check for required fields
-
 
64370
    }
-
 
64371
 
-
 
64372
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
64373
      try {
-
 
64374
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
64375
      } catch (org.apache.thrift.TException te) {
-
 
64376
        throw new java.io.IOException(te);
-
 
64377
      }
-
 
64378
    }
-
 
64379
 
-
 
64380
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
64381
      try {
-
 
64382
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
64383
      } catch (org.apache.thrift.TException te) {
-
 
64384
        throw new java.io.IOException(te);
-
 
64385
      }
-
 
64386
    }
-
 
64387
 
-
 
64388
  }
-
 
64389
 
-
 
64390
  public static class getBrandInfo_args implements org.apache.thrift.TBase<getBrandInfo_args, getBrandInfo_args._Fields>, java.io.Serializable, Cloneable   {
-
 
64391
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBrandInfo_args");
-
 
64392
 
-
 
64393
 
-
 
64394
 
-
 
64395
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
64396
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
64397
;
-
 
64398
 
-
 
64399
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
64400
 
-
 
64401
      static {
-
 
64402
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
64403
          byName.put(field.getFieldName(), field);
-
 
64404
        }
-
 
64405
      }
-
 
64406
 
-
 
64407
      /**
-
 
64408
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
64409
       */
-
 
64410
      public static _Fields findByThriftId(int fieldId) {
-
 
64411
        switch(fieldId) {
-
 
64412
          default:
-
 
64413
            return null;
-
 
64414
        }
-
 
64415
      }
-
 
64416
 
-
 
64417
      /**
-
 
64418
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
64419
       * if it is not found.
-
 
64420
       */
-
 
64421
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
64422
        _Fields fields = findByThriftId(fieldId);
-
 
64423
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
64424
        return fields;
-
 
64425
      }
-
 
64426
 
-
 
64427
      /**
-
 
64428
       * Find the _Fields constant that matches name, or null if its not found.
-
 
64429
       */
-
 
64430
      public static _Fields findByName(String name) {
-
 
64431
        return byName.get(name);
-
 
64432
      }
-
 
64433
 
-
 
64434
      private final short _thriftId;
-
 
64435
      private final String _fieldName;
-
 
64436
 
-
 
64437
      _Fields(short thriftId, String fieldName) {
-
 
64438
        _thriftId = thriftId;
-
 
64439
        _fieldName = fieldName;
-
 
64440
      }
-
 
64441
 
-
 
64442
      public short getThriftFieldId() {
-
 
64443
        return _thriftId;
-
 
64444
      }
-
 
64445
 
-
 
64446
      public String getFieldName() {
-
 
64447
        return _fieldName;
-
 
64448
      }
-
 
64449
    }
-
 
64450
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
64451
    static {
-
 
64452
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
64453
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
64454
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBrandInfo_args.class, metaDataMap);
-
 
64455
    }
-
 
64456
 
-
 
64457
    public getBrandInfo_args() {
-
 
64458
    }
-
 
64459
 
-
 
64460
    /**
-
 
64461
     * Performs a deep copy on <i>other</i>.
-
 
64462
     */
-
 
64463
    public getBrandInfo_args(getBrandInfo_args other) {
-
 
64464
    }
-
 
64465
 
-
 
64466
    public getBrandInfo_args deepCopy() {
-
 
64467
      return new getBrandInfo_args(this);
-
 
64468
    }
-
 
64469
 
-
 
64470
    @Override
-
 
64471
    public void clear() {
-
 
64472
    }
-
 
64473
 
-
 
64474
    public void setFieldValue(_Fields field, Object value) {
-
 
64475
      switch (field) {
-
 
64476
      }
-
 
64477
    }
-
 
64478
 
-
 
64479
    public Object getFieldValue(_Fields field) {
-
 
64480
      switch (field) {
-
 
64481
      }
-
 
64482
      throw new IllegalStateException();
-
 
64483
    }
-
 
64484
 
-
 
64485
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
64486
    public boolean isSet(_Fields field) {
-
 
64487
      if (field == null) {
-
 
64488
        throw new IllegalArgumentException();
-
 
64489
      }
-
 
64490
 
-
 
64491
      switch (field) {
-
 
64492
      }
-
 
64493
      throw new IllegalStateException();
-
 
64494
    }
-
 
64495
 
-
 
64496
    @Override
-
 
64497
    public boolean equals(Object that) {
-
 
64498
      if (that == null)
-
 
64499
        return false;
-
 
64500
      if (that instanceof getBrandInfo_args)
-
 
64501
        return this.equals((getBrandInfo_args)that);
-
 
64502
      return false;
-
 
64503
    }
-
 
64504
 
-
 
64505
    public boolean equals(getBrandInfo_args that) {
-
 
64506
      if (that == null)
-
 
64507
        return false;
-
 
64508
 
-
 
64509
      return true;
-
 
64510
    }
-
 
64511
 
-
 
64512
    @Override
-
 
64513
    public int hashCode() {
-
 
64514
      return 0;
-
 
64515
    }
-
 
64516
 
-
 
64517
    public int compareTo(getBrandInfo_args other) {
-
 
64518
      if (!getClass().equals(other.getClass())) {
-
 
64519
        return getClass().getName().compareTo(other.getClass().getName());
-
 
64520
      }
-
 
64521
 
-
 
64522
      int lastComparison = 0;
-
 
64523
      getBrandInfo_args typedOther = (getBrandInfo_args)other;
-
 
64524
 
-
 
64525
      return 0;
-
 
64526
    }
-
 
64527
 
-
 
64528
    public _Fields fieldForId(int fieldId) {
-
 
64529
      return _Fields.findByThriftId(fieldId);
-
 
64530
    }
-
 
64531
 
-
 
64532
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
64533
      org.apache.thrift.protocol.TField field;
-
 
64534
      iprot.readStructBegin();
-
 
64535
      while (true)
-
 
64536
      {
-
 
64537
        field = iprot.readFieldBegin();
-
 
64538
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
64539
          break;
-
 
64540
        }
-
 
64541
        switch (field.id) {
-
 
64542
          default:
-
 
64543
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
64544
        }
-
 
64545
        iprot.readFieldEnd();
-
 
64546
      }
-
 
64547
      iprot.readStructEnd();
-
 
64548
      validate();
-
 
64549
    }
-
 
64550
 
-
 
64551
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
64552
      validate();
-
 
64553
 
-
 
64554
      oprot.writeStructBegin(STRUCT_DESC);
-
 
64555
      oprot.writeFieldStop();
-
 
64556
      oprot.writeStructEnd();
-
 
64557
    }
-
 
64558
 
-
 
64559
    @Override
-
 
64560
    public String toString() {
-
 
64561
      StringBuilder sb = new StringBuilder("getBrandInfo_args(");
-
 
64562
      boolean first = true;
-
 
64563
 
-
 
64564
      sb.append(")");
-
 
64565
      return sb.toString();
-
 
64566
    }
-
 
64567
 
-
 
64568
    public void validate() throws org.apache.thrift.TException {
-
 
64569
      // check for required fields
-
 
64570
    }
-
 
64571
 
-
 
64572
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
64573
      try {
-
 
64574
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
64575
      } catch (org.apache.thrift.TException te) {
-
 
64576
        throw new java.io.IOException(te);
-
 
64577
      }
-
 
64578
    }
-
 
64579
 
-
 
64580
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
64581
      try {
-
 
64582
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
64583
      } catch (org.apache.thrift.TException te) {
-
 
64584
        throw new java.io.IOException(te);
-
 
64585
      }
-
 
64586
    }
-
 
64587
 
-
 
64588
  }
-
 
64589
 
-
 
64590
  public static class getBrandInfo_result implements org.apache.thrift.TBase<getBrandInfo_result, getBrandInfo_result._Fields>, java.io.Serializable, Cloneable   {
-
 
64591
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBrandInfo_result");
-
 
64592
 
-
 
64593
    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);
-
 
64594
 
-
 
64595
    private Map<String,BrandInfo> success; // required
-
 
64596
 
-
 
64597
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
64598
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
64599
      SUCCESS((short)0, "success");
-
 
64600
 
-
 
64601
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
64602
 
-
 
64603
      static {
-
 
64604
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
64605
          byName.put(field.getFieldName(), field);
-
 
64606
        }
-
 
64607
      }
-
 
64608
 
-
 
64609
      /**
-
 
64610
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
64611
       */
-
 
64612
      public static _Fields findByThriftId(int fieldId) {
-
 
64613
        switch(fieldId) {
-
 
64614
          case 0: // SUCCESS
-
 
64615
            return SUCCESS;
-
 
64616
          default:
-
 
64617
            return null;
-
 
64618
        }
-
 
64619
      }
-
 
64620
 
-
 
64621
      /**
-
 
64622
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
64623
       * if it is not found.
-
 
64624
       */
-
 
64625
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
64626
        _Fields fields = findByThriftId(fieldId);
-
 
64627
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
64628
        return fields;
-
 
64629
      }
-
 
64630
 
-
 
64631
      /**
-
 
64632
       * Find the _Fields constant that matches name, or null if its not found.
-
 
64633
       */
-
 
64634
      public static _Fields findByName(String name) {
-
 
64635
        return byName.get(name);
-
 
64636
      }
-
 
64637
 
-
 
64638
      private final short _thriftId;
-
 
64639
      private final String _fieldName;
-
 
64640
 
-
 
64641
      _Fields(short thriftId, String fieldName) {
-
 
64642
        _thriftId = thriftId;
-
 
64643
        _fieldName = fieldName;
-
 
64644
      }
-
 
64645
 
-
 
64646
      public short getThriftFieldId() {
-
 
64647
        return _thriftId;
-
 
64648
      }
-
 
64649
 
-
 
64650
      public String getFieldName() {
-
 
64651
        return _fieldName;
-
 
64652
      }
-
 
64653
    }
-
 
64654
 
-
 
64655
    // isset id assignments
-
 
64656
 
-
 
64657
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
64658
    static {
-
 
64659
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
64660
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
64661
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
64662
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
-
 
64663
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BrandInfo.class))));
-
 
64664
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
64665
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBrandInfo_result.class, metaDataMap);
-
 
64666
    }
-
 
64667
 
-
 
64668
    public getBrandInfo_result() {
-
 
64669
    }
-
 
64670
 
-
 
64671
    public getBrandInfo_result(
-
 
64672
      Map<String,BrandInfo> success)
-
 
64673
    {
-
 
64674
      this();
-
 
64675
      this.success = success;
-
 
64676
    }
-
 
64677
 
-
 
64678
    /**
-
 
64679
     * Performs a deep copy on <i>other</i>.
-
 
64680
     */
-
 
64681
    public getBrandInfo_result(getBrandInfo_result other) {
-
 
64682
      if (other.isSetSuccess()) {
-
 
64683
        Map<String,BrandInfo> __this__success = new HashMap<String,BrandInfo>();
-
 
64684
        for (Map.Entry<String, BrandInfo> other_element : other.success.entrySet()) {
-
 
64685
 
-
 
64686
          String other_element_key = other_element.getKey();
-
 
64687
          BrandInfo other_element_value = other_element.getValue();
-
 
64688
 
-
 
64689
          String __this__success_copy_key = other_element_key;
-
 
64690
 
-
 
64691
          BrandInfo __this__success_copy_value = new BrandInfo(other_element_value);
-
 
64692
 
-
 
64693
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
64694
        }
-
 
64695
        this.success = __this__success;
-
 
64696
      }
-
 
64697
    }
-
 
64698
 
-
 
64699
    public getBrandInfo_result deepCopy() {
-
 
64700
      return new getBrandInfo_result(this);
-
 
64701
    }
-
 
64702
 
-
 
64703
    @Override
-
 
64704
    public void clear() {
-
 
64705
      this.success = null;
-
 
64706
    }
-
 
64707
 
-
 
64708
    public int getSuccessSize() {
-
 
64709
      return (this.success == null) ? 0 : this.success.size();
-
 
64710
    }
-
 
64711
 
-
 
64712
    public void putToSuccess(String key, BrandInfo val) {
-
 
64713
      if (this.success == null) {
-
 
64714
        this.success = new HashMap<String,BrandInfo>();
-
 
64715
      }
-
 
64716
      this.success.put(key, val);
-
 
64717
    }
-
 
64718
 
-
 
64719
    public Map<String,BrandInfo> getSuccess() {
-
 
64720
      return this.success;
-
 
64721
    }
-
 
64722
 
-
 
64723
    public void setSuccess(Map<String,BrandInfo> success) {
-
 
64724
      this.success = success;
-
 
64725
    }
-
 
64726
 
-
 
64727
    public void unsetSuccess() {
-
 
64728
      this.success = null;
-
 
64729
    }
-
 
64730
 
-
 
64731
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
64732
    public boolean isSetSuccess() {
-
 
64733
      return this.success != null;
-
 
64734
    }
-
 
64735
 
-
 
64736
    public void setSuccessIsSet(boolean value) {
-
 
64737
      if (!value) {
-
 
64738
        this.success = null;
-
 
64739
      }
-
 
64740
    }
-
 
64741
 
-
 
64742
    public void setFieldValue(_Fields field, Object value) {
-
 
64743
      switch (field) {
-
 
64744
      case SUCCESS:
-
 
64745
        if (value == null) {
-
 
64746
          unsetSuccess();
-
 
64747
        } else {
-
 
64748
          setSuccess((Map<String,BrandInfo>)value);
-
 
64749
        }
-
 
64750
        break;
-
 
64751
 
-
 
64752
      }
-
 
64753
    }
-
 
64754
 
-
 
64755
    public Object getFieldValue(_Fields field) {
-
 
64756
      switch (field) {
-
 
64757
      case SUCCESS:
-
 
64758
        return getSuccess();
-
 
64759
 
-
 
64760
      }
-
 
64761
      throw new IllegalStateException();
-
 
64762
    }
-
 
64763
 
-
 
64764
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
64765
    public boolean isSet(_Fields field) {
-
 
64766
      if (field == null) {
-
 
64767
        throw new IllegalArgumentException();
-
 
64768
      }
-
 
64769
 
-
 
64770
      switch (field) {
-
 
64771
      case SUCCESS:
-
 
64772
        return isSetSuccess();
-
 
64773
      }
-
 
64774
      throw new IllegalStateException();
-
 
64775
    }
-
 
64776
 
-
 
64777
    @Override
-
 
64778
    public boolean equals(Object that) {
-
 
64779
      if (that == null)
-
 
64780
        return false;
-
 
64781
      if (that instanceof getBrandInfo_result)
-
 
64782
        return this.equals((getBrandInfo_result)that);
-
 
64783
      return false;
-
 
64784
    }
-
 
64785
 
-
 
64786
    public boolean equals(getBrandInfo_result that) {
-
 
64787
      if (that == null)
-
 
64788
        return false;
-
 
64789
 
-
 
64790
      boolean this_present_success = true && this.isSetSuccess();
-
 
64791
      boolean that_present_success = true && that.isSetSuccess();
-
 
64792
      if (this_present_success || that_present_success) {
-
 
64793
        if (!(this_present_success && that_present_success))
-
 
64794
          return false;
-
 
64795
        if (!this.success.equals(that.success))
-
 
64796
          return false;
-
 
64797
      }
-
 
64798
 
-
 
64799
      return true;
-
 
64800
    }
-
 
64801
 
-
 
64802
    @Override
-
 
64803
    public int hashCode() {
-
 
64804
      return 0;
-
 
64805
    }
-
 
64806
 
-
 
64807
    public int compareTo(getBrandInfo_result other) {
-
 
64808
      if (!getClass().equals(other.getClass())) {
-
 
64809
        return getClass().getName().compareTo(other.getClass().getName());
-
 
64810
      }
-
 
64811
 
-
 
64812
      int lastComparison = 0;
-
 
64813
      getBrandInfo_result typedOther = (getBrandInfo_result)other;
-
 
64814
 
-
 
64815
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
64816
      if (lastComparison != 0) {
-
 
64817
        return lastComparison;
-
 
64818
      }
-
 
64819
      if (isSetSuccess()) {
-
 
64820
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
64821
        if (lastComparison != 0) {
-
 
64822
          return lastComparison;
-
 
64823
        }
-
 
64824
      }
-
 
64825
      return 0;
-
 
64826
    }
-
 
64827
 
-
 
64828
    public _Fields fieldForId(int fieldId) {
-
 
64829
      return _Fields.findByThriftId(fieldId);
-
 
64830
    }
-
 
64831
 
-
 
64832
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
64833
      org.apache.thrift.protocol.TField field;
-
 
64834
      iprot.readStructBegin();
-
 
64835
      while (true)
-
 
64836
      {
-
 
64837
        field = iprot.readFieldBegin();
-
 
64838
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
64839
          break;
-
 
64840
        }
-
 
64841
        switch (field.id) {
-
 
64842
          case 0: // SUCCESS
-
 
64843
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
64844
              {
-
 
64845
                org.apache.thrift.protocol.TMap _map170 = iprot.readMapBegin();
-
 
64846
                this.success = new HashMap<String,BrandInfo>(2*_map170.size);
-
 
64847
                for (int _i171 = 0; _i171 < _map170.size; ++_i171)
-
 
64848
                {
-
 
64849
                  String _key172; // required
-
 
64850
                  BrandInfo _val173; // required
-
 
64851
                  _key172 = iprot.readString();
-
 
64852
                  _val173 = new BrandInfo();
-
 
64853
                  _val173.read(iprot);
-
 
64854
                  this.success.put(_key172, _val173);
-
 
64855
                }
-
 
64856
                iprot.readMapEnd();
-
 
64857
              }
-
 
64858
            } else { 
-
 
64859
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
64860
            }
-
 
64861
            break;
-
 
64862
          default:
-
 
64863
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
64864
        }
-
 
64865
        iprot.readFieldEnd();
-
 
64866
      }
-
 
64867
      iprot.readStructEnd();
-
 
64868
      validate();
-
 
64869
    }
-
 
64870
 
-
 
64871
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
64872
      oprot.writeStructBegin(STRUCT_DESC);
-
 
64873
 
-
 
64874
      if (this.isSetSuccess()) {
-
 
64875
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
64876
        {
-
 
64877
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
64878
          for (Map.Entry<String, BrandInfo> _iter174 : this.success.entrySet())
-
 
64879
          {
-
 
64880
            oprot.writeString(_iter174.getKey());
-
 
64881
            _iter174.getValue().write(oprot);
-
 
64882
          }
-
 
64883
          oprot.writeMapEnd();
-
 
64884
        }
-
 
64885
        oprot.writeFieldEnd();
-
 
64886
      }
-
 
64887
      oprot.writeFieldStop();
-
 
64888
      oprot.writeStructEnd();
-
 
64889
    }
-
 
64890
 
-
 
64891
    @Override
-
 
64892
    public String toString() {
-
 
64893
      StringBuilder sb = new StringBuilder("getBrandInfo_result(");
-
 
64894
      boolean first = true;
-
 
64895
 
-
 
64896
      sb.append("success:");
-
 
64897
      if (this.success == null) {
-
 
64898
        sb.append("null");
-
 
64899
      } else {
-
 
64900
        sb.append(this.success);
-
 
64901
      }
-
 
64902
      first = false;
-
 
64903
      sb.append(")");
-
 
64904
      return sb.toString();
-
 
64905
    }
-
 
64906
 
-
 
64907
    public void validate() throws org.apache.thrift.TException {
-
 
64908
      // check for required fields
-
 
64909
    }
-
 
64910
 
-
 
64911
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
64912
      try {
-
 
64913
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
64914
      } catch (org.apache.thrift.TException te) {
-
 
64915
        throw new java.io.IOException(te);
-
 
64916
      }
-
 
64917
    }
-
 
64918
 
-
 
64919
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
64920
      try {
-
 
64921
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
64922
      } catch (org.apache.thrift.TException te) {
-
 
64923
        throw new java.io.IOException(te);
-
 
64924
      }
-
 
64925
    }
-
 
64926
 
-
 
64927
  }
-
 
64928
 
63678
  public static class getStorePricing_args implements org.apache.thrift.TBase<getStorePricing_args, getStorePricing_args._Fields>, java.io.Serializable, Cloneable   {
64929
  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");
64930
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStorePricing_args");
63680
 
64931
 
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);
64932
    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
 
64933
 
Line 64240... Line 65491...
64240
      sb.append(")");
65491
      sb.append(")");
64241
      return sb.toString();
65492
      return sb.toString();
64242
    }
65493
    }
64243
 
65494
 
64244
    public void validate() throws org.apache.thrift.TException {
65495
    public void validate() throws org.apache.thrift.TException {
-
 
65496
      // check for required fields
-
 
65497
    }
-
 
65498
 
-
 
65499
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
65500
      try {
-
 
65501
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
65502
      } catch (org.apache.thrift.TException te) {
-
 
65503
        throw new java.io.IOException(te);
-
 
65504
      }
-
 
65505
    }
-
 
65506
 
-
 
65507
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
65508
      try {
-
 
65509
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
65510
      } catch (org.apache.thrift.TException te) {
-
 
65511
        throw new java.io.IOException(te);
-
 
65512
      }
-
 
65513
    }
-
 
65514
 
-
 
65515
  }
-
 
65516
 
-
 
65517
  public static class updateStorePricing_args implements org.apache.thrift.TBase<updateStorePricing_args, updateStorePricing_args._Fields>, java.io.Serializable, Cloneable   {
-
 
65518
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateStorePricing_args");
-
 
65519
 
-
 
65520
    private static final org.apache.thrift.protocol.TField SP_FIELD_DESC = new org.apache.thrift.protocol.TField("sp", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
65521
 
-
 
65522
    private StorePricing sp; // required
-
 
65523
 
-
 
65524
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
65525
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
65526
      SP((short)1, "sp");
-
 
65527
 
-
 
65528
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
65529
 
-
 
65530
      static {
-
 
65531
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
65532
          byName.put(field.getFieldName(), field);
-
 
65533
        }
-
 
65534
      }
-
 
65535
 
-
 
65536
      /**
-
 
65537
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
65538
       */
-
 
65539
      public static _Fields findByThriftId(int fieldId) {
-
 
65540
        switch(fieldId) {
-
 
65541
          case 1: // SP
-
 
65542
            return SP;
-
 
65543
          default:
-
 
65544
            return null;
-
 
65545
        }
-
 
65546
      }
-
 
65547
 
-
 
65548
      /**
-
 
65549
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
65550
       * if it is not found.
-
 
65551
       */
-
 
65552
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
65553
        _Fields fields = findByThriftId(fieldId);
-
 
65554
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
65555
        return fields;
-
 
65556
      }
-
 
65557
 
-
 
65558
      /**
-
 
65559
       * Find the _Fields constant that matches name, or null if its not found.
-
 
65560
       */
-
 
65561
      public static _Fields findByName(String name) {
-
 
65562
        return byName.get(name);
-
 
65563
      }
-
 
65564
 
-
 
65565
      private final short _thriftId;
-
 
65566
      private final String _fieldName;
-
 
65567
 
-
 
65568
      _Fields(short thriftId, String fieldName) {
-
 
65569
        _thriftId = thriftId;
-
 
65570
        _fieldName = fieldName;
-
 
65571
      }
-
 
65572
 
-
 
65573
      public short getThriftFieldId() {
-
 
65574
        return _thriftId;
-
 
65575
      }
-
 
65576
 
-
 
65577
      public String getFieldName() {
-
 
65578
        return _fieldName;
-
 
65579
      }
-
 
65580
    }
-
 
65581
 
-
 
65582
    // isset id assignments
-
 
65583
 
-
 
65584
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
65585
    static {
-
 
65586
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
65587
      tmpMap.put(_Fields.SP, new org.apache.thrift.meta_data.FieldMetaData("sp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
65588
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StorePricing.class)));
-
 
65589
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
65590
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateStorePricing_args.class, metaDataMap);
-
 
65591
    }
-
 
65592
 
-
 
65593
    public updateStorePricing_args() {
-
 
65594
    }
-
 
65595
 
-
 
65596
    public updateStorePricing_args(
-
 
65597
      StorePricing sp)
-
 
65598
    {
-
 
65599
      this();
-
 
65600
      this.sp = sp;
-
 
65601
    }
-
 
65602
 
-
 
65603
    /**
-
 
65604
     * Performs a deep copy on <i>other</i>.
-
 
65605
     */
-
 
65606
    public updateStorePricing_args(updateStorePricing_args other) {
-
 
65607
      if (other.isSetSp()) {
-
 
65608
        this.sp = new StorePricing(other.sp);
-
 
65609
      }
-
 
65610
    }
-
 
65611
 
-
 
65612
    public updateStorePricing_args deepCopy() {
-
 
65613
      return new updateStorePricing_args(this);
-
 
65614
    }
-
 
65615
 
-
 
65616
    @Override
-
 
65617
    public void clear() {
-
 
65618
      this.sp = null;
-
 
65619
    }
-
 
65620
 
-
 
65621
    public StorePricing getSp() {
-
 
65622
      return this.sp;
-
 
65623
    }
-
 
65624
 
-
 
65625
    public void setSp(StorePricing sp) {
-
 
65626
      this.sp = sp;
-
 
65627
    }
-
 
65628
 
-
 
65629
    public void unsetSp() {
-
 
65630
      this.sp = null;
-
 
65631
    }
-
 
65632
 
-
 
65633
    /** Returns true if field sp is set (has been assigned a value) and false otherwise */
-
 
65634
    public boolean isSetSp() {
-
 
65635
      return this.sp != null;
-
 
65636
    }
-
 
65637
 
-
 
65638
    public void setSpIsSet(boolean value) {
-
 
65639
      if (!value) {
-
 
65640
        this.sp = null;
-
 
65641
      }
-
 
65642
    }
-
 
65643
 
-
 
65644
    public void setFieldValue(_Fields field, Object value) {
-
 
65645
      switch (field) {
-
 
65646
      case SP:
-
 
65647
        if (value == null) {
-
 
65648
          unsetSp();
-
 
65649
        } else {
-
 
65650
          setSp((StorePricing)value);
-
 
65651
        }
-
 
65652
        break;
-
 
65653
 
-
 
65654
      }
-
 
65655
    }
-
 
65656
 
-
 
65657
    public Object getFieldValue(_Fields field) {
-
 
65658
      switch (field) {
-
 
65659
      case SP:
-
 
65660
        return getSp();
-
 
65661
 
-
 
65662
      }
-
 
65663
      throw new IllegalStateException();
-
 
65664
    }
-
 
65665
 
-
 
65666
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
65667
    public boolean isSet(_Fields field) {
-
 
65668
      if (field == null) {
-
 
65669
        throw new IllegalArgumentException();
-
 
65670
      }
-
 
65671
 
-
 
65672
      switch (field) {
-
 
65673
      case SP:
-
 
65674
        return isSetSp();
-
 
65675
      }
-
 
65676
      throw new IllegalStateException();
-
 
65677
    }
-
 
65678
 
-
 
65679
    @Override
-
 
65680
    public boolean equals(Object that) {
-
 
65681
      if (that == null)
-
 
65682
        return false;
-
 
65683
      if (that instanceof updateStorePricing_args)
-
 
65684
        return this.equals((updateStorePricing_args)that);
-
 
65685
      return false;
-
 
65686
    }
-
 
65687
 
-
 
65688
    public boolean equals(updateStorePricing_args that) {
-
 
65689
      if (that == null)
-
 
65690
        return false;
-
 
65691
 
-
 
65692
      boolean this_present_sp = true && this.isSetSp();
-
 
65693
      boolean that_present_sp = true && that.isSetSp();
-
 
65694
      if (this_present_sp || that_present_sp) {
-
 
65695
        if (!(this_present_sp && that_present_sp))
-
 
65696
          return false;
-
 
65697
        if (!this.sp.equals(that.sp))
-
 
65698
          return false;
-
 
65699
      }
-
 
65700
 
-
 
65701
      return true;
-
 
65702
    }
-
 
65703
 
-
 
65704
    @Override
-
 
65705
    public int hashCode() {
-
 
65706
      return 0;
-
 
65707
    }
-
 
65708
 
-
 
65709
    public int compareTo(updateStorePricing_args other) {
-
 
65710
      if (!getClass().equals(other.getClass())) {
-
 
65711
        return getClass().getName().compareTo(other.getClass().getName());
-
 
65712
      }
-
 
65713
 
-
 
65714
      int lastComparison = 0;
-
 
65715
      updateStorePricing_args typedOther = (updateStorePricing_args)other;
-
 
65716
 
-
 
65717
      lastComparison = Boolean.valueOf(isSetSp()).compareTo(typedOther.isSetSp());
-
 
65718
      if (lastComparison != 0) {
-
 
65719
        return lastComparison;
-
 
65720
      }
-
 
65721
      if (isSetSp()) {
-
 
65722
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sp, typedOther.sp);
-
 
65723
        if (lastComparison != 0) {
-
 
65724
          return lastComparison;
-
 
65725
        }
-
 
65726
      }
-
 
65727
      return 0;
-
 
65728
    }
-
 
65729
 
-
 
65730
    public _Fields fieldForId(int fieldId) {
-
 
65731
      return _Fields.findByThriftId(fieldId);
-
 
65732
    }
-
 
65733
 
-
 
65734
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
65735
      org.apache.thrift.protocol.TField field;
-
 
65736
      iprot.readStructBegin();
-
 
65737
      while (true)
-
 
65738
      {
-
 
65739
        field = iprot.readFieldBegin();
-
 
65740
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
65741
          break;
-
 
65742
        }
-
 
65743
        switch (field.id) {
-
 
65744
          case 1: // SP
-
 
65745
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
65746
              this.sp = new StorePricing();
-
 
65747
              this.sp.read(iprot);
-
 
65748
            } else { 
-
 
65749
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
65750
            }
-
 
65751
            break;
-
 
65752
          default:
-
 
65753
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
65754
        }
-
 
65755
        iprot.readFieldEnd();
-
 
65756
      }
-
 
65757
      iprot.readStructEnd();
-
 
65758
      validate();
-
 
65759
    }
-
 
65760
 
-
 
65761
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
65762
      validate();
-
 
65763
 
-
 
65764
      oprot.writeStructBegin(STRUCT_DESC);
-
 
65765
      if (this.sp != null) {
-
 
65766
        oprot.writeFieldBegin(SP_FIELD_DESC);
-
 
65767
        this.sp.write(oprot);
-
 
65768
        oprot.writeFieldEnd();
-
 
65769
      }
-
 
65770
      oprot.writeFieldStop();
-
 
65771
      oprot.writeStructEnd();
-
 
65772
    }
-
 
65773
 
-
 
65774
    @Override
-
 
65775
    public String toString() {
-
 
65776
      StringBuilder sb = new StringBuilder("updateStorePricing_args(");
-
 
65777
      boolean first = true;
-
 
65778
 
-
 
65779
      sb.append("sp:");
-
 
65780
      if (this.sp == null) {
-
 
65781
        sb.append("null");
-
 
65782
      } else {
-
 
65783
        sb.append(this.sp);
-
 
65784
      }
-
 
65785
      first = false;
-
 
65786
      sb.append(")");
-
 
65787
      return sb.toString();
-
 
65788
    }
-
 
65789
 
-
 
65790
    public void validate() throws org.apache.thrift.TException {
-
 
65791
      // check for required fields
-
 
65792
    }
-
 
65793
 
-
 
65794
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
65795
      try {
-
 
65796
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
65797
      } catch (org.apache.thrift.TException te) {
-
 
65798
        throw new java.io.IOException(te);
-
 
65799
      }
-
 
65800
    }
-
 
65801
 
-
 
65802
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
65803
      try {
-
 
65804
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
65805
      } catch (org.apache.thrift.TException te) {
-
 
65806
        throw new java.io.IOException(te);
-
 
65807
      }
-
 
65808
    }
-
 
65809
 
-
 
65810
  }
-
 
65811
 
-
 
65812
  public static class updateStorePricing_result implements org.apache.thrift.TBase<updateStorePricing_result, updateStorePricing_result._Fields>, java.io.Serializable, Cloneable   {
-
 
65813
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateStorePricing_result");
-
 
65814
 
-
 
65815
 
-
 
65816
 
-
 
65817
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
65818
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
65819
;
-
 
65820
 
-
 
65821
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
65822
 
-
 
65823
      static {
-
 
65824
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
65825
          byName.put(field.getFieldName(), field);
-
 
65826
        }
-
 
65827
      }
-
 
65828
 
-
 
65829
      /**
-
 
65830
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
65831
       */
-
 
65832
      public static _Fields findByThriftId(int fieldId) {
-
 
65833
        switch(fieldId) {
-
 
65834
          default:
-
 
65835
            return null;
-
 
65836
        }
-
 
65837
      }
-
 
65838
 
-
 
65839
      /**
-
 
65840
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
65841
       * if it is not found.
-
 
65842
       */
-
 
65843
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
65844
        _Fields fields = findByThriftId(fieldId);
-
 
65845
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
65846
        return fields;
-
 
65847
      }
-
 
65848
 
-
 
65849
      /**
-
 
65850
       * Find the _Fields constant that matches name, or null if its not found.
-
 
65851
       */
-
 
65852
      public static _Fields findByName(String name) {
-
 
65853
        return byName.get(name);
-
 
65854
      }
-
 
65855
 
-
 
65856
      private final short _thriftId;
-
 
65857
      private final String _fieldName;
-
 
65858
 
-
 
65859
      _Fields(short thriftId, String fieldName) {
-
 
65860
        _thriftId = thriftId;
-
 
65861
        _fieldName = fieldName;
-
 
65862
      }
-
 
65863
 
-
 
65864
      public short getThriftFieldId() {
-
 
65865
        return _thriftId;
-
 
65866
      }
-
 
65867
 
-
 
65868
      public String getFieldName() {
-
 
65869
        return _fieldName;
-
 
65870
      }
-
 
65871
    }
-
 
65872
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
65873
    static {
-
 
65874
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
65875
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
65876
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateStorePricing_result.class, metaDataMap);
-
 
65877
    }
-
 
65878
 
-
 
65879
    public updateStorePricing_result() {
-
 
65880
    }
-
 
65881
 
-
 
65882
    /**
-
 
65883
     * Performs a deep copy on <i>other</i>.
-
 
65884
     */
-
 
65885
    public updateStorePricing_result(updateStorePricing_result other) {
-
 
65886
    }
-
 
65887
 
-
 
65888
    public updateStorePricing_result deepCopy() {
-
 
65889
      return new updateStorePricing_result(this);
-
 
65890
    }
-
 
65891
 
-
 
65892
    @Override
-
 
65893
    public void clear() {
-
 
65894
    }
-
 
65895
 
-
 
65896
    public void setFieldValue(_Fields field, Object value) {
-
 
65897
      switch (field) {
-
 
65898
      }
-
 
65899
    }
-
 
65900
 
-
 
65901
    public Object getFieldValue(_Fields field) {
-
 
65902
      switch (field) {
-
 
65903
      }
-
 
65904
      throw new IllegalStateException();
-
 
65905
    }
-
 
65906
 
-
 
65907
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
65908
    public boolean isSet(_Fields field) {
-
 
65909
      if (field == null) {
-
 
65910
        throw new IllegalArgumentException();
-
 
65911
      }
-
 
65912
 
-
 
65913
      switch (field) {
-
 
65914
      }
-
 
65915
      throw new IllegalStateException();
-
 
65916
    }
-
 
65917
 
-
 
65918
    @Override
-
 
65919
    public boolean equals(Object that) {
-
 
65920
      if (that == null)
-
 
65921
        return false;
-
 
65922
      if (that instanceof updateStorePricing_result)
-
 
65923
        return this.equals((updateStorePricing_result)that);
-
 
65924
      return false;
-
 
65925
    }
-
 
65926
 
-
 
65927
    public boolean equals(updateStorePricing_result that) {
-
 
65928
      if (that == null)
-
 
65929
        return false;
-
 
65930
 
-
 
65931
      return true;
-
 
65932
    }
-
 
65933
 
-
 
65934
    @Override
-
 
65935
    public int hashCode() {
-
 
65936
      return 0;
-
 
65937
    }
-
 
65938
 
-
 
65939
    public int compareTo(updateStorePricing_result other) {
-
 
65940
      if (!getClass().equals(other.getClass())) {
-
 
65941
        return getClass().getName().compareTo(other.getClass().getName());
-
 
65942
      }
-
 
65943
 
-
 
65944
      int lastComparison = 0;
-
 
65945
      updateStorePricing_result typedOther = (updateStorePricing_result)other;
-
 
65946
 
-
 
65947
      return 0;
-
 
65948
    }
-
 
65949
 
-
 
65950
    public _Fields fieldForId(int fieldId) {
-
 
65951
      return _Fields.findByThriftId(fieldId);
-
 
65952
    }
-
 
65953
 
-
 
65954
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
65955
      org.apache.thrift.protocol.TField field;
-
 
65956
      iprot.readStructBegin();
-
 
65957
      while (true)
-
 
65958
      {
-
 
65959
        field = iprot.readFieldBegin();
-
 
65960
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
65961
          break;
-
 
65962
        }
-
 
65963
        switch (field.id) {
-
 
65964
          default:
-
 
65965
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
65966
        }
-
 
65967
        iprot.readFieldEnd();
-
 
65968
      }
-
 
65969
      iprot.readStructEnd();
-
 
65970
      validate();
-
 
65971
    }
-
 
65972
 
-
 
65973
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
65974
      oprot.writeStructBegin(STRUCT_DESC);
-
 
65975
 
-
 
65976
      oprot.writeFieldStop();
-
 
65977
      oprot.writeStructEnd();
-
 
65978
    }
-
 
65979
 
-
 
65980
    @Override
-
 
65981
    public String toString() {
-
 
65982
      StringBuilder sb = new StringBuilder("updateStorePricing_result(");
-
 
65983
      boolean first = true;
-
 
65984
 
-
 
65985
      sb.append(")");
-
 
65986
      return sb.toString();
-
 
65987
    }
-
 
65988
 
-
 
65989
    public void validate() throws org.apache.thrift.TException {
64245
      // check for required fields
65990
      // check for required fields
64246
    }
65991
    }
64247
 
65992
 
64248
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
65993
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
64249
      try {
65994
      try {