Subversion Repositories SmartDukaan

Rev

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

Rev 6643 Rev 7256
Line 45... Line 45...
45
     * @param destination_pin
45
     * @param destination_pin
46
     * @param type
46
     * @param type
47
     */
47
     */
48
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
48
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
49
 
49
 
-
 
50
    public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
-
 
51
 
50
    /**
52
    /**
51
     * Same as above excpet that an airway bill number is also allocated and returned.
53
     * Same as above excpet that an airway bill number is also allocated and returned.
52
     * 
54
     * 
53
     * @param destination_pincode
55
     * @param destination_pincode
54
     * @param item_id
56
     * @param item_id
Line 144... Line 146...
144
 
146
 
145
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
147
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
146
 
148
 
147
    public void getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
149
    public void getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
148
 
150
 
-
 
151
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException;
-
 
152
 
149
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
153
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
150
 
154
 
151
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
155
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
152
 
156
 
153
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
157
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
Line 273... Line 277...
273
        throw result.se;
277
        throw result.se;
274
      }
278
      }
275
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
279
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
276
    }
280
    }
277
 
281
 
-
 
282
    public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
-
 
283
    {
-
 
284
      send_getLogisticsEstimationForStore(itemId, destination_pin, type);
-
 
285
      return recv_getLogisticsEstimationForStore();
-
 
286
    }
-
 
287
 
-
 
288
    public void send_getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
-
 
289
    {
-
 
290
      getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
-
 
291
      args.setItemId(itemId);
-
 
292
      args.setDestination_pin(destination_pin);
-
 
293
      args.setType(type);
-
 
294
      sendBase("getLogisticsEstimationForStore", args);
-
 
295
    }
-
 
296
 
-
 
297
    public LogisticsInfo recv_getLogisticsEstimationForStore() throws LogisticsServiceException, org.apache.thrift.TException
-
 
298
    {
-
 
299
      getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
-
 
300
      receiveBase(result, "getLogisticsEstimationForStore");
-
 
301
      if (result.isSetSuccess()) {
-
 
302
        return result.success;
-
 
303
      }
-
 
304
      if (result.se != null) {
-
 
305
        throw result.se;
-
 
306
      }
-
 
307
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
-
 
308
    }
-
 
309
 
278
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException
310
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException
279
    {
311
    {
280
      send_getLogisticsInfo(destination_pincode, item_id, type, pickUp);
312
      send_getLogisticsInfo(destination_pincode, item_id, type, pickUp);
281
      return recv_getLogisticsInfo();
313
      return recv_getLogisticsInfo();
282
    }
314
    }
Line 740... Line 772...
740
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
772
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
741
        return (new Client(prot)).recv_getLogisticsEstimation();
773
        return (new Client(prot)).recv_getLogisticsEstimation();
742
      }
774
      }
743
    }
775
    }
744
 
776
 
-
 
777
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException {
-
 
778
      checkReady();
-
 
779
      getLogisticsEstimationForStore_call method_call = new getLogisticsEstimationForStore_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
-
 
780
      this.___currentMethod = method_call;
-
 
781
      ___manager.call(method_call);
-
 
782
    }
-
 
783
 
-
 
784
    public static class getLogisticsEstimationForStore_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
785
      private long itemId;
-
 
786
      private String destination_pin;
-
 
787
      private DeliveryType type;
-
 
788
      public getLogisticsEstimationForStore_call(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_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 {
-
 
789
        super(client, protocolFactory, transport, resultHandler, false);
-
 
790
        this.itemId = itemId;
-
 
791
        this.destination_pin = destination_pin;
-
 
792
        this.type = type;
-
 
793
      }
-
 
794
 
-
 
795
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
796
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimationForStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
797
        getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
-
 
798
        args.setItemId(itemId);
-
 
799
        args.setDestination_pin(destination_pin);
-
 
800
        args.setType(type);
-
 
801
        args.write(prot);
-
 
802
        prot.writeMessageEnd();
-
 
803
      }
-
 
804
 
-
 
805
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
-
 
806
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
807
          throw new IllegalStateException("Method call not finished!");
-
 
808
        }
-
 
809
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
810
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
811
        return (new Client(prot)).recv_getLogisticsEstimationForStore();
-
 
812
      }
-
 
813
    }
-
 
814
 
745
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException {
815
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException {
746
      checkReady();
816
      checkReady();
747
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
817
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
748
      this.___currentMethod = method_call;
818
      this.___currentMethod = method_call;
749
      ___manager.call(method_call);
819
      ___manager.call(method_call);
Line 1261... Line 1331...
1261
 
1331
 
1262
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1332
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1263
      processMap.put("getProvider", new getProvider());
1333
      processMap.put("getProvider", new getProvider());
1264
      processMap.put("getAllProviders", new getAllProviders());
1334
      processMap.put("getAllProviders", new getAllProviders());
1265
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
1335
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
-
 
1336
      processMap.put("getLogisticsEstimationForStore", new getLogisticsEstimationForStore());
1266
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
1337
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
1267
      processMap.put("getEmptyAWB", new getEmptyAWB());
1338
      processMap.put("getEmptyAWB", new getEmptyAWB());
1268
      processMap.put("getShipmentInfo", new getShipmentInfo());
1339
      processMap.put("getShipmentInfo", new getShipmentInfo());
1269
      processMap.put("storeShipmentInfo", new storeShipmentInfo());
1340
      processMap.put("storeShipmentInfo", new storeShipmentInfo());
1270
      processMap.put("getDestinationCode", new getDestinationCode());
1341
      processMap.put("getDestinationCode", new getDestinationCode());
Line 1338... Line 1409...
1338
        }
1409
        }
1339
        return result;
1410
        return result;
1340
      }
1411
      }
1341
    }
1412
    }
1342
 
1413
 
-
 
1414
    private static class getLogisticsEstimationForStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimationForStore_args> {
-
 
1415
      public getLogisticsEstimationForStore() {
-
 
1416
        super("getLogisticsEstimationForStore");
-
 
1417
      }
-
 
1418
 
-
 
1419
      protected getLogisticsEstimationForStore_args getEmptyArgsInstance() {
-
 
1420
        return new getLogisticsEstimationForStore_args();
-
 
1421
      }
-
 
1422
 
-
 
1423
      protected getLogisticsEstimationForStore_result getResult(I iface, getLogisticsEstimationForStore_args args) throws org.apache.thrift.TException {
-
 
1424
        getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
-
 
1425
        try {
-
 
1426
          result.success = iface.getLogisticsEstimationForStore(args.itemId, args.destination_pin, args.type);
-
 
1427
        } catch (LogisticsServiceException se) {
-
 
1428
          result.se = se;
-
 
1429
        }
-
 
1430
        return result;
-
 
1431
      }
-
 
1432
    }
-
 
1433
 
1343
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
1434
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
1344
      public getLogisticsInfo() {
1435
      public getLogisticsInfo() {
1345
        super("getLogisticsInfo");
1436
        super("getLogisticsInfo");
1346
      }
1437
      }
1347
 
1438
 
Line 3707... Line 3798...
3707
      boolean first = true;
3798
      boolean first = true;
3708
 
3799
 
3709
      sb.append("success:");
3800
      sb.append("success:");
3710
      if (this.success == null) {
3801
      if (this.success == null) {
3711
        sb.append("null");
3802
        sb.append("null");
-
 
3803
      } else {
-
 
3804
        sb.append(this.success);
-
 
3805
      }
-
 
3806
      first = false;
-
 
3807
      if (!first) sb.append(", ");
-
 
3808
      sb.append("se:");
-
 
3809
      if (this.se == null) {
-
 
3810
        sb.append("null");
-
 
3811
      } else {
-
 
3812
        sb.append(this.se);
-
 
3813
      }
-
 
3814
      first = false;
-
 
3815
      sb.append(")");
-
 
3816
      return sb.toString();
-
 
3817
    }
-
 
3818
 
-
 
3819
    public void validate() throws org.apache.thrift.TException {
-
 
3820
      // check for required fields
-
 
3821
    }
-
 
3822
 
-
 
3823
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
3824
      try {
-
 
3825
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
3826
      } catch (org.apache.thrift.TException te) {
-
 
3827
        throw new java.io.IOException(te);
-
 
3828
      }
-
 
3829
    }
-
 
3830
 
-
 
3831
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
3832
      try {
-
 
3833
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
3834
      } catch (org.apache.thrift.TException te) {
-
 
3835
        throw new java.io.IOException(te);
-
 
3836
      }
-
 
3837
    }
-
 
3838
 
-
 
3839
  }
-
 
3840
 
-
 
3841
  public static class getLogisticsEstimationForStore_args implements org.apache.thrift.TBase<getLogisticsEstimationForStore_args, getLogisticsEstimationForStore_args._Fields>, java.io.Serializable, Cloneable   {
-
 
3842
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_args");
-
 
3843
 
-
 
3844
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
3845
    private static final org.apache.thrift.protocol.TField DESTINATION_PIN_FIELD_DESC = new org.apache.thrift.protocol.TField("destination_pin", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
3846
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)3);
-
 
3847
 
-
 
3848
    private long itemId; // required
-
 
3849
    private String destination_pin; // required
-
 
3850
    private DeliveryType type; // required
-
 
3851
 
-
 
3852
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
3853
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
3854
      ITEM_ID((short)1, "itemId"),
-
 
3855
      DESTINATION_PIN((short)2, "destination_pin"),
-
 
3856
      /**
-
 
3857
       * 
-
 
3858
       * @see DeliveryType
-
 
3859
       */
-
 
3860
      TYPE((short)3, "type");
-
 
3861
 
-
 
3862
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
3863
 
-
 
3864
      static {
-
 
3865
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
3866
          byName.put(field.getFieldName(), field);
-
 
3867
        }
-
 
3868
      }
-
 
3869
 
-
 
3870
      /**
-
 
3871
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
3872
       */
-
 
3873
      public static _Fields findByThriftId(int fieldId) {
-
 
3874
        switch(fieldId) {
-
 
3875
          case 1: // ITEM_ID
-
 
3876
            return ITEM_ID;
-
 
3877
          case 2: // DESTINATION_PIN
-
 
3878
            return DESTINATION_PIN;
-
 
3879
          case 3: // TYPE
-
 
3880
            return TYPE;
-
 
3881
          default:
-
 
3882
            return null;
-
 
3883
        }
-
 
3884
      }
-
 
3885
 
-
 
3886
      /**
-
 
3887
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
3888
       * if it is not found.
-
 
3889
       */
-
 
3890
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
3891
        _Fields fields = findByThriftId(fieldId);
-
 
3892
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
3893
        return fields;
-
 
3894
      }
-
 
3895
 
-
 
3896
      /**
-
 
3897
       * Find the _Fields constant that matches name, or null if its not found.
-
 
3898
       */
-
 
3899
      public static _Fields findByName(String name) {
-
 
3900
        return byName.get(name);
-
 
3901
      }
-
 
3902
 
-
 
3903
      private final short _thriftId;
-
 
3904
      private final String _fieldName;
-
 
3905
 
-
 
3906
      _Fields(short thriftId, String fieldName) {
-
 
3907
        _thriftId = thriftId;
-
 
3908
        _fieldName = fieldName;
-
 
3909
      }
-
 
3910
 
-
 
3911
      public short getThriftFieldId() {
-
 
3912
        return _thriftId;
-
 
3913
      }
-
 
3914
 
-
 
3915
      public String getFieldName() {
-
 
3916
        return _fieldName;
-
 
3917
      }
-
 
3918
    }
-
 
3919
 
-
 
3920
    // isset id assignments
-
 
3921
    private static final int __ITEMID_ISSET_ID = 0;
-
 
3922
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
3923
 
-
 
3924
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
3925
    static {
-
 
3926
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
3927
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3928
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
3929
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3930
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
3931
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3932
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
-
 
3933
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
3934
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_args.class, metaDataMap);
-
 
3935
    }
-
 
3936
 
-
 
3937
    public getLogisticsEstimationForStore_args() {
-
 
3938
    }
-
 
3939
 
-
 
3940
    public getLogisticsEstimationForStore_args(
-
 
3941
      long itemId,
-
 
3942
      String destination_pin,
-
 
3943
      DeliveryType type)
-
 
3944
    {
-
 
3945
      this();
-
 
3946
      this.itemId = itemId;
-
 
3947
      setItemIdIsSet(true);
-
 
3948
      this.destination_pin = destination_pin;
-
 
3949
      this.type = type;
-
 
3950
    }
-
 
3951
 
-
 
3952
    /**
-
 
3953
     * Performs a deep copy on <i>other</i>.
-
 
3954
     */
-
 
3955
    public getLogisticsEstimationForStore_args(getLogisticsEstimationForStore_args other) {
-
 
3956
      __isset_bit_vector.clear();
-
 
3957
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
3958
      this.itemId = other.itemId;
-
 
3959
      if (other.isSetDestination_pin()) {
-
 
3960
        this.destination_pin = other.destination_pin;
-
 
3961
      }
-
 
3962
      if (other.isSetType()) {
-
 
3963
        this.type = other.type;
-
 
3964
      }
-
 
3965
    }
-
 
3966
 
-
 
3967
    public getLogisticsEstimationForStore_args deepCopy() {
-
 
3968
      return new getLogisticsEstimationForStore_args(this);
-
 
3969
    }
-
 
3970
 
-
 
3971
    @Override
-
 
3972
    public void clear() {
-
 
3973
      setItemIdIsSet(false);
-
 
3974
      this.itemId = 0;
-
 
3975
      this.destination_pin = null;
-
 
3976
      this.type = null;
-
 
3977
    }
-
 
3978
 
-
 
3979
    public long getItemId() {
-
 
3980
      return this.itemId;
-
 
3981
    }
-
 
3982
 
-
 
3983
    public void setItemId(long itemId) {
-
 
3984
      this.itemId = itemId;
-
 
3985
      setItemIdIsSet(true);
-
 
3986
    }
-
 
3987
 
-
 
3988
    public void unsetItemId() {
-
 
3989
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
3990
    }
-
 
3991
 
-
 
3992
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
3993
    public boolean isSetItemId() {
-
 
3994
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
3995
    }
-
 
3996
 
-
 
3997
    public void setItemIdIsSet(boolean value) {
-
 
3998
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
3999
    }
-
 
4000
 
-
 
4001
    public String getDestination_pin() {
-
 
4002
      return this.destination_pin;
-
 
4003
    }
-
 
4004
 
-
 
4005
    public void setDestination_pin(String destination_pin) {
-
 
4006
      this.destination_pin = destination_pin;
-
 
4007
    }
-
 
4008
 
-
 
4009
    public void unsetDestination_pin() {
-
 
4010
      this.destination_pin = null;
-
 
4011
    }
-
 
4012
 
-
 
4013
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
-
 
4014
    public boolean isSetDestination_pin() {
-
 
4015
      return this.destination_pin != null;
-
 
4016
    }
-
 
4017
 
-
 
4018
    public void setDestination_pinIsSet(boolean value) {
-
 
4019
      if (!value) {
-
 
4020
        this.destination_pin = null;
-
 
4021
      }
-
 
4022
    }
-
 
4023
 
-
 
4024
    /**
-
 
4025
     * 
-
 
4026
     * @see DeliveryType
-
 
4027
     */
-
 
4028
    public DeliveryType getType() {
-
 
4029
      return this.type;
-
 
4030
    }
-
 
4031
 
-
 
4032
    /**
-
 
4033
     * 
-
 
4034
     * @see DeliveryType
-
 
4035
     */
-
 
4036
    public void setType(DeliveryType type) {
-
 
4037
      this.type = type;
-
 
4038
    }
-
 
4039
 
-
 
4040
    public void unsetType() {
-
 
4041
      this.type = null;
-
 
4042
    }
-
 
4043
 
-
 
4044
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
-
 
4045
    public boolean isSetType() {
-
 
4046
      return this.type != null;
-
 
4047
    }
-
 
4048
 
-
 
4049
    public void setTypeIsSet(boolean value) {
-
 
4050
      if (!value) {
-
 
4051
        this.type = null;
-
 
4052
      }
-
 
4053
    }
-
 
4054
 
-
 
4055
    public void setFieldValue(_Fields field, Object value) {
-
 
4056
      switch (field) {
-
 
4057
      case ITEM_ID:
-
 
4058
        if (value == null) {
-
 
4059
          unsetItemId();
-
 
4060
        } else {
-
 
4061
          setItemId((Long)value);
-
 
4062
        }
-
 
4063
        break;
-
 
4064
 
-
 
4065
      case DESTINATION_PIN:
-
 
4066
        if (value == null) {
-
 
4067
          unsetDestination_pin();
-
 
4068
        } else {
-
 
4069
          setDestination_pin((String)value);
-
 
4070
        }
-
 
4071
        break;
-
 
4072
 
-
 
4073
      case TYPE:
-
 
4074
        if (value == null) {
-
 
4075
          unsetType();
-
 
4076
        } else {
-
 
4077
          setType((DeliveryType)value);
-
 
4078
        }
-
 
4079
        break;
-
 
4080
 
-
 
4081
      }
-
 
4082
    }
-
 
4083
 
-
 
4084
    public Object getFieldValue(_Fields field) {
-
 
4085
      switch (field) {
-
 
4086
      case ITEM_ID:
-
 
4087
        return Long.valueOf(getItemId());
-
 
4088
 
-
 
4089
      case DESTINATION_PIN:
-
 
4090
        return getDestination_pin();
-
 
4091
 
-
 
4092
      case TYPE:
-
 
4093
        return getType();
-
 
4094
 
-
 
4095
      }
-
 
4096
      throw new IllegalStateException();
-
 
4097
    }
-
 
4098
 
-
 
4099
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
4100
    public boolean isSet(_Fields field) {
-
 
4101
      if (field == null) {
-
 
4102
        throw new IllegalArgumentException();
-
 
4103
      }
-
 
4104
 
-
 
4105
      switch (field) {
-
 
4106
      case ITEM_ID:
-
 
4107
        return isSetItemId();
-
 
4108
      case DESTINATION_PIN:
-
 
4109
        return isSetDestination_pin();
-
 
4110
      case TYPE:
-
 
4111
        return isSetType();
-
 
4112
      }
-
 
4113
      throw new IllegalStateException();
-
 
4114
    }
-
 
4115
 
-
 
4116
    @Override
-
 
4117
    public boolean equals(Object that) {
-
 
4118
      if (that == null)
-
 
4119
        return false;
-
 
4120
      if (that instanceof getLogisticsEstimationForStore_args)
-
 
4121
        return this.equals((getLogisticsEstimationForStore_args)that);
-
 
4122
      return false;
-
 
4123
    }
-
 
4124
 
-
 
4125
    public boolean equals(getLogisticsEstimationForStore_args that) {
-
 
4126
      if (that == null)
-
 
4127
        return false;
-
 
4128
 
-
 
4129
      boolean this_present_itemId = true;
-
 
4130
      boolean that_present_itemId = true;
-
 
4131
      if (this_present_itemId || that_present_itemId) {
-
 
4132
        if (!(this_present_itemId && that_present_itemId))
-
 
4133
          return false;
-
 
4134
        if (this.itemId != that.itemId)
-
 
4135
          return false;
-
 
4136
      }
-
 
4137
 
-
 
4138
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
-
 
4139
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
-
 
4140
      if (this_present_destination_pin || that_present_destination_pin) {
-
 
4141
        if (!(this_present_destination_pin && that_present_destination_pin))
-
 
4142
          return false;
-
 
4143
        if (!this.destination_pin.equals(that.destination_pin))
-
 
4144
          return false;
-
 
4145
      }
-
 
4146
 
-
 
4147
      boolean this_present_type = true && this.isSetType();
-
 
4148
      boolean that_present_type = true && that.isSetType();
-
 
4149
      if (this_present_type || that_present_type) {
-
 
4150
        if (!(this_present_type && that_present_type))
-
 
4151
          return false;
-
 
4152
        if (!this.type.equals(that.type))
-
 
4153
          return false;
-
 
4154
      }
-
 
4155
 
-
 
4156
      return true;
-
 
4157
    }
-
 
4158
 
-
 
4159
    @Override
-
 
4160
    public int hashCode() {
-
 
4161
      return 0;
-
 
4162
    }
-
 
4163
 
-
 
4164
    public int compareTo(getLogisticsEstimationForStore_args other) {
-
 
4165
      if (!getClass().equals(other.getClass())) {
-
 
4166
        return getClass().getName().compareTo(other.getClass().getName());
-
 
4167
      }
-
 
4168
 
-
 
4169
      int lastComparison = 0;
-
 
4170
      getLogisticsEstimationForStore_args typedOther = (getLogisticsEstimationForStore_args)other;
-
 
4171
 
-
 
4172
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
4173
      if (lastComparison != 0) {
-
 
4174
        return lastComparison;
-
 
4175
      }
-
 
4176
      if (isSetItemId()) {
-
 
4177
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
4178
        if (lastComparison != 0) {
-
 
4179
          return lastComparison;
-
 
4180
        }
-
 
4181
      }
-
 
4182
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
-
 
4183
      if (lastComparison != 0) {
-
 
4184
        return lastComparison;
-
 
4185
      }
-
 
4186
      if (isSetDestination_pin()) {
-
 
4187
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
-
 
4188
        if (lastComparison != 0) {
-
 
4189
          return lastComparison;
-
 
4190
        }
-
 
4191
      }
-
 
4192
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
-
 
4193
      if (lastComparison != 0) {
-
 
4194
        return lastComparison;
-
 
4195
      }
-
 
4196
      if (isSetType()) {
-
 
4197
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
-
 
4198
        if (lastComparison != 0) {
-
 
4199
          return lastComparison;
-
 
4200
        }
-
 
4201
      }
-
 
4202
      return 0;
-
 
4203
    }
-
 
4204
 
-
 
4205
    public _Fields fieldForId(int fieldId) {
-
 
4206
      return _Fields.findByThriftId(fieldId);
-
 
4207
    }
-
 
4208
 
-
 
4209
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
4210
      org.apache.thrift.protocol.TField field;
-
 
4211
      iprot.readStructBegin();
-
 
4212
      while (true)
-
 
4213
      {
-
 
4214
        field = iprot.readFieldBegin();
-
 
4215
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
4216
          break;
-
 
4217
        }
-
 
4218
        switch (field.id) {
-
 
4219
          case 1: // ITEM_ID
-
 
4220
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
4221
              this.itemId = iprot.readI64();
-
 
4222
              setItemIdIsSet(true);
-
 
4223
            } else { 
-
 
4224
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
4225
            }
-
 
4226
            break;
-
 
4227
          case 2: // DESTINATION_PIN
-
 
4228
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
4229
              this.destination_pin = iprot.readString();
-
 
4230
            } else { 
-
 
4231
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
4232
            }
-
 
4233
            break;
-
 
4234
          case 3: // TYPE
-
 
4235
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
4236
              this.type = DeliveryType.findByValue(iprot.readI32());
-
 
4237
            } else { 
-
 
4238
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
4239
            }
-
 
4240
            break;
-
 
4241
          default:
-
 
4242
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
4243
        }
-
 
4244
        iprot.readFieldEnd();
-
 
4245
      }
-
 
4246
      iprot.readStructEnd();
-
 
4247
      validate();
-
 
4248
    }
-
 
4249
 
-
 
4250
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
4251
      validate();
-
 
4252
 
-
 
4253
      oprot.writeStructBegin(STRUCT_DESC);
-
 
4254
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
4255
      oprot.writeI64(this.itemId);
-
 
4256
      oprot.writeFieldEnd();
-
 
4257
      if (this.destination_pin != null) {
-
 
4258
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
-
 
4259
        oprot.writeString(this.destination_pin);
-
 
4260
        oprot.writeFieldEnd();
-
 
4261
      }
-
 
4262
      if (this.type != null) {
-
 
4263
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
-
 
4264
        oprot.writeI32(this.type.getValue());
-
 
4265
        oprot.writeFieldEnd();
-
 
4266
      }
-
 
4267
      oprot.writeFieldStop();
-
 
4268
      oprot.writeStructEnd();
-
 
4269
    }
-
 
4270
 
-
 
4271
    @Override
-
 
4272
    public String toString() {
-
 
4273
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_args(");
-
 
4274
      boolean first = true;
-
 
4275
 
-
 
4276
      sb.append("itemId:");
-
 
4277
      sb.append(this.itemId);
-
 
4278
      first = false;
-
 
4279
      if (!first) sb.append(", ");
-
 
4280
      sb.append("destination_pin:");
-
 
4281
      if (this.destination_pin == null) {
-
 
4282
        sb.append("null");
-
 
4283
      } else {
-
 
4284
        sb.append(this.destination_pin);
-
 
4285
      }
-
 
4286
      first = false;
-
 
4287
      if (!first) sb.append(", ");
-
 
4288
      sb.append("type:");
-
 
4289
      if (this.type == null) {
-
 
4290
        sb.append("null");
-
 
4291
      } else {
-
 
4292
        sb.append(this.type);
-
 
4293
      }
-
 
4294
      first = false;
-
 
4295
      sb.append(")");
-
 
4296
      return sb.toString();
-
 
4297
    }
-
 
4298
 
-
 
4299
    public void validate() throws org.apache.thrift.TException {
-
 
4300
      // check for required fields
-
 
4301
    }
-
 
4302
 
-
 
4303
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
4304
      try {
-
 
4305
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
4306
      } catch (org.apache.thrift.TException te) {
-
 
4307
        throw new java.io.IOException(te);
-
 
4308
      }
-
 
4309
    }
-
 
4310
 
-
 
4311
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
4312
      try {
-
 
4313
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
4314
        __isset_bit_vector = new BitSet(1);
-
 
4315
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
4316
      } catch (org.apache.thrift.TException te) {
-
 
4317
        throw new java.io.IOException(te);
-
 
4318
      }
-
 
4319
    }
-
 
4320
 
-
 
4321
  }
-
 
4322
 
-
 
4323
  public static class getLogisticsEstimationForStore_result implements org.apache.thrift.TBase<getLogisticsEstimationForStore_result, getLogisticsEstimationForStore_result._Fields>, java.io.Serializable, Cloneable   {
-
 
4324
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_result");
-
 
4325
 
-
 
4326
    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);
-
 
4327
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
4328
 
-
 
4329
    private LogisticsInfo success; // required
-
 
4330
    private LogisticsServiceException se; // required
-
 
4331
 
-
 
4332
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
4333
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
4334
      SUCCESS((short)0, "success"),
-
 
4335
      SE((short)1, "se");
-
 
4336
 
-
 
4337
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
4338
 
-
 
4339
      static {
-
 
4340
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
4341
          byName.put(field.getFieldName(), field);
-
 
4342
        }
-
 
4343
      }
-
 
4344
 
-
 
4345
      /**
-
 
4346
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
4347
       */
-
 
4348
      public static _Fields findByThriftId(int fieldId) {
-
 
4349
        switch(fieldId) {
-
 
4350
          case 0: // SUCCESS
-
 
4351
            return SUCCESS;
-
 
4352
          case 1: // SE
-
 
4353
            return SE;
-
 
4354
          default:
-
 
4355
            return null;
-
 
4356
        }
-
 
4357
      }
-
 
4358
 
-
 
4359
      /**
-
 
4360
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
4361
       * if it is not found.
-
 
4362
       */
-
 
4363
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
4364
        _Fields fields = findByThriftId(fieldId);
-
 
4365
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
4366
        return fields;
-
 
4367
      }
-
 
4368
 
-
 
4369
      /**
-
 
4370
       * Find the _Fields constant that matches name, or null if its not found.
-
 
4371
       */
-
 
4372
      public static _Fields findByName(String name) {
-
 
4373
        return byName.get(name);
-
 
4374
      }
-
 
4375
 
-
 
4376
      private final short _thriftId;
-
 
4377
      private final String _fieldName;
-
 
4378
 
-
 
4379
      _Fields(short thriftId, String fieldName) {
-
 
4380
        _thriftId = thriftId;
-
 
4381
        _fieldName = fieldName;
-
 
4382
      }
-
 
4383
 
-
 
4384
      public short getThriftFieldId() {
-
 
4385
        return _thriftId;
-
 
4386
      }
-
 
4387
 
-
 
4388
      public String getFieldName() {
-
 
4389
        return _fieldName;
-
 
4390
      }
-
 
4391
    }
-
 
4392
 
-
 
4393
    // isset id assignments
-
 
4394
 
-
 
4395
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
4396
    static {
-
 
4397
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
4398
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4399
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
-
 
4400
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4401
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
4402
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
4403
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_result.class, metaDataMap);
-
 
4404
    }
-
 
4405
 
-
 
4406
    public getLogisticsEstimationForStore_result() {
-
 
4407
    }
-
 
4408
 
-
 
4409
    public getLogisticsEstimationForStore_result(
-
 
4410
      LogisticsInfo success,
-
 
4411
      LogisticsServiceException se)
-
 
4412
    {
-
 
4413
      this();
-
 
4414
      this.success = success;
-
 
4415
      this.se = se;
-
 
4416
    }
-
 
4417
 
-
 
4418
    /**
-
 
4419
     * Performs a deep copy on <i>other</i>.
-
 
4420
     */
-
 
4421
    public getLogisticsEstimationForStore_result(getLogisticsEstimationForStore_result other) {
-
 
4422
      if (other.isSetSuccess()) {
-
 
4423
        this.success = new LogisticsInfo(other.success);
-
 
4424
      }
-
 
4425
      if (other.isSetSe()) {
-
 
4426
        this.se = new LogisticsServiceException(other.se);
-
 
4427
      }
-
 
4428
    }
-
 
4429
 
-
 
4430
    public getLogisticsEstimationForStore_result deepCopy() {
-
 
4431
      return new getLogisticsEstimationForStore_result(this);
-
 
4432
    }
-
 
4433
 
-
 
4434
    @Override
-
 
4435
    public void clear() {
-
 
4436
      this.success = null;
-
 
4437
      this.se = null;
-
 
4438
    }
-
 
4439
 
-
 
4440
    public LogisticsInfo getSuccess() {
-
 
4441
      return this.success;
-
 
4442
    }
-
 
4443
 
-
 
4444
    public void setSuccess(LogisticsInfo success) {
-
 
4445
      this.success = success;
-
 
4446
    }
-
 
4447
 
-
 
4448
    public void unsetSuccess() {
-
 
4449
      this.success = null;
-
 
4450
    }
-
 
4451
 
-
 
4452
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
4453
    public boolean isSetSuccess() {
-
 
4454
      return this.success != null;
-
 
4455
    }
-
 
4456
 
-
 
4457
    public void setSuccessIsSet(boolean value) {
-
 
4458
      if (!value) {
-
 
4459
        this.success = null;
-
 
4460
      }
-
 
4461
    }
-
 
4462
 
-
 
4463
    public LogisticsServiceException getSe() {
-
 
4464
      return this.se;
-
 
4465
    }
-
 
4466
 
-
 
4467
    public void setSe(LogisticsServiceException se) {
-
 
4468
      this.se = se;
-
 
4469
    }
-
 
4470
 
-
 
4471
    public void unsetSe() {
-
 
4472
      this.se = null;
-
 
4473
    }
-
 
4474
 
-
 
4475
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
-
 
4476
    public boolean isSetSe() {
-
 
4477
      return this.se != null;
-
 
4478
    }
-
 
4479
 
-
 
4480
    public void setSeIsSet(boolean value) {
-
 
4481
      if (!value) {
-
 
4482
        this.se = null;
-
 
4483
      }
-
 
4484
    }
-
 
4485
 
-
 
4486
    public void setFieldValue(_Fields field, Object value) {
-
 
4487
      switch (field) {
-
 
4488
      case SUCCESS:
-
 
4489
        if (value == null) {
-
 
4490
          unsetSuccess();
-
 
4491
        } else {
-
 
4492
          setSuccess((LogisticsInfo)value);
-
 
4493
        }
-
 
4494
        break;
-
 
4495
 
-
 
4496
      case SE:
-
 
4497
        if (value == null) {
-
 
4498
          unsetSe();
-
 
4499
        } else {
-
 
4500
          setSe((LogisticsServiceException)value);
-
 
4501
        }
-
 
4502
        break;
-
 
4503
 
-
 
4504
      }
-
 
4505
    }
-
 
4506
 
-
 
4507
    public Object getFieldValue(_Fields field) {
-
 
4508
      switch (field) {
-
 
4509
      case SUCCESS:
-
 
4510
        return getSuccess();
-
 
4511
 
-
 
4512
      case SE:
-
 
4513
        return getSe();
-
 
4514
 
-
 
4515
      }
-
 
4516
      throw new IllegalStateException();
-
 
4517
    }
-
 
4518
 
-
 
4519
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
4520
    public boolean isSet(_Fields field) {
-
 
4521
      if (field == null) {
-
 
4522
        throw new IllegalArgumentException();
-
 
4523
      }
-
 
4524
 
-
 
4525
      switch (field) {
-
 
4526
      case SUCCESS:
-
 
4527
        return isSetSuccess();
-
 
4528
      case SE:
-
 
4529
        return isSetSe();
-
 
4530
      }
-
 
4531
      throw new IllegalStateException();
-
 
4532
    }
-
 
4533
 
-
 
4534
    @Override
-
 
4535
    public boolean equals(Object that) {
-
 
4536
      if (that == null)
-
 
4537
        return false;
-
 
4538
      if (that instanceof getLogisticsEstimationForStore_result)
-
 
4539
        return this.equals((getLogisticsEstimationForStore_result)that);
-
 
4540
      return false;
-
 
4541
    }
-
 
4542
 
-
 
4543
    public boolean equals(getLogisticsEstimationForStore_result that) {
-
 
4544
      if (that == null)
-
 
4545
        return false;
-
 
4546
 
-
 
4547
      boolean this_present_success = true && this.isSetSuccess();
-
 
4548
      boolean that_present_success = true && that.isSetSuccess();
-
 
4549
      if (this_present_success || that_present_success) {
-
 
4550
        if (!(this_present_success && that_present_success))
-
 
4551
          return false;
-
 
4552
        if (!this.success.equals(that.success))
-
 
4553
          return false;
-
 
4554
      }
-
 
4555
 
-
 
4556
      boolean this_present_se = true && this.isSetSe();
-
 
4557
      boolean that_present_se = true && that.isSetSe();
-
 
4558
      if (this_present_se || that_present_se) {
-
 
4559
        if (!(this_present_se && that_present_se))
-
 
4560
          return false;
-
 
4561
        if (!this.se.equals(that.se))
-
 
4562
          return false;
-
 
4563
      }
-
 
4564
 
-
 
4565
      return true;
-
 
4566
    }
-
 
4567
 
-
 
4568
    @Override
-
 
4569
    public int hashCode() {
-
 
4570
      return 0;
-
 
4571
    }
-
 
4572
 
-
 
4573
    public int compareTo(getLogisticsEstimationForStore_result other) {
-
 
4574
      if (!getClass().equals(other.getClass())) {
-
 
4575
        return getClass().getName().compareTo(other.getClass().getName());
-
 
4576
      }
-
 
4577
 
-
 
4578
      int lastComparison = 0;
-
 
4579
      getLogisticsEstimationForStore_result typedOther = (getLogisticsEstimationForStore_result)other;
-
 
4580
 
-
 
4581
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
4582
      if (lastComparison != 0) {
-
 
4583
        return lastComparison;
-
 
4584
      }
-
 
4585
      if (isSetSuccess()) {
-
 
4586
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
4587
        if (lastComparison != 0) {
-
 
4588
          return lastComparison;
-
 
4589
        }
-
 
4590
      }
-
 
4591
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
-
 
4592
      if (lastComparison != 0) {
-
 
4593
        return lastComparison;
-
 
4594
      }
-
 
4595
      if (isSetSe()) {
-
 
4596
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
-
 
4597
        if (lastComparison != 0) {
-
 
4598
          return lastComparison;
-
 
4599
        }
-
 
4600
      }
-
 
4601
      return 0;
-
 
4602
    }
-
 
4603
 
-
 
4604
    public _Fields fieldForId(int fieldId) {
-
 
4605
      return _Fields.findByThriftId(fieldId);
-
 
4606
    }
-
 
4607
 
-
 
4608
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
4609
      org.apache.thrift.protocol.TField field;
-
 
4610
      iprot.readStructBegin();
-
 
4611
      while (true)
-
 
4612
      {
-
 
4613
        field = iprot.readFieldBegin();
-
 
4614
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
4615
          break;
-
 
4616
        }
-
 
4617
        switch (field.id) {
-
 
4618
          case 0: // SUCCESS
-
 
4619
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
4620
              this.success = new LogisticsInfo();
-
 
4621
              this.success.read(iprot);
-
 
4622
            } else { 
-
 
4623
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
4624
            }
-
 
4625
            break;
-
 
4626
          case 1: // SE
-
 
4627
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
4628
              this.se = new LogisticsServiceException();
-
 
4629
              this.se.read(iprot);
-
 
4630
            } else { 
-
 
4631
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
4632
            }
-
 
4633
            break;
-
 
4634
          default:
-
 
4635
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
4636
        }
-
 
4637
        iprot.readFieldEnd();
-
 
4638
      }
-
 
4639
      iprot.readStructEnd();
-
 
4640
      validate();
-
 
4641
    }
-
 
4642
 
-
 
4643
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
4644
      oprot.writeStructBegin(STRUCT_DESC);
-
 
4645
 
-
 
4646
      if (this.isSetSuccess()) {
-
 
4647
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
4648
        this.success.write(oprot);
-
 
4649
        oprot.writeFieldEnd();
-
 
4650
      } else if (this.isSetSe()) {
-
 
4651
        oprot.writeFieldBegin(SE_FIELD_DESC);
-
 
4652
        this.se.write(oprot);
-
 
4653
        oprot.writeFieldEnd();
-
 
4654
      }
-
 
4655
      oprot.writeFieldStop();
-
 
4656
      oprot.writeStructEnd();
-
 
4657
    }
-
 
4658
 
-
 
4659
    @Override
-
 
4660
    public String toString() {
-
 
4661
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_result(");
-
 
4662
      boolean first = true;
-
 
4663
 
-
 
4664
      sb.append("success:");
-
 
4665
      if (this.success == null) {
-
 
4666
        sb.append("null");
3712
      } else {
4667
      } else {
3713
        sb.append(this.success);
4668
        sb.append(this.success);
3714
      }
4669
      }
3715
      first = false;
4670
      first = false;
3716
      if (!first) sb.append(", ");
4671
      if (!first) sb.append(", ");