Subversion Repositories SmartDukaan

Rev

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

Rev 5247 Rev 5527
Line 109... Line 109...
109
     * @param destination_pin
109
     * @param destination_pin
110
     * @param type
110
     * @param type
111
     */
111
     */
112
    public List<Long> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
112
    public List<Long> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
113
 
113
 
-
 
114
    /**
-
 
115
     * Returns the id for a given pickUpType
-
 
116
     * 
-
 
117
     * @param pickUp
-
 
118
     */
-
 
119
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException;
-
 
120
 
114
  }
121
  }
115
 
122
 
116
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
123
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
117
 
124
 
118
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
125
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
Line 133... Line 140...
133
 
140
 
134
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
141
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
135
 
142
 
136
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
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;
137
 
144
 
-
 
145
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException;
-
 
146
 
138
  }
147
  }
139
 
148
 
140
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
149
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
141
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
150
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
142
      public Factory() {}
151
      public Factory() {}
Line 419... Line 428...
419
        throw result.se;
428
        throw result.se;
420
      }
429
      }
421
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
430
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
422
    }
431
    }
423
 
432
 
-
 
433
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
-
 
434
    {
-
 
435
      send_getProviderForPickupType(pickUp);
-
 
436
      return recv_getProviderForPickupType();
-
 
437
    }
-
 
438
 
-
 
439
    public void send_getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
-
 
440
    {
-
 
441
      getProviderForPickupType_args args = new getProviderForPickupType_args();
-
 
442
      args.setPickUp(pickUp);
-
 
443
      sendBase("getProviderForPickupType", args);
-
 
444
    }
-
 
445
 
-
 
446
    public long recv_getProviderForPickupType() throws org.apache.thrift.TException
-
 
447
    {
-
 
448
      getProviderForPickupType_result result = new getProviderForPickupType_result();
-
 
449
      receiveBase(result, "getProviderForPickupType");
-
 
450
      if (result.isSetSuccess()) {
-
 
451
        return result.success;
-
 
452
      }
-
 
453
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
-
 
454
    }
-
 
455
 
424
  }
456
  }
425
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
457
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
426
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
458
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
427
      private org.apache.thrift.async.TAsyncClientManager clientManager;
459
      private org.apache.thrift.async.TAsyncClientManager clientManager;
428
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
460
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 787... Line 819...
787
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
819
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
788
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
820
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
789
      }
821
      }
790
    }
822
    }
791
 
823
 
-
 
824
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException {
-
 
825
      checkReady();
-
 
826
      getProviderForPickupType_call method_call = new getProviderForPickupType_call(pickUp, resultHandler, this, ___protocolFactory, ___transport);
-
 
827
      this.___currentMethod = method_call;
-
 
828
      ___manager.call(method_call);
-
 
829
    }
-
 
830
 
-
 
831
    public static class getProviderForPickupType_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
832
      private long pickUp;
-
 
833
      public getProviderForPickupType_call(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_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 {
-
 
834
        super(client, protocolFactory, transport, resultHandler, false);
-
 
835
        this.pickUp = pickUp;
-
 
836
      }
-
 
837
 
-
 
838
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
839
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderForPickupType", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
840
        getProviderForPickupType_args args = new getProviderForPickupType_args();
-
 
841
        args.setPickUp(pickUp);
-
 
842
        args.write(prot);
-
 
843
        prot.writeMessageEnd();
-
 
844
      }
-
 
845
 
-
 
846
      public long getResult() throws org.apache.thrift.TException {
-
 
847
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
848
          throw new IllegalStateException("Method call not finished!");
-
 
849
        }
-
 
850
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
851
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
852
        return (new Client(prot)).recv_getProviderForPickupType();
-
 
853
      }
-
 
854
    }
-
 
855
 
792
  }
856
  }
793
 
857
 
794
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
858
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
795
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
859
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
796
    public Processor(I iface) {
860
    public Processor(I iface) {
Line 810... Line 874...
810
      processMap.put("getShipmentInfo", new getShipmentInfo());
874
      processMap.put("getShipmentInfo", new getShipmentInfo());
811
      processMap.put("getDestinationCode", new getDestinationCode());
875
      processMap.put("getDestinationCode", new getDestinationCode());
812
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
876
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
813
      processMap.put("getHolidays", new getHolidays());
877
      processMap.put("getHolidays", new getHolidays());
814
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
878
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
-
 
879
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
815
      return processMap;
880
      return processMap;
816
    }
881
    }
817
 
882
 
818
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
883
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
819
      public getProvider() {
884
      public getProvider() {
Line 1006... Line 1071...
1006
        }
1071
        }
1007
        return result;
1072
        return result;
1008
      }
1073
      }
1009
    }
1074
    }
1010
 
1075
 
-
 
1076
    private static class getProviderForPickupType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderForPickupType_args> {
-
 
1077
      public getProviderForPickupType() {
-
 
1078
        super("getProviderForPickupType");
-
 
1079
      }
-
 
1080
 
-
 
1081
      protected getProviderForPickupType_args getEmptyArgsInstance() {
-
 
1082
        return new getProviderForPickupType_args();
-
 
1083
      }
-
 
1084
 
-
 
1085
      protected getProviderForPickupType_result getResult(I iface, getProviderForPickupType_args args) throws org.apache.thrift.TException {
-
 
1086
        getProviderForPickupType_result result = new getProviderForPickupType_result();
-
 
1087
        result.success = iface.getProviderForPickupType(args.pickUp);
-
 
1088
        result.setSuccessIsSet(true);
-
 
1089
        return result;
-
 
1090
      }
-
 
1091
    }
-
 
1092
 
1011
  }
1093
  }
1012
 
1094
 
1013
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1095
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1014
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
1096
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
1015
 
1097
 
Line 8616... Line 8698...
8616
      first = false;
8698
      first = false;
8617
      sb.append(")");
8699
      sb.append(")");
8618
      return sb.toString();
8700
      return sb.toString();
8619
    }
8701
    }
8620
 
8702
 
-
 
8703
    public void validate() throws org.apache.thrift.TException {
-
 
8704
      // check for required fields
-
 
8705
    }
-
 
8706
 
-
 
8707
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8708
      try {
-
 
8709
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8710
      } catch (org.apache.thrift.TException te) {
-
 
8711
        throw new java.io.IOException(te);
-
 
8712
      }
-
 
8713
    }
-
 
8714
 
-
 
8715
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8716
      try {
-
 
8717
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8718
      } catch (org.apache.thrift.TException te) {
-
 
8719
        throw new java.io.IOException(te);
-
 
8720
      }
-
 
8721
    }
-
 
8722
 
-
 
8723
  }
-
 
8724
 
-
 
8725
  public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable   {
-
 
8726
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
-
 
8727
 
-
 
8728
    private static final org.apache.thrift.protocol.TField PICK_UP_FIELD_DESC = new org.apache.thrift.protocol.TField("pickUp", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
8729
 
-
 
8730
    private long pickUp; // required
-
 
8731
 
-
 
8732
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8733
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
8734
      PICK_UP((short)1, "pickUp");
-
 
8735
 
-
 
8736
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8737
 
-
 
8738
      static {
-
 
8739
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8740
          byName.put(field.getFieldName(), field);
-
 
8741
        }
-
 
8742
      }
-
 
8743
 
-
 
8744
      /**
-
 
8745
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8746
       */
-
 
8747
      public static _Fields findByThriftId(int fieldId) {
-
 
8748
        switch(fieldId) {
-
 
8749
          case 1: // PICK_UP
-
 
8750
            return PICK_UP;
-
 
8751
          default:
-
 
8752
            return null;
-
 
8753
        }
-
 
8754
      }
-
 
8755
 
-
 
8756
      /**
-
 
8757
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8758
       * if it is not found.
-
 
8759
       */
-
 
8760
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8761
        _Fields fields = findByThriftId(fieldId);
-
 
8762
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8763
        return fields;
-
 
8764
      }
-
 
8765
 
-
 
8766
      /**
-
 
8767
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8768
       */
-
 
8769
      public static _Fields findByName(String name) {
-
 
8770
        return byName.get(name);
-
 
8771
      }
-
 
8772
 
-
 
8773
      private final short _thriftId;
-
 
8774
      private final String _fieldName;
-
 
8775
 
-
 
8776
      _Fields(short thriftId, String fieldName) {
-
 
8777
        _thriftId = thriftId;
-
 
8778
        _fieldName = fieldName;
-
 
8779
      }
-
 
8780
 
-
 
8781
      public short getThriftFieldId() {
-
 
8782
        return _thriftId;
-
 
8783
      }
-
 
8784
 
-
 
8785
      public String getFieldName() {
-
 
8786
        return _fieldName;
-
 
8787
      }
-
 
8788
    }
-
 
8789
 
-
 
8790
    // isset id assignments
-
 
8791
    private static final int __PICKUP_ISSET_ID = 0;
-
 
8792
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
8793
 
-
 
8794
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
8795
    static {
-
 
8796
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8797
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8798
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
8799
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
8800
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
-
 
8801
    }
-
 
8802
 
-
 
8803
    public getProviderForPickupType_args() {
-
 
8804
    }
-
 
8805
 
-
 
8806
    public getProviderForPickupType_args(
-
 
8807
      long pickUp)
-
 
8808
    {
-
 
8809
      this();
-
 
8810
      this.pickUp = pickUp;
-
 
8811
      setPickUpIsSet(true);
-
 
8812
    }
-
 
8813
 
-
 
8814
    /**
-
 
8815
     * Performs a deep copy on <i>other</i>.
-
 
8816
     */
-
 
8817
    public getProviderForPickupType_args(getProviderForPickupType_args other) {
-
 
8818
      __isset_bit_vector.clear();
-
 
8819
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
8820
      this.pickUp = other.pickUp;
-
 
8821
    }
-
 
8822
 
-
 
8823
    public getProviderForPickupType_args deepCopy() {
-
 
8824
      return new getProviderForPickupType_args(this);
-
 
8825
    }
-
 
8826
 
-
 
8827
    @Override
-
 
8828
    public void clear() {
-
 
8829
      setPickUpIsSet(false);
-
 
8830
      this.pickUp = 0;
-
 
8831
    }
-
 
8832
 
-
 
8833
    public long getPickUp() {
-
 
8834
      return this.pickUp;
-
 
8835
    }
-
 
8836
 
-
 
8837
    public void setPickUp(long pickUp) {
-
 
8838
      this.pickUp = pickUp;
-
 
8839
      setPickUpIsSet(true);
-
 
8840
    }
-
 
8841
 
-
 
8842
    public void unsetPickUp() {
-
 
8843
      __isset_bit_vector.clear(__PICKUP_ISSET_ID);
-
 
8844
    }
-
 
8845
 
-
 
8846
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
-
 
8847
    public boolean isSetPickUp() {
-
 
8848
      return __isset_bit_vector.get(__PICKUP_ISSET_ID);
-
 
8849
    }
-
 
8850
 
-
 
8851
    public void setPickUpIsSet(boolean value) {
-
 
8852
      __isset_bit_vector.set(__PICKUP_ISSET_ID, value);
-
 
8853
    }
-
 
8854
 
-
 
8855
    public void setFieldValue(_Fields field, Object value) {
-
 
8856
      switch (field) {
-
 
8857
      case PICK_UP:
-
 
8858
        if (value == null) {
-
 
8859
          unsetPickUp();
-
 
8860
        } else {
-
 
8861
          setPickUp((Long)value);
-
 
8862
        }
-
 
8863
        break;
-
 
8864
 
-
 
8865
      }
-
 
8866
    }
-
 
8867
 
-
 
8868
    public Object getFieldValue(_Fields field) {
-
 
8869
      switch (field) {
-
 
8870
      case PICK_UP:
-
 
8871
        return Long.valueOf(getPickUp());
-
 
8872
 
-
 
8873
      }
-
 
8874
      throw new IllegalStateException();
-
 
8875
    }
-
 
8876
 
-
 
8877
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
8878
    public boolean isSet(_Fields field) {
-
 
8879
      if (field == null) {
-
 
8880
        throw new IllegalArgumentException();
-
 
8881
      }
-
 
8882
 
-
 
8883
      switch (field) {
-
 
8884
      case PICK_UP:
-
 
8885
        return isSetPickUp();
-
 
8886
      }
-
 
8887
      throw new IllegalStateException();
-
 
8888
    }
-
 
8889
 
-
 
8890
    @Override
-
 
8891
    public boolean equals(Object that) {
-
 
8892
      if (that == null)
-
 
8893
        return false;
-
 
8894
      if (that instanceof getProviderForPickupType_args)
-
 
8895
        return this.equals((getProviderForPickupType_args)that);
-
 
8896
      return false;
-
 
8897
    }
-
 
8898
 
-
 
8899
    public boolean equals(getProviderForPickupType_args that) {
-
 
8900
      if (that == null)
-
 
8901
        return false;
-
 
8902
 
-
 
8903
      boolean this_present_pickUp = true;
-
 
8904
      boolean that_present_pickUp = true;
-
 
8905
      if (this_present_pickUp || that_present_pickUp) {
-
 
8906
        if (!(this_present_pickUp && that_present_pickUp))
-
 
8907
          return false;
-
 
8908
        if (this.pickUp != that.pickUp)
-
 
8909
          return false;
-
 
8910
      }
-
 
8911
 
-
 
8912
      return true;
-
 
8913
    }
-
 
8914
 
-
 
8915
    @Override
-
 
8916
    public int hashCode() {
-
 
8917
      return 0;
-
 
8918
    }
-
 
8919
 
-
 
8920
    public int compareTo(getProviderForPickupType_args other) {
-
 
8921
      if (!getClass().equals(other.getClass())) {
-
 
8922
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8923
      }
-
 
8924
 
-
 
8925
      int lastComparison = 0;
-
 
8926
      getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
-
 
8927
 
-
 
8928
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
-
 
8929
      if (lastComparison != 0) {
-
 
8930
        return lastComparison;
-
 
8931
      }
-
 
8932
      if (isSetPickUp()) {
-
 
8933
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
-
 
8934
        if (lastComparison != 0) {
-
 
8935
          return lastComparison;
-
 
8936
        }
-
 
8937
      }
-
 
8938
      return 0;
-
 
8939
    }
-
 
8940
 
-
 
8941
    public _Fields fieldForId(int fieldId) {
-
 
8942
      return _Fields.findByThriftId(fieldId);
-
 
8943
    }
-
 
8944
 
-
 
8945
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
8946
      org.apache.thrift.protocol.TField field;
-
 
8947
      iprot.readStructBegin();
-
 
8948
      while (true)
-
 
8949
      {
-
 
8950
        field = iprot.readFieldBegin();
-
 
8951
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
8952
          break;
-
 
8953
        }
-
 
8954
        switch (field.id) {
-
 
8955
          case 1: // PICK_UP
-
 
8956
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
8957
              this.pickUp = iprot.readI64();
-
 
8958
              setPickUpIsSet(true);
-
 
8959
            } else { 
-
 
8960
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8961
            }
-
 
8962
            break;
-
 
8963
          default:
-
 
8964
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8965
        }
-
 
8966
        iprot.readFieldEnd();
-
 
8967
      }
-
 
8968
      iprot.readStructEnd();
-
 
8969
      validate();
-
 
8970
    }
-
 
8971
 
-
 
8972
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
8973
      validate();
-
 
8974
 
-
 
8975
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8976
      oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
-
 
8977
      oprot.writeI64(this.pickUp);
-
 
8978
      oprot.writeFieldEnd();
-
 
8979
      oprot.writeFieldStop();
-
 
8980
      oprot.writeStructEnd();
-
 
8981
    }
-
 
8982
 
-
 
8983
    @Override
-
 
8984
    public String toString() {
-
 
8985
      StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
-
 
8986
      boolean first = true;
-
 
8987
 
-
 
8988
      sb.append("pickUp:");
-
 
8989
      sb.append(this.pickUp);
-
 
8990
      first = false;
-
 
8991
      sb.append(")");
-
 
8992
      return sb.toString();
-
 
8993
    }
-
 
8994
 
-
 
8995
    public void validate() throws org.apache.thrift.TException {
-
 
8996
      // check for required fields
-
 
8997
    }
-
 
8998
 
-
 
8999
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
9000
      try {
-
 
9001
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
9002
      } catch (org.apache.thrift.TException te) {
-
 
9003
        throw new java.io.IOException(te);
-
 
9004
      }
-
 
9005
    }
-
 
9006
 
-
 
9007
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
9008
      try {
-
 
9009
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
9010
        __isset_bit_vector = new BitSet(1);
-
 
9011
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9012
      } catch (org.apache.thrift.TException te) {
-
 
9013
        throw new java.io.IOException(te);
-
 
9014
      }
-
 
9015
    }
-
 
9016
 
-
 
9017
  }
-
 
9018
 
-
 
9019
  public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable   {
-
 
9020
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
-
 
9021
 
-
 
9022
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
9023
 
-
 
9024
    private long success; // required
-
 
9025
 
-
 
9026
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9027
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
9028
      SUCCESS((short)0, "success");
-
 
9029
 
-
 
9030
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9031
 
-
 
9032
      static {
-
 
9033
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9034
          byName.put(field.getFieldName(), field);
-
 
9035
        }
-
 
9036
      }
-
 
9037
 
-
 
9038
      /**
-
 
9039
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9040
       */
-
 
9041
      public static _Fields findByThriftId(int fieldId) {
-
 
9042
        switch(fieldId) {
-
 
9043
          case 0: // SUCCESS
-
 
9044
            return SUCCESS;
-
 
9045
          default:
-
 
9046
            return null;
-
 
9047
        }
-
 
9048
      }
-
 
9049
 
-
 
9050
      /**
-
 
9051
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9052
       * if it is not found.
-
 
9053
       */
-
 
9054
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9055
        _Fields fields = findByThriftId(fieldId);
-
 
9056
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9057
        return fields;
-
 
9058
      }
-
 
9059
 
-
 
9060
      /**
-
 
9061
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9062
       */
-
 
9063
      public static _Fields findByName(String name) {
-
 
9064
        return byName.get(name);
-
 
9065
      }
-
 
9066
 
-
 
9067
      private final short _thriftId;
-
 
9068
      private final String _fieldName;
-
 
9069
 
-
 
9070
      _Fields(short thriftId, String fieldName) {
-
 
9071
        _thriftId = thriftId;
-
 
9072
        _fieldName = fieldName;
-
 
9073
      }
-
 
9074
 
-
 
9075
      public short getThriftFieldId() {
-
 
9076
        return _thriftId;
-
 
9077
      }
-
 
9078
 
-
 
9079
      public String getFieldName() {
-
 
9080
        return _fieldName;
-
 
9081
      }
-
 
9082
    }
-
 
9083
 
-
 
9084
    // isset id assignments
-
 
9085
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
9086
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
9087
 
-
 
9088
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
9089
    static {
-
 
9090
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
9091
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9092
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
9093
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
9094
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
-
 
9095
    }
-
 
9096
 
-
 
9097
    public getProviderForPickupType_result() {
-
 
9098
    }
-
 
9099
 
-
 
9100
    public getProviderForPickupType_result(
-
 
9101
      long success)
-
 
9102
    {
-
 
9103
      this();
-
 
9104
      this.success = success;
-
 
9105
      setSuccessIsSet(true);
-
 
9106
    }
-
 
9107
 
-
 
9108
    /**
-
 
9109
     * Performs a deep copy on <i>other</i>.
-
 
9110
     */
-
 
9111
    public getProviderForPickupType_result(getProviderForPickupType_result other) {
-
 
9112
      __isset_bit_vector.clear();
-
 
9113
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
9114
      this.success = other.success;
-
 
9115
    }
-
 
9116
 
-
 
9117
    public getProviderForPickupType_result deepCopy() {
-
 
9118
      return new getProviderForPickupType_result(this);
-
 
9119
    }
-
 
9120
 
-
 
9121
    @Override
-
 
9122
    public void clear() {
-
 
9123
      setSuccessIsSet(false);
-
 
9124
      this.success = 0;
-
 
9125
    }
-
 
9126
 
-
 
9127
    public long getSuccess() {
-
 
9128
      return this.success;
-
 
9129
    }
-
 
9130
 
-
 
9131
    public void setSuccess(long success) {
-
 
9132
      this.success = success;
-
 
9133
      setSuccessIsSet(true);
-
 
9134
    }
-
 
9135
 
-
 
9136
    public void unsetSuccess() {
-
 
9137
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
9138
    }
-
 
9139
 
-
 
9140
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
9141
    public boolean isSetSuccess() {
-
 
9142
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
9143
    }
-
 
9144
 
-
 
9145
    public void setSuccessIsSet(boolean value) {
-
 
9146
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
9147
    }
-
 
9148
 
-
 
9149
    public void setFieldValue(_Fields field, Object value) {
-
 
9150
      switch (field) {
-
 
9151
      case SUCCESS:
-
 
9152
        if (value == null) {
-
 
9153
          unsetSuccess();
-
 
9154
        } else {
-
 
9155
          setSuccess((Long)value);
-
 
9156
        }
-
 
9157
        break;
-
 
9158
 
-
 
9159
      }
-
 
9160
    }
-
 
9161
 
-
 
9162
    public Object getFieldValue(_Fields field) {
-
 
9163
      switch (field) {
-
 
9164
      case SUCCESS:
-
 
9165
        return Long.valueOf(getSuccess());
-
 
9166
 
-
 
9167
      }
-
 
9168
      throw new IllegalStateException();
-
 
9169
    }
-
 
9170
 
-
 
9171
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
9172
    public boolean isSet(_Fields field) {
-
 
9173
      if (field == null) {
-
 
9174
        throw new IllegalArgumentException();
-
 
9175
      }
-
 
9176
 
-
 
9177
      switch (field) {
-
 
9178
      case SUCCESS:
-
 
9179
        return isSetSuccess();
-
 
9180
      }
-
 
9181
      throw new IllegalStateException();
-
 
9182
    }
-
 
9183
 
-
 
9184
    @Override
-
 
9185
    public boolean equals(Object that) {
-
 
9186
      if (that == null)
-
 
9187
        return false;
-
 
9188
      if (that instanceof getProviderForPickupType_result)
-
 
9189
        return this.equals((getProviderForPickupType_result)that);
-
 
9190
      return false;
-
 
9191
    }
-
 
9192
 
-
 
9193
    public boolean equals(getProviderForPickupType_result that) {
-
 
9194
      if (that == null)
-
 
9195
        return false;
-
 
9196
 
-
 
9197
      boolean this_present_success = true;
-
 
9198
      boolean that_present_success = true;
-
 
9199
      if (this_present_success || that_present_success) {
-
 
9200
        if (!(this_present_success && that_present_success))
-
 
9201
          return false;
-
 
9202
        if (this.success != that.success)
-
 
9203
          return false;
-
 
9204
      }
-
 
9205
 
-
 
9206
      return true;
-
 
9207
    }
-
 
9208
 
-
 
9209
    @Override
-
 
9210
    public int hashCode() {
-
 
9211
      return 0;
-
 
9212
    }
-
 
9213
 
-
 
9214
    public int compareTo(getProviderForPickupType_result other) {
-
 
9215
      if (!getClass().equals(other.getClass())) {
-
 
9216
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9217
      }
-
 
9218
 
-
 
9219
      int lastComparison = 0;
-
 
9220
      getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
-
 
9221
 
-
 
9222
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
9223
      if (lastComparison != 0) {
-
 
9224
        return lastComparison;
-
 
9225
      }
-
 
9226
      if (isSetSuccess()) {
-
 
9227
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
9228
        if (lastComparison != 0) {
-
 
9229
          return lastComparison;
-
 
9230
        }
-
 
9231
      }
-
 
9232
      return 0;
-
 
9233
    }
-
 
9234
 
-
 
9235
    public _Fields fieldForId(int fieldId) {
-
 
9236
      return _Fields.findByThriftId(fieldId);
-
 
9237
    }
-
 
9238
 
-
 
9239
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
9240
      org.apache.thrift.protocol.TField field;
-
 
9241
      iprot.readStructBegin();
-
 
9242
      while (true)
-
 
9243
      {
-
 
9244
        field = iprot.readFieldBegin();
-
 
9245
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
9246
          break;
-
 
9247
        }
-
 
9248
        switch (field.id) {
-
 
9249
          case 0: // SUCCESS
-
 
9250
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
9251
              this.success = iprot.readI64();
-
 
9252
              setSuccessIsSet(true);
-
 
9253
            } else { 
-
 
9254
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9255
            }
-
 
9256
            break;
-
 
9257
          default:
-
 
9258
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9259
        }
-
 
9260
        iprot.readFieldEnd();
-
 
9261
      }
-
 
9262
      iprot.readStructEnd();
-
 
9263
      validate();
-
 
9264
    }
-
 
9265
 
-
 
9266
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
9267
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9268
 
-
 
9269
      if (this.isSetSuccess()) {
-
 
9270
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
9271
        oprot.writeI64(this.success);
-
 
9272
        oprot.writeFieldEnd();
-
 
9273
      }
-
 
9274
      oprot.writeFieldStop();
-
 
9275
      oprot.writeStructEnd();
-
 
9276
    }
-
 
9277
 
-
 
9278
    @Override
-
 
9279
    public String toString() {
-
 
9280
      StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
-
 
9281
      boolean first = true;
-
 
9282
 
-
 
9283
      sb.append("success:");
-
 
9284
      sb.append(this.success);
-
 
9285
      first = false;
-
 
9286
      sb.append(")");
-
 
9287
      return sb.toString();
-
 
9288
    }
-
 
9289
 
8621
    public void validate() throws org.apache.thrift.TException {
9290
    public void validate() throws org.apache.thrift.TException {
8622
      // check for required fields
9291
      // check for required fields
8623
    }
9292
    }
8624
 
9293
 
8625
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9294
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {