Subversion Repositories SmartDukaan

Rev

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

Rev 5527 Rev 5553
Line 116... Line 116...
116
     * 
116
     * 
117
     * @param pickUp
117
     * @param pickUp
118
     */
118
     */
119
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException;
119
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException;
120
 
120
 
-
 
121
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException;
-
 
122
 
-
 
123
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException;
-
 
124
 
121
  }
125
  }
122
 
126
 
123
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
127
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
124
 
128
 
125
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
129
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
Line 142... Line 146...
142
 
146
 
143
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
147
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
144
 
148
 
145
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException;
149
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException;
146
 
150
 
-
 
151
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException;
-
 
152
 
-
 
153
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
-
 
154
 
147
  }
155
  }
148
 
156
 
149
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
157
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
150
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
158
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
151
      public Factory() {}
159
      public Factory() {}
Line 451... Line 459...
451
        return result.success;
459
        return result.success;
452
      }
460
      }
453
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
461
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
454
    }
462
    }
455
 
463
 
-
 
464
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException
-
 
465
    {
-
 
466
      send_getAllPickupStores();
-
 
467
      return recv_getAllPickupStores();
-
 
468
    }
-
 
469
 
-
 
470
    public void send_getAllPickupStores() throws org.apache.thrift.TException
-
 
471
    {
-
 
472
      getAllPickupStores_args args = new getAllPickupStores_args();
-
 
473
      sendBase("getAllPickupStores", args);
-
 
474
    }
-
 
475
 
-
 
476
    public List<PickupStore> recv_getAllPickupStores() throws org.apache.thrift.TException
-
 
477
    {
-
 
478
      getAllPickupStores_result result = new getAllPickupStores_result();
-
 
479
      receiveBase(result, "getAllPickupStores");
-
 
480
      if (result.isSetSuccess()) {
-
 
481
        return result.success;
-
 
482
      }
-
 
483
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
-
 
484
    }
-
 
485
 
-
 
486
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException
-
 
487
    {
-
 
488
      send_getPickupStore(storeId);
-
 
489
      return recv_getPickupStore();
-
 
490
    }
-
 
491
 
-
 
492
    public void send_getPickupStore(long storeId) throws org.apache.thrift.TException
-
 
493
    {
-
 
494
      getPickupStore_args args = new getPickupStore_args();
-
 
495
      args.setStoreId(storeId);
-
 
496
      sendBase("getPickupStore", args);
-
 
497
    }
-
 
498
 
-
 
499
    public PickupStore recv_getPickupStore() throws org.apache.thrift.TException
-
 
500
    {
-
 
501
      getPickupStore_result result = new getPickupStore_result();
-
 
502
      receiveBase(result, "getPickupStore");
-
 
503
      if (result.isSetSuccess()) {
-
 
504
        return result.success;
-
 
505
      }
-
 
506
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
-
 
507
    }
-
 
508
 
456
  }
509
  }
457
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
510
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
458
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
511
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
459
      private org.apache.thrift.async.TAsyncClientManager clientManager;
512
      private org.apache.thrift.async.TAsyncClientManager clientManager;
460
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
513
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 851... Line 904...
851
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
904
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
852
        return (new Client(prot)).recv_getProviderForPickupType();
905
        return (new Client(prot)).recv_getProviderForPickupType();
853
      }
906
      }
854
    }
907
    }
855
 
908
 
-
 
909
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException {
-
 
910
      checkReady();
-
 
911
      getAllPickupStores_call method_call = new getAllPickupStores_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
912
      this.___currentMethod = method_call;
-
 
913
      ___manager.call(method_call);
-
 
914
    }
-
 
915
 
-
 
916
    public static class getAllPickupStores_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
917
      public getAllPickupStores_call(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_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 {
-
 
918
        super(client, protocolFactory, transport, resultHandler, false);
-
 
919
      }
-
 
920
 
-
 
921
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
922
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPickupStores", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
923
        getAllPickupStores_args args = new getAllPickupStores_args();
-
 
924
        args.write(prot);
-
 
925
        prot.writeMessageEnd();
-
 
926
      }
-
 
927
 
-
 
928
      public List<PickupStore> getResult() throws org.apache.thrift.TException {
-
 
929
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
930
          throw new IllegalStateException("Method call not finished!");
-
 
931
        }
-
 
932
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
933
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
934
        return (new Client(prot)).recv_getAllPickupStores();
-
 
935
      }
-
 
936
    }
-
 
937
 
-
 
938
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler) throws org.apache.thrift.TException {
-
 
939
      checkReady();
-
 
940
      getPickupStore_call method_call = new getPickupStore_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
-
 
941
      this.___currentMethod = method_call;
-
 
942
      ___manager.call(method_call);
-
 
943
    }
-
 
944
 
-
 
945
    public static class getPickupStore_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
946
      private long storeId;
-
 
947
      public getPickupStore_call(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_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 {
-
 
948
        super(client, protocolFactory, transport, resultHandler, false);
-
 
949
        this.storeId = storeId;
-
 
950
      }
-
 
951
 
-
 
952
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
953
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
954
        getPickupStore_args args = new getPickupStore_args();
-
 
955
        args.setStoreId(storeId);
-
 
956
        args.write(prot);
-
 
957
        prot.writeMessageEnd();
-
 
958
      }
-
 
959
 
-
 
960
      public PickupStore getResult() throws org.apache.thrift.TException {
-
 
961
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
962
          throw new IllegalStateException("Method call not finished!");
-
 
963
        }
-
 
964
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
965
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
966
        return (new Client(prot)).recv_getPickupStore();
-
 
967
      }
-
 
968
    }
-
 
969
 
856
  }
970
  }
857
 
971
 
