Subversion Repositories SmartDukaan

Rev

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

Rev 11015 Rev 11531
Line 538... Line 538...
538
 
538
 
539
    public long getCountForMarketplaceHistory(long source, long itemId) throws org.apache.thrift.TException;
539
    public long getCountForMarketplaceHistory(long source, long itemId) throws org.apache.thrift.TException;
540
 
540
 
541
    public List<MarketplaceHistory> getMarketplaceHistoryByDate(long source, long startDate, long endDate, long offset, long limit, long itemId) throws org.apache.thrift.TException;
541
    public List<MarketplaceHistory> getMarketplaceHistoryByDate(long source, long startDate, long endDate, long offset, long limit, long itemId) throws org.apache.thrift.TException;
542
 
542
 
-
 
543
    public PrivateDeal getPrivateDealDetails(long item_id) throws org.apache.thrift.TException;
-
 
544
 
-
 
545
    public List<Item> getPrivateDealItems(long offset, long limit) throws org.apache.thrift.TException;
-
 
546
 
-
 
547
    public boolean addOrUpdatePrivateDeal(PrivateDeal privateDeal) throws org.apache.thrift.TException;
-
 
548
 
543
  }
549
  }
544
 
550
 
545
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
551
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
546
 
552
 
547
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
553
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 860... Line 866...
860
 
866
 
861
    public void getCountForMarketplaceHistory(long source, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCountForMarketplaceHistory_call> resultHandler) throws org.apache.thrift.TException;
867
    public void getCountForMarketplaceHistory(long source, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCountForMarketplaceHistory_call> resultHandler) throws org.apache.thrift.TException;
862
 
868
 
863
    public void getMarketplaceHistoryByDate(long source, long startDate, long endDate, long offset, long limit, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMarketplaceHistoryByDate_call> resultHandler) throws org.apache.thrift.TException;
869
    public void getMarketplaceHistoryByDate(long source, long startDate, long endDate, long offset, long limit, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMarketplaceHistoryByDate_call> resultHandler) throws org.apache.thrift.TException;
864
 
870
 
-
 
871
    public void getPrivateDealDetails(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealDetails_call> resultHandler) throws org.apache.thrift.TException;
-
 
872
 
-
 
873
    public void getPrivateDealItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
874
 
-
 
875
    public void addOrUpdatePrivateDeal(PrivateDeal privateDeal, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdatePrivateDeal_call> resultHandler) throws org.apache.thrift.TException;
-
 
876
 
865
  }
877
  }
866
 
878
 
867
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
879
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
868
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
880
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
869
      public Factory() {}
881
      public Factory() {}
Line 4649... Line 4661...
4649
        return result.success;
4661
        return result.success;
4650
      }
4662
      }
4651
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMarketplaceHistoryByDate failed: unknown result");
4663
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMarketplaceHistoryByDate failed: unknown result");
4652
    }
4664
    }
4653
 
4665
 
-
 
4666
    public PrivateDeal getPrivateDealDetails(long item_id) throws org.apache.thrift.TException
-
 
4667
    {
-
 
4668
      send_getPrivateDealDetails(item_id);
-
 
4669
      return recv_getPrivateDealDetails();
-
 
4670
    }
-
 
4671
 
-
 
4672
    public void send_getPrivateDealDetails(long item_id) throws org.apache.thrift.TException
-
 
4673
    {
-
 
4674
      getPrivateDealDetails_args args = new getPrivateDealDetails_args();
-
 
4675
      args.setItem_id(item_id);
-
 
4676
      sendBase("getPrivateDealDetails", args);
-
 
4677
    }
-
 
4678
 
-
 
4679
    public PrivateDeal recv_getPrivateDealDetails() throws org.apache.thrift.TException
-
 
4680
    {
-
 
4681
      getPrivateDealDetails_result result = new getPrivateDealDetails_result();
-
 
4682
      receiveBase(result, "getPrivateDealDetails");
-
 
4683
      if (result.isSetSuccess()) {
-
 
4684
        return result.success;
-
 
4685
      }
-
 
4686
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrivateDealDetails failed: unknown result");
-
 
4687
    }
-
 
4688
 
-
 
4689
    public List<Item> getPrivateDealItems(long offset, long limit) throws org.apache.thrift.TException
-
 
4690
    {
-
 
4691
      send_getPrivateDealItems(offset, limit);
-
 
4692
      return recv_getPrivateDealItems();
-
 
4693
    }
-
 
4694
 
-
 
4695
    public void send_getPrivateDealItems(long offset, long limit) throws org.apache.thrift.TException
-
 
4696
    {
-
 
4697
      getPrivateDealItems_args args = new getPrivateDealItems_args();
-
 
4698
      args.setOffset(offset);
-
 
4699
      args.setLimit(limit);
-
 
4700
      sendBase("getPrivateDealItems", args);
-
 
4701
    }
-
 
4702
 
-
 
4703
    public List<Item> recv_getPrivateDealItems() throws org.apache.thrift.TException
-
 
4704
    {
-
 
4705
      getPrivateDealItems_result result = new getPrivateDealItems_result();
-
 
4706
      receiveBase(result, "getPrivateDealItems");
-
 
4707
      if (result.isSetSuccess()) {
-
 
4708
        return result.success;
-
 
4709
      }
-
 
4710
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrivateDealItems failed: unknown result");
-
 
4711
    }
-
 
4712
 
-
 
4713
    public boolean addOrUpdatePrivateDeal(PrivateDeal privateDeal) throws org.apache.thrift.TException
-
 
4714
    {
-
 
4715
      send_addOrUpdatePrivateDeal(privateDeal);
-
 
4716
      return recv_addOrUpdatePrivateDeal();
-
 
4717
    }
-
 
4718
 
-
 
4719
    public void send_addOrUpdatePrivateDeal(PrivateDeal privateDeal) throws org.apache.thrift.TException
-
 
4720
    {
-
 
4721
      addOrUpdatePrivateDeal_args args = new addOrUpdatePrivateDeal_args();
-
 
4722
      args.setPrivateDeal(privateDeal);
-
 
4723
      sendBase("addOrUpdatePrivateDeal", args);
-
 
4724
    }
-
 
4725
 
-
 
4726
    public boolean recv_addOrUpdatePrivateDeal() throws org.apache.thrift.TException
-
 
4727
    {
-
 
4728
      addOrUpdatePrivateDeal_result result = new addOrUpdatePrivateDeal_result();
-
 
4729
      receiveBase(result, "addOrUpdatePrivateDeal");
-
 
4730
      if (result.isSetSuccess()) {
-
 
4731
        return result.success;
-
 
4732
      }
-
 
4733
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addOrUpdatePrivateDeal failed: unknown result");
-
 
4734
    }
-
 
4735
 
4654
  }
4736
  }
4655
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4737
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4656
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4738
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4657
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4739
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4658
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4740
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 9905... Line 9987...
9905
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9987
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
9906
        return (new Client(prot)).recv_getMarketplaceHistoryByDate();
9988
        return (new Client(prot)).recv_getMarketplaceHistoryByDate();
9907
      }
9989
      }
9908
    }
9990
    }
9909
 
9991
 
-
 
9992
    public void getPrivateDealDetails(long item_id, org.apache.thrift.async.AsyncMethodCallback<getPrivateDealDetails_call> resultHandler) throws org.apache.thrift.TException {
-
 
9993
      checkReady();
-
 
9994
      getPrivateDealDetails_call method_call = new getPrivateDealDetails_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
9995
      this.___currentMethod = method_call;
-
 
9996
      ___manager.call(method_call);
-
 
9997
    }
-
 
9998
 
-
 
9999
    public static class getPrivateDealDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10000
      private long item_id;
-
 
10001
      public getPrivateDealDetails_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<getPrivateDealDetails_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 {
-
 
10002
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10003
        this.item_id = item_id;
-
 
10004
      }
-
 
10005
 
-
 
10006
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10007
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPrivateDealDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10008
        getPrivateDealDetails_args args = new getPrivateDealDetails_args();
-
 
10009
        args.setItem_id(item_id);
-
 
10010
        args.write(prot);
-
 
10011
        prot.writeMessageEnd();
-
 
10012
      }
-
 
10013
 
-
 
10014
      public PrivateDeal getResult() throws org.apache.thrift.TException {
-
 
10015
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10016
          throw new IllegalStateException("Method call not finished!");
-
 
10017
        }
-
 
10018
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10019
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10020
        return (new Client(prot)).recv_getPrivateDealDetails();
-
 
10021
      }
-
 
10022
    }
-
 
10023
 
-
 
10024
    public void getPrivateDealItems(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getPrivateDealItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
10025
      checkReady();
-
 
10026
      getPrivateDealItems_call method_call = new getPrivateDealItems_call(offset, limit, resultHandler, this, ___protocolFactory, ___transport);
-
 
10027
      this.___currentMethod = method_call;
-
 
10028
      ___manager.call(method_call);
-
 
10029
    }
-
 
10030
 
-
 
10031
    public static class getPrivateDealItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10032
      private long offset;
-
 
10033
      private long limit;
-
 
10034
      public getPrivateDealItems_call(long offset, long limit, org.apache.thrift.async.AsyncMethodCallback<getPrivateDealItems_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 {
-
 
10035
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10036
        this.offset = offset;
-
 
10037
        this.limit = limit;
-
 
10038
      }
-
 
10039
 
-
 
10040
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10041
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPrivateDealItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10042
        getPrivateDealItems_args args = new getPrivateDealItems_args();
-
 
10043
        args.setOffset(offset);
-
 
10044
        args.setLimit(limit);
-
 
10045
        args.write(prot);
-
 
10046
        prot.writeMessageEnd();
-
 
10047
      }
-
 
10048
 
-
 
10049
      public List<Item> getResult() throws org.apache.thrift.TException {
-
 
10050
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10051
          throw new IllegalStateException("Method call not finished!");
-
 
10052
        }
-
 
10053
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10054
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10055
        return (new Client(prot)).recv_getPrivateDealItems();
-
 
10056
      }
-
 
10057
    }
-
 
10058
 
-
 
10059
    public void addOrUpdatePrivateDeal(PrivateDeal privateDeal, org.apache.thrift.async.AsyncMethodCallback<addOrUpdatePrivateDeal_call> resultHandler) throws org.apache.thrift.TException {
-
 
10060
      checkReady();
-
 
10061
      addOrUpdatePrivateDeal_call method_call = new addOrUpdatePrivateDeal_call(privateDeal, resultHandler, this, ___protocolFactory, ___transport);
-
 
10062
      this.___currentMethod = method_call;
-
 
10063
      ___manager.call(method_call);
-
 
10064
    }
-
 
10065
 
-
 
10066
    public static class addOrUpdatePrivateDeal_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10067
      private PrivateDeal privateDeal;
-
 
10068
      public addOrUpdatePrivateDeal_call(PrivateDeal privateDeal, org.apache.thrift.async.AsyncMethodCallback<addOrUpdatePrivateDeal_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 {
-
 
10069
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10070
        this.privateDeal = privateDeal;
-
 
10071
      }
-
 
10072
 
-
 
10073
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10074
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdatePrivateDeal", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10075
        addOrUpdatePrivateDeal_args args = new addOrUpdatePrivateDeal_args();
-
 
10076
        args.setPrivateDeal(privateDeal);
-
 
10077
        args.write(prot);
-
 
10078
        prot.writeMessageEnd();
-
 
10079
      }
-
 
10080
 
-
 
10081
      public boolean getResult() throws org.apache.thrift.TException {
-
 
10082
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10083
          throw new IllegalStateException("Method call not finished!");
-
 
10084
        }
-
 
10085
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10086
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10087
        return (new Client(prot)).recv_addOrUpdatePrivateDeal();
-
 
10088
      }
-
 
10089
    }
-
 
10090
 
9910
  }
10091
  }
9911
 
10092
 
9912
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10093
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
9913
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10094
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
9914
    public Processor(I iface) {
10095
    public Processor(I iface) {
Line 10077... Line 10258...
10077
      processMap.put("getMarketplaceHistory", new getMarketplaceHistory());
10258
      processMap.put("getMarketplaceHistory", new getMarketplaceHistory());
10078
      processMap.put("getAllFbbListedItems", new getAllFbbListedItems());
10259
      processMap.put("getAllFbbListedItems", new getAllFbbListedItems());
10079
      processMap.put("getAllFbbPricingItems", new getAllFbbPricingItems());
10260
      processMap.put("getAllFbbPricingItems", new getAllFbbPricingItems());
10080
      processMap.put("getCountForMarketplaceHistory", new getCountForMarketplaceHistory());
10261
      processMap.put("getCountForMarketplaceHistory", new getCountForMarketplaceHistory());
10081
      processMap.put("getMarketplaceHistoryByDate", new getMarketplaceHistoryByDate());
10262
      processMap.put("getMarketplaceHistoryByDate", new getMarketplaceHistoryByDate());
-
 
10263
      processMap.put("getPrivateDealDetails", new getPrivateDealDetails());
-
 
10264
      processMap.put("getPrivateDealItems", new getPrivateDealItems());
-
 
10265
      processMap.put("addOrUpdatePrivateDeal", new addOrUpdatePrivateDeal());
10082
      return processMap;
10266
      return processMap;
10083
    }
10267
    }
10084
 
10268
 
10085
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
10269
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
10086
      public addItem() {
10270
      public addItem() {
Line 12846... Line 13030...
12846
        result.success = iface.getMarketplaceHistoryByDate(args.source, args.startDate, args.endDate, args.offset, args.limit, args.itemId);
13030
        result.success = iface.getMarketplaceHistoryByDate(args.source, args.startDate, args.endDate, args.offset, args.limit, args.itemId);
12847
        return result;
13031
        return result;
12848
      }
13032
      }
12849
    }
13033
    }
12850
 
13034
 
-
 
13035
    private static class getPrivateDealDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPrivateDealDetails_args> {
-
 
13036
      public getPrivateDealDetails() {
-
 
13037
        super("getPrivateDealDetails");
-
 
13038
      }
-
 
13039
 
-
 
13040
      protected getPrivateDealDetails_args getEmptyArgsInstance() {
-
 
13041
        return new getPrivateDealDetails_args();
-
 
13042
      }
-
 
13043
 
-
 
13044
      protected getPrivateDealDetails_result getResult(I iface, getPrivateDealDetails_args args) throws org.apache.thrift.TException {
-
 
13045
        getPrivateDealDetails_result result = new getPrivateDealDetails_result();
-
 
13046
        result.success = iface.getPrivateDealDetails(args.item_id);
-
 
13047
        return result;
-
 
13048
      }
-
 
13049
    }
-
 
13050
 
-
 
13051
    private static class getPrivateDealItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPrivateDealItems_args> {
-
 
13052
      public getPrivateDealItems() {
-
 
13053
        super("getPrivateDealItems");
-
 
13054
      }
-
 
13055
 
-
 
13056
      protected getPrivateDealItems_args getEmptyArgsInstance() {
-
 
13057
        return new getPrivateDealItems_args();
-
 
13058
      }
-
 
13059
 
-
 
13060
      protected getPrivateDealItems_result getResult(I iface, getPrivateDealItems_args args) throws org.apache.thrift.TException {
-
 
13061
        getPrivateDealItems_result result = new getPrivateDealItems_result();
-
 
13062
        result.success = iface.getPrivateDealItems(args.offset, args.limit);
-
 
13063
        return result;
-
 
13064
      }
-
 
13065
    }
-
 
13066
 
-
 
13067
    private static class addOrUpdatePrivateDeal<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdatePrivateDeal_args> {
-
 
13068
      public addOrUpdatePrivateDeal() {
-
 
13069
        super("addOrUpdatePrivateDeal");
-
 
13070
      }
-
 
13071
 
-
 
13072
      protected addOrUpdatePrivateDeal_args getEmptyArgsInstance() {
-
 
13073
        return new addOrUpdatePrivateDeal_args();
-
 
13074
      }
-
 
13075
 
-
 
13076
      protected addOrUpdatePrivateDeal_result getResult(I iface, addOrUpdatePrivateDeal_args args) throws org.apache.thrift.TException {
-
 
13077
        addOrUpdatePrivateDeal_result result = new addOrUpdatePrivateDeal_result();
-
 
13078
        result.success = iface.addOrUpdatePrivateDeal(args.privateDeal);
-
 
13079
        result.setSuccessIsSet(true);
-
 
13080
        return result;
-
 
13081
      }
-
 
13082
    }
-
 
13083
 
12851
  }
13084
  }
12852
 
13085
 
12853
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
13086
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
12854
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
13087
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
12855
 
13088
 
Line 110948... Line 111181...
110948
  }
111181
  }
110949
 
111182
 
110950
  public static class getFlipkartItemBySkyAtFlipkart_args implements org.apache.thrift.TBase<getFlipkartItemBySkyAtFlipkart_args, getFlipkartItemBySkyAtFlipkart_args._Fields>, java.io.Serializable, Cloneable   {
111183
  public static class getFlipkartItemBySkyAtFlipkart_args implements org.apache.thrift.TBase<getFlipkartItemBySkyAtFlipkart_args, getFlipkartItemBySkyAtFlipkart_args._Fields>, java.io.Serializable, Cloneable   {
110951
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItemBySkyAtFlipkart_args");
111184
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartItemBySkyAtFlipkart_args");
110952
 
111185
 
110953
    private static final org.apache.thrift.protocol.TField SKU_FIELD_DESC = new org.apache.thrift.protocol.TField("sku", org.apache.thrift.protocol.TType.STRING, (short)1);
111186
    private static final org.apache.thrift.protocol.TField SKU_FIELD_DESC = new org.apache.thrift.protocol.TField("sku", org.apache.thrift.protocol.TType.STRING, (short)-1);
110954
 
111187
 
110955
    private String sku; // required
111188
    private String sku; // required
110956
 
111189
 
110957
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
111190
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
110958
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
111191
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
110959
      SKU((short)1, "sku");
111192
      SKU((short)-1, "sku");
110960
 
111193
 
110961
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
111194
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
110962
 
111195
 
110963
      static {
111196
      static {
110964
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
111197
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 110969... Line 111202...
110969
      /**
111202
      /**
110970
       * Find the _Fields constant that matches fieldId, or null if its not found.
111203
       * Find the _Fields constant that matches fieldId, or null if its not found.
110971
       */
111204
       */
110972
      public static _Fields findByThriftId(int fieldId) {
111205
      public static _Fields findByThriftId(int fieldId) {
110973
        switch(fieldId) {
111206
        switch(fieldId) {
110974
          case 1: // SKU
111207
          case -1: // SKU
110975
            return SKU;
111208
            return SKU;
110976
          default:
111209
          default:
110977
            return null;
111210
            return null;
110978
        }
111211
        }
110979
      }
111212
      }
Line 111172... Line 111405...
111172
        field = iprot.readFieldBegin();
111405
        field = iprot.readFieldBegin();
111173
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
111406
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
111174
          break;
111407
          break;
111175
        }
111408
        }
111176
        switch (field.id) {
111409
        switch (field.id) {
111177
          case 1: // SKU
111410
          case -1: // SKU
111178
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
111411
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
111179
              this.sku = iprot.readString();
111412
              this.sku = iprot.readString();
111180
            } else { 
111413
            } else { 
111181
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
111414
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
111182
            }
111415
            }
Line 115074... Line 115307...
115074
      first = false;
115307
      first = false;
115075
      sb.append(")");
115308
      sb.append(")");
115076
      return sb.toString();
115309
      return sb.toString();
115077
    }
115310
    }
115078
 
115311
 
-
 
115312
    public void validate() throws org.apache.thrift.TException {
-
 
115313
      // check for required fields
-
 
115314
    }
-
 
115315
 
-
 
115316
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
115317
      try {
-
 
115318
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
115319
      } catch (org.apache.thrift.TException te) {
-
 
115320
        throw new java.io.IOException(te);
-
 
115321
      }
-
 
115322
    }
-
 
115323
 
-
 
115324
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
115325
      try {
-
 
115326
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
115327
      } catch (org.apache.thrift.TException te) {
-
 
115328
        throw new java.io.IOException(te);
-
 
115329
      }
-
 
115330
    }
-
 
115331
 
-
 
115332
  }
-
 
115333
 
-
 
115334
  public static class getPrivateDealDetails_args implements org.apache.thrift.TBase<getPrivateDealDetails_args, getPrivateDealDetails_args._Fields>, java.io.Serializable, Cloneable   {
-
 
115335
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrivateDealDetails_args");
-
 
115336
 
-
 
115337
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
115338
 
-
 
115339
    private long item_id; // required
-
 
115340
 
-
 
115341
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
115342
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
115343
      ITEM_ID((short)1, "item_id");
-
 
115344
 
-
 
115345
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
115346
 
-
 
115347
      static {
-
 
115348
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
115349
          byName.put(field.getFieldName(), field);
-
 
115350
        }
-
 
115351
      }
-
 
115352
 
-
 
115353
      /**
-
 
115354
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
115355
       */
-
 
115356
      public static _Fields findByThriftId(int fieldId) {
-
 
115357
        switch(fieldId) {
-
 
115358
          case 1: // ITEM_ID
-
 
115359
            return ITEM_ID;
-
 
115360
          default:
-
 
115361
            return null;
-
 
115362
        }
-
 
115363
      }
-
 
115364
 
-
 
115365
      /**
-
 
115366
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
115367
       * if it is not found.
-
 
115368
       */
-
 
115369
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
115370
        _Fields fields = findByThriftId(fieldId);
-
 
115371
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
115372
        return fields;
-
 
115373
      }
-
 
115374
 
-
 
115375
      /**
-
 
115376
       * Find the _Fields constant that matches name, or null if its not found.
-
 
115377
       */
-
 
115378
      public static _Fields findByName(String name) {
-
 
115379
        return byName.get(name);
-
 
115380
      }
-
 
115381
 
-
 
115382
      private final short _thriftId;
-
 
115383
      private final String _fieldName;
-
 
115384
 
-
 
115385
      _Fields(short thriftId, String fieldName) {
-
 
115386
        _thriftId = thriftId;
-
 
115387
        _fieldName = fieldName;
-
 
115388
      }
-
 
115389
 
-
 
115390
      public short getThriftFieldId() {
-
 
115391
        return _thriftId;
-
 
115392
      }
-
 
115393
 
-
 
115394
      public String getFieldName() {
-
 
115395
        return _fieldName;
-
 
115396
      }
-
 
115397
    }
-
 
115398
 
-
 
115399
    // isset id assignments
-
 
115400
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
115401
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
115402
 
-
 
115403
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
115404
    static {
-
 
115405
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
115406
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
115407
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
115408
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
115409
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrivateDealDetails_args.class, metaDataMap);
-
 
115410
    }
-
 
115411
 
-
 
115412
    public getPrivateDealDetails_args() {
-
 
115413
    }
-
 
115414
 
-
 
115415
    public getPrivateDealDetails_args(
-
 
115416
      long item_id)
-
 
115417
    {
-
 
115418
      this();
-
 
115419
      this.item_id = item_id;
-
 
115420
      setItem_idIsSet(true);
-
 
115421
    }
-
 
115422
 
-
 
115423
    /**
-
 
115424
     * Performs a deep copy on <i>other</i>.
-
 
115425
     */
-
 
115426
    public getPrivateDealDetails_args(getPrivateDealDetails_args other) {
-
 
115427
      __isset_bit_vector.clear();
-
 
115428
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
115429
      this.item_id = other.item_id;
-
 
115430
    }
-
 
115431
 
-
 
115432
    public getPrivateDealDetails_args deepCopy() {
-
 
115433
      return new getPrivateDealDetails_args(this);
-
 
115434
    }
-
 
115435
 
-
 
115436
    @Override
-
 
115437
    public void clear() {
-
 
115438
      setItem_idIsSet(false);
-
 
115439
      this.item_id = 0;
-
 
115440
    }
-
 
115441
 
-
 
115442
    public long getItem_id() {
-
 
115443
      return this.item_id;
-
 
115444
    }
-
 
115445
 
-
 
115446
    public void setItem_id(long item_id) {
-
 
115447
      this.item_id = item_id;
-
 
115448
      setItem_idIsSet(true);
-
 
115449
    }
-
 
115450
 
-
 
115451
    public void unsetItem_id() {
-
 
115452
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
115453
    }
-
 
115454
 
-
 
115455
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
115456
    public boolean isSetItem_id() {
-
 
115457
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
115458
    }
-
 
115459
 
-
 
115460
    public void setItem_idIsSet(boolean value) {
-
 
115461
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
115462
    }
-
 
115463
 
-
 
115464
    public void setFieldValue(_Fields field, Object value) {
-
 
115465
      switch (field) {
-
 
115466
      case ITEM_ID:
-
 
115467
        if (value == null) {
-
 
115468
          unsetItem_id();
-
 
115469
        } else {
-
 
115470
          setItem_id((Long)value);
-
 
115471
        }
-
 
115472
        break;
-
 
115473
 
-
 
115474
      }
-
 
115475
    }
-
 
115476
 
-
 
115477
    public Object getFieldValue(_Fields field) {
-
 
115478
      switch (field) {
-
 
115479
      case ITEM_ID:
-
 
115480
        return Long.valueOf(getItem_id());
-
 
115481
 
-
 
115482
      }
-
 
115483
      throw new IllegalStateException();
-
 
115484
    }
-
 
115485
 
-
 
115486
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
115487
    public boolean isSet(_Fields field) {
-
 
115488
      if (field == null) {
-
 
115489
        throw new IllegalArgumentException();
-
 
115490
      }
-
 
115491
 
-
 
115492
      switch (field) {
-
 
115493
      case ITEM_ID:
-
 
115494
        return isSetItem_id();
-
 
115495
      }
-
 
115496
      throw new IllegalStateException();
-
 
115497
    }
-
 
115498
 
-
 
115499
    @Override
-
 
115500
    public boolean equals(Object that) {
-
 
115501
      if (that == null)
-
 
115502
        return false;
-
 
115503
      if (that instanceof getPrivateDealDetails_args)
-
 
115504
        return this.equals((getPrivateDealDetails_args)that);
-
 
115505
      return false;
-
 
115506
    }
-
 
115507
 
-
 
115508
    public boolean equals(getPrivateDealDetails_args that) {
-
 
115509
      if (that == null)
-
 
115510
        return false;
-
 
115511
 
-
 
115512
      boolean this_present_item_id = true;
-
 
115513
      boolean that_present_item_id = true;
-
 
115514
      if (this_present_item_id || that_present_item_id) {
-
 
115515
        if (!(this_present_item_id && that_present_item_id))
-
 
115516
          return false;
-
 
115517
        if (this.item_id != that.item_id)
-
 
115518
          return false;
-
 
115519
      }
-
 
115520
 
-
 
115521
      return true;
-
 
115522
    }
-
 
115523
 
-
 
115524
    @Override
-
 
115525
    public int hashCode() {
-
 
115526
      return 0;
-
 
115527
    }
-
 
115528
 
-
 
115529
    public int compareTo(getPrivateDealDetails_args other) {
-
 
115530
      if (!getClass().equals(other.getClass())) {
-
 
115531
        return getClass().getName().compareTo(other.getClass().getName());
-
 
115532
      }
-
 
115533
 
-
 
115534
      int lastComparison = 0;
-
 
115535
      getPrivateDealDetails_args typedOther = (getPrivateDealDetails_args)other;
-
 
115536
 
-
 
115537
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
115538
      if (lastComparison != 0) {
-
 
115539
        return lastComparison;
-
 
115540
      }
-
 
115541
      if (isSetItem_id()) {
-
 
115542
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
115543
        if (lastComparison != 0) {
-
 
115544
          return lastComparison;
-
 
115545
        }
-
 
115546
      }
-
 
115547
      return 0;
-
 
115548
    }
-
 
115549
 
-
 
115550
    public _Fields fieldForId(int fieldId) {
-
 
115551
      return _Fields.findByThriftId(fieldId);
-
 
115552
    }
-
 
115553
 
-
 
115554
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
115555
      org.apache.thrift.protocol.TField field;
-
 
115556
      iprot.readStructBegin();
-
 
115557
      while (true)
-
 
115558
      {
-
 
115559
        field = iprot.readFieldBegin();
-
 
115560
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
115561
          break;
-
 
115562
        }
-
 
115563
        switch (field.id) {
-
 
115564
          case 1: // ITEM_ID
-
 
115565
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
115566
              this.item_id = iprot.readI64();
-
 
115567
              setItem_idIsSet(true);
-
 
115568
            } else { 
-
 
115569
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
115570
            }
-
 
115571
            break;
-
 
115572
          default:
-
 
115573
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
115574
        }
-
 
115575
        iprot.readFieldEnd();
-
 
115576
      }
-
 
115577
      iprot.readStructEnd();
-
 
115578
      validate();
-
 
115579
    }
-
 
115580
 
-
 
115581
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
115582
      validate();
-
 
115583
 
-
 
115584
      oprot.writeStructBegin(STRUCT_DESC);
-
 
115585
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
115586
      oprot.writeI64(this.item_id);
-
 
115587
      oprot.writeFieldEnd();
-
 
115588
      oprot.writeFieldStop();
-
 
115589
      oprot.writeStructEnd();
-
 
115590
    }
-
 
115591
 
-
 
115592
    @Override
-
 
115593
    public String toString() {
-
 
115594
      StringBuilder sb = new StringBuilder("getPrivateDealDetails_args(");
-
 
115595
      boolean first = true;
-
 
115596
 
-
 
115597
      sb.append("item_id:");
-
 
115598
      sb.append(this.item_id);
-
 
115599
      first = false;
-
 
115600
      sb.append(")");
-
 
115601
      return sb.toString();
-
 
115602
    }
-
 
115603
 
-
 
115604
    public void validate() throws org.apache.thrift.TException {
-
 
115605
      // check for required fields
-
 
115606
    }
-
 
115607
 
-
 
115608
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
115609
      try {
-
 
115610
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
115611
      } catch (org.apache.thrift.TException te) {
-
 
115612
        throw new java.io.IOException(te);
-
 
115613
      }
-
 
115614
    }
-
 
115615
 
-
 
115616
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
115617
      try {
-
 
115618
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
115619
        __isset_bit_vector = new BitSet(1);
-
 
115620
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
115621
      } catch (org.apache.thrift.TException te) {
-
 
115622
        throw new java.io.IOException(te);
-
 
115623
      }
-
 
115624
    }
-
 
115625
 
-
 
115626
  }
-
 
115627
 
-
 
115628
  public static class getPrivateDealDetails_result implements org.apache.thrift.TBase<getPrivateDealDetails_result, getPrivateDealDetails_result._Fields>, java.io.Serializable, Cloneable   {
-
 
115629
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrivateDealDetails_result");
-
 
115630
 
-
 
115631
    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);
-
 
115632
 
-
 
115633
    private PrivateDeal success; // required
-
 
115634
 
-
 
115635
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
115636
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
115637
      SUCCESS((short)0, "success");
-
 
115638
 
-
 
115639
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
115640
 
-
 
115641
      static {
-
 
115642
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
115643
          byName.put(field.getFieldName(), field);
-
 
115644
        }
-
 
115645
      }
-
 
115646
 
-
 
115647
      /**
-
 
115648
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
115649
       */
-
 
115650
      public static _Fields findByThriftId(int fieldId) {
-
 
115651
        switch(fieldId) {
-
 
115652
          case 0: // SUCCESS
-
 
115653
            return SUCCESS;
-
 
115654
          default:
-
 
115655
            return null;
-
 
115656
        }
-
 
115657
      }
-
 
115658
 
-
 
115659
      /**
-
 
115660
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
115661
       * if it is not found.
-
 
115662
       */
-
 
115663
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
115664
        _Fields fields = findByThriftId(fieldId);
-
 
115665
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
115666
        return fields;
-
 
115667
      }
-
 
115668
 
-
 
115669
      /**
-
 
115670
       * Find the _Fields constant that matches name, or null if its not found.
-
 
115671
       */
-
 
115672
      public static _Fields findByName(String name) {
-
 
115673
        return byName.get(name);
-
 
115674
      }
-
 
115675
 
-
 
115676
      private final short _thriftId;
-
 
115677
      private final String _fieldName;
-
 
115678
 
-
 
115679
      _Fields(short thriftId, String fieldName) {
-
 
115680
        _thriftId = thriftId;
-
 
115681
        _fieldName = fieldName;
-
 
115682
      }
-
 
115683
 
-
 
115684
      public short getThriftFieldId() {
-
 
115685
        return _thriftId;
-
 
115686
      }
-
 
115687
 
-
 
115688
      public String getFieldName() {
-
 
115689
        return _fieldName;
-
 
115690
      }
-
 
115691
    }
-
 
115692
 
-
 
115693
    // isset id assignments
-
 
115694
 
-
 
115695
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
115696
    static {
-
 
115697
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
115698
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
115699
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrivateDeal.class)));
-
 
115700
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
115701
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrivateDealDetails_result.class, metaDataMap);
-
 
115702
    }
-
 
115703
 
-
 
115704
    public getPrivateDealDetails_result() {
-
 
115705
    }
-
 
115706
 
-
 
115707
    public getPrivateDealDetails_result(
-
 
115708
      PrivateDeal success)
-
 
115709
    {
-
 
115710
      this();
-
 
115711
      this.success = success;
-
 
115712
    }
-
 
115713
 
-
 
115714
    /**
-
 
115715
     * Performs a deep copy on <i>other</i>.
-
 
115716
     */
-
 
115717
    public getPrivateDealDetails_result(getPrivateDealDetails_result other) {
-
 
115718
      if (other.isSetSuccess()) {
-
 
115719
        this.success = new PrivateDeal(other.success);
-
 
115720
      }
-
 
115721
    }
-
 
115722
 
-
 
115723
    public getPrivateDealDetails_result deepCopy() {
-
 
115724
      return new getPrivateDealDetails_result(this);
-
 
115725
    }
-
 
115726
 
-
 
115727
    @Override
-
 
115728
    public void clear() {
-
 
115729
      this.success = null;
-
 
115730
    }
-
 
115731
 
-
 
115732
    public PrivateDeal getSuccess() {
-
 
115733
      return this.success;
-
 
115734
    }
-
 
115735
 
-
 
115736
    public void setSuccess(PrivateDeal success) {
-
 
115737
      this.success = success;
-
 
115738
    }
-
 
115739
 
-
 
115740
    public void unsetSuccess() {
-
 
115741
      this.success = null;
-
 
115742
    }
-
 
115743
 
-
 
115744
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
115745
    public boolean isSetSuccess() {
-
 
115746
      return this.success != null;
-
 
115747
    }
-
 
115748
 
-
 
115749
    public void setSuccessIsSet(boolean value) {
-
 
115750
      if (!value) {
-
 
115751
        this.success = null;
-
 
115752
      }
-
 
115753
    }
-
 
115754
 
-
 
115755
    public void setFieldValue(_Fields field, Object value) {
-
 
115756
      switch (field) {
-
 
115757
      case SUCCESS:
-
 
115758
        if (value == null) {
-
 
115759
          unsetSuccess();
-
 
115760
        } else {
-
 
115761
          setSuccess((PrivateDeal)value);
-
 
115762
        }
-
 
115763
        break;
-
 
115764
 
-
 
115765
      }
-
 
115766
    }
-
 
115767
 
-
 
115768
    public Object getFieldValue(_Fields field) {
-
 
115769
      switch (field) {
-
 
115770
      case SUCCESS:
-
 
115771
        return getSuccess();
-
 
115772
 
-
 
115773
      }
-
 
115774
      throw new IllegalStateException();
-
 
115775
    }
-
 
115776
 
-
 
115777
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
115778
    public boolean isSet(_Fields field) {
-
 
115779
      if (field == null) {
-
 
115780
        throw new IllegalArgumentException();
-
 
115781
      }
-
 
115782
 
-
 
115783
      switch (field) {
-
 
115784
      case SUCCESS:
-
 
115785
        return isSetSuccess();
-
 
115786
      }
-
 
115787
      throw new IllegalStateException();
-
 
115788
    }
-
 
115789
 
-
 
115790
    @Override
-
 
115791
    public boolean equals(Object that) {
-
 
115792
      if (that == null)
-
 
115793
        return false;
-
 
115794
      if (that instanceof getPrivateDealDetails_result)
-
 
115795
        return this.equals((getPrivateDealDetails_result)that);
-
 
115796
      return false;
-
 
115797
    }
-
 
115798
 
-
 
115799
    public boolean equals(getPrivateDealDetails_result that) {
-
 
115800
      if (that == null)
-
 
115801
        return false;
-
 
115802
 
-
 
115803
      boolean this_present_success = true && this.isSetSuccess();
-
 
115804
      boolean that_present_success = true && that.isSetSuccess();
-
 
115805
      if (this_present_success || that_present_success) {
-
 
115806
        if (!(this_present_success && that_present_success))
-
 
115807
          return false;
-
 
115808
        if (!this.success.equals(that.success))
-
 
115809
          return false;
-
 
115810
      }
-
 
115811
 
-
 
115812
      return true;
-
 
115813
    }
-
 
115814
 
-
 
115815
    @Override
-
 
115816
    public int hashCode() {
-
 
115817
      return 0;
-
 
115818
    }
-
 
115819
 
-
 
115820
    public int compareTo(getPrivateDealDetails_result other) {
-
 
115821
      if (!getClass().equals(other.getClass())) {
-
 
115822
        return getClass().getName().compareTo(other.getClass().getName());
-
 
115823
      }
-
 
115824
 
-
 
115825
      int lastComparison = 0;
-
 
115826
      getPrivateDealDetails_result typedOther = (getPrivateDealDetails_result)other;
-
 
115827
 
-
 
115828
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
115829
      if (lastComparison != 0) {
-
 
115830
        return lastComparison;
-
 
115831
      }
-
 
115832
      if (isSetSuccess()) {
-
 
115833
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
115834
        if (lastComparison != 0) {
-
 
115835
          return lastComparison;
-
 
115836
        }
-
 
115837
      }
-
 
115838
      return 0;
-
 
115839
    }
-
 
115840
 
-
 
115841
    public _Fields fieldForId(int fieldId) {
-
 
115842
      return _Fields.findByThriftId(fieldId);
-
 
115843
    }
-
 
115844
 
-
 
115845
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
115846
      org.apache.thrift.protocol.TField field;
-
 
115847
      iprot.readStructBegin();
-
 
115848
      while (true)
-
 
115849
      {
-
 
115850
        field = iprot.readFieldBegin();
-
 
115851
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
115852
          break;
-
 
115853
        }
-
 
115854
        switch (field.id) {
-
 
115855
          case 0: // SUCCESS
-
 
115856
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
115857
              this.success = new PrivateDeal();
-
 
115858
              this.success.read(iprot);
-
 
115859
            } else { 
-
 
115860
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
115861
            }
-
 
115862
            break;
-
 
115863
          default:
-
 
115864
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
115865
        }
-
 
115866
        iprot.readFieldEnd();
-
 
115867
      }
-
 
115868
      iprot.readStructEnd();
-
 
115869
      validate();
-
 
115870
    }
-
 
115871
 
-
 
115872
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
115873
      oprot.writeStructBegin(STRUCT_DESC);
-
 
115874
 
-
 
115875
      if (this.isSetSuccess()) {
-
 
115876
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
115877
        this.success.write(oprot);
-
 
115878
        oprot.writeFieldEnd();
-
 
115879
      }
-
 
115880
      oprot.writeFieldStop();
-
 
115881
      oprot.writeStructEnd();
-
 
115882
    }
-
 
115883
 
-
 
115884
    @Override
-
 
115885
    public String toString() {
-
 
115886
      StringBuilder sb = new StringBuilder("getPrivateDealDetails_result(");
-
 
115887
      boolean first = true;
-
 
115888
 
-
 
115889
      sb.append("success:");
-
 
115890
      if (this.success == null) {
-
 
115891
        sb.append("null");
-
 
115892
      } else {
-
 
115893
        sb.append(this.success);
-
 
115894
      }
-
 
115895
      first = false;
-
 
115896
      sb.append(")");
-
 
115897
      return sb.toString();
-
 
115898
    }
-
 
115899
 
-
 
115900
    public void validate() throws org.apache.thrift.TException {
-
 
115901
      // check for required fields
-
 
115902
    }
-
 
115903
 
-
 
115904
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
115905
      try {
-
 
115906
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
115907
      } catch (org.apache.thrift.TException te) {
-
 
115908
        throw new java.io.IOException(te);
-
 
115909
      }
-
 
115910
    }
-
 
115911
 
-
 
115912
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
115913
      try {
-
 
115914
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
115915
      } catch (org.apache.thrift.TException te) {
-
 
115916
        throw new java.io.IOException(te);
-
 
115917
      }
-
 
115918
    }
-
 
115919
 
-
 
115920
  }
-
 
115921
 
-
 
115922
  public static class getPrivateDealItems_args implements org.apache.thrift.TBase<getPrivateDealItems_args, getPrivateDealItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
115923
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrivateDealItems_args");
-
 
115924
 
-
 
115925
    private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
115926
    private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
115927
 
-
 
115928
    private long offset; // required
-
 
115929
    private long limit; // required
-
 
115930
 
-
 
115931
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
115932
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
115933
      OFFSET((short)1, "offset"),
-
 
115934
      LIMIT((short)2, "limit");
-
 
115935
 
-
 
115936
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
115937
 
-
 
115938
      static {
-
 
115939
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
115940
          byName.put(field.getFieldName(), field);
-
 
115941
        }
-
 
115942
      }
-
 
115943
 
-
 
115944
      /**
-
 
115945
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
115946
       */
-
 
115947
      public static _Fields findByThriftId(int fieldId) {
-
 
115948
        switch(fieldId) {
-
 
115949
          case 1: // OFFSET
-
 
115950
            return OFFSET;
-
 
115951
          case 2: // LIMIT
-
 
115952
            return LIMIT;
-
 
115953
          default:
-
 
115954
            return null;
-
 
115955
        }
-
 
115956
      }
-
 
115957
 
-
 
115958
      /**
-
 
115959
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
115960
       * if it is not found.
-
 
115961
       */
-
 
115962
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
115963
        _Fields fields = findByThriftId(fieldId);
-
 
115964
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
115965
        return fields;
-
 
115966
      }
-
 
115967
 
-
 
115968
      /**
-
 
115969
       * Find the _Fields constant that matches name, or null if its not found.
-
 
115970
       */
-
 
115971
      public static _Fields findByName(String name) {
-
 
115972
        return byName.get(name);
-
 
115973
      }
-
 
115974
 
-
 
115975
      private final short _thriftId;
-
 
115976
      private final String _fieldName;
-
 
115977
 
-
 
115978
      _Fields(short thriftId, String fieldName) {
-
 
115979
        _thriftId = thriftId;
-
 
115980
        _fieldName = fieldName;
-
 
115981
      }
-
 
115982
 
-
 
115983
      public short getThriftFieldId() {
-
 
115984
        return _thriftId;
-
 
115985
      }
-
 
115986
 
-
 
115987
      public String getFieldName() {
-
 
115988
        return _fieldName;
-
 
115989
      }
-
 
115990
    }
-
 
115991
 
-
 
115992
    // isset id assignments
-
 
115993
    private static final int __OFFSET_ISSET_ID = 0;
-
 
115994
    private static final int __LIMIT_ISSET_ID = 1;
-
 
115995
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
115996
 
-
 
115997
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
115998
    static {
-
 
115999
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
116000
      tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
116001
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
116002
      tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
116003
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
116004
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
116005
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrivateDealItems_args.class, metaDataMap);
-
 
116006
    }
-
 
116007
 
-
 
116008
    public getPrivateDealItems_args() {
-
 
116009
    }
-
 
116010
 
-
 
116011
    public getPrivateDealItems_args(
-
 
116012
      long offset,
-
 
116013
      long limit)
-
 
116014
    {
-
 
116015
      this();
-
 
116016
      this.offset = offset;
-
 
116017
      setOffsetIsSet(true);
-
 
116018
      this.limit = limit;
-
 
116019
      setLimitIsSet(true);
-
 
116020
    }
-
 
116021
 
-
 
116022
    /**
-
 
116023
     * Performs a deep copy on <i>other</i>.
-
 
116024
     */
-
 
116025
    public getPrivateDealItems_args(getPrivateDealItems_args other) {
-
 
116026
      __isset_bit_vector.clear();
-
 
116027
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
116028
      this.offset = other.offset;
-
 
116029
      this.limit = other.limit;
-
 
116030
    }
-
 
116031
 
-
 
116032
    public getPrivateDealItems_args deepCopy() {
-
 
116033
      return new getPrivateDealItems_args(this);
-
 
116034
    }
-
 
116035
 
-
 
116036
    @Override
-
 
116037
    public void clear() {
-
 
116038
      setOffsetIsSet(false);
-
 
116039
      this.offset = 0;
-
 
116040
      setLimitIsSet(false);
-
 
116041
      this.limit = 0;
-
 
116042
    }
-
 
116043
 
-
 
116044
    public long getOffset() {
-
 
116045
      return this.offset;
-
 
116046
    }
-
 
116047
 
-
 
116048
    public void setOffset(long offset) {
-
 
116049
      this.offset = offset;
-
 
116050
      setOffsetIsSet(true);
-
 
116051
    }
-
 
116052
 
-
 
116053
    public void unsetOffset() {
-
 
116054
      __isset_bit_vector.clear(__OFFSET_ISSET_ID);
-
 
116055
    }
-
 
116056
 
-
 
116057
    /** Returns true if field offset is set (has been assigned a value) and false otherwise */
-
 
116058
    public boolean isSetOffset() {
-
 
116059
      return __isset_bit_vector.get(__OFFSET_ISSET_ID);
-
 
116060
    }
-
 
116061
 
-
 
116062
    public void setOffsetIsSet(boolean value) {
-
 
116063
      __isset_bit_vector.set(__OFFSET_ISSET_ID, value);
-
 
116064
    }
-
 
116065
 
-
 
116066
    public long getLimit() {
-
 
116067
      return this.limit;
-
 
116068
    }
-
 
116069
 
-
 
116070
    public void setLimit(long limit) {
-
 
116071
      this.limit = limit;
-
 
116072
      setLimitIsSet(true);
-
 
116073
    }
-
 
116074
 
-
 
116075
    public void unsetLimit() {
-
 
116076
      __isset_bit_vector.clear(__LIMIT_ISSET_ID);
-
 
116077
    }
-
 
116078
 
-
 
116079
    /** Returns true if field limit is set (has been assigned a value) and false otherwise */
-
 
116080
    public boolean isSetLimit() {
-
 
116081
      return __isset_bit_vector.get(__LIMIT_ISSET_ID);
-
 
116082
    }
-
 
116083
 
-
 
116084
    public void setLimitIsSet(boolean value) {
-
 
116085
      __isset_bit_vector.set(__LIMIT_ISSET_ID, value);
-
 
116086
    }
-
 
116087
 
-
 
116088
    public void setFieldValue(_Fields field, Object value) {
-
 
116089
      switch (field) {
-
 
116090
      case OFFSET:
-
 
116091
        if (value == null) {
-
 
116092
          unsetOffset();
-
 
116093
        } else {
-
 
116094
          setOffset((Long)value);
-
 
116095
        }
-
 
116096
        break;
-
 
116097
 
-
 
116098
      case LIMIT:
-
 
116099
        if (value == null) {
-
 
116100
          unsetLimit();
-
 
116101
        } else {
-
 
116102
          setLimit((Long)value);
-
 
116103
        }
-
 
116104
        break;
-
 
116105
 
-
 
116106
      }
-
 
116107
    }
-
 
116108
 
-
 
116109
    public Object getFieldValue(_Fields field) {
-
 
116110
      switch (field) {
-
 
116111
      case OFFSET:
-
 
116112
        return Long.valueOf(getOffset());
-
 
116113
 
-
 
116114
      case LIMIT:
-
 
116115
        return Long.valueOf(getLimit());
-
 
116116
 
-
 
116117
      }
-
 
116118
      throw new IllegalStateException();
-
 
116119
    }
-
 
116120
 
-
 
116121
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
116122
    public boolean isSet(_Fields field) {
-
 
116123
      if (field == null) {
-
 
116124
        throw new IllegalArgumentException();
-
 
116125
      }
-
 
116126
 
-
 
116127
      switch (field) {
-
 
116128
      case OFFSET:
-
 
116129
        return isSetOffset();
-
 
116130
      case LIMIT:
-
 
116131
        return isSetLimit();
-
 
116132
      }
-
 
116133
      throw new IllegalStateException();
-
 
116134
    }
-
 
116135
 
-
 
116136
    @Override
-
 
116137
    public boolean equals(Object that) {
-
 
116138
      if (that == null)
-
 
116139
        return false;
-
 
116140
      if (that instanceof getPrivateDealItems_args)
-
 
116141
        return this.equals((getPrivateDealItems_args)that);
-
 
116142
      return false;
-
 
116143
    }
-
 
116144
 
-
 
116145
    public boolean equals(getPrivateDealItems_args that) {
-
 
116146
      if (that == null)
-
 
116147
        return false;
-
 
116148
 
-
 
116149
      boolean this_present_offset = true;
-
 
116150
      boolean that_present_offset = true;
-
 
116151
      if (this_present_offset || that_present_offset) {
-
 
116152
        if (!(this_present_offset && that_present_offset))
-
 
116153
          return false;
-
 
116154
        if (this.offset != that.offset)
-
 
116155
          return false;
-
 
116156
      }
-
 
116157
 
-
 
116158
      boolean this_present_limit = true;
-
 
116159
      boolean that_present_limit = true;
-
 
116160
      if (this_present_limit || that_present_limit) {
-
 
116161
        if (!(this_present_limit && that_present_limit))
-
 
116162
          return false;
-
 
116163
        if (this.limit != that.limit)
-
 
116164
          return false;
-
 
116165
      }
-
 
116166
 
-
 
116167
      return true;
-
 
116168
    }
-
 
116169
 
-
 
116170
    @Override
-
 
116171
    public int hashCode() {
-
 
116172
      return 0;
-
 
116173
    }
-
 
116174
 
-
 
116175
    public int compareTo(getPrivateDealItems_args other) {
-
 
116176
      if (!getClass().equals(other.getClass())) {
-
 
116177
        return getClass().getName().compareTo(other.getClass().getName());
-
 
116178
      }
-
 
116179
 
-
 
116180
      int lastComparison = 0;
-
 
116181
      getPrivateDealItems_args typedOther = (getPrivateDealItems_args)other;
-
 
116182
 
-
 
116183
      lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());
-
 
116184
      if (lastComparison != 0) {
-
 
116185
        return lastComparison;
-
 
116186
      }
-
 
116187
      if (isSetOffset()) {
-
 
116188
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);
-
 
116189
        if (lastComparison != 0) {
-
 
116190
          return lastComparison;
-
 
116191
        }
-
 
116192
      }
-
 
116193
      lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());
-
 
116194
      if (lastComparison != 0) {
-
 
116195
        return lastComparison;
-
 
116196
      }
-
 
116197
      if (isSetLimit()) {
-
 
116198
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);
-
 
116199
        if (lastComparison != 0) {
-
 
116200
          return lastComparison;
-
 
116201
        }
-
 
116202
      }
-
 
116203
      return 0;
-
 
116204
    }
-
 
116205
 
-
 
116206
    public _Fields fieldForId(int fieldId) {
-
 
116207
      return _Fields.findByThriftId(fieldId);
-
 
116208
    }
-
 
116209
 
-
 
116210
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
116211
      org.apache.thrift.protocol.TField field;
-
 
116212
      iprot.readStructBegin();
-
 
116213
      while (true)
-
 
116214
      {
-
 
116215
        field = iprot.readFieldBegin();
-
 
116216
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
116217
          break;
-
 
116218
        }
-
 
116219
        switch (field.id) {
-
 
116220
          case 1: // OFFSET
-
 
116221
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
116222
              this.offset = iprot.readI64();
-
 
116223
              setOffsetIsSet(true);
-
 
116224
            } else { 
-
 
116225
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
116226
            }
-
 
116227
            break;
-
 
116228
          case 2: // LIMIT
-
 
116229
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
116230
              this.limit = iprot.readI64();
-
 
116231
              setLimitIsSet(true);
-
 
116232
            } else { 
-
 
116233
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
116234
            }
-
 
116235
            break;
-
 
116236
          default:
-
 
116237
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
116238
        }
-
 
116239
        iprot.readFieldEnd();
-
 
116240
      }
-
 
116241
      iprot.readStructEnd();
-
 
116242
      validate();
-
 
116243
    }
-
 
116244
 
-
 
116245
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
116246
      validate();
-
 
116247
 
-
 
116248
      oprot.writeStructBegin(STRUCT_DESC);
-
 
116249
      oprot.writeFieldBegin(OFFSET_FIELD_DESC);
-
 
116250
      oprot.writeI64(this.offset);
-
 
116251
      oprot.writeFieldEnd();
-
 
116252
      oprot.writeFieldBegin(LIMIT_FIELD_DESC);
-
 
116253
      oprot.writeI64(this.limit);
-
 
116254
      oprot.writeFieldEnd();
-
 
116255
      oprot.writeFieldStop();
-
 
116256
      oprot.writeStructEnd();
-
 
116257
    }
-
 
116258
 
-
 
116259
    @Override
-
 
116260
    public String toString() {
-
 
116261
      StringBuilder sb = new StringBuilder("getPrivateDealItems_args(");
-
 
116262
      boolean first = true;
-
 
116263
 
-
 
116264
      sb.append("offset:");
-
 
116265
      sb.append(this.offset);
-
 
116266
      first = false;
-
 
116267
      if (!first) sb.append(", ");
-
 
116268
      sb.append("limit:");
-
 
116269
      sb.append(this.limit);
-
 
116270
      first = false;
-
 
116271
      sb.append(")");
-
 
116272
      return sb.toString();
-
 
116273
    }
-
 
116274
 
-
 
116275
    public void validate() throws org.apache.thrift.TException {
-
 
116276
      // check for required fields
-
 
116277
    }
-
 
116278
 
-
 
116279
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
116280
      try {
-
 
116281
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
116282
      } catch (org.apache.thrift.TException te) {
-
 
116283
        throw new java.io.IOException(te);
-
 
116284
      }
-
 
116285
    }
-
 
116286
 
-
 
116287
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
116288
      try {
-
 
116289
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
116290
        __isset_bit_vector = new BitSet(1);
-
 
116291
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
116292
      } catch (org.apache.thrift.TException te) {
-
 
116293
        throw new java.io.IOException(te);
-
 
116294
      }
-
 
116295
    }
-
 
116296
 
-
 
116297
  }
-
 
116298
 
-
 
116299
  public static class getPrivateDealItems_result implements org.apache.thrift.TBase<getPrivateDealItems_result, getPrivateDealItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
116300
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrivateDealItems_result");
-
 
116301
 
-
 
116302
    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);
-
 
116303
 
-
 
116304
    private List<Item> success; // required
-
 
116305
 
-
 
116306
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
116307
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
116308
      SUCCESS((short)0, "success");
-
 
116309
 
-
 
116310
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
116311
 
-
 
116312
      static {
-
 
116313
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
116314
          byName.put(field.getFieldName(), field);
-
 
116315
        }
-
 
116316
      }
-
 
116317
 
-
 
116318
      /**
-
 
116319
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
116320
       */
-
 
116321
      public static _Fields findByThriftId(int fieldId) {
-
 
116322
        switch(fieldId) {
-
 
116323
          case 0: // SUCCESS
-
 
116324
            return SUCCESS;
-
 
116325
          default:
-
 
116326
            return null;
-
 
116327
        }
-
 
116328
      }
-
 
116329
 
-
 
116330
      /**
-
 
116331
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
116332
       * if it is not found.
-
 
116333
       */
-
 
116334
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
116335
        _Fields fields = findByThriftId(fieldId);
-
 
116336
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
116337
        return fields;
-
 
116338
      }
-
 
116339
 
-
 
116340
      /**
-
 
116341
       * Find the _Fields constant that matches name, or null if its not found.
-
 
116342
       */
-
 
116343
      public static _Fields findByName(String name) {
-
 
116344
        return byName.get(name);
-
 
116345
      }
-
 
116346
 
-
 
116347
      private final short _thriftId;
-
 
116348
      private final String _fieldName;
-
 
116349
 
-
 
116350
      _Fields(short thriftId, String fieldName) {
-
 
116351
        _thriftId = thriftId;
-
 
116352
        _fieldName = fieldName;
-
 
116353
      }
-
 
116354
 
-
 
116355
      public short getThriftFieldId() {
-
 
116356
        return _thriftId;
-
 
116357
      }
-
 
116358
 
-
 
116359
      public String getFieldName() {
-
 
116360
        return _fieldName;
-
 
116361
      }
-
 
116362
    }
-
 
116363
 
-
 
116364
    // isset id assignments
-
 
116365
 
-
 
116366
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
116367
    static {
-
 
116368
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
116369
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
116370
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
116371
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Item.class))));
-
 
116372
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
116373
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrivateDealItems_result.class, metaDataMap);
-
 
116374
    }
-
 
116375
 
-
 
116376
    public getPrivateDealItems_result() {
-
 
116377
    }
-
 
116378
 
-
 
116379
    public getPrivateDealItems_result(
-
 
116380
      List<Item> success)
-
 
116381
    {
-
 
116382
      this();
-
 
116383
      this.success = success;
-
 
116384
    }
-
 
116385
 
-
 
116386
    /**
-
 
116387
     * Performs a deep copy on <i>other</i>.
-
 
116388
     */
-
 
116389
    public getPrivateDealItems_result(getPrivateDealItems_result other) {
-
 
116390
      if (other.isSetSuccess()) {
-
 
116391
        List<Item> __this__success = new ArrayList<Item>();
-
 
116392
        for (Item other_element : other.success) {
-
 
116393
          __this__success.add(new Item(other_element));
-
 
116394
        }
-
 
116395
        this.success = __this__success;
-
 
116396
      }
-
 
116397
    }
-
 
116398
 
-
 
116399
    public getPrivateDealItems_result deepCopy() {
-
 
116400
      return new getPrivateDealItems_result(this);
-
 
116401
    }
-
 
116402
 
-
 
116403
    @Override
-
 
116404
    public void clear() {
-
 
116405
      this.success = null;
-
 
116406
    }
-
 
116407
 
-
 
116408
    public int getSuccessSize() {
-
 
116409
      return (this.success == null) ? 0 : this.success.size();
-
 
116410
    }
-
 
116411
 
-
 
116412
    public java.util.Iterator<Item> getSuccessIterator() {
-
 
116413
      return (this.success == null) ? null : this.success.iterator();
-
 
116414
    }
-
 
116415
 
-
 
116416
    public void addToSuccess(Item elem) {
-
 
116417
      if (this.success == null) {
-
 
116418
        this.success = new ArrayList<Item>();
-
 
116419
      }
-
 
116420
      this.success.add(elem);
-
 
116421
    }
-
 
116422
 
-
 
116423
    public List<Item> getSuccess() {
-
 
116424
      return this.success;
-
 
116425
    }
-
 
116426
 
-
 
116427
    public void setSuccess(List<Item> success) {
-
 
116428
      this.success = success;
-
 
116429
    }
-
 
116430
 
-
 
116431
    public void unsetSuccess() {
-
 
116432
      this.success = null;
-
 
116433
    }
-
 
116434
 
-
 
116435
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
116436
    public boolean isSetSuccess() {
-
 
116437
      return this.success != null;
-
 
116438
    }
-
 
116439
 
-
 
116440
    public void setSuccessIsSet(boolean value) {
-
 
116441
      if (!value) {
-
 
116442
        this.success = null;
-
 
116443
      }
-
 
116444
    }
-
 
116445
 
-
 
116446
    public void setFieldValue(_Fields field, Object value) {
-
 
116447
      switch (field) {
-
 
116448
      case SUCCESS:
-
 
116449
        if (value == null) {
-
 
116450
          unsetSuccess();
-
 
116451
        } else {
-
 
116452
          setSuccess((List<Item>)value);
-
 
116453
        }
-
 
116454
        break;
-
 
116455
 
-
 
116456
      }
-
 
116457
    }
-
 
116458
 
-
 
116459
    public Object getFieldValue(_Fields field) {
-
 
116460
      switch (field) {
-
 
116461
      case SUCCESS:
-
 
116462
        return getSuccess();
-
 
116463
 
-
 
116464
      }
-
 
116465
      throw new IllegalStateException();
-
 
116466
    }
-
 
116467
 
-
 
116468
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
116469
    public boolean isSet(_Fields field) {
-
 
116470
      if (field == null) {
-
 
116471
        throw new IllegalArgumentException();
-
 
116472
      }
-
 
116473
 
-
 
116474
      switch (field) {
-
 
116475
      case SUCCESS:
-
 
116476
        return isSetSuccess();
-
 
116477
      }
-
 
116478
      throw new IllegalStateException();
-
 
116479
    }
-
 
116480
 
-
 
116481
    @Override
-
 
116482
    public boolean equals(Object that) {
-
 
116483
      if (that == null)
-
 
116484
        return false;
-
 
116485
      if (that instanceof getPrivateDealItems_result)
-
 
116486
        return this.equals((getPrivateDealItems_result)that);
-
 
116487
      return false;
-
 
116488
    }
-
 
116489
 
-
 
116490
    public boolean equals(getPrivateDealItems_result that) {
-
 
116491
      if (that == null)
-
 
116492
        return false;
-
 
116493
 
-
 
116494
      boolean this_present_success = true && this.isSetSuccess();
-
 
116495
      boolean that_present_success = true && that.isSetSuccess();
-
 
116496
      if (this_present_success || that_present_success) {
-
 
116497
        if (!(this_present_success && that_present_success))
-
 
116498
          return false;
-
 
116499
        if (!this.success.equals(that.success))
-
 
116500
          return false;
-
 
116501
      }
-
 
116502
 
-
 
116503
      return true;
-
 
116504
    }
-
 
116505
 
-
 
116506
    @Override
-
 
116507
    public int hashCode() {
-
 
116508
      return 0;
-
 
116509
    }
-
 
116510
 
-
 
116511
    public int compareTo(getPrivateDealItems_result other) {
-
 
116512
      if (!getClass().equals(other.getClass())) {
-
 
116513
        return getClass().getName().compareTo(other.getClass().getName());
-
 
116514
      }
-
 
116515
 
-
 
116516
      int lastComparison = 0;
-
 
116517
      getPrivateDealItems_result typedOther = (getPrivateDealItems_result)other;
-
 
116518
 
-
 
116519
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
116520
      if (lastComparison != 0) {
-
 
116521
        return lastComparison;
-
 
116522
      }
-
 
116523
      if (isSetSuccess()) {
-
 
116524
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
116525
        if (lastComparison != 0) {
-
 
116526
          return lastComparison;
-
 
116527
        }
-
 
116528
      }
-
 
116529
      return 0;
-
 
116530
    }
-
 
116531
 
-
 
116532
    public _Fields fieldForId(int fieldId) {
-
 
116533
      return _Fields.findByThriftId(fieldId);
-
 
116534
    }
-
 
116535
 
-
 
116536
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
116537
      org.apache.thrift.protocol.TField field;
-
 
116538
      iprot.readStructBegin();
-
 
116539
      while (true)
-
 
116540
      {
-
 
116541
        field = iprot.readFieldBegin();
-
 
116542
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
116543
          break;
-
 
116544
        }
-
 
116545
        switch (field.id) {
-
 
116546
          case 0: // SUCCESS
-
 
116547
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
116548
              {
-
 
116549
                org.apache.thrift.protocol.TList _list369 = iprot.readListBegin();
-
 
116550
                this.success = new ArrayList<Item>(_list369.size);
-
 
116551
                for (int _i370 = 0; _i370 < _list369.size; ++_i370)
-
 
116552
                {
-
 
116553
                  Item _elem371; // required
-
 
116554
                  _elem371 = new Item();
-
 
116555
                  _elem371.read(iprot);
-
 
116556
                  this.success.add(_elem371);
-
 
116557
                }
-
 
116558
                iprot.readListEnd();
-
 
116559
              }
-
 
116560
            } else { 
-
 
116561
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
116562
            }
-
 
116563
            break;
-
 
116564
          default:
-
 
116565
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
116566
        }
-
 
116567
        iprot.readFieldEnd();
-
 
116568
      }
-
 
116569
      iprot.readStructEnd();
-
 
116570
      validate();
-
 
116571
    }
-
 
116572
 
-
 
116573
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
116574
      oprot.writeStructBegin(STRUCT_DESC);
-
 
116575
 
-
 
116576
      if (this.isSetSuccess()) {
-
 
116577
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
116578
        {
-
 
116579
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
116580
          for (Item _iter372 : this.success)
-
 
116581
          {
-
 
116582
            _iter372.write(oprot);
-
 
116583
          }
-
 
116584
          oprot.writeListEnd();
-
 
116585
        }
-
 
116586
        oprot.writeFieldEnd();
-
 
116587
      }
-
 
116588
      oprot.writeFieldStop();
-
 
116589
      oprot.writeStructEnd();
-
 
116590
    }
-
 
116591
 
-
 
116592
    @Override
-
 
116593
    public String toString() {
-
 
116594
      StringBuilder sb = new StringBuilder("getPrivateDealItems_result(");
-
 
116595
      boolean first = true;
-
 
116596
 
-
 
116597
      sb.append("success:");
-
 
116598
      if (this.success == null) {
-
 
116599
        sb.append("null");
-
 
116600
      } else {
-
 
116601
        sb.append(this.success);
-
 
116602
      }
-
 
116603
      first = false;
-
 
116604
      sb.append(")");
-
 
116605
      return sb.toString();
-
 
116606
    }
-
 
116607
 
-
 
116608
    public void validate() throws org.apache.thrift.TException {
-
 
116609
      // check for required fields
-
 
116610
    }
-
 
116611
 
-
 
116612
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
116613
      try {
-
 
116614
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
116615
      } catch (org.apache.thrift.TException te) {
-
 
116616
        throw new java.io.IOException(te);
-
 
116617
      }
-
 
116618
    }
-
 
116619
 
-
 
116620
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
116621
      try {
-
 
116622
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
116623
      } catch (org.apache.thrift.TException te) {
-
 
116624
        throw new java.io.IOException(te);
-
 
116625
      }
-
 
116626
    }
-
 
116627
 
-
 
116628
  }
-
 
116629
 
-
 
116630
  public static class addOrUpdatePrivateDeal_args implements org.apache.thrift.TBase<addOrUpdatePrivateDeal_args, addOrUpdatePrivateDeal_args._Fields>, java.io.Serializable, Cloneable   {
-
 
116631
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdatePrivateDeal_args");
-
 
116632
 
-
 
116633
    private static final org.apache.thrift.protocol.TField PRIVATE_DEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("privateDeal", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
116634
 
-
 
116635
    private PrivateDeal privateDeal; // required
-
 
116636
 
-
 
116637
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
116638
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
116639
      PRIVATE_DEAL((short)1, "privateDeal");
-
 
116640
 
-
 
116641
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
116642
 
-
 
116643
      static {
-
 
116644
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
116645
          byName.put(field.getFieldName(), field);
-
 
116646
        }
-
 
116647
      }
-
 
116648
 
-
 
116649
      /**
-
 
116650
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
116651
       */
-
 
116652
      public static _Fields findByThriftId(int fieldId) {
-
 
116653
        switch(fieldId) {
-
 
116654
          case 1: // PRIVATE_DEAL
-
 
116655
            return PRIVATE_DEAL;
-
 
116656
          default:
-
 
116657
            return null;
-
 
116658
        }
-
 
116659
      }
-
 
116660
 
-
 
116661
      /**
-
 
116662
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
116663
       * if it is not found.
-
 
116664
       */
-
 
116665
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
116666
        _Fields fields = findByThriftId(fieldId);
-
 
116667
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
116668
        return fields;
-
 
116669
      }
-
 
116670
 
-
 
116671
      /**
-
 
116672
       * Find the _Fields constant that matches name, or null if its not found.
-
 
116673
       */
-
 
116674
      public static _Fields findByName(String name) {
-
 
116675
        return byName.get(name);
-
 
116676
      }
-
 
116677
 
-
 
116678
      private final short _thriftId;
-
 
116679
      private final String _fieldName;
-
 
116680
 
-
 
116681
      _Fields(short thriftId, String fieldName) {
-
 
116682
        _thriftId = thriftId;
-
 
116683
        _fieldName = fieldName;
-
 
116684
      }
-
 
116685
 
-
 
116686
      public short getThriftFieldId() {
-
 
116687
        return _thriftId;
-
 
116688
      }
-
 
116689
 
-
 
116690
      public String getFieldName() {
-
 
116691
        return _fieldName;
-
 
116692
      }
-
 
116693
    }
-
 
116694
 
-
 
116695
    // isset id assignments
-
 
116696
 
-
 
116697
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
116698
    static {
-
 
116699
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
116700
      tmpMap.put(_Fields.PRIVATE_DEAL, new org.apache.thrift.meta_data.FieldMetaData("privateDeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
116701
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PrivateDeal.class)));
-
 
116702
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
116703
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdatePrivateDeal_args.class, metaDataMap);
-
 
116704
    }
-
 
116705
 
-
 
116706
    public addOrUpdatePrivateDeal_args() {
-
 
116707
    }
-
 
116708
 
-
 
116709
    public addOrUpdatePrivateDeal_args(
-
 
116710
      PrivateDeal privateDeal)
-
 
116711
    {
-
 
116712
      this();
-
 
116713
      this.privateDeal = privateDeal;
-
 
116714
    }
-
 
116715
 
-
 
116716
    /**
-
 
116717
     * Performs a deep copy on <i>other</i>.
-
 
116718
     */
-
 
116719
    public addOrUpdatePrivateDeal_args(addOrUpdatePrivateDeal_args other) {
-
 
116720
      if (other.isSetPrivateDeal()) {
-
 
116721
        this.privateDeal = new PrivateDeal(other.privateDeal);
-
 
116722
      }
-
 
116723
    }
-
 
116724
 
-
 
116725
    public addOrUpdatePrivateDeal_args deepCopy() {
-
 
116726
      return new addOrUpdatePrivateDeal_args(this);
-
 
116727
    }
-
 
116728
 
-
 
116729
    @Override
-
 
116730
    public void clear() {
-
 
116731
      this.privateDeal = null;
-
 
116732
    }
-
 
116733
 
-
 
116734
    public PrivateDeal getPrivateDeal() {
-
 
116735
      return this.privateDeal;
-
 
116736
    }
-
 
116737
 
-
 
116738
    public void setPrivateDeal(PrivateDeal privateDeal) {
-
 
116739
      this.privateDeal = privateDeal;
-
 
116740
    }
-
 
116741
 
-
 
116742
    public void unsetPrivateDeal() {
-
 
116743
      this.privateDeal = null;
-
 
116744
    }
-
 
116745
 
-
 
116746
    /** Returns true if field privateDeal is set (has been assigned a value) and false otherwise */
-
 
116747
    public boolean isSetPrivateDeal() {
-
 
116748
      return this.privateDeal != null;
-
 
116749
    }
-
 
116750
 
-
 
116751
    public void setPrivateDealIsSet(boolean value) {
-
 
116752
      if (!value) {
-
 
116753
        this.privateDeal = null;
-
 
116754
      }
-
 
116755
    }
-
 
116756
 
-
 
116757
    public void setFieldValue(_Fields field, Object value) {
-
 
116758
      switch (field) {
-
 
116759
      case PRIVATE_DEAL:
-
 
116760
        if (value == null) {
-
 
116761
          unsetPrivateDeal();
-
 
116762
        } else {
-
 
116763
          setPrivateDeal((PrivateDeal)value);
-
 
116764
        }
-
 
116765
        break;
-
 
116766
 
-
 
116767
      }
-
 
116768
    }
-
 
116769
 
-
 
116770
    public Object getFieldValue(_Fields field) {
-
 
116771
      switch (field) {
-
 
116772
      case PRIVATE_DEAL:
-
 
116773
        return getPrivateDeal();
-
 
116774
 
-
 
116775
      }
-
 
116776
      throw new IllegalStateException();
-
 
116777
    }
-
 
116778
 
-
 
116779
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
116780
    public boolean isSet(_Fields field) {
-
 
116781
      if (field == null) {
-
 
116782
        throw new IllegalArgumentException();
-
 
116783
      }
-
 
116784
 
-
 
116785
      switch (field) {
-
 
116786
      case PRIVATE_DEAL:
-
 
116787
        return isSetPrivateDeal();
-
 
116788
      }
-
 
116789
      throw new IllegalStateException();
-
 
116790
    }
-
 
116791
 
-
 
116792
    @Override
-
 
116793
    public boolean equals(Object that) {
-
 
116794
      if (that == null)
-
 
116795
        return false;
-
 
116796
      if (that instanceof addOrUpdatePrivateDeal_args)
-
 
116797
        return this.equals((addOrUpdatePrivateDeal_args)that);
-
 
116798
      return false;
-
 
116799
    }
-
 
116800
 
-
 
116801
    public boolean equals(addOrUpdatePrivateDeal_args that) {
-
 
116802
      if (that == null)
-
 
116803
        return false;
-
 
116804
 
-
 
116805
      boolean this_present_privateDeal = true && this.isSetPrivateDeal();
-
 
116806
      boolean that_present_privateDeal = true && that.isSetPrivateDeal();
-
 
116807
      if (this_present_privateDeal || that_present_privateDeal) {
-
 
116808
        if (!(this_present_privateDeal && that_present_privateDeal))
-
 
116809
          return false;
-
 
116810
        if (!this.privateDeal.equals(that.privateDeal))
-
 
116811
          return false;
-
 
116812
      }
-
 
116813
 
-
 
116814
      return true;
-
 
116815
    }
-
 
116816
 
-
 
116817
    @Override
-
 
116818
    public int hashCode() {
-
 
116819
      return 0;
-
 
116820
    }
-
 
116821
 
-
 
116822
    public int compareTo(addOrUpdatePrivateDeal_args other) {
-
 
116823
      if (!getClass().equals(other.getClass())) {
-
 
116824
        return getClass().getName().compareTo(other.getClass().getName());
-
 
116825
      }
-
 
116826
 
-
 
116827
      int lastComparison = 0;
-
 
116828
      addOrUpdatePrivateDeal_args typedOther = (addOrUpdatePrivateDeal_args)other;
-
 
116829
 
-
 
116830
      lastComparison = Boolean.valueOf(isSetPrivateDeal()).compareTo(typedOther.isSetPrivateDeal());
-
 
116831
      if (lastComparison != 0) {
-
 
116832
        return lastComparison;
-
 
116833
      }
-
 
116834
      if (isSetPrivateDeal()) {
-
 
116835
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.privateDeal, typedOther.privateDeal);
-
 
116836
        if (lastComparison != 0) {
-
 
116837
          return lastComparison;
-
 
116838
        }
-
 
116839
      }
-
 
116840
      return 0;
-
 
116841
    }
-
 
116842
 
-
 
116843
    public _Fields fieldForId(int fieldId) {
-
 
116844
      return _Fields.findByThriftId(fieldId);
-
 
116845
    }
-
 
116846
 
-
 
116847
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
116848
      org.apache.thrift.protocol.TField field;
-
 
116849
      iprot.readStructBegin();
-
 
116850
      while (true)
-
 
116851
      {
-
 
116852
        field = iprot.readFieldBegin();
-
 
116853
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
116854
          break;
-
 
116855
        }
-
 
116856
        switch (field.id) {
-
 
116857
          case 1: // PRIVATE_DEAL
-
 
116858
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
116859
              this.privateDeal = new PrivateDeal();
-
 
116860
              this.privateDeal.read(iprot);
-
 
116861
            } else { 
-
 
116862
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
116863
            }
-
 
116864
            break;
-
 
116865
          default:
-
 
116866
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
116867
        }
-
 
116868
        iprot.readFieldEnd();
-
 
116869
      }
-
 
116870
      iprot.readStructEnd();
-
 
116871
      validate();
-
 
116872
    }
-
 
116873
 
-
 
116874
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
116875
      validate();
-
 
116876
 
-
 
116877
      oprot.writeStructBegin(STRUCT_DESC);
-
 
116878
      if (this.privateDeal != null) {
-
 
116879
        oprot.writeFieldBegin(PRIVATE_DEAL_FIELD_DESC);
-
 
116880
        this.privateDeal.write(oprot);
-
 
116881
        oprot.writeFieldEnd();
-
 
116882
      }
-
 
116883
      oprot.writeFieldStop();
-
 
116884
      oprot.writeStructEnd();
-
 
116885
    }
-
 
116886
 
-
 
116887
    @Override
-
 
116888
    public String toString() {
-
 
116889
      StringBuilder sb = new StringBuilder("addOrUpdatePrivateDeal_args(");
-
 
116890
      boolean first = true;
-
 
116891
 
-
 
116892
      sb.append("privateDeal:");
-
 
116893
      if (this.privateDeal == null) {
-
 
116894
        sb.append("null");
-
 
116895
      } else {
-
 
116896
        sb.append(this.privateDeal);
-
 
116897
      }
-
 
116898
      first = false;
-
 
116899
      sb.append(")");
-
 
116900
      return sb.toString();
-
 
116901
    }
-
 
116902
 
-
 
116903
    public void validate() throws org.apache.thrift.TException {
-
 
116904
      // check for required fields
-
 
116905
    }
-
 
116906
 
-
 
116907
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
116908
      try {
-
 
116909
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
116910
      } catch (org.apache.thrift.TException te) {
-
 
116911
        throw new java.io.IOException(te);
-
 
116912
      }
-
 
116913
    }
-
 
116914
 
-
 
116915
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
116916
      try {
-
 
116917
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
116918
      } catch (org.apache.thrift.TException te) {
-
 
116919
        throw new java.io.IOException(te);
-
 
116920
      }
-
 
116921
    }
-
 
116922
 
-
 
116923
  }
-
 
116924
 
-
 
116925
  public static class addOrUpdatePrivateDeal_result implements org.apache.thrift.TBase<addOrUpdatePrivateDeal_result, addOrUpdatePrivateDeal_result._Fields>, java.io.Serializable, Cloneable   {
-
 
116926
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdatePrivateDeal_result");
-
 
116927
 
-
 
116928
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
116929
 
-
 
116930
    private boolean success; // required
-
 
116931
 
-
 
116932
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
116933
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
116934
      SUCCESS((short)0, "success");
-
 
116935
 
-
 
116936
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
116937
 
-
 
116938
      static {
-
 
116939
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
116940
          byName.put(field.getFieldName(), field);
-
 
116941
        }
-
 
116942
      }
-
 
116943
 
-
 
116944
      /**
-
 
116945
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
116946
       */
-
 
116947
      public static _Fields findByThriftId(int fieldId) {
-
 
116948
        switch(fieldId) {
-
 
116949
          case 0: // SUCCESS
-
 
116950
            return SUCCESS;
-
 
116951
          default:
-
 
116952
            return null;
-
 
116953
        }
-
 
116954
      }
-
 
116955
 
-
 
116956
      /**
-
 
116957
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
116958
       * if it is not found.
-
 
116959
       */
-
 
116960
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
116961
        _Fields fields = findByThriftId(fieldId);
-
 
116962
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
116963
        return fields;
-
 
116964
      }
-
 
116965
 
-
 
116966
      /**
-
 
116967
       * Find the _Fields constant that matches name, or null if its not found.
-
 
116968
       */
-
 
116969
      public static _Fields findByName(String name) {
-
 
116970
        return byName.get(name);
-
 
116971
      }
-
 
116972
 
-
 
116973
      private final short _thriftId;
-
 
116974
      private final String _fieldName;
-
 
116975
 
-
 
116976
      _Fields(short thriftId, String fieldName) {
-
 
116977
        _thriftId = thriftId;
-
 
116978
        _fieldName = fieldName;
-
 
116979
      }
-
 
116980
 
-
 
116981
      public short getThriftFieldId() {
-
 
116982
        return _thriftId;
-
 
116983
      }
-
 
116984
 
-
 
116985
      public String getFieldName() {
-
 
116986
        return _fieldName;
-
 
116987
      }
-
 
116988
    }
-
 
116989
 
-
 
116990
    // isset id assignments
-
 
116991
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
116992
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
116993
 
-
 
116994
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
116995
    static {
-
 
116996
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
116997
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
116998
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
116999
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
117000
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdatePrivateDeal_result.class, metaDataMap);
-
 
117001
    }
-
 
117002
 
-
 
117003
    public addOrUpdatePrivateDeal_result() {
-
 
117004
    }
-
 
117005
 
-
 
117006
    public addOrUpdatePrivateDeal_result(
-
 
117007
      boolean success)
-
 
117008
    {
-
 
117009
      this();
-
 
117010
      this.success = success;
-
 
117011
      setSuccessIsSet(true);
-
 
117012
    }
-
 
117013
 
-
 
117014
    /**
-
 
117015
     * Performs a deep copy on <i>other</i>.
-
 
117016
     */
-
 
117017
    public addOrUpdatePrivateDeal_result(addOrUpdatePrivateDeal_result other) {
-
 
117018
      __isset_bit_vector.clear();
-
 
117019
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
117020
      this.success = other.success;
-
 
117021
    }
-
 
117022
 
-
 
117023
    public addOrUpdatePrivateDeal_result deepCopy() {
-
 
117024
      return new addOrUpdatePrivateDeal_result(this);
-
 
117025
    }
-
 
117026
 
-
 
117027
    @Override
-
 
117028
    public void clear() {
-
 
117029
      setSuccessIsSet(false);
-
 
117030
      this.success = false;
-
 
117031
    }
-
 
117032
 
-
 
117033
    public boolean isSuccess() {
-
 
117034
      return this.success;
-
 
117035
    }
-
 
117036
 
-
 
117037
    public void setSuccess(boolean success) {
-
 
117038
      this.success = success;
-
 
117039
      setSuccessIsSet(true);
-
 
117040
    }
-
 
117041
 
-
 
117042
    public void unsetSuccess() {
-
 
117043
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
117044
    }
-
 
117045
 
-
 
117046
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
117047
    public boolean isSetSuccess() {
-
 
117048
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
117049
    }
-
 
117050
 
-
 
117051
    public void setSuccessIsSet(boolean value) {
-
 
117052
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
117053
    }
-
 
117054
 
-
 
117055
    public void setFieldValue(_Fields field, Object value) {
-
 
117056
      switch (field) {
-
 
117057
      case SUCCESS:
-
 
117058
        if (value == null) {
-
 
117059
          unsetSuccess();
-
 
117060
        } else {
-
 
117061
          setSuccess((Boolean)value);
-
 
117062
        }
-
 
117063
        break;
-
 
117064
 
-
 
117065
      }
-
 
117066
    }
-
 
117067
 
-
 
117068
    public Object getFieldValue(_Fields field) {
-
 
117069
      switch (field) {
-
 
117070
      case SUCCESS:
-
 
117071
        return Boolean.valueOf(isSuccess());
-
 
117072
 
-
 
117073
      }
-
 
117074
      throw new IllegalStateException();
-
 
117075
    }
-
 
117076
 
-
 
117077
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
117078
    public boolean isSet(_Fields field) {
-
 
117079
      if (field == null) {
-
 
117080
        throw new IllegalArgumentException();
-
 
117081
      }
-
 
117082
 
-
 
117083
      switch (field) {
-
 
117084
      case SUCCESS:
-
 
117085
        return isSetSuccess();
-
 
117086
      }
-
 
117087
      throw new IllegalStateException();
-
 
117088
    }
-
 
117089
 
-
 
117090
    @Override
-
 
117091
    public boolean equals(Object that) {
-
 
117092
      if (that == null)
-
 
117093
        return false;
-
 
117094
      if (that instanceof addOrUpdatePrivateDeal_result)
-
 
117095
        return this.equals((addOrUpdatePrivateDeal_result)that);
-
 
117096
      return false;
-
 
117097
    }
-
 
117098
 
-
 
117099
    public boolean equals(addOrUpdatePrivateDeal_result that) {
-
 
117100
      if (that == null)
-
 
117101
        return false;
-
 
117102
 
-
 
117103
      boolean this_present_success = true;
-
 
117104
      boolean that_present_success = true;
-
 
117105
      if (this_present_success || that_present_success) {
-
 
117106
        if (!(this_present_success && that_present_success))
-
 
117107
          return false;
-
 
117108
        if (this.success != that.success)
-
 
117109
          return false;
-
 
117110
      }
-
 
117111
 
-
 
117112
      return true;
-
 
117113
    }
-
 
117114
 
-
 
117115
    @Override
-
 
117116
    public int hashCode() {
-
 
117117
      return 0;
-
 
117118
    }
-
 
117119
 
-
 
117120
    public int compareTo(addOrUpdatePrivateDeal_result other) {
-
 
117121
      if (!getClass().equals(other.getClass())) {
-
 
117122
        return getClass().getName().compareTo(other.getClass().getName());
-
 
117123
      }
-
 
117124
 
-
 
117125
      int lastComparison = 0;
-
 
117126
      addOrUpdatePrivateDeal_result typedOther = (addOrUpdatePrivateDeal_result)other;
-
 
117127
 
-
 
117128
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
117129
      if (lastComparison != 0) {
-
 
117130
        return lastComparison;
-
 
117131
      }
-
 
117132
      if (isSetSuccess()) {
-
 
117133
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
117134
        if (lastComparison != 0) {
-
 
117135
          return lastComparison;
-
 
117136
        }
-
 
117137
      }
-
 
117138
      return 0;
-
 
117139
    }
-
 
117140
 
-
 
117141
    public _Fields fieldForId(int fieldId) {
-
 
117142
      return _Fields.findByThriftId(fieldId);
-
 
117143
    }
-
 
117144
 
-
 
117145
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
117146
      org.apache.thrift.protocol.TField field;
-
 
117147
      iprot.readStructBegin();
-
 
117148
      while (true)
-
 
117149
      {
-
 
117150
        field = iprot.readFieldBegin();
-
 
117151
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
117152
          break;
-
 
117153
        }
-
 
117154
        switch (field.id) {
-
 
117155
          case 0: // SUCCESS
-
 
117156
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
117157
              this.success = iprot.readBool();
-
 
117158
              setSuccessIsSet(true);
-
 
117159
            } else { 
-
 
117160
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
117161
            }
-
 
117162
            break;
-
 
117163
          default:
-
 
117164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
117165
        }
-
 
117166
        iprot.readFieldEnd();
-
 
117167
      }
-
 
117168
      iprot.readStructEnd();
-
 
117169
      validate();
-
 
117170
    }
-
 
117171
 
-
 
117172
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
117173
      oprot.writeStructBegin(STRUCT_DESC);
-
 
117174
 
-
 
117175
      if (this.isSetSuccess()) {
-
 
117176
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
117177
        oprot.writeBool(this.success);
-
 
117178
        oprot.writeFieldEnd();
-
 
117179
      }
-
 
117180
      oprot.writeFieldStop();
-
 
117181
      oprot.writeStructEnd();
-
 
117182
    }
-
 
117183
 
-
 
117184
    @Override
-
 
117185
    public String toString() {
-
 
117186
      StringBuilder sb = new StringBuilder("addOrUpdatePrivateDeal_result(");
-
 
117187
      boolean first = true;
-
 
117188
 
-
 
117189
      sb.append("success:");
-
 
117190
      sb.append(this.success);
-
 
117191
      first = false;
-
 
117192
      sb.append(")");
-
 
117193
      return sb.toString();
-
 
117194
    }
-
 
117195
 
115079
    public void validate() throws org.apache.thrift.TException {
117196
    public void validate() throws org.apache.thrift.TException {
115080
      // check for required fields
117197
      // check for required fields
115081
    }
117198
    }
115082
 
117199
 
115083
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
117200
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {