Subversion Repositories SmartDukaan

Rev

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

Rev 5553 Rev 5719
Line 120... Line 120...
120
 
120
 
121
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException;
121
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException;
122
 
122
 
123
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException;
123
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException;
124
 
124
 
-
 
125
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException;
-
 
126
 
125
  }
127
  }
126
 
128
 
127
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
129
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
128
 
130
 
129
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
131
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
Line 150... Line 152...
150
 
152
 
151
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException;
153
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException;
152
 
154
 
153
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
155
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
154
 
156
 
-
 
157
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
-
 
158
 
155
  }
159
  }
156
 
160
 
157
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
161
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
158
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
162
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
159
      public Factory() {}
163
      public Factory() {}
Line 504... Line 508...
504
        return result.success;
508
        return result.success;
505
      }
509
      }
506
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
510
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
507
    }
511
    }
508
 
512
 
-
 
513
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
-
 
514
    {
-
 
515
      send_getPickupStoreByHotspotId(hotspotId);
-
 
516
      return recv_getPickupStoreByHotspotId();
-
 
517
    }
-
 
518
 
-
 
519
    public void send_getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
-
 
520
    {
-
 
521
      getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
-
 
522
      args.setHotspotId(hotspotId);
-
 
523
      sendBase("getPickupStoreByHotspotId", args);
-
 
524
    }
-
 
525
 
-
 
526
    public PickupStore recv_getPickupStoreByHotspotId() throws org.apache.thrift.TException
-
 
527
    {
-
 
528
      getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
-
 
529
      receiveBase(result, "getPickupStoreByHotspotId");
-
 
530
      if (result.isSetSuccess()) {
-
 
531
        return result.success;
-
 
532
      }
-
 
533
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
-
 
534
    }
-
 
535
 
509
  }
536
  }
510
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
537
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
511
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
538
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
512
      private org.apache.thrift.async.TAsyncClientManager clientManager;
539
      private org.apache.thrift.async.TAsyncClientManager clientManager;
513
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
540
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 965... Line 992...
965
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
992
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
966
        return (new Client(prot)).recv_getPickupStore();
993
        return (new Client(prot)).recv_getPickupStore();
967
      }
994
      }
968
    }
995
    }
969
 
996
 
-
 
997
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException {
-
 
998
      checkReady();
-
 
999
      getPickupStoreByHotspotId_call method_call = new getPickupStoreByHotspotId_call(hotspotId, resultHandler, this, ___protocolFactory, ___transport);
-
 
1000
      this.___currentMethod = method_call;
-
 
1001
      ___manager.call(method_call);
-
 
1002
    }
-
 
1003
 
-
 
1004
    public static class getPickupStoreByHotspotId_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1005
      private String hotspotId;
-
 
1006
      public getPickupStoreByHotspotId_call(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_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 {
-
 
1007
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1008
        this.hotspotId = hotspotId;
-
 
1009
      }
-
 
1010
 
-
 
1011
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1012
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStoreByHotspotId", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1013
        getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
-
 
1014
        args.setHotspotId(hotspotId);
-
 
1015
        args.write(prot);
-
 
1016
        prot.writeMessageEnd();
-
 
1017
      }
-
 
1018
 
-
 
1019
      public PickupStore getResult() throws org.apache.thrift.TException {
-
 
1020
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1021
          throw new IllegalStateException("Method call not finished!");
-
 
1022
        }
-
 
1023
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1024
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1025
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
-
 
1026
      }
-
 
1027
    }
-
 
1028
 
970
  }
1029
  }
971
 
1030
 
972
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1031
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
973
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1032
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
974
    public Processor(I iface) {
1033
    public Processor(I iface) {
Line 991... Line 1050...
991
      processMap.put("getHolidays", new getHolidays());
1050
      processMap.put("getHolidays", new getHolidays());
992
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
1051
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
993
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
1052
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
994
      processMap.put("getAllPickupStores", new getAllPickupStores());
1053
      processMap.put("getAllPickupStores", new getAllPickupStores());
995
      processMap.put("getPickupStore", new getPickupStore());
1054
      processMap.put("getPickupStore", new getPickupStore());
-
 
1055
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
996
      return processMap;
1056
      return processMap;
997
    }
1057
    }
998
 
1058
 
999
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1059
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1000
      public getProvider() {
1060
      public getProvider() {
Line 1236... Line 1296...
1236
        result.success = iface.getPickupStore(args.storeId);
1296
        result.success = iface.getPickupStore(args.storeId);
1237
        return result;
1297
        return result;
1238
      }
1298
      }
1239
    }
1299
    }
1240
 
1300
 
-
 
1301
    private static class getPickupStoreByHotspotId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStoreByHotspotId_args> {
-
 
1302
      public getPickupStoreByHotspotId() {
-
 
1303
        super("getPickupStoreByHotspotId");
-
 
1304
      }
-
 
1305
 
-
 
1306
      protected getPickupStoreByHotspotId_args getEmptyArgsInstance() {
-
 
1307
        return new getPickupStoreByHotspotId_args();
-
 
1308
      }
-
 
1309
 
-
 
1310
      protected getPickupStoreByHotspotId_result getResult(I iface, getPickupStoreByHotspotId_args args) throws org.apache.thrift.TException {
-
 
1311
        getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
-
 
1312
        result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
-
 
1313
        return result;
-
 
1314
      }
-
 
1315
    }
-
 
1316
 
1241
  }
1317
  }
1242
 
1318
 
1243
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1319
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1244
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
1320
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
1245
 
1321
 
Line 10544... Line 10620...
10544
      boolean first = true;
10620
      boolean first = true;
10545
 
10621
 
10546
      sb.append("success:");
10622
      sb.append("success:");
10547
      if (this.success == null) {
10623
      if (this.success == null) {
10548
        sb.append("null");
10624
        sb.append("null");
-
 
10625
      } else {
-
 
10626
        sb.append(this.success);
-
 
10627
      }
-
 
10628
      first = false;
-
 
10629
      sb.append(")");
-
 
10630
      return sb.toString();
-
 
10631
    }
-
 
10632
 
-
 
10633
    public void validate() throws org.apache.thrift.TException {
-
 
10634
      // check for required fields
-
 
10635
    }
-
 
10636
 
-
 
10637
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
10638
      try {
-
 
10639
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
10640
      } catch (org.apache.thrift.TException te) {
-
 
10641
        throw new java.io.IOException(te);
-
 
10642
      }
-
 
10643
    }
-
 
10644
 
-
 
10645
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
10646
      try {
-
 
10647
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
10648
      } catch (org.apache.thrift.TException te) {
-
 
10649
        throw new java.io.IOException(te);
-
 
10650
      }
-
 
10651
    }
-
 
10652
 
-
 
10653
  }
-
 
10654
 
-
 
10655
  public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable   {
-
 
10656
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
-
 
10657
 
-
 
10658
    private static final org.apache.thrift.protocol.TField HOTSPOT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("hotspotId", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
10659
 
-
 
10660
    private String hotspotId; // required
-
 
10661
 
-
 
10662
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10663
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
10664
      HOTSPOT_ID((short)1, "hotspotId");
-
 
10665
 
-
 
10666
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10667
 
-
 
10668
      static {
-
 
10669
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10670
          byName.put(field.getFieldName(), field);
-
 
10671
        }
-
 
10672
      }
-
 
10673
 
-
 
10674
      /**
-
 
10675
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10676
       */
-
 
10677
      public static _Fields findByThriftId(int fieldId) {
-
 
10678
        switch(fieldId) {
-
 
10679
          case 1: // HOTSPOT_ID
-
 
10680
            return HOTSPOT_ID;
-
 
10681
          default:
-
 
10682
            return null;
-
 
10683
        }
-
 
10684
      }
-
 
10685
 
-
 
10686
      /**
-
 
10687
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10688
       * if it is not found.
-
 
10689
       */
-
 
10690
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10691
        _Fields fields = findByThriftId(fieldId);
-
 
10692
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10693
        return fields;
-
 
10694
      }
-
 
10695
 
-
 
10696
      /**
-
 
10697
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10698
       */
-
 
10699
      public static _Fields findByName(String name) {
-
 
10700
        return byName.get(name);
-
 
10701
      }
-
 
10702
 
-
 
10703
      private final short _thriftId;
-
 
10704
      private final String _fieldName;
-
 
10705
 
-
 
10706
      _Fields(short thriftId, String fieldName) {
-
 
10707
        _thriftId = thriftId;
-
 
10708
        _fieldName = fieldName;
-
 
10709
      }
-
 
10710
 
-
 
10711
      public short getThriftFieldId() {
-
 
10712
        return _thriftId;
-
 
10713
      }
-
 
10714
 
-
 
10715
      public String getFieldName() {
-
 
10716
        return _fieldName;
-
 
10717
      }
-
 
10718
    }
-
 
10719
 
-
 
10720
    // isset id assignments
-
 
10721
 
-
 
10722
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
10723
    static {
-
 
10724
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
10725
      tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10726
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
10727
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
10728
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
-
 
10729
    }
-
 
10730
 
-
 
10731
    public getPickupStoreByHotspotId_args() {
-
 
10732
    }
-
 
10733
 
-
 
10734
    public getPickupStoreByHotspotId_args(
-
 
10735
      String hotspotId)
-
 
10736
    {
-
 
10737
      this();
-
 
10738
      this.hotspotId = hotspotId;
-
 
10739
    }
-
 
10740
 
-
 
10741
    /**
-
 
10742
     * Performs a deep copy on <i>other</i>.
-
 
10743
     */
-
 
10744
    public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
-
 
10745
      if (other.isSetHotspotId()) {
-
 
10746
        this.hotspotId = other.hotspotId;
-
 
10747
      }
-
 
10748
    }
-
 
10749
 
-
 
10750
    public getPickupStoreByHotspotId_args deepCopy() {
-
 
10751
      return new getPickupStoreByHotspotId_args(this);
-
 
10752
    }
-
 
10753
 
-
 
10754
    @Override
-
 
10755
    public void clear() {
-
 
10756
      this.hotspotId = null;
-
 
10757
    }
-
 
10758
 
-
 
10759
    public String getHotspotId() {
-
 
10760
      return this.hotspotId;
-
 
10761
    }
-
 
10762
 
-
 
10763
    public void setHotspotId(String hotspotId) {
-
 
10764
      this.hotspotId = hotspotId;
-
 
10765
    }
-
 
10766
 
-
 
10767
    public void unsetHotspotId() {
-
 
10768
      this.hotspotId = null;
-
 
10769
    }
-
 
10770
 
-
 
10771
    /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
-
 
10772
    public boolean isSetHotspotId() {
-
 
10773
      return this.hotspotId != null;
-
 
10774
    }
-
 
10775
 
-
 
10776
    public void setHotspotIdIsSet(boolean value) {
-
 
10777
      if (!value) {
-
 
10778
        this.hotspotId = null;
-
 
10779
      }
-
 
10780
    }
-
 
10781
 
-
 
10782
    public void setFieldValue(_Fields field, Object value) {
-
 
10783
      switch (field) {
-
 
10784
      case HOTSPOT_ID:
-
 
10785
        if (value == null) {
-
 
10786
          unsetHotspotId();
-
 
10787
        } else {
-
 
10788
          setHotspotId((String)value);
-
 
10789
        }
-
 
10790
        break;
-
 
10791
 
-
 
10792
      }
-
 
10793
    }
-
 
10794
 
-
 
10795
    public Object getFieldValue(_Fields field) {
-
 
10796
      switch (field) {
-
 
10797
      case HOTSPOT_ID:
-
 
10798
        return getHotspotId();
-
 
10799
 
-
 
10800
      }
-
 
10801
      throw new IllegalStateException();
-
 
10802
    }
-
 
10803
 
-
 
10804
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
10805
    public boolean isSet(_Fields field) {
-
 
10806
      if (field == null) {
-
 
10807
        throw new IllegalArgumentException();
-
 
10808
      }
-
 
10809
 
-
 
10810
      switch (field) {
-
 
10811
      case HOTSPOT_ID:
-
 
10812
        return isSetHotspotId();
-
 
10813
      }
-
 
10814
      throw new IllegalStateException();
-
 
10815
    }
-
 
10816
 
-
 
10817
    @Override
-
 
10818
    public boolean equals(Object that) {
-
 
10819
      if (that == null)
-
 
10820
        return false;
-
 
10821
      if (that instanceof getPickupStoreByHotspotId_args)
-
 
10822
        return this.equals((getPickupStoreByHotspotId_args)that);
-
 
10823
      return false;
-
 
10824
    }
-
 
10825
 
-
 
10826
    public boolean equals(getPickupStoreByHotspotId_args that) {
-
 
10827
      if (that == null)
-
 
10828
        return false;
-
 
10829
 
-
 
10830
      boolean this_present_hotspotId = true && this.isSetHotspotId();
-
 
10831
      boolean that_present_hotspotId = true && that.isSetHotspotId();
-
 
10832
      if (this_present_hotspotId || that_present_hotspotId) {
-
 
10833
        if (!(this_present_hotspotId && that_present_hotspotId))
-
 
10834
          return false;
-
 
10835
        if (!this.hotspotId.equals(that.hotspotId))
-
 
10836
          return false;
-
 
10837
      }
-
 
10838
 
-
 
10839
      return true;
-
 
10840
    }
-
 
10841
 
-
 
10842
    @Override
-
 
10843
    public int hashCode() {
-
 
10844
      return 0;
-
 
10845
    }
-
 
10846
 
-
 
10847
    public int compareTo(getPickupStoreByHotspotId_args other) {
-
 
10848
      if (!getClass().equals(other.getClass())) {
-
 
10849
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10850
      }
-
 
10851
 
-
 
10852
      int lastComparison = 0;
-
 
10853
      getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
-
 
10854
 
-
 
10855
      lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
-
 
10856
      if (lastComparison != 0) {
-
 
10857
        return lastComparison;
-
 
10858
      }
-
 
10859
      if (isSetHotspotId()) {
-
 
10860
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
-
 
10861
        if (lastComparison != 0) {
-
 
10862
          return lastComparison;
-
 
10863
        }
-
 
10864
      }
-
 
10865
      return 0;
-
 
10866
    }
-
 
10867
 
-
 
10868
    public _Fields fieldForId(int fieldId) {
-
 
10869
      return _Fields.findByThriftId(fieldId);
-
 
10870
    }
-
 
10871
 
-
 
10872
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
10873
      org.apache.thrift.protocol.TField field;
-
 
10874
      iprot.readStructBegin();
-
 
10875
      while (true)
-
 
10876
      {
-
 
10877
        field = iprot.readFieldBegin();
-
 
10878
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
10879
          break;
-
 
10880
        }
-
 
10881
        switch (field.id) {
-
 
10882
          case 1: // HOTSPOT_ID
-
 
10883
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
10884
              this.hotspotId = iprot.readString();
-
 
10885
            } else { 
-
 
10886
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10887
            }
-
 
10888
            break;
-
 
10889
          default:
-
 
10890
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10891
        }
-
 
10892
        iprot.readFieldEnd();
-
 
10893
      }
-
 
10894
      iprot.readStructEnd();
-
 
10895
      validate();
-
 
10896
    }
-
 
10897
 
-
 
10898
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
10899
      validate();
-
 
10900
 
-
 
10901
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10902
      if (this.hotspotId != null) {
-
 
10903
        oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
-
 
10904
        oprot.writeString(this.hotspotId);
-
 
10905
        oprot.writeFieldEnd();
-
 
10906
      }
-
 
10907
      oprot.writeFieldStop();
-
 
10908
      oprot.writeStructEnd();
-
 
10909
    }
-
 
10910
 
-
 
10911
    @Override
-
 
10912
    public String toString() {
-
 
10913
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
-
 
10914
      boolean first = true;
-
 
10915
 
-
 
10916
      sb.append("hotspotId:");
-
 
10917
      if (this.hotspotId == null) {
-
 
10918
        sb.append("null");
-
 
10919
      } else {
-
 
10920
        sb.append(this.hotspotId);
-
 
10921
      }
-
 
10922
      first = false;
-
 
10923
      sb.append(")");
-
 
10924
      return sb.toString();
-
 
10925
    }
-
 
10926
 
-
 
10927
    public void validate() throws org.apache.thrift.TException {
-
 
10928
      // check for required fields
-
 
10929
    }
-
 
10930
 
-
 
10931
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
10932
      try {
-
 
10933
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
10934
      } catch (org.apache.thrift.TException te) {
-
 
10935
        throw new java.io.IOException(te);
-
 
10936
      }
-
 
10937
    }
-
 
10938
 
-
 
10939
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
10940
      try {
-
 
10941
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
10942
      } catch (org.apache.thrift.TException te) {
-
 
10943
        throw new java.io.IOException(te);
-
 
10944
      }
-
 
10945
    }
-
 
10946
 
-
 
10947
  }
-
 
10948
 
-
 
10949
  public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable   {
-
 
10950
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
-
 
10951
 
-
 
10952
    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);
-
 
10953
 
-
 
10954
    private PickupStore success; // required
-
 
10955
 
-
 
10956
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10957
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
10958
      SUCCESS((short)0, "success");
-
 
10959
 
-
 
10960
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10961
 
-
 
10962
      static {
-
 
10963
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10964
          byName.put(field.getFieldName(), field);
-
 
10965
        }
-
 
10966
      }
-
 
10967
 
-
 
10968
      /**
-
 
10969
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10970
       */
-
 
10971
      public static _Fields findByThriftId(int fieldId) {
-
 
10972
        switch(fieldId) {
-
 
10973
          case 0: // SUCCESS
-
 
10974
            return SUCCESS;
-
 
10975
          default:
-
 
10976
            return null;
-
 
10977
        }
-
 
10978
      }
-
 
10979
 
-
 
10980
      /**
-
 
10981
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10982
       * if it is not found.
-
 
10983
       */
-
 
10984
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10985
        _Fields fields = findByThriftId(fieldId);
-
 
10986
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10987
        return fields;
-
 
10988
      }
-
 
10989
 
-
 
10990
      /**
-
 
10991
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10992
       */
-
 
10993
      public static _Fields findByName(String name) {
-
 
10994
        return byName.get(name);
-
 
10995
      }
-
 
10996
 
-
 
10997
      private final short _thriftId;
-
 
10998
      private final String _fieldName;
-
 
10999
 
-
 
11000
      _Fields(short thriftId, String fieldName) {
-
 
11001
        _thriftId = thriftId;
-
 
11002
        _fieldName = fieldName;
-
 
11003
      }
-
 
11004
 
-
 
11005
      public short getThriftFieldId() {
-
 
11006
        return _thriftId;
-
 
11007
      }
-
 
11008
 
-
 
11009
      public String getFieldName() {
-
 
11010
        return _fieldName;
-
 
11011
      }
-
 
11012
    }
-
 
11013
 
-
 
11014
    // isset id assignments
-
 
11015
 
-
 
11016
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
11017
    static {
-
 
11018
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11019
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11020
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
-
 
11021
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
11022
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
-
 
11023
    }
-
 
11024
 
-
 
11025
    public getPickupStoreByHotspotId_result() {
-
 
11026
    }
-
 
11027
 
-
 
11028
    public getPickupStoreByHotspotId_result(
-
 
11029
      PickupStore success)
-
 
11030
    {
-
 
11031
      this();
-
 
11032
      this.success = success;
-
 
11033
    }
-
 
11034
 
-
 
11035
    /**
-
 
11036
     * Performs a deep copy on <i>other</i>.
-
 
11037
     */
-
 
11038
    public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
-
 
11039
      if (other.isSetSuccess()) {
-
 
11040
        this.success = new PickupStore(other.success);
-
 
11041
      }
-
 
11042
    }
-
 
11043
 
-
 
11044
    public getPickupStoreByHotspotId_result deepCopy() {
-
 
11045
      return new getPickupStoreByHotspotId_result(this);
-
 
11046
    }
-
 
11047
 
-
 
11048
    @Override
-
 
11049
    public void clear() {
-
 
11050
      this.success = null;
-
 
11051
    }
-
 
11052
 
-
 
11053
    public PickupStore getSuccess() {
-
 
11054
      return this.success;
-
 
11055
    }
-
 
11056
 
-
 
11057
    public void setSuccess(PickupStore success) {
-
 
11058
      this.success = success;
-
 
11059
    }
-
 
11060
 
-
 
11061
    public void unsetSuccess() {
-
 
11062
      this.success = null;
-
 
11063
    }
-
 
11064
 
-
 
11065
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
11066
    public boolean isSetSuccess() {
-
 
11067
      return this.success != null;
-
 
11068
    }
-
 
11069
 
-
 
11070
    public void setSuccessIsSet(boolean value) {
-
 
11071
      if (!value) {
-
 
11072
        this.success = null;
-
 
11073
      }
-
 
11074
    }
-
 
11075
 
-
 
11076
    public void setFieldValue(_Fields field, Object value) {
-
 
11077
      switch (field) {
-
 
11078
      case SUCCESS:
-
 
11079
        if (value == null) {
-
 
11080
          unsetSuccess();
-
 
11081
        } else {
-
 
11082
          setSuccess((PickupStore)value);
-
 
11083
        }
-
 
11084
        break;
-
 
11085
 
-
 
11086
      }
-
 
11087
    }
-
 
11088
 
-
 
11089
    public Object getFieldValue(_Fields field) {
-
 
11090
      switch (field) {
-
 
11091
      case SUCCESS:
-
 
11092
        return getSuccess();
-
 
11093
 
-
 
11094
      }
-
 
11095
      throw new IllegalStateException();
-
 
11096
    }
-
 
11097
 
-
 
11098
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
11099
    public boolean isSet(_Fields field) {
-
 
11100
      if (field == null) {
-
 
11101
        throw new IllegalArgumentException();
-
 
11102
      }
-
 
11103
 
-
 
11104
      switch (field) {
-
 
11105
      case SUCCESS:
-
 
11106
        return isSetSuccess();
-
 
11107
      }
-
 
11108
      throw new IllegalStateException();
-
 
11109
    }
-
 
11110
 
-
 
11111
    @Override
-
 
11112
    public boolean equals(Object that) {
-
 
11113
      if (that == null)
-
 
11114
        return false;
-
 
11115
      if (that instanceof getPickupStoreByHotspotId_result)
-
 
11116
        return this.equals((getPickupStoreByHotspotId_result)that);
-
 
11117
      return false;
-
 
11118
    }
-
 
11119
 
-
 
11120
    public boolean equals(getPickupStoreByHotspotId_result that) {
-
 
11121
      if (that == null)
-
 
11122
        return false;
-
 
11123
 
-
 
11124
      boolean this_present_success = true && this.isSetSuccess();
-
 
11125
      boolean that_present_success = true && that.isSetSuccess();
-
 
11126
      if (this_present_success || that_present_success) {
-
 
11127
        if (!(this_present_success && that_present_success))
-
 
11128
          return false;
-
 
11129
        if (!this.success.equals(that.success))
-
 
11130
          return false;
-
 
11131
      }
-
 
11132
 
-
 
11133
      return true;
-
 
11134
    }
-
 
11135
 
-
 
11136
    @Override
-
 
11137
    public int hashCode() {
-
 
11138
      return 0;
-
 
11139
    }
-
 
11140
 
-
 
11141
    public int compareTo(getPickupStoreByHotspotId_result other) {
-
 
11142
      if (!getClass().equals(other.getClass())) {
-
 
11143
        return getClass().getName().compareTo(other.getClass().getName());
-
 
11144
      }
-
 
11145
 
-
 
11146
      int lastComparison = 0;
-
 
11147
      getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
-
 
11148
 
-
 
11149
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
11150
      if (lastComparison != 0) {
-
 
11151
        return lastComparison;
-
 
11152
      }
-
 
11153
      if (isSetSuccess()) {
-
 
11154
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
11155
        if (lastComparison != 0) {
-
 
11156
          return lastComparison;
-
 
11157
        }
-
 
11158
      }
-
 
11159
      return 0;
-
 
11160
    }
-
 
11161
 
-
 
11162
    public _Fields fieldForId(int fieldId) {
-
 
11163
      return _Fields.findByThriftId(fieldId);
-
 
11164
    }
-
 
11165
 
-
 
11166
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
11167
      org.apache.thrift.protocol.TField field;
-
 
11168
      iprot.readStructBegin();
-
 
11169
      while (true)
-
 
11170
      {
-
 
11171
        field = iprot.readFieldBegin();
-
 
11172
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
11173
          break;
-
 
11174
        }
-
 
11175
        switch (field.id) {
-
 
11176
          case 0: // SUCCESS
-
 
11177
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
11178
              this.success = new PickupStore();
-
 
11179
              this.success.read(iprot);
-
 
11180
            } else { 
-
 
11181
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11182
            }
-
 
11183
            break;
-
 
11184
          default:
-
 
11185
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
11186
        }
-
 
11187
        iprot.readFieldEnd();
-
 
11188
      }
-
 
11189
      iprot.readStructEnd();
-
 
11190
      validate();
-
 
11191
    }
-
 
11192
 
-
 
11193
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
11194
      oprot.writeStructBegin(STRUCT_DESC);
-
 
11195
 
-
 
11196
      if (this.isSetSuccess()) {
-
 
11197
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
11198
        this.success.write(oprot);
-
 
11199
        oprot.writeFieldEnd();
-
 
11200
      }
-
 
11201
      oprot.writeFieldStop();
-
 
11202
      oprot.writeStructEnd();
-
 
11203
    }
-
 
11204
 
-
 
11205
    @Override
-
 
11206
    public String toString() {
-
 
11207
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
-
 
11208
      boolean first = true;
-
 
11209
 
-
 
11210
      sb.append("success:");
-
 
11211
      if (this.success == null) {
-
 
11212
        sb.append("null");
10549
      } else {
11213
      } else {
10550
        sb.append(this.success);
11214
        sb.append(this.success);
10551
      }
11215
      }
10552
      first = false;
11216
      first = false;
10553
      sb.append(")");
11217
      sb.append(")");