858
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
972
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
859
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
973
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
860
    public Processor(I iface) {
974
    public Processor(I iface) {
Line 875... Line 989...
875
      processMap.put("getDestinationCode", new getDestinationCode());
989
      processMap.put("getDestinationCode", new getDestinationCode());
876
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
990
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
877
      processMap.put("getHolidays", new getHolidays());
991
      processMap.put("getHolidays", new getHolidays());
878
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
992
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
879
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
993
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
-
 
994
      processMap.put("getAllPickupStores", new getAllPickupStores());
-
 
995
      processMap.put("getPickupStore", new getPickupStore());
880
      return processMap;
996
      return processMap;
881
    }
997
    }
882
 
998
 
883
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
999
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
884
      public getProvider() {
1000
      public getProvider() {
Line 1088... Line 1204...
1088
        result.setSuccessIsSet(true);
1204
        result.setSuccessIsSet(true);
1089
        return result;
1205
        return result;
1090
      }
1206
      }
1091
    }
1207
    }
1092
 
1208
 
-
 
1209
    private static class getAllPickupStores<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPickupStores_args> {
-
 
1210
      public getAllPickupStores() {
-
 
1211
        super("getAllPickupStores");
-
 
1212
      }
-
 
1213
 
-
 
1214
      protected getAllPickupStores_args getEmptyArgsInstance() {
-
 
1215
        return new getAllPickupStores_args();
-
 
1216
      }
-
 
1217
 
-
 
1218
      protected getAllPickupStores_result getResult(I iface, getAllPickupStores_args args) throws org.apache.thrift.TException {
-
 
1219
        getAllPickupStores_result result = new getAllPickupStores_result();
-
 
1220
        result.success = iface.getAllPickupStores();
-
 
1221
        return result;
-
 
1222
      }
-
 
1223
    }
-
 
1224
 
-
 
1225
    private static class getPickupStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStore_args> {
-
 
1226
      public getPickupStore() {
-
 
1227
        super("getPickupStore");
-
 
1228
      }
-
 
1229
 
-
 
1230
      protected getPickupStore_args getEmptyArgsInstance() {
-
 
1231
        return new getPickupStore_args();
-
 
1232
      }
-
 
1233
 
-
 
1234
      protected getPickupStore_result getResult(I iface, getPickupStore_args args) throws org.apache.thrift.TException {
-
 
1235
        getPickupStore_result result = new getPickupStore_result();
-
 
1236
        result.success = iface.getPickupStore(args.storeId);
-
 
1237
        return result;
-
 
1238
      }
-
 
1239
    }
-
 
1240
 
1093
  }
1241
  }
1094
 
1242
 
1095
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1243
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1096
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
1244
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
1097
 
1245
 
Line 9285... Line 9433...
9285
      first = false;
9433
      first = false;
9286
      sb.append(")");
9434
      sb.append(")");
9287
      return sb.toString();
9435
      return sb.toString();
9288
    }
9436
    }
9289
 
9437
 
-
 
9438
    public void validate() throws org.apache.thrift.TException {
-
 
9439
      // check for required fields
-
 
9440
    }
-
 
9441
 
-
 
9442
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
9443
      try {
-
 
9444
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
9445
      } catch (org.apache.thrift.TException te) {
-
 
9446
        throw new java.io.IOException(te);
-
 
9447
      }
-
 
9448
    }
-
 
9449
 
-
 
9450
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
9451
      try {
-
 
9452
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9453
      } catch (org.apache.thrift.TException te) {
-
 
9454
        throw new java.io.IOException(te);
-
 
9455
      }
-
 
9456
    }
-
 
9457
 
-
 
9458
  }
-
 
9459
 
-
 
9460
  public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable   {
-
 
9461
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
-
 
9462
 
-
 
9463
 
-
 
9464
 
-
 
9465
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9466
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
9467
;
-
 
9468
 
-
 
9469
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9470
 
-
 
9471
      static {
-
 
9472
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9473
          byName.put(field.getFieldName(), field);
-
 
9474
        }
-
 
9475
      }
-
 
9476
 
-
 
9477
      /**
-
 
9478
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9479
       */
-
 
9480
      public static _Fields findByThriftId(int fieldId) {
-
 
9481
        switch(fieldId) {
-
 
9482
          default:
-
 
9483
            return null;
-
 
9484
        }
-
 
9485
      }
-
 
9486
 
-
 
9487
      /**
-
 
9488
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9489
       * if it is not found.
-
 
9490
       */
-
 
9491
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9492
        _Fields fields = findByThriftId(fieldId);
-
 
9493
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9494
        return fields;
-
 
9495
      }
-
 
9496
 
-
 
9497
      /**
-
 
9498
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9499
       */
-
 
9500
      public static _Fields findByName(String name) {
-
 
9501
        return byName.get(name);
-
 
9502
      }
-
 
9503
 
-
 
9504
      private final short _thriftId;
-
 
9505
      private final String _fieldName;
-
 
9506
 
-
 
9507
      _Fields(short thriftId, String fieldName) {
-
 
9508
        _thriftId = thriftId;
-
 
9509
        _fieldName = fieldName;
-
 
9510
      }
-
 
9511
 
-
 
9512
      public short getThriftFieldId() {
-
 
9513
        return _thriftId;
-
 
9514
      }
-
 
9515
 
-
 
9516
      public String getFieldName() {
-
 
9517
        return _fieldName;
-
 
9518
      }
-
 
9519
    }
-
 
9520
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
9521
    static {
-
 
9522
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
9523
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
9524
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
-
 
9525
    }
-
 
9526
 
-
 
9527
    public getAllPickupStores_args() {
-
 
9528
    }
-
 
9529
 
-
 
9530
    /**
-
 
9531
     * Performs a deep copy on <i>other</i>.
-
 
9532
     */
-
 
9533
    public getAllPickupStores_args(getAllPickupStores_args other) {
-
 
9534
    }
-
 
9535
 
-
 
9536
    public getAllPickupStores_args deepCopy() {
-
 
9537
      return new getAllPickupStores_args(this);
-
 
9538
    }
-
 
9539
 
-
 
9540
    @Override
-
 
9541
    public void clear() {
-
 
9542
    }
-
 
9543
 
-
 
9544
    public void setFieldValue(_Fields field, Object value) {
-
 
9545
      switch (field) {
-
 
9546
      }
-
 
9547
    }
-
 
9548
 
-
 
9549
    public Object getFieldValue(_Fields field) {
-
 
9550
      switch (field) {
-
 
9551
      }
-
 
9552
      throw new IllegalStateException();
-
 
9553
    }
-
 
9554
 
-
 
9555
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
9556
    public boolean isSet(_Fields field) {
-
 
9557
      if (field == null) {
-
 
9558
        throw new IllegalArgumentException();
-
 
9559
      }
-
 
9560
 
-
 
9561
      switch (field) {
-
 
9562
      }
-
 
9563
      throw new IllegalStateException();
-
 
9564
    }
-
 
9565
 
-
 
9566
    @Override
-
 
9567
    public boolean equals(Object that) {
-
 
9568
      if (that == null)
-
 
9569
        return false;
-
 
9570
      if (that instanceof getAllPickupStores_args)
-
 
9571
        return this.equals((getAllPickupStores_args)that);
-
 
9572
      return false;
-
 
9573
    }
-
 
9574
 
-
 
9575
    public boolean equals(getAllPickupStores_args that) {
-
 
9576
      if (that == null)
-
 
9577
        return false;
-
 
9578
 
-
 
9579
      return true;
-
 
9580
    }
-
 
9581
 
-
 
9582
    @Override
-
 
9583
    public int hashCode() {
-
 
9584
      return 0;
-
 
9585
    }
-
 
9586
 
-
 
9587
    public int compareTo(getAllPickupStores_args other) {
-
 
9588
      if (!getClass().equals(other.getClass())) {
-
 
9589
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9590
      }
-
 
9591
 
-
 
9592
      int lastComparison = 0;
-
 
9593
      getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
-
 
9594
 
-
 
9595
      return 0;
-
 
9596
    }
-
 
9597
 
-
 
9598
    public _Fields fieldForId(int fieldId) {
-
 
9599
      return _Fields.findByThriftId(fieldId);
-
 
9600
    }
-
 
9601
 
-
 
9602
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
9603
      org.apache.thrift.protocol.TField field;
-
 
9604
      iprot.readStructBegin();
-
 
9605
      while (true)
-
 
9606
      {
-
 
9607
        field = iprot.readFieldBegin();
-
 
9608
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
9609
          break;
-
 
9610
        }
-
 
9611
        switch (field.id) {
-
 
9612
          default:
-
 
9613
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9614
        }
-
 
9615
        iprot.readFieldEnd();
-
 
9616
      }
-
 
9617
      iprot.readStructEnd();
-
 
9618
      validate();
-
 
9619
    }
-
 
9620
 
-
 
9621
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
9622
      validate();
-
 
9623
 
-
 
9624
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9625
      oprot.writeFieldStop();
-
 
9626
      oprot.writeStructEnd();
-
 
9627
    }
-
 
9628
 
-
 
9629
    @Override
-
 
9630
    public String toString() {
-
 
9631
      StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
-
 
9632
      boolean first = true;
-
 
9633
 
-
 
9634
      sb.append(")");
-
 
9635
      return sb.toString();
-
 
9636
    }
-
 
9637
 
-
 
9638
    public void validate() throws org.apache.thrift.TException {
-
 
9639
      // check for required fields
-
 
9640
    }
-
 
9641
 
-
 
9642
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
9643
      try {
-
 
9644
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
9645
      } catch (org.apache.thrift.TException te) {
-
 
9646
        throw new java.io.IOException(te);
-
 
9647
      }
-
 
9648
    }
-
 
9649
 
-
 
9650
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
9651
      try {
-
 
9652
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9653
      } catch (org.apache.thrift.TException te) {
-
 
9654
        throw new java.io.IOException(te);
-
 
9655
      }
-
 
9656
    }
-
 
9657
 
-
 
9658
  }
-
 
9659
 
-
 
9660
  public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable   {
-
 
9661
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
-
 
9662
 
-
 
9663
    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);
-
 
9664
 
-
 
9665
    private List<PickupStore> success; // required
-
 
9666
 
-
 
9667
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9668
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
9669
      SUCCESS((short)0, "success");
-
 
9670
 
-
 
9671
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9672
 
-
 
9673
      static {
-
 
9674
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9675
          byName.put(field.getFieldName(), field);
-
 
9676
        }
-
 
9677
      }
-
 
9678
 
-
 
9679
      /**
-
 
9680
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9681
       */
-
 
9682
      public static _Fields findByThriftId(int fieldId) {
-
 
9683
        switch(fieldId) {
-
 
9684
          case 0: // SUCCESS
-
 
9685
            return SUCCESS;
-
 
9686
          default:
-
 
9687
            return null;
-
 
9688
        }
-
 
9689
      }
-
 
9690
 
-
 
9691
      /**
-
 
9692
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9693
       * if it is not found.
-
 
9694
       */
-
 
9695
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9696
        _Fields fields = findByThriftId(fieldId);
-
 
9697
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9698
        return fields;
-
 
9699
      }
-
 
9700
 
-
 
9701
      /**
-
 
9702
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9703
       */
-
 
9704
      public static _Fields findByName(String name) {
-
 
9705
        return byName.get(name);
-
 
9706
      }
-
 
9707
 
-
 
9708
      private final short _thriftId;
-
 
9709
      private final String _fieldName;
-
 
9710
 
-
 
9711
      _Fields(short thriftId, String fieldName) {
-
 
9712
        _thriftId = thriftId;
-
 
9713
        _fieldName = fieldName;
-
 
9714
      }
-
 
9715
 
-
 
9716
      public short getThriftFieldId() {
-
 
9717
        return _thriftId;
-
 
9718
      }
-
 
9719
 
-
 
9720
      public String getFieldName() {
-
 
9721
        return _fieldName;
-
 
9722
      }
-
 
9723
    }
-
 
9724
 
-
 
9725
    // isset id assignments
-
 
9726
 
-
 
9727
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
9728
    static {
-
 
9729
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
9730
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9731
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
9732
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
-
 
9733
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
9734
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
-
 
9735
    }
-
 
9736
 
-
 
9737
    public getAllPickupStores_result() {
-
 
9738
    }
-
 
9739
 
-
 
9740
    public getAllPickupStores_result(
-
 
9741
      List<PickupStore> success)
-
 
9742
    {
-
 
9743
      this();
-
 
9744
      this.success = success;
-
 
9745
    }
-
 
9746
 
-
 
9747
    /**
-
 
9748
     * Performs a deep copy on <i>other</i>.
-
 
9749
     */
-
 
9750
    public getAllPickupStores_result(getAllPickupStores_result other) {
-
 
9751
      if (other.isSetSuccess()) {
-
 
9752
        List<PickupStore> __this__success = new ArrayList<PickupStore>();
-
 
9753
        for (PickupStore other_element : other.success) {
-
 
9754
          __this__success.add(new PickupStore(other_element));
-
 
9755
        }
-
 
9756
        this.success = __this__success;
-
 
9757
      }
-
 
9758
    }
-
 
9759
 
-
 
9760
    public getAllPickupStores_result deepCopy() {
-
 
9761
      return new getAllPickupStores_result(this);
-
 
9762
    }
-
 
9763
 
-
 
9764
    @Override
-
 
9765
    public void clear() {
-
 
9766
      this.success = null;
-
 
9767
    }
-
 
9768
 
-
 
9769
    public int getSuccessSize() {
-
 
9770
      return (this.success == null) ? 0 : this.success.size();
-
 
9771
    }
-
 
9772
 
-
 
9773
    public java.util.Iterator<PickupStore> getSuccessIterator() {
-
 
9774
      return (this.success == null) ? null : this.success.iterator();
-
 
9775
    }
-
 
9776
 
-
 
9777
    public void addToSuccess(PickupStore elem) {
-
 
9778
      if (this.success == null) {
-
 
9779
        this.success = new ArrayList<PickupStore>();
-
 
9780
      }
-
 
9781
      this.success.add(elem);
-
 
9782
    }
-
 
9783
 
-
 
9784
    public List<PickupStore> getSuccess() {
-
 
9785
      return this.success;
-
 
9786
    }
-
 
9787
 
-
 
9788
    public void setSuccess(List<PickupStore> success) {
-
 
9789
      this.success = success;
-
 
9790
    }
-
 
9791
 
-
 
9792
    public void unsetSuccess() {
-
 
9793
      this.success = null;
-
 
9794
    }
-
 
9795
 
-
 
9796
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
9797
    public boolean isSetSuccess() {
-
 
9798
      return this.success != null;
-
 
9799
    }
-
 
9800
 
-
 
9801
    public void setSuccessIsSet(boolean value) {
-
 
9802
      if (!value) {
-
 
9803
        this.success = null;
-
 
9804
      }
-
 
9805
    }
-
 
9806
 
-
 
9807
    public void setFieldValue(_Fields field, Object value) {
-
 
9808
      switch (field) {
-
 
9809
      case SUCCESS:
-
 
9810
        if (value == null) {
-
 
9811
          unsetSuccess();
-
 
9812
        } else {
-
 
9813
          setSuccess((List<PickupStore>)value);
-
 
9814
        }
-
 
9815
        break;
-
 
9816
 
-
 
9817
      }
-
 
9818
    }
-
 
9819
 
-
 
9820
    public Object getFieldValue(_Fields field) {
-
 
9821
      switch (field) {
-
 
9822
      case SUCCESS:
-
 
9823
        return getSuccess();
-
 
9824
 
-
 
9825
      }
-
 
9826
      throw new IllegalStateException();
-
 
9827
    }
-
 
9828
 
-
 
9829
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
9830
    public boolean isSet(_Fields field) {
-
 
9831
      if (field == null) {
-
 
9832
        throw new IllegalArgumentException();
-
 
9833
      }
-
 
9834
 
-
 
9835
      switch (field) {
-
 
9836
      case SUCCESS:
-
 
9837
        return isSetSuccess();
-
 
9838
      }
-
 
9839
      throw new IllegalStateException();
-
 
9840
    }
-
 
9841
 
-
 
9842
    @Override
-
 
9843
    public boolean equals(Object that) {
-
 
9844
      if (that == null)
-
 
9845
        return false;
-
 
9846
      if (that instanceof getAllPickupStores_result)
-
 
9847
        return this.equals((getAllPickupStores_result)that);
-
 
9848
      return false;
-
 
9849
    }
-
 
9850
 
-
 
9851
    public boolean equals(getAllPickupStores_result that) {
-
 
9852
      if (that == null)
-
 
9853
        return false;
-
 
9854
 
-
 
9855
      boolean this_present_success = true && this.isSetSuccess();
-
 
9856
      boolean that_present_success = true && that.isSetSuccess();
-
 
9857
      if (this_present_success || that_present_success) {
-
 
9858
        if (!(this_present_success && that_present_success))
-
 
9859
          return false;
-
 
9860
        if (!this.success.equals(that.success))
-
 
9861
          return false;
-
 
9862
      }
-
 
9863
 
-
 
9864
      return true;
-
 
9865
    }
-
 
9866
 
-
 
9867
    @Override
-
 
9868
    public int hashCode() {
-
 
9869
      return 0;
-
 
9870
    }
-
 
9871
 
-
 
9872
    public int compareTo(getAllPickupStores_result other) {
-
 
9873
      if (!getClass().equals(other.getClass())) {
-
 
9874
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9875
      }
-
 
9876
 
-
 
9877
      int lastComparison = 0;
-
 
9878
      getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
-
 
9879
 
-
 
9880
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
9881
      if (lastComparison != 0) {
-
 
9882
        return lastComparison;
-
 
9883
      }
-
 
9884
      if (isSetSuccess()) {
-
 
9885
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
9886
        if (lastComparison != 0) {
-
 
9887
          return lastComparison;
-
 
9888
        }
-
 
9889
      }
-
 
9890
      return 0;
-
 
9891
    }
-
 
9892
 
-
 
9893
    public _Fields fieldForId(int fieldId) {
-
 
9894
      return _Fields.findByThriftId(fieldId);
-
 
9895
    }
-
 
9896
 
-
 
9897
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
9898
      org.apache.thrift.protocol.TField field;
-
 
9899
      iprot.readStructBegin();
-
 
9900
      while (true)
-
 
9901
      {
-
 
9902
        field = iprot.readFieldBegin();
-
 
9903
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
9904
          break;
-
 
9905
        }
-
 
9906
        switch (field.id) {
-
 
9907
          case 0: // SUCCESS
-
 
9908
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
9909
              {
-
 
9910
                org.apache.thrift.protocol.TList _list21 = iprot.readListBegin();
-
 
9911
                this.success = new ArrayList<PickupStore>(_list21.size);
-
 
9912
                for (int _i22 = 0; _i22 < _list21.size; ++_i22)
-
 
9913
                {
-
 
9914
                  PickupStore _elem23; // required
-
 
9915
                  _elem23 = new PickupStore();
-
 
9916
                  _elem23.read(iprot);
-
 
9917
                  this.success.add(_elem23);
-
 
9918
                }
-
 
9919
                iprot.readListEnd();
-
 
9920
              }
-
 
9921
            } else { 
-
 
9922
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9923
            }
-
 
9924
            break;
-
 
9925
          default:
-
 
9926
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9927
        }
-
 
9928
        iprot.readFieldEnd();
-
 
9929
      }
-
 
9930
      iprot.readStructEnd();
-
 
9931
      validate();
-
 
9932
    }
-
 
9933
 
-
 
9934
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
9935
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9936
 
-
 
9937
      if (this.isSetSuccess()) {
-
 
9938
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
9939
        {
-
 
9940
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
9941
          for (PickupStore _iter24 : this.success)
-
 
9942
          {
-
 
9943
            _iter24.write(oprot);
-
 
9944
          }
-
 
9945
          oprot.writeListEnd();
-
 
9946
        }
-
 
9947
        oprot.writeFieldEnd();
-
 
9948
      }
-
 
9949
      oprot.writeFieldStop();
-
 
9950
      oprot.writeStructEnd();
-
 
9951
    }
-
 
9952
 
-
 
9953
    @Override
-
 
9954
    public String toString() {
-
 
9955
      StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
-
 
9956
      boolean first = true;
-
 
9957
 
-
 
9958
      sb.append("success:");
-
 
9959
      if (this.success == null) {
-
 
9960
        sb.append("null");
-
 
9961
      } else {
-
 
9962
        sb.append(this.success);
-
 
9963
      }
-
 
9964
      first = false;
-
 
9965
      sb.append(")");
-
 
9966
      return sb.toString();
-
 
9967
    }
-
 
9968
 
-
 
9969
    public void validate() throws org.apache.thrift.TException {
-
 
9970
      // check for required fields
-
 
9971
    }
-
 
9972
 
-
 
9973
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
9974
      try {
-
 
9975
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
9976
      } catch (org.apache.thrift.TException te) {
-
 
9977
        throw new java.io.IOException(te);
-
 
9978
      }
-
 
9979
    }
-
 
9980
 
-
 
9981
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
9982
      try {
-
 
9983
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9984
      } catch (org.apache.thrift.TException te) {
-
 
9985
        throw new java.io.IOException(te);
-
 
9986
      }
-
 
9987
    }
-
 
9988
 
-
 
9989
  }
-
 
9990
 
-
 
9991
  public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable   {
-
 
9992
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
-
 
9993
 
-
 
9994
    private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
9995
 
-
 
9996
    private long storeId; // required
-
 
9997
 
-
 
9998
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9999
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
10000
      STORE_ID((short)1, "storeId");
-
 
10001
 
-
 
10002
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10003
 
-
 
10004
      static {
-
 
10005
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10006
          byName.put(field.getFieldName(), field);
-
 
10007
        }
-
 
10008
      }
-
 
10009
 
-
 
10010
      /**
-
 
10011
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10012
       */
-
 
10013
      public static _Fields findByThriftId(int fieldId) {
-
 
10014
        switch(fieldId) {
-
 
10015
          case 1: // STORE_ID
-
 
10016
            return STORE_ID;
-
 
10017
          default:
-
 
10018
            return null;
-
 
10019
        }
-
 
10020
      }
-
 
10021
 
-
 
10022
      /**
-
 
10023
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10024
       * if it is not found.
-
 
10025
       */
-
 
10026
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10027
        _Fields fields = findByThriftId(fieldId);
-
 
10028
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10029
        return fields;
-
 
10030
      }
-
 
10031
 
-
 
10032
      /**
-
 
10033
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10034
       */
-
 
10035
      public static _Fields findByName(String name) {
-
 
10036
        return byName.get(name);
-
 
10037
      }
-
 
10038
 
-
 
10039
      private final short _thriftId;
-
 
10040
      private final String _fieldName;
-
 
10041
 
-
 
10042
      _Fields(short thriftId, String fieldName) {
-
 
10043
        _thriftId = thriftId;
-
 
10044
        _fieldName = fieldName;
-
 
10045
      }
-
 
10046
 
-
 
10047
      public short getThriftFieldId() {
-
 
10048
        return _thriftId;
-
 
10049
      }
-
 
10050
 
-
 
10051
      public String getFieldName() {
-
 
10052
        return _fieldName;
-
 
10053
      }
-
 
10054
    }
-
 
10055
 
-
 
10056
    // isset id assignments
-
 
10057
    private static final int __STOREID_ISSET_ID = 0;
-
 
10058
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
10059
 
-
 
10060
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
10061
    static {
-
 
10062
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
10063
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10064
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
10065
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
10066
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
-
 
10067
    }
-
 
10068
 
-
 
10069
    public getPickupStore_args() {
-
 
10070
    }
-
 
10071
 
-
 
10072
    public getPickupStore_args(
-
 
10073
      long storeId)
-
 
10074
    {
-
 
10075
      this();
-
 
10076
      this.storeId = storeId;
-
 
10077
      setStoreIdIsSet(true);
-
 
10078
    }
-
 
10079
 
-
 
10080
    /**
-
 
10081
     * Performs a deep copy on <i>other</i>.
-
 
10082
     */
-
 
10083
    public getPickupStore_args(getPickupStore_args other) {
-
 
10084
      __isset_bit_vector.clear();
-
 
10085
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
10086
      this.storeId = other.storeId;
-
 
10087
    }
-
 
10088
 
-
 
10089
    public getPickupStore_args deepCopy() {
-
 
10090
      return new getPickupStore_args(this);
-
 
10091
    }
-
 
10092
 
-
 
10093
    @Override
-
 
10094
    public void clear() {
-
 
10095
      setStoreIdIsSet(false);
-
 
10096
      this.storeId = 0;
-
 
10097
    }
-
 
10098
 
-
 
10099
    public long getStoreId() {
-
 
10100
      return this.storeId;
-
 
10101
    }
-
 
10102
 
-
 
10103
    public void setStoreId(long storeId) {
-
 
10104
      this.storeId = storeId;
-
 
10105
      setStoreIdIsSet(true);
-
 
10106
    }
-
 
10107
 
-
 
10108
    public void unsetStoreId() {
-
 
10109
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
-
 
10110
    }
-
 
10111
 
-
 
10112
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
-
 
10113
    public boolean isSetStoreId() {
-
 
10114
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
-
 
10115
    }
-
 
10116
 
-
 
10117
    public void setStoreIdIsSet(boolean value) {
-
 
10118
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
-
 
10119
    }
-
 
10120
 
-
 
10121
    public void setFieldValue(_Fields field, Object value) {
-
 
10122
      switch (field) {
-
 
10123
      case STORE_ID:
-
 
10124
        if (value == null) {
-
 
10125
          unsetStoreId();
-
 
10126
        } else {
-
 
10127
          setStoreId((Long)value);
-
 
10128
        }
-
 
10129
        break;
-
 
10130
 
-
 
10131
      }
-
 
10132
    }
-
 
10133
 
-
 
10134
    public Object getFieldValue(_Fields field) {
-
 
10135
      switch (field) {
-
 
10136
      case STORE_ID:
-
 
10137
        return Long.valueOf(getStoreId());
-
 
10138
 
-
 
10139
      }
-
 
10140
      throw new IllegalStateException();
-
 
10141
    }
-
 
10142
 
-
 
10143
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
10144
    public boolean isSet(_Fields field) {
-
 
10145
      if (field == null) {
-
 
10146
        throw new IllegalArgumentException();
-
 
10147
      }
-
 
10148
 
-
 
10149
      switch (field) {
-
 
10150
      case STORE_ID:
-
 
10151
        return isSetStoreId();
-
 
10152
      }
-
 
10153
      throw new IllegalStateException();
-
 
10154
    }
-
 
10155
 
-
 
10156
    @Override
-
 
10157
    public boolean equals(Object that) {
-
 
10158
      if (that == null)
-
 
10159
        return false;
-
 
10160
      if (that instanceof getPickupStore_args)
-
 
10161
        return this.equals((getPickupStore_args)that);
-
 
10162
      return false;
-
 
10163
    }
-
 
10164
 
-
 
10165
    public boolean equals(getPickupStore_args that) {
-
 
10166
      if (that == null)
-
 
10167
        return false;
-
 
10168
 
-
 
10169
      boolean this_present_storeId = true;
-
 
10170
      boolean that_present_storeId = true;
-
 
10171
      if (this_present_storeId || that_present_storeId) {
-
 
10172
        if (!(this_present_storeId && that_present_storeId))
-
 
10173
          return false;
-
 
10174
        if (this.storeId != that.storeId)
-
 
10175
          return false;
-
 
10176
      }
-
 
10177
 
-
 
10178
      return true;
-
 
10179
    }
-
 
10180
 
-
 
10181
    @Override
-
 
10182
    public int hashCode() {
-
 
10183
      return 0;
-
 
10184
    }
-
 
10185
 
-
 
10186
    public int compareTo(getPickupStore_args other) {
-
 
10187
      if (!getClass().equals(other.getClass())) {
-
 
10188
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10189
      }
-
 
10190
 
-
 
10191
      int lastComparison = 0;
-
 
10192
      getPickupStore_args typedOther = (getPickupStore_args)other;
-
 
10193
 
-
 
10194
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
-
 
10195
      if (lastComparison != 0) {
-
 
10196
        return lastComparison;
-
 
10197
      }
-
 
10198
      if (isSetStoreId()) {
-
 
10199
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
-
 
10200
        if (lastComparison != 0) {
-
 
10201
          return lastComparison;
-
 
10202
        }
-
 
10203
      }
-
 
10204
      return 0;
-
 
10205
    }
-
 
10206
 
-
 
10207
    public _Fields fieldForId(int fieldId) {
-
 
10208
      return _Fields.findByThriftId(fieldId);
-
 
10209
    }
-
 
10210
 
-
 
10211
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
10212
      org.apache.thrift.protocol.TField field;
-
 
10213
      iprot.readStructBegin();
-
 
10214
      while (true)
-
 
10215
      {
-
 
10216
        field = iprot.readFieldBegin();
-
 
10217
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
10218
          break;
-
 
10219
        }
-
 
10220
        switch (field.id) {
-
 
10221
          case 1: // STORE_ID
-
 
10222
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
10223
              this.storeId = iprot.readI64();
-
 
10224
              setStoreIdIsSet(true);
-
 
10225
            } else { 
-
 
10226
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10227
            }
-
 
10228
            break;
-
 
10229
          default:
-
 
10230
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10231
        }
-
 
10232
        iprot.readFieldEnd();
-
 
10233
      }
-
 
10234
      iprot.readStructEnd();
-
 
10235
      validate();
-
 
10236
    }
-
 
10237
 
-
 
10238
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
10239
      validate();
-
 
10240
 
-
 
10241
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10242
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
-
 
10243
      oprot.writeI64(this.storeId);
-
 
10244
      oprot.writeFieldEnd();
-
 
10245
      oprot.writeFieldStop();
-
 
10246
      oprot.writeStructEnd();
-
 
10247
    }
-
 
10248
 
-
 
10249
    @Override
-
 
10250
    public String toString() {
-
 
10251
      StringBuilder sb = new StringBuilder("getPickupStore_args(");
-
 
10252
      boolean first = true;
-
 
10253
 
-
 
10254
      sb.append("storeId:");
-
 
10255
      sb.append(this.storeId);
-
 
10256
      first = false;
-
 
10257
      sb.append(")");
-
 
10258
      return sb.toString();
-
 
10259
    }
-
 
10260
 
-
 
10261
    public void validate() throws org.apache.thrift.TException {
-
 
10262
      // check for required fields
-
 
10263
    }
-
 
10264
 
-
 
10265
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
10266
      try {
-
 
10267
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
10268
      } catch (org.apache.thrift.TException te) {
-
 
10269
        throw new java.io.IOException(te);
-
 
10270
      }
-
 
10271
    }
-
 
10272
 
-
 
10273
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
10274
      try {
-
 
10275
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
10276
        __isset_bit_vector = new BitSet(1);
-
 
10277
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
10278
      } catch (org.apache.thrift.TException te) {
-
 
10279
        throw new java.io.IOException(te);
-
 
10280
      }
-
 
10281
    }
-
 
10282
 
-
 
10283
  }
-
 
10284
 
-
 
10285
  public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable   {
-
 
10286
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
-
 
10287
 
-
 
10288
    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);
-
 
10289
 
-
 
10290
    private PickupStore success; // required
-
 
10291
 
-
 
10292
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10293
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
10294
      SUCCESS((short)0, "success");
-
 
10295
 
-
 
10296
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10297
 
-
 
10298
      static {
-
 
10299
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10300
          byName.put(field.getFieldName(), field);
-
 
10301
        }
-
 
10302
      }
-
 
10303
 
-
 
10304
      /**
-
 
10305
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10306
       */
-
 
10307
      public static _Fields findByThriftId(int fieldId) {
-
 
10308
        switch(fieldId) {
-
 
10309
          case 0: // SUCCESS
-
 
10310
            return SUCCESS;
-
 
10311
          default:
-
 
10312
            return null;
-
 
10313
        }
-
 
10314
      }
-
 
10315
 
-
 
10316
      /**
-
 
10317
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10318
       * if it is not found.
-
 
10319
       */
-
 
10320
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10321
        _Fields fields = findByThriftId(fieldId);
-
 
10322
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10323
        return fields;
-
 
10324
      }
-
 
10325
 
-
 
10326
      /**
-
 
10327
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10328
       */
-
 
10329
      public static _Fields findByName(String name) {
-
 
10330
        return byName.get(name);
-
 
10331
      }
-
 
10332
 
-
 
10333
      private final short _thriftId;
-
 
10334
      private final String _fieldName;
-
 
10335
 
-
 
10336
      _Fields(short thriftId, String fieldName) {
-
 
10337
        _thriftId = thriftId;
-
 
10338
        _fieldName = fieldName;
-
 
10339
      }
-
 
10340
 
-
 
10341
      public short getThriftFieldId() {
-
 
10342
        return _thriftId;
-
 
10343
      }
-
 
10344
 
-
 
10345
      public String getFieldName() {
-
 
10346
        return _fieldName;
-
 
10347
      }
-
 
10348
    }
-
 
10349
 
-
 
10350
    // isset id assignments
-
 
10351
 
-
 
10352
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
10353
    static {
-
 
10354
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
10355
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10356
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
-
 
10357
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
10358
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
-
 
10359
    }
-
 
10360
 
-
 
10361
    public getPickupStore_result() {
-
 
10362
    }
-
 
10363
 
-
 
10364
    public getPickupStore_result(
-
 
10365
      PickupStore success)
-
 
10366
    {
-
 
10367
      this();
-
 
10368
      this.success = success;
-
 
10369
    }
-
 
10370
 
-
 
10371
    /**
-
 
10372
     * Performs a deep copy on <i>other</i>.
-
 
10373
     */
-
 
10374
    public getPickupStore_result(getPickupStore_result other) {
-
 
10375
      if (other.isSetSuccess()) {
-
 
10376
        this.success = new PickupStore(other.success);
-
 
10377
      }
-
 
10378
    }
-
 
10379
 
-
 
10380
    public getPickupStore_result deepCopy() {
-
 
10381
      return new getPickupStore_result(this);
-
 
10382
    }
-
 
10383
 
-
 
10384
    @Override
-
 
10385
    public void clear() {
-
 
10386
      this.success = null;
-
 
10387
    }
-
 
10388
 
-
 
10389
    public PickupStore getSuccess() {
-
 
10390
      return this.success;
-
 
10391
    }
-
 
10392
 
-
 
10393
    public void setSuccess(PickupStore success) {
-
 
10394
      this.success = success;
-
 
10395
    }
-
 
10396
 
-
 
10397
    public void unsetSuccess() {
-
 
10398
      this.success = null;
-
 
10399
    }
-
 
10400
 
-
 
10401
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
10402
    public boolean isSetSuccess() {
-
 
10403
      return this.success != null;
-
 
10404
    }
-
 
10405
 
-
 
10406
    public void setSuccessIsSet(boolean value) {
-
 
10407
      if (!value) {
-
 
10408
        this.success = null;
-
 
10409
      }
-
 
10410
    }
-
 
10411
 
-
 
10412
    public void setFieldValue(_Fields field, Object value) {
-
 
10413
      switch (field) {
-
 
10414
      case SUCCESS:
-
 
10415
        if (value == null) {
-
 
10416
          unsetSuccess();
-
 
10417
        } else {
-
 
10418
          setSuccess((PickupStore)value);
-
 
10419
        }
-
 
10420
        break;
-
 
10421
 
-
 
10422
      }
-
 
10423
    }
-
 
10424
 
-
 
10425
    public Object getFieldValue(_Fields field) {
-
 
10426
      switch (field) {
-
 
10427
      case SUCCESS:
-
 
10428
        return getSuccess();
-
 
10429
 
-
 
10430
      }
-
 
10431
      throw new IllegalStateException();
-
 
10432
    }
-
 
10433
 
-
 
10434
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
10435
    public boolean isSet(_Fields field) {
-
 
10436
      if (field == null) {
-
 
10437
        throw new IllegalArgumentException();
-
 
10438
      }
-
 
10439
 
-
 
10440
      switch (field) {
-
 
10441
      case SUCCESS:
-
 
10442
        return isSetSuccess();
-
 
10443
      }
-
 
10444
      throw new IllegalStateException();
-
 
10445
    }
-
 
10446
 
-
 
10447
    @Override
-
 
10448
    public boolean equals(Object that) {
-
 
10449
      if (that == null)
-
 
10450
        return false;
-
 
10451
      if (that instanceof getPickupStore_result)
-
 
10452
        return this.equals((getPickupStore_result)that);
-
 
10453
      return false;
-
 
10454
    }
-
 
10455
 
-
 
10456
    public boolean equals(getPickupStore_result that) {
-
 
10457
      if (that == null)
-
 
10458
        return false;
-
 
10459
 
-
 
10460
      boolean this_present_success = true && this.isSetSuccess();
-
 
10461
      boolean that_present_success = true && that.isSetSuccess();
-
 
10462
      if (this_present_success || that_present_success) {
-
 
10463
        if (!(this_present_success && that_present_success))
-
 
10464
          return false;
-
 
10465
        if (!this.success.equals(that.success))
-
 
10466
          return false;
-
 
10467
      }
-
 
10468
 
-
 
10469
      return true;
-
 
10470
    }
-
 
10471
 
-
 
10472
    @Override
-
 
10473
    public int hashCode() {
-
 
10474
      return 0;
-
 
10475
    }
-
 
10476
 
-
 
10477
    public int compareTo(getPickupStore_result other) {
-
 
10478
      if (!getClass().equals(other.getClass())) {
-
 
10479
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10480
      }
-
 
10481
 
-
 
10482
      int lastComparison = 0;
-
 
10483
      getPickupStore_result typedOther = (getPickupStore_result)other;
-
 
10484
 
-
 
10485
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
10486
      if (lastComparison != 0) {
-
 
10487
        return lastComparison;
-
 
10488
      }
-
 
10489
      if (isSetSuccess()) {
-
 
10490
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
10491
        if (lastComparison != 0) {
-
 
10492
          return lastComparison;
-
 
10493
        }
-
 
10494
      }
-
 
10495
      return 0;
-
 
10496
    }
-
 
10497
 
-
 
10498
    public _Fields fieldForId(int fieldId) {
-
 
10499
      return _Fields.findByThriftId(fieldId);
-
 
10500
    }
-
 
10501
 
-
 
10502
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
10503
      org.apache.thrift.protocol.TField field;
-
 
10504
      iprot.readStructBegin();
-
 
10505
      while (true)
-
 
10506
      {
-
 
10507
        field = iprot.readFieldBegin();
-
 
10508
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
10509
          break;
-
 
10510
        }
-
 
10511
        switch (field.id) {
-
 
10512
          case 0: // SUCCESS
-
 
10513
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
10514
              this.success = new PickupStore();
-
 
10515
              this.success.read(iprot);
-
 
10516
            } else { 
-
 
10517
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10518
            }
-
 
10519
            break;
-
 
10520
          default:
-
 
10521
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10522
        }
-
 
10523
        iprot.readFieldEnd();
-
 
10524
      }
-
 
10525
      iprot.readStructEnd();
-
 
10526
      validate();
-
 
10527
    }
-
 
10528
 
-
 
10529
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
10530
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10531
 
-
 
10532
      if (this.isSetSuccess()) {
-
 
10533
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
10534
        this.success.write(oprot);
-
 
10535
        oprot.writeFieldEnd();
-
 
10536
      }
-
 
10537
      oprot.writeFieldStop();
-
 
10538
      oprot.writeStructEnd();
-
 
10539
    }
-
 
10540
 
-
 
10541
    @Override
-
 
10542
    public String toString() {
-
 
10543
      StringBuilder sb = new StringBuilder("getPickupStore_result(");
-
 
10544
      boolean first = true;
-
 
10545
 
-
 
10546
      sb.append("success:");
-
 
10547
      if (this.success == null) {
-
 
10548
        sb.append("null");
-
 
10549
      } else {
-
 
10550
        sb.append(this.success);
-
 
10551
      }
-
 
10552
      first = false;
-
 
10553
      sb.append(")");
-
 
10554
      return sb.toString();
-
 
10555
    }
-
 
10556
 
9290
    public void validate() throws org.apache.thrift.TException {
10557
    public void validate() throws org.apache.thrift.TException {
9291
      // check for required fields
10558
      // check for required fields
9292
    }
10559
    }
9293
 
10560
 
9294
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10561
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {