Subversion Repositories SmartDukaan

Rev

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

Rev 11592 Rev 11635
Line 546... Line 546...
546
 
546
 
547
    public Map<Long,PrivateDeal> getAllActivePrivateDeals() throws org.apache.thrift.TException;
547
    public Map<Long,PrivateDeal> getAllActivePrivateDeals() throws org.apache.thrift.TException;
548
 
548
 
549
    public boolean addOrUpdatePrivateDeal(PrivateDeal privateDeal) throws org.apache.thrift.TException;
549
    public boolean addOrUpdatePrivateDeal(PrivateDeal privateDeal) throws org.apache.thrift.TException;
550
 
550
 
-
 
551
    public List<Long> getPrivateDealsCatalogIds(long beginIndex, long totalItems) throws CatalogServiceException, org.apache.thrift.TException;
-
 
552
 
551
  }
553
  }
552
 
554
 
553
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
555
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
554
 
556
 
555
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
557
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 876... Line 878...
876
 
878
 
877
    public void getAllActivePrivateDeals(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllActivePrivateDeals_call> resultHandler) throws org.apache.thrift.TException;
879
    public void getAllActivePrivateDeals(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllActivePrivateDeals_call> resultHandler) throws org.apache.thrift.TException;
878
 
880
 
879
    public void addOrUpdatePrivateDeal(PrivateDeal privateDeal, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdatePrivateDeal_call> resultHandler) throws org.apache.thrift.TException;
881
    public void addOrUpdatePrivateDeal(PrivateDeal privateDeal, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdatePrivateDeal_call> resultHandler) throws org.apache.thrift.TException;
880
 
882
 
-
 
883
    public void getPrivateDealsCatalogIds(long beginIndex, long totalItems, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealsCatalogIds_call> resultHandler) throws org.apache.thrift.TException;
-
 
884
 
881
  }
885
  }
882
 
886
 
883
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
887
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
884
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
888
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
885
      public Factory() {}
889
      public Factory() {}
Line 4757... Line 4761...
4757
        return result.success;
4761
        return result.success;
4758
      }
4762
      }
4759
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addOrUpdatePrivateDeal failed: unknown result");
4763
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addOrUpdatePrivateDeal failed: unknown result");
4760
    }
4764
    }
4761
 
4765
 
-
 
4766
    public List<Long> getPrivateDealsCatalogIds(long beginIndex, long totalItems) throws CatalogServiceException, org.apache.thrift.TException
-
 
4767
    {
-
 
4768
      send_getPrivateDealsCatalogIds(beginIndex, totalItems);
-
 
4769
      return recv_getPrivateDealsCatalogIds();
-
 
4770
    }
-
 
4771
 
-
 
4772
    public void send_getPrivateDealsCatalogIds(long beginIndex, long totalItems) throws org.apache.thrift.TException
-
 
4773
    {
-
 
4774
      getPrivateDealsCatalogIds_args args = new getPrivateDealsCatalogIds_args();
-
 
4775
      args.setBeginIndex(beginIndex);
-
 
4776
      args.setTotalItems(totalItems);
-
 
4777
      sendBase("getPrivateDealsCatalogIds", args);
-
 
4778
    }
-
 
4779
 
-
 
4780
    public List<Long> recv_getPrivateDealsCatalogIds() throws CatalogServiceException, org.apache.thrift.TException
-
 
4781
    {
-
 
4782
      getPrivateDealsCatalogIds_result result = new getPrivateDealsCatalogIds_result();
-
 
4783
      receiveBase(result, "getPrivateDealsCatalogIds");
-
 
4784
      if (result.isSetSuccess()) {
-
 
4785
        return result.success;
-
 
4786
      }
-
 
4787
      if (result.cex != null) {
-
 
4788
        throw result.cex;
-
 
4789
      }
-
 
4790
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrivateDealsCatalogIds failed: unknown result");
-
 
4791
    }
-
 
4792
 
4762
  }
4793
  }
4763
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4794
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4764
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4795
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4765
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4796
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4766
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4797
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 10141... Line 10172...
10141
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10172
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10142
        return (new Client(prot)).recv_addOrUpdatePrivateDeal();
10173
        return (new Client(prot)).recv_addOrUpdatePrivateDeal();
10143
      }
10174
      }
10144
    }
10175
    }
10145
 
10176
 
-
 
10177
    public void getPrivateDealsCatalogIds(long beginIndex, long totalItems, org.apache.thrift.async.AsyncMethodCallback<getPrivateDealsCatalogIds_call> resultHandler) throws org.apache.thrift.TException {
-
 
10178
      checkReady();
-
 
10179
      getPrivateDealsCatalogIds_call method_call = new getPrivateDealsCatalogIds_call(beginIndex, totalItems, resultHandler, this, ___protocolFactory, ___transport);
-
 
10180
      this.___currentMethod = method_call;
-
 
10181
      ___manager.call(method_call);
-
 
10182
    }
-
 
10183
 
-
 
10184
    public static class getPrivateDealsCatalogIds_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10185
      private long beginIndex;
-
 
10186
      private long totalItems;
-
 
10187
      public getPrivateDealsCatalogIds_call(long beginIndex, long totalItems, org.apache.thrift.async.AsyncMethodCallback<getPrivateDealsCatalogIds_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 {
-
 
10188
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10189
        this.beginIndex = beginIndex;
-
 
10190
        this.totalItems = totalItems;
-
 
10191
      }
-
 
10192
 
-
 
10193
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10194
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPrivateDealsCatalogIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10195
        getPrivateDealsCatalogIds_args args = new getPrivateDealsCatalogIds_args();
-
 
10196
        args.setBeginIndex(beginIndex);
-
 
10197
        args.setTotalItems(totalItems);
-
 
10198
        args.write(prot);
-
 
10199
        prot.writeMessageEnd();
-
 
10200
      }
-
 
10201
 
-
 
10202
      public List<Long> getResult() throws CatalogServiceException, org.apache.thrift.TException {
-
 
10203
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10204
          throw new IllegalStateException("Method call not finished!");
-
 
10205
        }
-
 
10206
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10207
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10208
        return (new Client(prot)).recv_getPrivateDealsCatalogIds();
-
 
10209
      }
-
 
10210
    }
-
 
10211
 
10146
  }
10212
  }
10147
 
10213
 
10148
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10214
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10149
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10215
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10150
    public Processor(I iface) {
10216
    public Processor(I iface) {
Line 10317... Line 10383...
10317
      processMap.put("getMarketplaceHistoryByDate", new getMarketplaceHistoryByDate());
10383
      processMap.put("getMarketplaceHistoryByDate", new getMarketplaceHistoryByDate());
10318
      processMap.put("getPrivateDealDetails", new getPrivateDealDetails());
10384
      processMap.put("getPrivateDealDetails", new getPrivateDealDetails());
10319
      processMap.put("getPrivateDealItems", new getPrivateDealItems());
10385
      processMap.put("getPrivateDealItems", new getPrivateDealItems());
10320
      processMap.put("getAllActivePrivateDeals", new getAllActivePrivateDeals());
10386
      processMap.put("getAllActivePrivateDeals", new getAllActivePrivateDeals());
10321
      processMap.put("addOrUpdatePrivateDeal", new addOrUpdatePrivateDeal());
10387
      processMap.put("addOrUpdatePrivateDeal", new addOrUpdatePrivateDeal());
-
 
10388
      processMap.put("getPrivateDealsCatalogIds", new getPrivateDealsCatalogIds());
10322
      return processMap;
10389
      return processMap;
10323
    }
10390
    }
10324
 
10391
 
10325
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
10392
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
10326
      public addItem() {
10393
      public addItem() {
Line 13151... Line 13218...
13151
        result.setSuccessIsSet(true);
13218
        result.setSuccessIsSet(true);
13152
        return result;
13219
        return result;
13153
      }
13220
      }
13154
    }
13221
    }
13155
 
13222
 
-
 
13223
    private static class getPrivateDealsCatalogIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPrivateDealsCatalogIds_args> {
-
 
13224
      public getPrivateDealsCatalogIds() {
-
 
13225
        super("getPrivateDealsCatalogIds");
-
 
13226
      }
-
 
13227
 
-
 
13228
      protected getPrivateDealsCatalogIds_args getEmptyArgsInstance() {
-
 
13229
        return new getPrivateDealsCatalogIds_args();
-
 
13230
      }
-
 
13231
 
-
 
13232
      protected getPrivateDealsCatalogIds_result getResult(I iface, getPrivateDealsCatalogIds_args args) throws org.apache.thrift.TException {
-
 
13233
        getPrivateDealsCatalogIds_result result = new getPrivateDealsCatalogIds_result();
-
 
13234
        try {
-
 
13235
          result.success = iface.getPrivateDealsCatalogIds(args.beginIndex, args.totalItems);
-
 
13236
        } catch (CatalogServiceException cex) {
-
 
13237
          result.cex = cex;
-
 
13238
        }
-
 
13239
        return result;
-
 
13240
      }
-
 
13241
    }
-
 
13242
 
13156
  }
13243
  }
13157
 
13244
 
13158
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
13245
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
13159
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
13246
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
13160
 
13247
 
Line 114353... Line 114440...
114353
      }
114440
      }
114354
    }
114441
    }
114355
 
114442
 
114356
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
114443
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
114357
      try {
114444
      try {
-
 
114445
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
114446
        __isset_bit_vector = new BitSet(1);
114358
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
114447
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
114359
      } catch (org.apache.thrift.TException te) {
114448
      } catch (org.apache.thrift.TException te) {
114360
        throw new java.io.IOException(te);
114449
        throw new java.io.IOException(te);
114361
      }
114450
      }
114362
    }
114451
    }
Line 117802... Line 117891...
117802
      first = false;
117891
      first = false;
117803
      sb.append(")");
117892
      sb.append(")");
117804
      return sb.toString();
117893
      return sb.toString();
117805
    }
117894
    }
117806
 
117895
 
-
 
117896
    public void validate() throws org.apache.thrift.TException {
-
 
117897
      // check for required fields
-
 
117898
    }
-
 
117899
 
-
 
117900
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
117901
      try {
-
 
117902
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
117903
      } catch (org.apache.thrift.TException te) {
-
 
117904
        throw new java.io.IOException(te);
-
 
117905
      }
-
 
117906
    }
-
 
117907
 
-
 
117908
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
117909
      try {
-
 
117910
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
117911
      } catch (org.apache.thrift.TException te) {
-
 
117912
        throw new java.io.IOException(te);
-
 
117913
      }
-
 
117914
    }
-
 
117915
 
-
 
117916
  }
-
 
117917
 
-
 
117918
  public static class getPrivateDealsCatalogIds_args implements org.apache.thrift.TBase<getPrivateDealsCatalogIds_args, getPrivateDealsCatalogIds_args._Fields>, java.io.Serializable, Cloneable   {
-
 
117919
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrivateDealsCatalogIds_args");
-
 
117920
 
-
 
117921
    private static final org.apache.thrift.protocol.TField BEGIN_INDEX_FIELD_DESC = new org.apache.thrift.protocol.TField("beginIndex", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
117922
    private static final org.apache.thrift.protocol.TField TOTAL_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("totalItems", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
117923
 
-
 
117924
    private long beginIndex; // required
-
 
117925
    private long totalItems; // required
-
 
117926
 
-
 
117927
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
117928
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
117929
      BEGIN_INDEX((short)1, "beginIndex"),
-
 
117930
      TOTAL_ITEMS((short)2, "totalItems");
-
 
117931
 
-
 
117932
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
117933
 
-
 
117934
      static {
-
 
117935
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
117936
          byName.put(field.getFieldName(), field);
-
 
117937
        }
-
 
117938
      }
-
 
117939
 
-
 
117940
      /**
-
 
117941
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
117942
       */
-
 
117943
      public static _Fields findByThriftId(int fieldId) {
-
 
117944
        switch(fieldId) {
-
 
117945
          case 1: // BEGIN_INDEX
-
 
117946
            return BEGIN_INDEX;
-
 
117947
          case 2: // TOTAL_ITEMS
-
 
117948
            return TOTAL_ITEMS;
-
 
117949
          default:
-
 
117950
            return null;
-
 
117951
        }
-
 
117952
      }
-
 
117953
 
-
 
117954
      /**
-
 
117955
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
117956
       * if it is not found.
-
 
117957
       */
-
 
117958
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
117959
        _Fields fields = findByThriftId(fieldId);
-
 
117960
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
117961
        return fields;
-
 
117962
      }
-
 
117963
 
-
 
117964
      /**
-
 
117965
       * Find the _Fields constant that matches name, or null if its not found.
-
 
117966
       */
-
 
117967
      public static _Fields findByName(String name) {
-
 
117968
        return byName.get(name);
-
 
117969
      }
-
 
117970
 
-
 
117971
      private final short _thriftId;
-
 
117972
      private final String _fieldName;
-
 
117973
 
-
 
117974
      _Fields(short thriftId, String fieldName) {
-
 
117975
        _thriftId = thriftId;
-
 
117976
        _fieldName = fieldName;
-
 
117977
      }
-
 
117978
 
-
 
117979
      public short getThriftFieldId() {
-
 
117980
        return _thriftId;
-
 
117981
      }
-
 
117982
 
-
 
117983
      public String getFieldName() {
-
 
117984
        return _fieldName;
-
 
117985
      }
-
 
117986
    }
-
 
117987
 
-
 
117988
    // isset id assignments
-
 
117989
    private static final int __BEGININDEX_ISSET_ID = 0;
-
 
117990
    private static final int __TOTALITEMS_ISSET_ID = 1;
-
 
117991
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
117992
 
-
 
117993
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
117994
    static {
-
 
117995
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
117996
      tmpMap.put(_Fields.BEGIN_INDEX, new org.apache.thrift.meta_data.FieldMetaData("beginIndex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
117997
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
117998
      tmpMap.put(_Fields.TOTAL_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("totalItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
117999
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
118000
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
118001
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrivateDealsCatalogIds_args.class, metaDataMap);
-
 
118002
    }
-
 
118003
 
-
 
118004
    public getPrivateDealsCatalogIds_args() {
-
 
118005
    }
-
 
118006
 
-
 
118007
    public getPrivateDealsCatalogIds_args(
-
 
118008
      long beginIndex,
-
 
118009
      long totalItems)
-
 
118010
    {
-
 
118011
      this();
-
 
118012
      this.beginIndex = beginIndex;
-
 
118013
      setBeginIndexIsSet(true);
-
 
118014
      this.totalItems = totalItems;
-
 
118015
      setTotalItemsIsSet(true);
-
 
118016
    }
-
 
118017
 
-
 
118018
    /**
-
 
118019
     * Performs a deep copy on <i>other</i>.
-
 
118020
     */
-
 
118021
    public getPrivateDealsCatalogIds_args(getPrivateDealsCatalogIds_args other) {
-
 
118022
      __isset_bit_vector.clear();
-
 
118023
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
118024
      this.beginIndex = other.beginIndex;
-
 
118025
      this.totalItems = other.totalItems;
-
 
118026
    }
-
 
118027
 
-
 
118028
    public getPrivateDealsCatalogIds_args deepCopy() {
-
 
118029
      return new getPrivateDealsCatalogIds_args(this);
-
 
118030
    }
-
 
118031
 
-
 
118032
    @Override
-
 
118033
    public void clear() {
-
 
118034
      setBeginIndexIsSet(false);
-
 
118035
      this.beginIndex = 0;
-
 
118036
      setTotalItemsIsSet(false);
-
 
118037
      this.totalItems = 0;
-
 
118038
    }
-
 
118039
 
-
 
118040
    public long getBeginIndex() {
-
 
118041
      return this.beginIndex;
-
 
118042
    }
-
 
118043
 
-
 
118044
    public void setBeginIndex(long beginIndex) {
-
 
118045
      this.beginIndex = beginIndex;
-
 
118046
      setBeginIndexIsSet(true);
-
 
118047
    }
-
 
118048
 
-
 
118049
    public void unsetBeginIndex() {
-
 
118050
      __isset_bit_vector.clear(__BEGININDEX_ISSET_ID);
-
 
118051
    }
-
 
118052
 
-
 
118053
    /** Returns true if field beginIndex is set (has been assigned a value) and false otherwise */
-
 
118054
    public boolean isSetBeginIndex() {
-
 
118055
      return __isset_bit_vector.get(__BEGININDEX_ISSET_ID);
-
 
118056
    }
-
 
118057
 
-
 
118058
    public void setBeginIndexIsSet(boolean value) {
-
 
118059
      __isset_bit_vector.set(__BEGININDEX_ISSET_ID, value);
-
 
118060
    }
-
 
118061
 
-
 
118062
    public long getTotalItems() {
-
 
118063
      return this.totalItems;
-
 
118064
    }
-
 
118065
 
-
 
118066
    public void setTotalItems(long totalItems) {
-
 
118067
      this.totalItems = totalItems;
-
 
118068
      setTotalItemsIsSet(true);
-
 
118069
    }
-
 
118070
 
-
 
118071
    public void unsetTotalItems() {
-
 
118072
      __isset_bit_vector.clear(__TOTALITEMS_ISSET_ID);
-
 
118073
    }
-
 
118074
 
-
 
118075
    /** Returns true if field totalItems is set (has been assigned a value) and false otherwise */
-
 
118076
    public boolean isSetTotalItems() {
-
 
118077
      return __isset_bit_vector.get(__TOTALITEMS_ISSET_ID);
-
 
118078
    }
-
 
118079
 
-
 
118080
    public void setTotalItemsIsSet(boolean value) {
-
 
118081
      __isset_bit_vector.set(__TOTALITEMS_ISSET_ID, value);
-
 
118082
    }
-
 
118083
 
-
 
118084
    public void setFieldValue(_Fields field, Object value) {
-
 
118085
      switch (field) {
-
 
118086
      case BEGIN_INDEX:
-
 
118087
        if (value == null) {
-
 
118088
          unsetBeginIndex();
-
 
118089
        } else {
-
 
118090
          setBeginIndex((Long)value);
-
 
118091
        }
-
 
118092
        break;
-
 
118093
 
-
 
118094
      case TOTAL_ITEMS:
-
 
118095
        if (value == null) {
-
 
118096
          unsetTotalItems();
-
 
118097
        } else {
-
 
118098
          setTotalItems((Long)value);
-
 
118099
        }
-
 
118100
        break;
-
 
118101
 
-
 
118102
      }
-
 
118103
    }
-
 
118104
 
-
 
118105
    public Object getFieldValue(_Fields field) {
-
 
118106
      switch (field) {
-
 
118107
      case BEGIN_INDEX:
-
 
118108
        return Long.valueOf(getBeginIndex());
-
 
118109
 
-
 
118110
      case TOTAL_ITEMS:
-
 
118111
        return Long.valueOf(getTotalItems());
-
 
118112
 
-
 
118113
      }
-
 
118114
      throw new IllegalStateException();
-
 
118115
    }
-
 
118116
 
-
 
118117
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
118118
    public boolean isSet(_Fields field) {
-
 
118119
      if (field == null) {
-
 
118120
        throw new IllegalArgumentException();
-
 
118121
      }
-
 
118122
 
-
 
118123
      switch (field) {
-
 
118124
      case BEGIN_INDEX:
-
 
118125
        return isSetBeginIndex();
-
 
118126
      case TOTAL_ITEMS:
-
 
118127
        return isSetTotalItems();
-
 
118128
      }
-
 
118129
      throw new IllegalStateException();
-
 
118130
    }
-
 
118131
 
-
 
118132
    @Override
-
 
118133
    public boolean equals(Object that) {
-
 
118134
      if (that == null)
-
 
118135
        return false;
-
 
118136
      if (that instanceof getPrivateDealsCatalogIds_args)
-
 
118137
        return this.equals((getPrivateDealsCatalogIds_args)that);
-
 
118138
      return false;
-
 
118139
    }
-
 
118140
 
-
 
118141
    public boolean equals(getPrivateDealsCatalogIds_args that) {
-
 
118142
      if (that == null)
-
 
118143
        return false;
-
 
118144
 
-
 
118145
      boolean this_present_beginIndex = true;
-
 
118146
      boolean that_present_beginIndex = true;
-
 
118147
      if (this_present_beginIndex || that_present_beginIndex) {
-
 
118148
        if (!(this_present_beginIndex && that_present_beginIndex))
-
 
118149
          return false;
-
 
118150
        if (this.beginIndex != that.beginIndex)
-
 
118151
          return false;
-
 
118152
      }
-
 
118153
 
-
 
118154
      boolean this_present_totalItems = true;
-
 
118155
      boolean that_present_totalItems = true;
-
 
118156
      if (this_present_totalItems || that_present_totalItems) {
-
 
118157
        if (!(this_present_totalItems && that_present_totalItems))
-
 
118158
          return false;
-
 
118159
        if (this.totalItems != that.totalItems)
-
 
118160
          return false;
-
 
118161
      }
-
 
118162
 
-
 
118163
      return true;
-
 
118164
    }
-
 
118165
 
-
 
118166
    @Override
-
 
118167
    public int hashCode() {
-
 
118168
      return 0;
-
 
118169
    }
-
 
118170
 
-
 
118171
    public int compareTo(getPrivateDealsCatalogIds_args other) {
-
 
118172
      if (!getClass().equals(other.getClass())) {
-
 
118173
        return getClass().getName().compareTo(other.getClass().getName());
-
 
118174
      }
-
 
118175
 
-
 
118176
      int lastComparison = 0;
-
 
118177
      getPrivateDealsCatalogIds_args typedOther = (getPrivateDealsCatalogIds_args)other;
-
 
118178
 
-
 
118179
      lastComparison = Boolean.valueOf(isSetBeginIndex()).compareTo(typedOther.isSetBeginIndex());
-
 
118180
      if (lastComparison != 0) {
-
 
118181
        return lastComparison;
-
 
118182
      }
-
 
118183
      if (isSetBeginIndex()) {
-
 
118184
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.beginIndex, typedOther.beginIndex);
-
 
118185
        if (lastComparison != 0) {
-
 
118186
          return lastComparison;
-
 
118187
        }
-
 
118188
      }
-
 
118189
      lastComparison = Boolean.valueOf(isSetTotalItems()).compareTo(typedOther.isSetTotalItems());
-
 
118190
      if (lastComparison != 0) {
-
 
118191
        return lastComparison;
-
 
118192
      }
-
 
118193
      if (isSetTotalItems()) {
-
 
118194
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalItems, typedOther.totalItems);
-
 
118195
        if (lastComparison != 0) {
-
 
118196
          return lastComparison;
-
 
118197
        }
-
 
118198
      }
-
 
118199
      return 0;
-
 
118200
    }
-
 
118201
 
-
 
118202
    public _Fields fieldForId(int fieldId) {
-
 
118203
      return _Fields.findByThriftId(fieldId);
-
 
118204
    }
-
 
118205
 
-
 
118206
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
118207
      org.apache.thrift.protocol.TField field;
-
 
118208
      iprot.readStructBegin();
-
 
118209
      while (true)
-
 
118210
      {
-
 
118211
        field = iprot.readFieldBegin();
-
 
118212
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
118213
          break;
-
 
118214
        }
-
 
118215
        switch (field.id) {
-
 
118216
          case 1: // BEGIN_INDEX
-
 
118217
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
118218
              this.beginIndex = iprot.readI64();
-
 
118219
              setBeginIndexIsSet(true);
-
 
118220
            } else { 
-
 
118221
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
118222
            }
-
 
118223
            break;
-
 
118224
          case 2: // TOTAL_ITEMS
-
 
118225
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
118226
              this.totalItems = iprot.readI64();
-
 
118227
              setTotalItemsIsSet(true);
-
 
118228
            } else { 
-
 
118229
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
118230
            }
-
 
118231
            break;
-
 
118232
          default:
-
 
118233
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
118234
        }
-
 
118235
        iprot.readFieldEnd();
-
 
118236
      }
-
 
118237
      iprot.readStructEnd();
-
 
118238
      validate();
-
 
118239
    }
-
 
118240
 
-
 
118241
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
118242
      validate();
-
 
118243
 
-
 
118244
      oprot.writeStructBegin(STRUCT_DESC);
-
 
118245
      oprot.writeFieldBegin(BEGIN_INDEX_FIELD_DESC);
-
 
118246
      oprot.writeI64(this.beginIndex);
-
 
118247
      oprot.writeFieldEnd();
-
 
118248
      oprot.writeFieldBegin(TOTAL_ITEMS_FIELD_DESC);
-
 
118249
      oprot.writeI64(this.totalItems);
-
 
118250
      oprot.writeFieldEnd();
-
 
118251
      oprot.writeFieldStop();
-
 
118252
      oprot.writeStructEnd();
-
 
118253
    }
-
 
118254
 
-
 
118255
    @Override
-
 
118256
    public String toString() {
-
 
118257
      StringBuilder sb = new StringBuilder("getPrivateDealsCatalogIds_args(");
-
 
118258
      boolean first = true;
-
 
118259
 
-
 
118260
      sb.append("beginIndex:");
-
 
118261
      sb.append(this.beginIndex);
-
 
118262
      first = false;
-
 
118263
      if (!first) sb.append(", ");
-
 
118264
      sb.append("totalItems:");
-
 
118265
      sb.append(this.totalItems);
-
 
118266
      first = false;
-
 
118267
      sb.append(")");
-
 
118268
      return sb.toString();
-
 
118269
    }
-
 
118270
 
-
 
118271
    public void validate() throws org.apache.thrift.TException {
-
 
118272
      // check for required fields
-
 
118273
    }
-
 
118274
 
-
 
118275
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
118276
      try {
-
 
118277
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
118278
      } catch (org.apache.thrift.TException te) {
-
 
118279
        throw new java.io.IOException(te);
-
 
118280
      }
-
 
118281
    }
-
 
118282
 
-
 
118283
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
118284
      try {
-
 
118285
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
118286
        __isset_bit_vector = new BitSet(1);
-
 
118287
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
118288
      } catch (org.apache.thrift.TException te) {
-
 
118289
        throw new java.io.IOException(te);
-
 
118290
      }
-
 
118291
    }
-
 
118292
 
-
 
118293
  }
-
 
118294
 
-
 
118295
  public static class getPrivateDealsCatalogIds_result implements org.apache.thrift.TBase<getPrivateDealsCatalogIds_result, getPrivateDealsCatalogIds_result._Fields>, java.io.Serializable, Cloneable   {
-
 
118296
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrivateDealsCatalogIds_result");
-
 
118297
 
-
 
118298
    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);
-
 
118299
    private static final org.apache.thrift.protocol.TField CEX_FIELD_DESC = new org.apache.thrift.protocol.TField("cex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
118300
 
-
 
118301
    private List<Long> success; // required
-
 
118302
    private CatalogServiceException cex; // required
-
 
118303
 
-
 
118304
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
118305
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
118306
      SUCCESS((short)0, "success"),
-
 
118307
      CEX((short)1, "cex");
-
 
118308
 
-
 
118309
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
118310
 
-
 
118311
      static {
-
 
118312
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
118313
          byName.put(field.getFieldName(), field);
-
 
118314
        }
-
 
118315
      }
-
 
118316
 
-
 
118317
      /**
-
 
118318
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
118319
       */
-
 
118320
      public static _Fields findByThriftId(int fieldId) {
-
 
118321
        switch(fieldId) {
-
 
118322
          case 0: // SUCCESS
-
 
118323
            return SUCCESS;
-
 
118324
          case 1: // CEX
-
 
118325
            return CEX;
-
 
118326
          default:
-
 
118327
            return null;
-
 
118328
        }
-
 
118329
      }
-
 
118330
 
-
 
118331
      /**
-
 
118332
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
118333
       * if it is not found.
-
 
118334
       */
-
 
118335
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
118336
        _Fields fields = findByThriftId(fieldId);
-
 
118337
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
118338
        return fields;
-
 
118339
      }
-
 
118340
 
-
 
118341
      /**
-
 
118342
       * Find the _Fields constant that matches name, or null if its not found.
-
 
118343
       */
-
 
118344
      public static _Fields findByName(String name) {
-
 
118345
        return byName.get(name);
-
 
118346
      }
-
 
118347
 
-
 
118348
      private final short _thriftId;
-
 
118349
      private final String _fieldName;
-
 
118350
 
-
 
118351
      _Fields(short thriftId, String fieldName) {
-
 
118352
        _thriftId = thriftId;
-
 
118353
        _fieldName = fieldName;
-
 
118354
      }
-
 
118355
 
-
 
118356
      public short getThriftFieldId() {
-
 
118357
        return _thriftId;
-
 
118358
      }
-
 
118359
 
-
 
118360
      public String getFieldName() {
-
 
118361
        return _fieldName;
-
 
118362
      }
-
 
118363
    }
-
 
118364
 
-
 
118365
    // isset id assignments
-
 
118366
 
-
 
118367
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
118368
    static {
-
 
118369
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
118370
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
118371
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
118372
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
118373
      tmpMap.put(_Fields.CEX, new org.apache.thrift.meta_data.FieldMetaData("cex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
118374
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
118375
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
118376
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrivateDealsCatalogIds_result.class, metaDataMap);
-
 
118377
    }
-
 
118378
 
-
 
118379
    public getPrivateDealsCatalogIds_result() {
-
 
118380
    }
-
 
118381
 
-
 
118382
    public getPrivateDealsCatalogIds_result(
-
 
118383
      List<Long> success,
-
 
118384
      CatalogServiceException cex)
-
 
118385
    {
-
 
118386
      this();
-
 
118387
      this.success = success;
-
 
118388
      this.cex = cex;
-
 
118389
    }
-
 
118390
 
-
 
118391
    /**
-
 
118392
     * Performs a deep copy on <i>other</i>.
-
 
118393
     */
-
 
118394
    public getPrivateDealsCatalogIds_result(getPrivateDealsCatalogIds_result other) {
-
 
118395
      if (other.isSetSuccess()) {
-
 
118396
        List<Long> __this__success = new ArrayList<Long>();
-
 
118397
        for (Long other_element : other.success) {
-
 
118398
          __this__success.add(other_element);
-
 
118399
        }
-
 
118400
        this.success = __this__success;
-
 
118401
      }
-
 
118402
      if (other.isSetCex()) {
-
 
118403
        this.cex = new CatalogServiceException(other.cex);
-
 
118404
      }
-
 
118405
    }
-
 
118406
 
-
 
118407
    public getPrivateDealsCatalogIds_result deepCopy() {
-
 
118408
      return new getPrivateDealsCatalogIds_result(this);
-
 
118409
    }
-
 
118410
 
-
 
118411
    @Override
-
 
118412
    public void clear() {
-
 
118413
      this.success = null;
-
 
118414
      this.cex = null;
-
 
118415
    }
-
 
118416
 
-
 
118417
    public int getSuccessSize() {
-
 
118418
      return (this.success == null) ? 0 : this.success.size();
-
 
118419
    }
-
 
118420
 
-
 
118421
    public java.util.Iterator<Long> getSuccessIterator() {
-
 
118422
      return (this.success == null) ? null : this.success.iterator();
-
 
118423
    }
-
 
118424
 
-
 
118425
    public void addToSuccess(long elem) {
-
 
118426
      if (this.success == null) {
-
 
118427
        this.success = new ArrayList<Long>();
-
 
118428
      }
-
 
118429
      this.success.add(elem);
-
 
118430
    }
-
 
118431
 
-
 
118432
    public List<Long> getSuccess() {
-
 
118433
      return this.success;
-
 
118434
    }
-
 
118435
 
-
 
118436
    public void setSuccess(List<Long> success) {
-
 
118437
      this.success = success;
-
 
118438
    }
-
 
118439
 
-
 
118440
    public void unsetSuccess() {
-
 
118441
      this.success = null;
-
 
118442
    }
-
 
118443
 
-
 
118444
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
118445
    public boolean isSetSuccess() {
-
 
118446
      return this.success != null;
-
 
118447
    }
-
 
118448
 
-
 
118449
    public void setSuccessIsSet(boolean value) {
-
 
118450
      if (!value) {
-
 
118451
        this.success = null;
-
 
118452
      }
-
 
118453
    }
-
 
118454
 
-
 
118455
    public CatalogServiceException getCex() {
-
 
118456
      return this.cex;
-
 
118457
    }
-
 
118458
 
-
 
118459
    public void setCex(CatalogServiceException cex) {
-
 
118460
      this.cex = cex;
-
 
118461
    }
-
 
118462
 
-
 
118463
    public void unsetCex() {
-
 
118464
      this.cex = null;
-
 
118465
    }
-
 
118466
 
-
 
118467
    /** Returns true if field cex is set (has been assigned a value) and false otherwise */
-
 
118468
    public boolean isSetCex() {
-
 
118469
      return this.cex != null;
-
 
118470
    }
-
 
118471
 
-
 
118472
    public void setCexIsSet(boolean value) {
-
 
118473
      if (!value) {
-
 
118474
        this.cex = null;
-
 
118475
      }
-
 
118476
    }
-
 
118477
 
-
 
118478
    public void setFieldValue(_Fields field, Object value) {
-
 
118479
      switch (field) {
-
 
118480
      case SUCCESS:
-
 
118481
        if (value == null) {
-
 
118482
          unsetSuccess();
-
 
118483
        } else {
-
 
118484
          setSuccess((List<Long>)value);
-
 
118485
        }
-
 
118486
        break;
-
 
118487
 
-
 
118488
      case CEX:
-
 
118489
        if (value == null) {
-
 
118490
          unsetCex();
-
 
118491
        } else {
-
 
118492
          setCex((CatalogServiceException)value);
-
 
118493
        }
-
 
118494
        break;
-
 
118495
 
-
 
118496
      }
-
 
118497
    }
-
 
118498
 
-
 
118499
    public Object getFieldValue(_Fields field) {
-
 
118500
      switch (field) {
-
 
118501
      case SUCCESS:
-
 
118502
        return getSuccess();
-
 
118503
 
-
 
118504
      case CEX:
-
 
118505
        return getCex();
-
 
118506
 
-
 
118507
      }
-
 
118508
      throw new IllegalStateException();
-
 
118509
    }
-
 
118510
 
-
 
118511
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
118512
    public boolean isSet(_Fields field) {
-
 
118513
      if (field == null) {
-
 
118514
        throw new IllegalArgumentException();
-
 
118515
      }
-
 
118516
 
-
 
118517
      switch (field) {
-
 
118518
      case SUCCESS:
-
 
118519
        return isSetSuccess();
-
 
118520
      case CEX:
-
 
118521
        return isSetCex();
-
 
118522
      }
-
 
118523
      throw new IllegalStateException();
-
 
118524
    }
-
 
118525
 
-
 
118526
    @Override
-
 
118527
    public boolean equals(Object that) {
-
 
118528
      if (that == null)
-
 
118529
        return false;
-
 
118530
      if (that instanceof getPrivateDealsCatalogIds_result)
-
 
118531
        return this.equals((getPrivateDealsCatalogIds_result)that);
-
 
118532
      return false;
-
 
118533
    }
-
 
118534
 
-
 
118535
    public boolean equals(getPrivateDealsCatalogIds_result that) {
-
 
118536
      if (that == null)
-
 
118537
        return false;
-
 
118538
 
-
 
118539
      boolean this_present_success = true && this.isSetSuccess();
-
 
118540
      boolean that_present_success = true && that.isSetSuccess();
-
 
118541
      if (this_present_success || that_present_success) {
-
 
118542
        if (!(this_present_success && that_present_success))
-
 
118543
          return false;
-
 
118544
        if (!this.success.equals(that.success))
-
 
118545
          return false;
-
 
118546
      }
-
 
118547
 
-
 
118548
      boolean this_present_cex = true && this.isSetCex();
-
 
118549
      boolean that_present_cex = true && that.isSetCex();
-
 
118550
      if (this_present_cex || that_present_cex) {
-
 
118551
        if (!(this_present_cex && that_present_cex))
-
 
118552
          return false;
-
 
118553
        if (!this.cex.equals(that.cex))
-
 
118554
          return false;
-
 
118555
      }
-
 
118556
 
-
 
118557
      return true;
-
 
118558
    }
-
 
118559
 
-
 
118560
    @Override
-
 
118561
    public int hashCode() {
-
 
118562
      return 0;
-
 
118563
    }
-
 
118564
 
-
 
118565
    public int compareTo(getPrivateDealsCatalogIds_result other) {
-
 
118566
      if (!getClass().equals(other.getClass())) {
-
 
118567
        return getClass().getName().compareTo(other.getClass().getName());
-
 
118568
      }
-
 
118569
 
-
 
118570
      int lastComparison = 0;
-
 
118571
      getPrivateDealsCatalogIds_result typedOther = (getPrivateDealsCatalogIds_result)other;
-
 
118572
 
-
 
118573
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
118574
      if (lastComparison != 0) {
-
 
118575
        return lastComparison;
-
 
118576
      }
-
 
118577
      if (isSetSuccess()) {
-
 
118578
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
118579
        if (lastComparison != 0) {
-
 
118580
          return lastComparison;
-
 
118581
        }
-
 
118582
      }
-
 
118583
      lastComparison = Boolean.valueOf(isSetCex()).compareTo(typedOther.isSetCex());
-
 
118584
      if (lastComparison != 0) {
-
 
118585
        return lastComparison;
-
 
118586
      }
-
 
118587
      if (isSetCex()) {
-
 
118588
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cex, typedOther.cex);
-
 
118589
        if (lastComparison != 0) {
-
 
118590
          return lastComparison;
-
 
118591
        }
-
 
118592
      }
-
 
118593
      return 0;
-
 
118594
    }
-
 
118595
 
-
 
118596
    public _Fields fieldForId(int fieldId) {
-
 
118597
      return _Fields.findByThriftId(fieldId);
-
 
118598
    }
-
 
118599
 
-
 
118600
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
118601
      org.apache.thrift.protocol.TField field;
-
 
118602
      iprot.readStructBegin();
-
 
118603
      while (true)
-
 
118604
      {
-
 
118605
        field = iprot.readFieldBegin();
-
 
118606
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
118607
          break;
-
 
118608
        }
-
 
118609
        switch (field.id) {
-
 
118610
          case 0: // SUCCESS
-
 
118611
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
118612
              {
-
 
118613
                org.apache.thrift.protocol.TList _list378 = iprot.readListBegin();
-
 
118614
                this.success = new ArrayList<Long>(_list378.size);
-
 
118615
                for (int _i379 = 0; _i379 < _list378.size; ++_i379)
-
 
118616
                {
-
 
118617
                  long _elem380; // required
-
 
118618
                  _elem380 = iprot.readI64();
-
 
118619
                  this.success.add(_elem380);
-
 
118620
                }
-
 
118621
                iprot.readListEnd();
-
 
118622
              }
-
 
118623
            } else { 
-
 
118624
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
118625
            }
-
 
118626
            break;
-
 
118627
          case 1: // CEX
-
 
118628
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
118629
              this.cex = new CatalogServiceException();
-
 
118630
              this.cex.read(iprot);
-
 
118631
            } else { 
-
 
118632
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
118633
            }
-
 
118634
            break;
-
 
118635
          default:
-
 
118636
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
118637
        }
-
 
118638
        iprot.readFieldEnd();
-
 
118639
      }
-
 
118640
      iprot.readStructEnd();
-
 
118641
      validate();
-
 
118642
    }
-
 
118643
 
-
 
118644
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
118645
      oprot.writeStructBegin(STRUCT_DESC);
-
 
118646
 
-
 
118647
      if (this.isSetSuccess()) {
-
 
118648
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
118649
        {
-
 
118650
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
118651
          for (long _iter381 : this.success)
-
 
118652
          {
-
 
118653
            oprot.writeI64(_iter381);
-
 
118654
          }
-
 
118655
          oprot.writeListEnd();
-
 
118656
        }
-
 
118657
        oprot.writeFieldEnd();
-
 
118658
      } else if (this.isSetCex()) {
-
 
118659
        oprot.writeFieldBegin(CEX_FIELD_DESC);
-
 
118660
        this.cex.write(oprot);
-
 
118661
        oprot.writeFieldEnd();
-
 
118662
      }
-
 
118663
      oprot.writeFieldStop();
-
 
118664
      oprot.writeStructEnd();
-
 
118665
    }
-
 
118666
 
-
 
118667
    @Override
-
 
118668
    public String toString() {
-
 
118669
      StringBuilder sb = new StringBuilder("getPrivateDealsCatalogIds_result(");
-
 
118670
      boolean first = true;
-
 
118671
 
-
 
118672
      sb.append("success:");
-
 
118673
      if (this.success == null) {
-
 
118674
        sb.append("null");
-
 
118675
      } else {
-
 
118676
        sb.append(this.success);
-
 
118677
      }
-
 
118678
      first = false;
-
 
118679
      if (!first) sb.append(", ");
-
 
118680
      sb.append("cex:");
-
 
118681
      if (this.cex == null) {
-
 
118682
        sb.append("null");
-
 
118683
      } else {
-
 
118684
        sb.append(this.cex);
-
 
118685
      }
-
 
118686
      first = false;
-
 
118687
      sb.append(")");
-
 
118688
      return sb.toString();
-
 
118689
    }
-
 
118690
 
117807
    public void validate() throws org.apache.thrift.TException {
118691
    public void validate() throws org.apache.thrift.TException {
117808
      // check for required fields
118692
      // check for required fields
117809
    }
118693
    }
117810
 
118694
 
117811
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
118695
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {