Subversion Repositories SmartDukaan

Rev

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

Rev 11635 Rev 11645
Line 548... Line 548...
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;
551
    public List<Long> getPrivateDealsCatalogIds(long beginIndex, long totalItems) throws CatalogServiceException, org.apache.thrift.TException;
552
 
552
 
-
 
553
    public int getPrivateDealsCount() throws org.apache.thrift.TException;
-
 
554
 
553
  }
555
  }
554
 
556
 
555
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
557
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
556
 
558
 
557
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
559
    public void addItem(Item item, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItem_call> resultHandler) throws org.apache.thrift.TException;
Line 880... Line 882...
880
 
882
 
881
    public void addOrUpdatePrivateDeal(PrivateDeal privateDeal, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdatePrivateDeal_call> resultHandler) throws org.apache.thrift.TException;
883
    public void addOrUpdatePrivateDeal(PrivateDeal privateDeal, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdatePrivateDeal_call> resultHandler) throws org.apache.thrift.TException;
882
 
884
 
883
    public void getPrivateDealsCatalogIds(long beginIndex, long totalItems, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealsCatalogIds_call> resultHandler) throws org.apache.thrift.TException;
885
    public void getPrivateDealsCatalogIds(long beginIndex, long totalItems, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealsCatalogIds_call> resultHandler) throws org.apache.thrift.TException;
884
 
886
 
-
 
887
    public void getPrivateDealsCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPrivateDealsCount_call> resultHandler) throws org.apache.thrift.TException;
-
 
888
 
885
  }
889
  }
886
 
890
 
887
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
891
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
888
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
892
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
889
      public Factory() {}
893
      public Factory() {}
Line 4788... Line 4792...
4788
        throw result.cex;
4792
        throw result.cex;
4789
      }
4793
      }
4790
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrivateDealsCatalogIds failed: unknown result");
4794
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrivateDealsCatalogIds failed: unknown result");
4791
    }
4795
    }
4792
 
4796
 
-
 
4797
    public int getPrivateDealsCount() throws org.apache.thrift.TException
-
 
4798
    {
-
 
4799
      send_getPrivateDealsCount();
-
 
4800
      return recv_getPrivateDealsCount();
-
 
4801
    }
-
 
4802
 
-
 
4803
    public void send_getPrivateDealsCount() throws org.apache.thrift.TException
-
 
4804
    {
-
 
4805
      getPrivateDealsCount_args args = new getPrivateDealsCount_args();
-
 
4806
      sendBase("getPrivateDealsCount", args);
-
 
4807
    }
-
 
4808
 
-
 
4809
    public int recv_getPrivateDealsCount() throws org.apache.thrift.TException
-
 
4810
    {
-
 
4811
      getPrivateDealsCount_result result = new getPrivateDealsCount_result();
-
 
4812
      receiveBase(result, "getPrivateDealsCount");
-
 
4813
      if (result.isSetSuccess()) {
-
 
4814
        return result.success;
-
 
4815
      }
-
 
4816
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPrivateDealsCount failed: unknown result");
-
 
4817
    }
-
 
4818
 
4793
  }
4819
  }
4794
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4820
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
4795
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4821
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
4796
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4822
      private org.apache.thrift.async.TAsyncClientManager clientManager;
4797
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
4823
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 10207... Line 10233...
10207
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10233
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10208
        return (new Client(prot)).recv_getPrivateDealsCatalogIds();
10234
        return (new Client(prot)).recv_getPrivateDealsCatalogIds();
10209
      }
10235
      }
10210
    }
10236
    }
10211
 
10237
 
-
 
10238
    public void getPrivateDealsCount(org.apache.thrift.async.AsyncMethodCallback<getPrivateDealsCount_call> resultHandler) throws org.apache.thrift.TException {
-
 
10239
      checkReady();
-
 
10240
      getPrivateDealsCount_call method_call = new getPrivateDealsCount_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
10241
      this.___currentMethod = method_call;
-
 
10242
      ___manager.call(method_call);
-
 
10243
    }
-
 
10244
 
-
 
10245
    public static class getPrivateDealsCount_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
10246
      public getPrivateDealsCount_call(org.apache.thrift.async.AsyncMethodCallback<getPrivateDealsCount_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 {
-
 
10247
        super(client, protocolFactory, transport, resultHandler, false);
-
 
10248
      }
-
 
10249
 
-
 
10250
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
10251
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPrivateDealsCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
10252
        getPrivateDealsCount_args args = new getPrivateDealsCount_args();
-
 
10253
        args.write(prot);
-
 
10254
        prot.writeMessageEnd();
-
 
10255
      }
-
 
10256
 
-
 
10257
      public int getResult() throws org.apache.thrift.TException {
-
 
10258
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
10259
          throw new IllegalStateException("Method call not finished!");
-
 
10260
        }
-
 
10261
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
10262
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
10263
        return (new Client(prot)).recv_getPrivateDealsCount();
-
 
10264
      }
-
 
10265
    }
-
 
10266
 
10212
  }
10267
  }
10213
 
10268
 
10214
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10269
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
10215
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10270
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
10216
    public Processor(I iface) {
10271
    public Processor(I iface) {
Line 10384... Line 10439...
10384
      processMap.put("getPrivateDealDetails", new getPrivateDealDetails());
10439
      processMap.put("getPrivateDealDetails", new getPrivateDealDetails());
10385
      processMap.put("getPrivateDealItems", new getPrivateDealItems());
10440
      processMap.put("getPrivateDealItems", new getPrivateDealItems());
10386
      processMap.put("getAllActivePrivateDeals", new getAllActivePrivateDeals());
10441
      processMap.put("getAllActivePrivateDeals", new getAllActivePrivateDeals());
10387
      processMap.put("addOrUpdatePrivateDeal", new addOrUpdatePrivateDeal());
10442
      processMap.put("addOrUpdatePrivateDeal", new addOrUpdatePrivateDeal());
10388
      processMap.put("getPrivateDealsCatalogIds", new getPrivateDealsCatalogIds());
10443
      processMap.put("getPrivateDealsCatalogIds", new getPrivateDealsCatalogIds());
-
 
10444
      processMap.put("getPrivateDealsCount", new getPrivateDealsCount());
10389
      return processMap;
10445
      return processMap;
10390
    }
10446
    }
10391
 
10447
 
10392
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
10448
    private static class addItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItem_args> {
10393
      public addItem() {
10449
      public addItem() {
Line 13238... Line 13294...
13238
        }
13294
        }
13239
        return result;
13295
        return result;
13240
      }
13296
      }
13241
    }
13297
    }
13242
 
13298
 
-
 
13299
    private static class getPrivateDealsCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPrivateDealsCount_args> {
-
 
13300
      public getPrivateDealsCount() {
-
 
13301
        super("getPrivateDealsCount");
-
 
13302
      }
-
 
13303
 
-
 
13304
      protected getPrivateDealsCount_args getEmptyArgsInstance() {
-
 
13305
        return new getPrivateDealsCount_args();
-
 
13306
      }
-
 
13307
 
-
 
13308
      protected getPrivateDealsCount_result getResult(I iface, getPrivateDealsCount_args args) throws org.apache.thrift.TException {
-
 
13309
        getPrivateDealsCount_result result = new getPrivateDealsCount_result();
-
 
13310
        result.success = iface.getPrivateDealsCount();
-
 
13311
        result.setSuccessIsSet(true);
-
 
13312
        return result;
-
 
13313
      }
-
 
13314
    }
-
 
13315
 
13243
  }
13316
  }
13244
 
13317
 
13245
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
13318
  public static class addItem_args implements org.apache.thrift.TBase<addItem_args, addItem_args._Fields>, java.io.Serializable, Cloneable   {
13246
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
13319
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItem_args");
13247
 
13320
 
Line 114440... Line 114513...
114440
      }
114513
      }
114441
    }
114514
    }
114442
 
114515
 
114443
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
114516
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
114444
      try {
114517
      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);
-
 
114447
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
114518
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
114448
      } catch (org.apache.thrift.TException te) {
114519
      } catch (org.apache.thrift.TException te) {
114449
        throw new java.io.IOException(te);
114520
        throw new java.io.IOException(te);
114450
      }
114521
      }
114451
    }
114522
    }
Line 118686... Line 118757...
118686
      first = false;
118757
      first = false;
118687
      sb.append(")");
118758
      sb.append(")");
118688
      return sb.toString();
118759
      return sb.toString();
118689
    }
118760
    }
118690
 
118761
 
-
 
118762
    public void validate() throws org.apache.thrift.TException {
-
 
118763
      // check for required fields
-
 
118764
    }
-
 
118765
 
-
 
118766
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
118767
      try {
-
 
118768
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
118769
      } catch (org.apache.thrift.TException te) {
-
 
118770
        throw new java.io.IOException(te);
-
 
118771
      }
-
 
118772
    }
-
 
118773
 
-
 
118774
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
118775
      try {
-
 
118776
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
118777
      } catch (org.apache.thrift.TException te) {
-
 
118778
        throw new java.io.IOException(te);
-
 
118779
      }
-
 
118780
    }
-
 
118781
 
-
 
118782
  }
-
 
118783
 
-
 
118784
  public static class getPrivateDealsCount_args implements org.apache.thrift.TBase<getPrivateDealsCount_args, getPrivateDealsCount_args._Fields>, java.io.Serializable, Cloneable   {
-
 
118785
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrivateDealsCount_args");
-
 
118786
 
-
 
118787
 
-
 
118788
 
-
 
118789
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
118790
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
118791
;
-
 
118792
 
-
 
118793
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
118794
 
-
 
118795
      static {
-
 
118796
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
118797
          byName.put(field.getFieldName(), field);
-
 
118798
        }
-
 
118799
      }
-
 
118800
 
-
 
118801
      /**
-
 
118802
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
118803
       */
-
 
118804
      public static _Fields findByThriftId(int fieldId) {
-
 
118805
        switch(fieldId) {
-
 
118806
          default:
-
 
118807
            return null;
-
 
118808
        }
-
 
118809
      }
-
 
118810
 
-
 
118811
      /**
-
 
118812
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
118813
       * if it is not found.
-
 
118814
       */
-
 
118815
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
118816
        _Fields fields = findByThriftId(fieldId);
-
 
118817
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
118818
        return fields;
-
 
118819
      }
-
 
118820
 
-
 
118821
      /**
-
 
118822
       * Find the _Fields constant that matches name, or null if its not found.
-
 
118823
       */
-
 
118824
      public static _Fields findByName(String name) {
-
 
118825
        return byName.get(name);
-
 
118826
      }
-
 
118827
 
-
 
118828
      private final short _thriftId;
-
 
118829
      private final String _fieldName;
-
 
118830
 
-
 
118831
      _Fields(short thriftId, String fieldName) {
-
 
118832
        _thriftId = thriftId;
-
 
118833
        _fieldName = fieldName;
-
 
118834
      }
-
 
118835
 
-
 
118836
      public short getThriftFieldId() {
-
 
118837
        return _thriftId;
-
 
118838
      }
-
 
118839
 
-
 
118840
      public String getFieldName() {
-
 
118841
        return _fieldName;
-
 
118842
      }
-
 
118843
    }
-
 
118844
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
118845
    static {
-
 
118846
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
118847
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
118848
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrivateDealsCount_args.class, metaDataMap);
-
 
118849
    }
-
 
118850
 
-
 
118851
    public getPrivateDealsCount_args() {
-
 
118852
    }
-
 
118853
 
-
 
118854
    /**
-
 
118855
     * Performs a deep copy on <i>other</i>.
-
 
118856
     */
-
 
118857
    public getPrivateDealsCount_args(getPrivateDealsCount_args other) {
-
 
118858
    }
-
 
118859
 
-
 
118860
    public getPrivateDealsCount_args deepCopy() {
-
 
118861
      return new getPrivateDealsCount_args(this);
-
 
118862
    }
-
 
118863
 
-
 
118864
    @Override
-
 
118865
    public void clear() {
-
 
118866
    }
-
 
118867
 
-
 
118868
    public void setFieldValue(_Fields field, Object value) {
-
 
118869
      switch (field) {
-
 
118870
      }
-
 
118871
    }
-
 
118872
 
-
 
118873
    public Object getFieldValue(_Fields field) {
-
 
118874
      switch (field) {
-
 
118875
      }
-
 
118876
      throw new IllegalStateException();
-
 
118877
    }
-
 
118878
 
-
 
118879
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
118880
    public boolean isSet(_Fields field) {
-
 
118881
      if (field == null) {
-
 
118882
        throw new IllegalArgumentException();
-
 
118883
      }
-
 
118884
 
-
 
118885
      switch (field) {
-
 
118886
      }
-
 
118887
      throw new IllegalStateException();
-
 
118888
    }
-
 
118889
 
-
 
118890
    @Override
-
 
118891
    public boolean equals(Object that) {
-
 
118892
      if (that == null)
-
 
118893
        return false;
-
 
118894
      if (that instanceof getPrivateDealsCount_args)
-
 
118895
        return this.equals((getPrivateDealsCount_args)that);
-
 
118896
      return false;
-
 
118897
    }
-
 
118898
 
-
 
118899
    public boolean equals(getPrivateDealsCount_args that) {
-
 
118900
      if (that == null)
-
 
118901
        return false;
-
 
118902
 
-
 
118903
      return true;
-
 
118904
    }
-
 
118905
 
-
 
118906
    @Override
-
 
118907
    public int hashCode() {
-
 
118908
      return 0;
-
 
118909
    }
-
 
118910
 
-
 
118911
    public int compareTo(getPrivateDealsCount_args other) {
-
 
118912
      if (!getClass().equals(other.getClass())) {
-
 
118913
        return getClass().getName().compareTo(other.getClass().getName());
-
 
118914
      }
-
 
118915
 
-
 
118916
      int lastComparison = 0;
-
 
118917
      getPrivateDealsCount_args typedOther = (getPrivateDealsCount_args)other;
-
 
118918
 
-
 
118919
      return 0;
-
 
118920
    }
-
 
118921
 
-
 
118922
    public _Fields fieldForId(int fieldId) {
-
 
118923
      return _Fields.findByThriftId(fieldId);
-
 
118924
    }
-
 
118925
 
-
 
118926
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
118927
      org.apache.thrift.protocol.TField field;
-
 
118928
      iprot.readStructBegin();
-
 
118929
      while (true)
-
 
118930
      {
-
 
118931
        field = iprot.readFieldBegin();
-
 
118932
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
118933
          break;
-
 
118934
        }
-
 
118935
        switch (field.id) {
-
 
118936
          default:
-
 
118937
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
118938
        }
-
 
118939
        iprot.readFieldEnd();
-
 
118940
      }
-
 
118941
      iprot.readStructEnd();
-
 
118942
      validate();
-
 
118943
    }
-
 
118944
 
-
 
118945
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
118946
      validate();
-
 
118947
 
-
 
118948
      oprot.writeStructBegin(STRUCT_DESC);
-
 
118949
      oprot.writeFieldStop();
-
 
118950
      oprot.writeStructEnd();
-
 
118951
    }
-
 
118952
 
-
 
118953
    @Override
-
 
118954
    public String toString() {
-
 
118955
      StringBuilder sb = new StringBuilder("getPrivateDealsCount_args(");
-
 
118956
      boolean first = true;
-
 
118957
 
-
 
118958
      sb.append(")");
-
 
118959
      return sb.toString();
-
 
118960
    }
-
 
118961
 
-
 
118962
    public void validate() throws org.apache.thrift.TException {
-
 
118963
      // check for required fields
-
 
118964
    }
-
 
118965
 
-
 
118966
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
118967
      try {
-
 
118968
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
118969
      } catch (org.apache.thrift.TException te) {
-
 
118970
        throw new java.io.IOException(te);
-
 
118971
      }
-
 
118972
    }
-
 
118973
 
-
 
118974
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
118975
      try {
-
 
118976
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
118977
      } catch (org.apache.thrift.TException te) {
-
 
118978
        throw new java.io.IOException(te);
-
 
118979
      }
-
 
118980
    }
-
 
118981
 
-
 
118982
  }
-
 
118983
 
-
 
118984
  public static class getPrivateDealsCount_result implements org.apache.thrift.TBase<getPrivateDealsCount_result, getPrivateDealsCount_result._Fields>, java.io.Serializable, Cloneable   {
-
 
118985
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPrivateDealsCount_result");
-
 
118986
 
-
 
118987
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
-
 
118988
 
-
 
118989
    private int success; // required
-
 
118990
 
-
 
118991
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
118992
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
118993
      SUCCESS((short)0, "success");
-
 
118994
 
-
 
118995
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
118996
 
-
 
118997
      static {
-
 
118998
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
118999
          byName.put(field.getFieldName(), field);
-
 
119000
        }
-
 
119001
      }
-
 
119002
 
-
 
119003
      /**
-
 
119004
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
119005
       */
-
 
119006
      public static _Fields findByThriftId(int fieldId) {
-
 
119007
        switch(fieldId) {
-
 
119008
          case 0: // SUCCESS
-
 
119009
            return SUCCESS;
-
 
119010
          default:
-
 
119011
            return null;
-
 
119012
        }
-
 
119013
      }
-
 
119014
 
-
 
119015
      /**
-
 
119016
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
119017
       * if it is not found.
-
 
119018
       */
-
 
119019
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
119020
        _Fields fields = findByThriftId(fieldId);
-
 
119021
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
119022
        return fields;
-
 
119023
      }
-
 
119024
 
-
 
119025
      /**
-
 
119026
       * Find the _Fields constant that matches name, or null if its not found.
-
 
119027
       */
-
 
119028
      public static _Fields findByName(String name) {
-
 
119029
        return byName.get(name);
-
 
119030
      }
-
 
119031
 
-
 
119032
      private final short _thriftId;
-
 
119033
      private final String _fieldName;
-
 
119034
 
-
 
119035
      _Fields(short thriftId, String fieldName) {
-
 
119036
        _thriftId = thriftId;
-
 
119037
        _fieldName = fieldName;
-
 
119038
      }
-
 
119039
 
-
 
119040
      public short getThriftFieldId() {
-
 
119041
        return _thriftId;
-
 
119042
      }
-
 
119043
 
-
 
119044
      public String getFieldName() {
-
 
119045
        return _fieldName;
-
 
119046
      }
-
 
119047
    }
-
 
119048
 
-
 
119049
    // isset id assignments
-
 
119050
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
119051
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
119052
 
-
 
119053
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
119054
    static {
-
 
119055
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
119056
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
119057
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-
 
119058
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
119059
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPrivateDealsCount_result.class, metaDataMap);
-
 
119060
    }
-
 
119061
 
-
 
119062
    public getPrivateDealsCount_result() {
-
 
119063
    }
-
 
119064
 
-
 
119065
    public getPrivateDealsCount_result(
-
 
119066
      int success)
-
 
119067
    {
-
 
119068
      this();
-
 
119069
      this.success = success;
-
 
119070
      setSuccessIsSet(true);
-
 
119071
    }
-
 
119072
 
-
 
119073
    /**
-
 
119074
     * Performs a deep copy on <i>other</i>.
-
 
119075
     */
-
 
119076
    public getPrivateDealsCount_result(getPrivateDealsCount_result other) {
-
 
119077
      __isset_bit_vector.clear();
-
 
119078
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
119079
      this.success = other.success;
-
 
119080
    }
-
 
119081
 
-
 
119082
    public getPrivateDealsCount_result deepCopy() {
-
 
119083
      return new getPrivateDealsCount_result(this);
-
 
119084
    }
-
 
119085
 
-
 
119086
    @Override
-
 
119087
    public void clear() {
-
 
119088
      setSuccessIsSet(false);
-
 
119089
      this.success = 0;
-
 
119090
    }
-
 
119091
 
-
 
119092
    public int getSuccess() {
-
 
119093
      return this.success;
-
 
119094
    }
-
 
119095
 
-
 
119096
    public void setSuccess(int success) {
-
 
119097
      this.success = success;
-
 
119098
      setSuccessIsSet(true);
-
 
119099
    }
-
 
119100
 
-
 
119101
    public void unsetSuccess() {
-
 
119102
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
119103
    }
-
 
119104
 
-
 
119105
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
119106
    public boolean isSetSuccess() {
-
 
119107
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
119108
    }
-
 
119109
 
-
 
119110
    public void setSuccessIsSet(boolean value) {
-
 
119111
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
119112
    }
-
 
119113
 
-
 
119114
    public void setFieldValue(_Fields field, Object value) {
-
 
119115
      switch (field) {
-
 
119116
      case SUCCESS:
-
 
119117
        if (value == null) {
-
 
119118
          unsetSuccess();
-
 
119119
        } else {
-
 
119120
          setSuccess((Integer)value);
-
 
119121
        }
-
 
119122
        break;
-
 
119123
 
-
 
119124
      }
-
 
119125
    }
-
 
119126
 
-
 
119127
    public Object getFieldValue(_Fields field) {
-
 
119128
      switch (field) {
-
 
119129
      case SUCCESS:
-
 
119130
        return Integer.valueOf(getSuccess());
-
 
119131
 
-
 
119132
      }
-
 
119133
      throw new IllegalStateException();
-
 
119134
    }
-
 
119135
 
-
 
119136
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
119137
    public boolean isSet(_Fields field) {
-
 
119138
      if (field == null) {
-
 
119139
        throw new IllegalArgumentException();
-
 
119140
      }
-
 
119141
 
-
 
119142
      switch (field) {
-
 
119143
      case SUCCESS:
-
 
119144
        return isSetSuccess();
-
 
119145
      }
-
 
119146
      throw new IllegalStateException();
-
 
119147
    }
-
 
119148
 
-
 
119149
    @Override
-
 
119150
    public boolean equals(Object that) {
-
 
119151
      if (that == null)
-
 
119152
        return false;
-
 
119153
      if (that instanceof getPrivateDealsCount_result)
-
 
119154
        return this.equals((getPrivateDealsCount_result)that);
-
 
119155
      return false;
-
 
119156
    }
-
 
119157
 
-
 
119158
    public boolean equals(getPrivateDealsCount_result that) {
-
 
119159
      if (that == null)
-
 
119160
        return false;
-
 
119161
 
-
 
119162
      boolean this_present_success = true;
-
 
119163
      boolean that_present_success = true;
-
 
119164
      if (this_present_success || that_present_success) {
-
 
119165
        if (!(this_present_success && that_present_success))
-
 
119166
          return false;
-
 
119167
        if (this.success != that.success)
-
 
119168
          return false;
-
 
119169
      }
-
 
119170
 
-
 
119171
      return true;
-
 
119172
    }
-
 
119173
 
-
 
119174
    @Override
-
 
119175
    public int hashCode() {
-
 
119176
      return 0;
-
 
119177
    }
-
 
119178
 
-
 
119179
    public int compareTo(getPrivateDealsCount_result other) {
-
 
119180
      if (!getClass().equals(other.getClass())) {
-
 
119181
        return getClass().getName().compareTo(other.getClass().getName());
-
 
119182
      }
-
 
119183
 
-
 
119184
      int lastComparison = 0;
-
 
119185
      getPrivateDealsCount_result typedOther = (getPrivateDealsCount_result)other;
-
 
119186
 
-
 
119187
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
119188
      if (lastComparison != 0) {
-
 
119189
        return lastComparison;
-
 
119190
      }
-
 
119191
      if (isSetSuccess()) {
-
 
119192
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
119193
        if (lastComparison != 0) {
-
 
119194
          return lastComparison;
-
 
119195
        }
-
 
119196
      }
-
 
119197
      return 0;
-
 
119198
    }
-
 
119199
 
-
 
119200
    public _Fields fieldForId(int fieldId) {
-
 
119201
      return _Fields.findByThriftId(fieldId);
-
 
119202
    }
-
 
119203
 
-
 
119204
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
119205
      org.apache.thrift.protocol.TField field;
-
 
119206
      iprot.readStructBegin();
-
 
119207
      while (true)
-
 
119208
      {
-
 
119209
        field = iprot.readFieldBegin();
-
 
119210
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
119211
          break;
-
 
119212
        }
-
 
119213
        switch (field.id) {
-
 
119214
          case 0: // SUCCESS
-
 
119215
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
119216
              this.success = iprot.readI32();
-
 
119217
              setSuccessIsSet(true);
-
 
119218
            } else { 
-
 
119219
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
119220
            }
-
 
119221
            break;
-
 
119222
          default:
-
 
119223
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
119224
        }
-
 
119225
        iprot.readFieldEnd();
-
 
119226
      }
-
 
119227
      iprot.readStructEnd();
-
 
119228
      validate();
-
 
119229
    }
-
 
119230
 
-
 
119231
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
119232
      oprot.writeStructBegin(STRUCT_DESC);
-
 
119233
 
-
 
119234
      if (this.isSetSuccess()) {
-
 
119235
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
119236
        oprot.writeI32(this.success);
-
 
119237
        oprot.writeFieldEnd();
-
 
119238
      }
-
 
119239
      oprot.writeFieldStop();
-
 
119240
      oprot.writeStructEnd();
-
 
119241
    }
-
 
119242
 
-
 
119243
    @Override
-
 
119244
    public String toString() {
-
 
119245
      StringBuilder sb = new StringBuilder("getPrivateDealsCount_result(");
-
 
119246
      boolean first = true;
-
 
119247
 
-
 
119248
      sb.append("success:");
-
 
119249
      sb.append(this.success);
-
 
119250
      first = false;
-
 
119251
      sb.append(")");
-
 
119252
      return sb.toString();
-
 
119253
    }
-
 
119254
 
118691
    public void validate() throws org.apache.thrift.TException {
119255
    public void validate() throws org.apache.thrift.TException {
118692
      // check for required fields
119256
      // check for required fields
118693
    }
119257
    }
118694
 
119258
 
118695
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
119259
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {