Subversion Repositories SmartDukaan

Rev

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

Rev 19413 Rev 19421
Line 156... Line 156...
156
     * @param destPincode
156
     * @param destPincode
157
     * @param price
157
     * @param price
158
     */
158
     */
159
    public Map<Long,Map<Long,LocationInfo>> getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException;
159
    public Map<Long,Map<Long,LocationInfo>> getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException;
160
 
160
 
-
 
161
    public DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId) throws LogisticsServiceException, org.apache.thrift.TException;
-
 
162
 
161
  }
163
  }
162
 
164
 
163
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
165
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
164
 
166
 
165
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
167
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
Line 210... Line 212...
210
 
212
 
211
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException;
213
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException;
212
 
214
 
213
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException;
215
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException;
214
 
216
 
-
 
217
    public void getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCostingAndDeliveryEstimateForPincode_call> resultHandler) throws org.apache.thrift.TException;
-
 
218
 
215
  }
219
  }
216
 
220
 
217
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
221
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
218
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
222
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
219
      public Factory() {}
223
      public Factory() {}
Line 863... Line 867...
863
        return result.success;
867
        return result.success;
864
      }
868
      }
865
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLocationInfoMap failed: unknown result");
869
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLocationInfoMap failed: unknown result");
866
    }
870
    }
867
 
871
 
-
 
872
    public DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId) throws LogisticsServiceException, org.apache.thrift.TException
-
 
873
    {
-
 
874
      send_getCostingAndDeliveryEstimateForPincode(pincode, transactionAmount, isCod, weight, billingWarehouseId);
-
 
875
      return recv_getCostingAndDeliveryEstimateForPincode();
-
 
876
    }
-
 
877
 
-
 
878
    public void send_getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId) throws org.apache.thrift.TException
-
 
879
    {
-
 
880
      getCostingAndDeliveryEstimateForPincode_args args = new getCostingAndDeliveryEstimateForPincode_args();
-
 
881
      args.setPincode(pincode);
-
 
882
      args.setTransactionAmount(transactionAmount);
-
 
883
      args.setIsCod(isCod);
-
 
884
      args.setWeight(weight);
-
 
885
      args.setBillingWarehouseId(billingWarehouseId);
-
 
886
      sendBase("getCostingAndDeliveryEstimateForPincode", args);
-
 
887
    }
-
 
888
 
-
 
889
    public DeliveryEstimateAndCosting recv_getCostingAndDeliveryEstimateForPincode() throws LogisticsServiceException, org.apache.thrift.TException
-
 
890
    {
-
 
891
      getCostingAndDeliveryEstimateForPincode_result result = new getCostingAndDeliveryEstimateForPincode_result();
-
 
892
      receiveBase(result, "getCostingAndDeliveryEstimateForPincode");
-
 
893
      if (result.isSetSuccess()) {
-
 
894
        return result.success;
-
 
895
      }
-
 
896
      if (result.se != null) {
-
 
897
        throw result.se;
-
 
898
      }
-
 
899
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCostingAndDeliveryEstimateForPincode failed: unknown result");
-
 
900
    }
-
 
901
 
868
  }
902
  }
869
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
903
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
870
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
904
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
871
      private org.apache.thrift.async.TAsyncClientManager clientManager;
905
      private org.apache.thrift.async.TAsyncClientManager clientManager;
872
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
906
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1777... Line 1811...
1777
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1811
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1778
        return (new Client(prot)).recv_getLocationInfoMap();
1812
        return (new Client(prot)).recv_getLocationInfoMap();
1779
      }
1813
      }
1780
    }
1814
    }
1781
 
1815
 
-
 
1816
    public void getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getCostingAndDeliveryEstimateForPincode_call> resultHandler) throws org.apache.thrift.TException {
-
 
1817
      checkReady();
-
 
1818
      getCostingAndDeliveryEstimateForPincode_call method_call = new getCostingAndDeliveryEstimateForPincode_call(pincode, transactionAmount, isCod, weight, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
1819
      this.___currentMethod = method_call;
-
 
1820
      ___manager.call(method_call);
-
 
1821
    }
-
 
1822
 
-
 
1823
    public static class getCostingAndDeliveryEstimateForPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1824
      private String pincode;
-
 
1825
      private double transactionAmount;
-
 
1826
      private boolean isCod;
-
 
1827
      private double weight;
-
 
1828
      private long billingWarehouseId;
-
 
1829
      public getCostingAndDeliveryEstimateForPincode_call(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getCostingAndDeliveryEstimateForPincode_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 {
-
 
1830
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1831
        this.pincode = pincode;
-
 
1832
        this.transactionAmount = transactionAmount;
-
 
1833
        this.isCod = isCod;
-
 
1834
        this.weight = weight;
-
 
1835
        this.billingWarehouseId = billingWarehouseId;
-
 
1836
      }
-
 
1837
 
-
 
1838
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1839
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCostingAndDeliveryEstimateForPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1840
        getCostingAndDeliveryEstimateForPincode_args args = new getCostingAndDeliveryEstimateForPincode_args();
-
 
1841
        args.setPincode(pincode);
-
 
1842
        args.setTransactionAmount(transactionAmount);
-
 
1843
        args.setIsCod(isCod);
-
 
1844
        args.setWeight(weight);
-
 
1845
        args.setBillingWarehouseId(billingWarehouseId);
-
 
1846
        args.write(prot);
-
 
1847
        prot.writeMessageEnd();
-
 
1848
      }
-
 
1849
 
-
 
1850
      public DeliveryEstimateAndCosting getResult() throws LogisticsServiceException, org.apache.thrift.TException {
-
 
1851
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1852
          throw new IllegalStateException("Method call not finished!");
-
 
1853
        }
-
 
1854
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1855
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1856
        return (new Client(prot)).recv_getCostingAndDeliveryEstimateForPincode();
-
 
1857
      }
-
 
1858
    }
-
 
1859
 
1782
  }
1860
  }
1783
 
1861
 
1784
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1862
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1785
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1863
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1786
    public Processor(I iface) {
1864
    public Processor(I iface) {
Line 1815... Line 1893...
1815
      processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
1893
      processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
1816
      processMap.put("getFirstDeliveryEstimateForWhLocation", new getFirstDeliveryEstimateForWhLocation());
1894
      processMap.put("getFirstDeliveryEstimateForWhLocation", new getFirstDeliveryEstimateForWhLocation());
1817
      processMap.put("getNewEmptyAwb", new getNewEmptyAwb());
1895
      processMap.put("getNewEmptyAwb", new getNewEmptyAwb());
1818
      processMap.put("getProviderLimitDetailsForPincode", new getProviderLimitDetailsForPincode());
1896
      processMap.put("getProviderLimitDetailsForPincode", new getProviderLimitDetailsForPincode());
1819
      processMap.put("getLocationInfoMap", new getLocationInfoMap());
1897
      processMap.put("getLocationInfoMap", new getLocationInfoMap());
-
 
1898
      processMap.put("getCostingAndDeliveryEstimateForPincode", new getCostingAndDeliveryEstimateForPincode());
1820
      return processMap;
1899
      return processMap;
1821
    }
1900
    }
1822
 
1901
 
1823
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1902
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1824
      public getProvider() {
1903
      public getProvider() {
Line 2271... Line 2350...
2271
        result.success = iface.getLocationInfoMap(args.destPincode, args.price);
2350
        result.success = iface.getLocationInfoMap(args.destPincode, args.price);
2272
        return result;
2351
        return result;
2273
      }
2352
      }
2274
    }
2353
    }
2275
 
2354
 
-
 
2355
    private static class getCostingAndDeliveryEstimateForPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCostingAndDeliveryEstimateForPincode_args> {
-
 
2356
      public getCostingAndDeliveryEstimateForPincode() {
-
 
2357
        super("getCostingAndDeliveryEstimateForPincode");
-
 
2358
      }
-
 
2359
 
-
 
2360
      protected getCostingAndDeliveryEstimateForPincode_args getEmptyArgsInstance() {
-
 
2361
        return new getCostingAndDeliveryEstimateForPincode_args();
-
 
2362
      }
-
 
2363
 
-
 
2364
      protected getCostingAndDeliveryEstimateForPincode_result getResult(I iface, getCostingAndDeliveryEstimateForPincode_args args) throws org.apache.thrift.TException {
-
 
2365
        getCostingAndDeliveryEstimateForPincode_result result = new getCostingAndDeliveryEstimateForPincode_result();
-
 
2366
        try {
-
 
2367
          result.success = iface.getCostingAndDeliveryEstimateForPincode(args.pincode, args.transactionAmount, args.isCod, args.weight, args.billingWarehouseId);
-
 
2368
        } catch (LogisticsServiceException se) {
-
 
2369
          result.se = se;
-
 
2370
        }
-
 
2371
        return result;
-
 
2372
      }
-
 
2373
    }
-
 
2374
 
2276
  }
2375
  }
2277
 
2376
 
2278
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
2377
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
2279
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
2378
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
2280
 
2379
 
Line 20856... Line 20955...
20856
      }
20955
      }
20857
      first = false;
20956
      first = false;
20858
      sb.append(")");
20957
      sb.append(")");
20859
      return sb.toString();
20958
      return sb.toString();
20860
    }
20959
    }
-
 
20960
 
-
 
20961
    public void validate() throws org.apache.thrift.TException {
-
 
20962
      // check for required fields
-
 
20963
    }
-
 
20964
 
-
 
20965
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
20966
      try {
-
 
20967
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
20968
      } catch (org.apache.thrift.TException te) {
-
 
20969
        throw new java.io.IOException(te);
-
 
20970
      }
-
 
20971
    }
-
 
20972
 
-
 
20973
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
20974
      try {
-
 
20975
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
20976
      } catch (org.apache.thrift.TException te) {
-
 
20977
        throw new java.io.IOException(te);
-
 
20978
      }
-
 
20979
    }
-
 
20980
 
-
 
20981
  }
-
 
20982
 
-
 
20983
  public static class getCostingAndDeliveryEstimateForPincode_args implements org.apache.thrift.TBase<getCostingAndDeliveryEstimateForPincode_args, getCostingAndDeliveryEstimateForPincode_args._Fields>, java.io.Serializable, Cloneable   {
-
 
20984
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingAndDeliveryEstimateForPincode_args");
-
 
20985
 
-
 
20986
    private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
20987
    private static final org.apache.thrift.protocol.TField TRANSACTION_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
-
 
20988
    private static final org.apache.thrift.protocol.TField IS_COD_FIELD_DESC = new org.apache.thrift.protocol.TField("isCod", org.apache.thrift.protocol.TType.BOOL, (short)3);
-
 
20989
    private static final org.apache.thrift.protocol.TField WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("weight", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
-
 
20990
    private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)5);
-
 
20991
 
-
 
20992
    private String pincode; // required
-
 
20993
    private double transactionAmount; // required
-
 
20994
    private boolean isCod; // required
-
 
20995
    private double weight; // required
-
 
20996
    private long billingWarehouseId; // required
-
 
20997
 
-
 
20998
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
20999
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
21000
      PINCODE((short)1, "pincode"),
-
 
21001
      TRANSACTION_AMOUNT((short)2, "transactionAmount"),
-
 
21002
      IS_COD((short)3, "isCod"),
-
 
21003
      WEIGHT((short)4, "weight"),
-
 
21004
      BILLING_WAREHOUSE_ID((short)5, "billingWarehouseId");
-
 
21005
 
-
 
21006
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
21007
 
-
 
21008
      static {
-
 
21009
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
21010
          byName.put(field.getFieldName(), field);
-
 
21011
        }
-
 
21012
      }
-
 
21013
 
-
 
21014
      /**
-
 
21015
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
21016
       */
-
 
21017
      public static _Fields findByThriftId(int fieldId) {
-
 
21018
        switch(fieldId) {
-
 
21019
          case 1: // PINCODE
-
 
21020
            return PINCODE;
-
 
21021
          case 2: // TRANSACTION_AMOUNT
-
 
21022
            return TRANSACTION_AMOUNT;
-
 
21023
          case 3: // IS_COD
-
 
21024
            return IS_COD;
-
 
21025
          case 4: // WEIGHT
-
 
21026
            return WEIGHT;
-
 
21027
          case 5: // BILLING_WAREHOUSE_ID
-
 
21028
            return BILLING_WAREHOUSE_ID;
-
 
21029
          default:
-
 
21030
            return null;
-
 
21031
        }
-
 
21032
      }
-
 
21033
 
-
 
21034
      /**
-
 
21035
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
21036
       * if it is not found.
-
 
21037
       */
-
 
21038
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
21039
        _Fields fields = findByThriftId(fieldId);
-
 
21040
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
21041
        return fields;
-
 
21042
      }
-
 
21043
 
-
 
21044
      /**
-
 
21045
       * Find the _Fields constant that matches name, or null if its not found.
-
 
21046
       */
-
 
21047
      public static _Fields findByName(String name) {
-
 
21048
        return byName.get(name);
-
 
21049
      }
-
 
21050
 
-
 
21051
      private final short _thriftId;
-
 
21052
      private final String _fieldName;
-
 
21053
 
-
 
21054
      _Fields(short thriftId, String fieldName) {
-
 
21055
        _thriftId = thriftId;
-
 
21056
        _fieldName = fieldName;
-
 
21057
      }
-
 
21058
 
-
 
21059
      public short getThriftFieldId() {
-
 
21060
        return _thriftId;
-
 
21061
      }
-
 
21062
 
-
 
21063
      public String getFieldName() {
-
 
21064
        return _fieldName;
-
 
21065
      }
-
 
21066
    }
-
 
21067
 
-
 
21068
    // isset id assignments
-
 
21069
    private static final int __TRANSACTIONAMOUNT_ISSET_ID = 0;
-
 
21070
    private static final int __ISCOD_ISSET_ID = 1;
-
 
21071
    private static final int __WEIGHT_ISSET_ID = 2;
-
 
21072
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
-
 
21073
    private BitSet __isset_bit_vector = new BitSet(4);
-
 
21074
 
-
 
21075
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
21076
    static {
-
 
21077
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
21078
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
21079
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
21080
      tmpMap.put(_Fields.TRANSACTION_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("transactionAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
21081
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
21082
      tmpMap.put(_Fields.IS_COD, new org.apache.thrift.meta_data.FieldMetaData("isCod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
21083
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
21084
      tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
21085
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
21086
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
21087
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
21088
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
21089
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingAndDeliveryEstimateForPincode_args.class, metaDataMap);
-
 
21090
    }
-
 
21091
 
-
 
21092
    public getCostingAndDeliveryEstimateForPincode_args() {
-
 
21093
    }
-
 
21094
 
-
 
21095
    public getCostingAndDeliveryEstimateForPincode_args(
-
 
21096
      String pincode,
-
 
21097
      double transactionAmount,
-
 
21098
      boolean isCod,
-
 
21099
      double weight,
-
 
21100
      long billingWarehouseId)
-
 
21101
    {
-
 
21102
      this();
-
 
21103
      this.pincode = pincode;
-
 
21104
      this.transactionAmount = transactionAmount;
-
 
21105
      setTransactionAmountIsSet(true);
-
 
21106
      this.isCod = isCod;
-
 
21107
      setIsCodIsSet(true);
-
 
21108
      this.weight = weight;
-
 
21109
      setWeightIsSet(true);
-
 
21110
      this.billingWarehouseId = billingWarehouseId;
-
 
21111
      setBillingWarehouseIdIsSet(true);
-
 
21112
    }
-
 
21113
 
-
 
21114
    /**
-
 
21115
     * Performs a deep copy on <i>other</i>.
-
 
21116
     */
-
 
21117
    public getCostingAndDeliveryEstimateForPincode_args(getCostingAndDeliveryEstimateForPincode_args other) {
-
 
21118
      __isset_bit_vector.clear();
-
 
21119
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
21120
      if (other.isSetPincode()) {
-
 
21121
        this.pincode = other.pincode;
-
 
21122
      }
-
 
21123
      this.transactionAmount = other.transactionAmount;
-
 
21124
      this.isCod = other.isCod;
-
 
21125
      this.weight = other.weight;
-
 
21126
      this.billingWarehouseId = other.billingWarehouseId;
-
 
21127
    }
-
 
21128
 
-
 
21129
    public getCostingAndDeliveryEstimateForPincode_args deepCopy() {
-
 
21130
      return new getCostingAndDeliveryEstimateForPincode_args(this);
-
 
21131
    }
-
 
21132
 
-
 
21133
    @Override
-
 
21134
    public void clear() {
-
 
21135
      this.pincode = null;
-
 
21136
      setTransactionAmountIsSet(false);
-
 
21137
      this.transactionAmount = 0.0;
-
 
21138
      setIsCodIsSet(false);
-
 
21139
      this.isCod = false;
-
 
21140
      setWeightIsSet(false);
-
 
21141
      this.weight = 0.0;
-
 
21142
      setBillingWarehouseIdIsSet(false);
-
 
21143
      this.billingWarehouseId = 0;
-
 
21144
    }
-
 
21145
 
-
 
21146
    public String getPincode() {
-
 
21147
      return this.pincode;
-
 
21148
    }
-
 
21149
 
-
 
21150
    public void setPincode(String pincode) {
-
 
21151
      this.pincode = pincode;
-
 
21152
    }
-
 
21153
 
-
 
21154
    public void unsetPincode() {
-
 
21155
      this.pincode = null;
-
 
21156
    }
-
 
21157
 
-
 
21158
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
-
 
21159
    public boolean isSetPincode() {
-
 
21160
      return this.pincode != null;
-
 
21161
    }
-
 
21162
 
-
 
21163
    public void setPincodeIsSet(boolean value) {
-
 
21164
      if (!value) {
-
 
21165
        this.pincode = null;
-
 
21166
      }
-
 
21167
    }
-
 
21168
 
-
 
21169
    public double getTransactionAmount() {
-
 
21170
      return this.transactionAmount;
-
 
21171
    }
-
 
21172
 
-
 
21173
    public void setTransactionAmount(double transactionAmount) {
-
 
21174
      this.transactionAmount = transactionAmount;
-
 
21175
      setTransactionAmountIsSet(true);
-
 
21176
    }
-
 
21177
 
-
 
21178
    public void unsetTransactionAmount() {
-
 
21179
      __isset_bit_vector.clear(__TRANSACTIONAMOUNT_ISSET_ID);
-
 
21180
    }
-
 
21181
 
-
 
21182
    /** Returns true if field transactionAmount is set (has been assigned a value) and false otherwise */
-
 
21183
    public boolean isSetTransactionAmount() {
-
 
21184
      return __isset_bit_vector.get(__TRANSACTIONAMOUNT_ISSET_ID);
-
 
21185
    }
-
 
21186
 
-
 
21187
    public void setTransactionAmountIsSet(boolean value) {
-
 
21188
      __isset_bit_vector.set(__TRANSACTIONAMOUNT_ISSET_ID, value);
-
 
21189
    }
-
 
21190
 
-
 
21191
    public boolean isIsCod() {
-
 
21192
      return this.isCod;
-
 
21193
    }
-
 
21194
 
-
 
21195
    public void setIsCod(boolean isCod) {
-
 
21196
      this.isCod = isCod;
-
 
21197
      setIsCodIsSet(true);
-
 
21198
    }
-
 
21199
 
-
 
21200
    public void unsetIsCod() {
-
 
21201
      __isset_bit_vector.clear(__ISCOD_ISSET_ID);
-
 
21202
    }
-
 
21203
 
-
 
21204
    /** Returns true if field isCod is set (has been assigned a value) and false otherwise */
-
 
21205
    public boolean isSetIsCod() {
-
 
21206
      return __isset_bit_vector.get(__ISCOD_ISSET_ID);
-
 
21207
    }
-
 
21208
 
-
 
21209
    public void setIsCodIsSet(boolean value) {
-
 
21210
      __isset_bit_vector.set(__ISCOD_ISSET_ID, value);
-
 
21211
    }
-
 
21212
 
-
 
21213
    public double getWeight() {
-
 
21214
      return this.weight;
-
 
21215
    }
-
 
21216
 
-
 
21217
    public void setWeight(double weight) {
-
 
21218
      this.weight = weight;
-
 
21219
      setWeightIsSet(true);
-
 
21220
    }
-
 
21221
 
-
 
21222
    public void unsetWeight() {
-
 
21223
      __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
-
 
21224
    }
-
 
21225
 
-
 
21226
    /** Returns true if field weight is set (has been assigned a value) and false otherwise */
-
 
21227
    public boolean isSetWeight() {
-
 
21228
      return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
-
 
21229
    }
-
 
21230
 
-
 
21231
    public void setWeightIsSet(boolean value) {
-
 
21232
      __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
-
 
21233
    }
-
 
21234
 
-
 
21235
    public long getBillingWarehouseId() {
-
 
21236
      return this.billingWarehouseId;
-
 
21237
    }
-
 
21238
 
-
 
21239
    public void setBillingWarehouseId(long billingWarehouseId) {
-
 
21240
      this.billingWarehouseId = billingWarehouseId;
-
 
21241
      setBillingWarehouseIdIsSet(true);
-
 
21242
    }
-
 
21243
 
-
 
21244
    public void unsetBillingWarehouseId() {
-
 
21245
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
-
 
21246
    }
-
 
21247
 
-
 
21248
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
-
 
21249
    public boolean isSetBillingWarehouseId() {
-
 
21250
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
-
 
21251
    }
-
 
21252
 
-
 
21253
    public void setBillingWarehouseIdIsSet(boolean value) {
-
 
21254
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
-
 
21255
    }
-
 
21256
 
-
 
21257
    public void setFieldValue(_Fields field, Object value) {
-
 
21258
      switch (field) {
-
 
21259
      case PINCODE:
-
 
21260
        if (value == null) {
-
 
21261
          unsetPincode();
-
 
21262
        } else {
-
 
21263
          setPincode((String)value);
-
 
21264
        }
-
 
21265
        break;
-
 
21266
 
-
 
21267
      case TRANSACTION_AMOUNT:
-
 
21268
        if (value == null) {
-
 
21269
          unsetTransactionAmount();
-
 
21270
        } else {
-
 
21271
          setTransactionAmount((Double)value);
-
 
21272
        }
-
 
21273
        break;
-
 
21274
 
-
 
21275
      case IS_COD:
-
 
21276
        if (value == null) {
-
 
21277
          unsetIsCod();
-
 
21278
        } else {
-
 
21279
          setIsCod((Boolean)value);
-
 
21280
        }
-
 
21281
        break;
-
 
21282
 
-
 
21283
      case WEIGHT:
-
 
21284
        if (value == null) {
-
 
21285
          unsetWeight();
-
 
21286
        } else {
-
 
21287
          setWeight((Double)value);
-
 
21288
        }
-
 
21289
        break;
-
 
21290
 
-
 
21291
      case BILLING_WAREHOUSE_ID:
-
 
21292
        if (value == null) {
-
 
21293
          unsetBillingWarehouseId();
-
 
21294
        } else {
-
 
21295
          setBillingWarehouseId((Long)value);
-
 
21296
        }
-
 
21297
        break;
-
 
21298
 
-
 
21299
      }
-
 
21300
    }
-
 
21301
 
-
 
21302
    public Object getFieldValue(_Fields field) {
-
 
21303
      switch (field) {
-
 
21304
      case PINCODE:
-
 
21305
        return getPincode();
-
 
21306
 
-
 
21307
      case TRANSACTION_AMOUNT:
-
 
21308
        return Double.valueOf(getTransactionAmount());
-
 
21309
 
-
 
21310
      case IS_COD:
-
 
21311
        return Boolean.valueOf(isIsCod());
-
 
21312
 
-
 
21313
      case WEIGHT:
-
 
21314
        return Double.valueOf(getWeight());
-
 
21315
 
-
 
21316
      case BILLING_WAREHOUSE_ID:
-
 
21317
        return Long.valueOf(getBillingWarehouseId());
-
 
21318
 
-
 
21319
      }
-
 
21320
      throw new IllegalStateException();
-
 
21321
    }
-
 
21322
 
-
 
21323
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
21324
    public boolean isSet(_Fields field) {
-
 
21325
      if (field == null) {
-
 
21326
        throw new IllegalArgumentException();
-
 
21327
      }
-
 
21328
 
-
 
21329
      switch (field) {
-
 
21330
      case PINCODE:
-
 
21331
        return isSetPincode();
-
 
21332
      case TRANSACTION_AMOUNT:
-
 
21333
        return isSetTransactionAmount();
-
 
21334
      case IS_COD:
-
 
21335
        return isSetIsCod();
-
 
21336
      case WEIGHT:
-
 
21337
        return isSetWeight();
-
 
21338
      case BILLING_WAREHOUSE_ID:
-
 
21339
        return isSetBillingWarehouseId();
-
 
21340
      }
-
 
21341
      throw new IllegalStateException();
-
 
21342
    }
-
 
21343
 
-
 
21344
    @Override
-
 
21345
    public boolean equals(Object that) {
-
 
21346
      if (that == null)
-
 
21347
        return false;
-
 
21348
      if (that instanceof getCostingAndDeliveryEstimateForPincode_args)
-
 
21349
        return this.equals((getCostingAndDeliveryEstimateForPincode_args)that);
-
 
21350
      return false;
-
 
21351
    }
-
 
21352
 
-
 
21353
    public boolean equals(getCostingAndDeliveryEstimateForPincode_args that) {
-
 
21354
      if (that == null)
-
 
21355
        return false;
-
 
21356
 
-
 
21357
      boolean this_present_pincode = true && this.isSetPincode();
-
 
21358
      boolean that_present_pincode = true && that.isSetPincode();
-
 
21359
      if (this_present_pincode || that_present_pincode) {
-
 
21360
        if (!(this_present_pincode && that_present_pincode))
-
 
21361
          return false;
-
 
21362
        if (!this.pincode.equals(that.pincode))
-
 
21363
          return false;
-
 
21364
      }
-
 
21365
 
-
 
21366
      boolean this_present_transactionAmount = true;
-
 
21367
      boolean that_present_transactionAmount = true;
-
 
21368
      if (this_present_transactionAmount || that_present_transactionAmount) {
-
 
21369
        if (!(this_present_transactionAmount && that_present_transactionAmount))
-
 
21370
          return false;
-
 
21371
        if (this.transactionAmount != that.transactionAmount)
-
 
21372
          return false;
-
 
21373
      }
-
 
21374
 
-
 
21375
      boolean this_present_isCod = true;
-
 
21376
      boolean that_present_isCod = true;
-
 
21377
      if (this_present_isCod || that_present_isCod) {
-
 
21378
        if (!(this_present_isCod && that_present_isCod))
-
 
21379
          return false;
-
 
21380
        if (this.isCod != that.isCod)
-
 
21381
          return false;
-
 
21382
      }
-
 
21383
 
-
 
21384
      boolean this_present_weight = true;
-
 
21385
      boolean that_present_weight = true;
-
 
21386
      if (this_present_weight || that_present_weight) {
-
 
21387
        if (!(this_present_weight && that_present_weight))
-
 
21388
          return false;
-
 
21389
        if (this.weight != that.weight)
-
 
21390
          return false;
-
 
21391
      }
-
 
21392
 
-
 
21393
      boolean this_present_billingWarehouseId = true;
-
 
21394
      boolean that_present_billingWarehouseId = true;
-
 
21395
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
-
 
21396
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
-
 
21397
          return false;
-
 
21398
        if (this.billingWarehouseId != that.billingWarehouseId)
-
 
21399
          return false;
-
 
21400
      }
-
 
21401
 
-
 
21402
      return true;
-
 
21403
    }
-
 
21404
 
-
 
21405
    @Override
-
 
21406
    public int hashCode() {
-
 
21407
      return 0;
-
 
21408
    }
-
 
21409
 
-
 
21410
    public int compareTo(getCostingAndDeliveryEstimateForPincode_args other) {
-
 
21411
      if (!getClass().equals(other.getClass())) {
-
 
21412
        return getClass().getName().compareTo(other.getClass().getName());
-
 
21413
      }
-
 
21414
 
-
 
21415
      int lastComparison = 0;
-
 
21416
      getCostingAndDeliveryEstimateForPincode_args typedOther = (getCostingAndDeliveryEstimateForPincode_args)other;
-
 
21417
 
-
 
21418
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
-
 
21419
      if (lastComparison != 0) {
-
 
21420
        return lastComparison;
-
 
21421
      }
-
 
21422
      if (isSetPincode()) {
-
 
21423
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
-
 
21424
        if (lastComparison != 0) {
-
 
21425
          return lastComparison;
-
 
21426
        }
-
 
21427
      }
-
 
21428
      lastComparison = Boolean.valueOf(isSetTransactionAmount()).compareTo(typedOther.isSetTransactionAmount());
-
 
21429
      if (lastComparison != 0) {
-
 
21430
        return lastComparison;
-
 
21431
      }
-
 
21432
      if (isSetTransactionAmount()) {
-
 
21433
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionAmount, typedOther.transactionAmount);
-
 
21434
        if (lastComparison != 0) {
-
 
21435
          return lastComparison;
-
 
21436
        }
-
 
21437
      }
-
 
21438
      lastComparison = Boolean.valueOf(isSetIsCod()).compareTo(typedOther.isSetIsCod());
-
 
21439
      if (lastComparison != 0) {
-
 
21440
        return lastComparison;
-
 
21441
      }
-
 
21442
      if (isSetIsCod()) {
-
 
21443
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isCod, typedOther.isCod);
-
 
21444
        if (lastComparison != 0) {
-
 
21445
          return lastComparison;
-
 
21446
        }
-
 
21447
      }
-
 
21448
      lastComparison = Boolean.valueOf(isSetWeight()).compareTo(typedOther.isSetWeight());
-
 
21449
      if (lastComparison != 0) {
-
 
21450
        return lastComparison;
-
 
21451
      }
-
 
21452
      if (isSetWeight()) {
-
 
21453
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weight, typedOther.weight);
-
 
21454
        if (lastComparison != 0) {
-
 
21455
          return lastComparison;
-
 
21456
        }
-
 
21457
      }
-
 
21458
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
-
 
21459
      if (lastComparison != 0) {
-
 
21460
        return lastComparison;
-
 
21461
      }
-
 
21462
      if (isSetBillingWarehouseId()) {
-
 
21463
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
-
 
21464
        if (lastComparison != 0) {
-
 
21465
          return lastComparison;
-
 
21466
        }
-
 
21467
      }
-
 
21468
      return 0;
-
 
21469
    }
-
 
21470
 
-
 
21471
    public _Fields fieldForId(int fieldId) {
-
 
21472
      return _Fields.findByThriftId(fieldId);
-
 
21473
    }
-
 
21474
 
-
 
21475
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
21476
      org.apache.thrift.protocol.TField field;
-
 
21477
      iprot.readStructBegin();
-
 
21478
      while (true)
-
 
21479
      {
-
 
21480
        field = iprot.readFieldBegin();
-
 
21481
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
21482
          break;
-
 
21483
        }
-
 
21484
        switch (field.id) {
-
 
21485
          case 1: // PINCODE
-
 
21486
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
21487
              this.pincode = iprot.readString();
-
 
21488
            } else { 
-
 
21489
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21490
            }
-
 
21491
            break;
-
 
21492
          case 2: // TRANSACTION_AMOUNT
-
 
21493
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
21494
              this.transactionAmount = iprot.readDouble();
-
 
21495
              setTransactionAmountIsSet(true);
-
 
21496
            } else { 
-
 
21497
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21498
            }
-
 
21499
            break;
-
 
21500
          case 3: // IS_COD
-
 
21501
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
21502
              this.isCod = iprot.readBool();
-
 
21503
              setIsCodIsSet(true);
-
 
21504
            } else { 
-
 
21505
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21506
            }
-
 
21507
            break;
-
 
21508
          case 4: // WEIGHT
-
 
21509
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
21510
              this.weight = iprot.readDouble();
-
 
21511
              setWeightIsSet(true);
-
 
21512
            } else { 
-
 
21513
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21514
            }
-
 
21515
            break;
-
 
21516
          case 5: // BILLING_WAREHOUSE_ID
-
 
21517
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
21518
              this.billingWarehouseId = iprot.readI64();
-
 
21519
              setBillingWarehouseIdIsSet(true);
-
 
21520
            } else { 
-
 
21521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21522
            }
-
 
21523
            break;
-
 
21524
          default:
-
 
21525
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21526
        }
-
 
21527
        iprot.readFieldEnd();
-
 
21528
      }
-
 
21529
      iprot.readStructEnd();
-
 
21530
      validate();
-
 
21531
    }
-
 
21532
 
-
 
21533
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
21534
      validate();
-
 
21535
 
-
 
21536
      oprot.writeStructBegin(STRUCT_DESC);
-
 
21537
      if (this.pincode != null) {
-
 
21538
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
-
 
21539
        oprot.writeString(this.pincode);
-
 
21540
        oprot.writeFieldEnd();
-
 
21541
      }
-
 
21542
      oprot.writeFieldBegin(TRANSACTION_AMOUNT_FIELD_DESC);
-
 
21543
      oprot.writeDouble(this.transactionAmount);
-
 
21544
      oprot.writeFieldEnd();
-
 
21545
      oprot.writeFieldBegin(IS_COD_FIELD_DESC);
-
 
21546
      oprot.writeBool(this.isCod);
-
 
21547
      oprot.writeFieldEnd();
-
 
21548
      oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
-
 
21549
      oprot.writeDouble(this.weight);
-
 
21550
      oprot.writeFieldEnd();
-
 
21551
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
-
 
21552
      oprot.writeI64(this.billingWarehouseId);
-
 
21553
      oprot.writeFieldEnd();
-
 
21554
      oprot.writeFieldStop();
-
 
21555
      oprot.writeStructEnd();
-
 
21556
    }
-
 
21557
 
-
 
21558
    @Override
-
 
21559
    public String toString() {
-
 
21560
      StringBuilder sb = new StringBuilder("getCostingAndDeliveryEstimateForPincode_args(");
-
 
21561
      boolean first = true;
-
 
21562
 
-
 
21563
      sb.append("pincode:");
-
 
21564
      if (this.pincode == null) {
-
 
21565
        sb.append("null");
-
 
21566
      } else {
-
 
21567
        sb.append(this.pincode);
-
 
21568
      }
-
 
21569
      first = false;
-
 
21570
      if (!first) sb.append(", ");
-
 
21571
      sb.append("transactionAmount:");
-
 
21572
      sb.append(this.transactionAmount);
-
 
21573
      first = false;
-
 
21574
      if (!first) sb.append(", ");
-
 
21575
      sb.append("isCod:");
-
 
21576
      sb.append(this.isCod);
-
 
21577
      first = false;
-
 
21578
      if (!first) sb.append(", ");
-
 
21579
      sb.append("weight:");
-
 
21580
      sb.append(this.weight);
-
 
21581
      first = false;
-
 
21582
      if (!first) sb.append(", ");
-
 
21583
      sb.append("billingWarehouseId:");
-
 
21584
      sb.append(this.billingWarehouseId);
-
 
21585
      first = false;
-
 
21586
      sb.append(")");
-
 
21587
      return sb.toString();
-
 
21588
    }
-
 
21589
 
-
 
21590
    public void validate() throws org.apache.thrift.TException {
-
 
21591
      // check for required fields
-
 
21592
    }
-
 
21593
 
-
 
21594
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
21595
      try {
-
 
21596
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
21597
      } catch (org.apache.thrift.TException te) {
-
 
21598
        throw new java.io.IOException(te);
-
 
21599
      }
-
 
21600
    }
-
 
21601
 
-
 
21602
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
21603
      try {
-
 
21604
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
21605
        __isset_bit_vector = new BitSet(1);
-
 
21606
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
21607
      } catch (org.apache.thrift.TException te) {
-
 
21608
        throw new java.io.IOException(te);
-
 
21609
      }
-
 
21610
    }
-
 
21611
 
-
 
21612
  }
-
 
21613
 
-
 
21614
  public static class getCostingAndDeliveryEstimateForPincode_result implements org.apache.thrift.TBase<getCostingAndDeliveryEstimateForPincode_result, getCostingAndDeliveryEstimateForPincode_result._Fields>, java.io.Serializable, Cloneable   {
-
 
21615
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingAndDeliveryEstimateForPincode_result");
-
 
21616
 
-
 
21617
    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);
-
 
21618
    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);
-
 
21619
 
-
 
21620
    private DeliveryEstimateAndCosting success; // required
-
 
21621
    private LogisticsServiceException se; // required
-
 
21622
 
-
 
21623
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
21624
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
21625
      SUCCESS((short)0, "success"),
-
 
21626
      SE((short)1, "se");
-
 
21627
 
-
 
21628
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
21629
 
-
 
21630
      static {
-
 
21631
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
21632
          byName.put(field.getFieldName(), field);
-
 
21633
        }
-
 
21634
      }
-
 
21635
 
-
 
21636
      /**
-
 
21637
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
21638
       */
-
 
21639
      public static _Fields findByThriftId(int fieldId) {
-
 
21640
        switch(fieldId) {
-
 
21641
          case 0: // SUCCESS
-
 
21642
            return SUCCESS;
-
 
21643
          case 1: // SE
-
 
21644
            return SE;
-
 
21645
          default:
-
 
21646
            return null;
-
 
21647
        }
-
 
21648
      }
-
 
21649
 
-
 
21650
      /**
-
 
21651
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
21652
       * if it is not found.
-
 
21653
       */
-
 
21654
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
21655
        _Fields fields = findByThriftId(fieldId);
-
 
21656
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
21657
        return fields;
-
 
21658
      }
-
 
21659
 
-
 
21660
      /**
-
 
21661
       * Find the _Fields constant that matches name, or null if its not found.
-
 
21662
       */
-
 
21663
      public static _Fields findByName(String name) {
-
 
21664
        return byName.get(name);
-
 
21665
      }
-
 
21666
 
-
 
21667
      private final short _thriftId;
-
 
21668
      private final String _fieldName;
-
 
21669
 
-
 
21670
      _Fields(short thriftId, String fieldName) {
-
 
21671
        _thriftId = thriftId;
-
 
21672
        _fieldName = fieldName;
-
 
21673
      }
-
 
21674
 
-
 
21675
      public short getThriftFieldId() {
-
 
21676
        return _thriftId;
-
 
21677
      }
-
 
21678
 
-
 
21679
      public String getFieldName() {
-
 
21680
        return _fieldName;
-
 
21681
      }
-
 
21682
    }
-
 
21683
 
-
 
21684
    // isset id assignments
-
 
21685
 
-
 
21686
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
21687
    static {
-
 
21688
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
21689
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
21690
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DeliveryEstimateAndCosting.class)));
-
 
21691
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
21692
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
21693
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
21694
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingAndDeliveryEstimateForPincode_result.class, metaDataMap);
-
 
21695
    }
-
 
21696
 
-
 
21697
    public getCostingAndDeliveryEstimateForPincode_result() {
-
 
21698
    }
-
 
21699
 
-
 
21700
    public getCostingAndDeliveryEstimateForPincode_result(
-
 
21701
      DeliveryEstimateAndCosting success,
-
 
21702
      LogisticsServiceException se)
-
 
21703
    {
-
 
21704
      this();
-
 
21705
      this.success = success;
-
 
21706
      this.se = se;
-
 
21707
    }
-
 
21708
 
-
 
21709
    /**
-
 
21710
     * Performs a deep copy on <i>other</i>.
-
 
21711
     */
-
 
21712
    public getCostingAndDeliveryEstimateForPincode_result(getCostingAndDeliveryEstimateForPincode_result other) {
-
 
21713
      if (other.isSetSuccess()) {
-
 
21714
        this.success = new DeliveryEstimateAndCosting(other.success);
-
 
21715
      }
-
 
21716
      if (other.isSetSe()) {
-
 
21717
        this.se = new LogisticsServiceException(other.se);
-
 
21718
      }
-
 
21719
    }
-
 
21720
 
-
 
21721
    public getCostingAndDeliveryEstimateForPincode_result deepCopy() {
-
 
21722
      return new getCostingAndDeliveryEstimateForPincode_result(this);
-
 
21723
    }
-
 
21724
 
-
 
21725
    @Override
-
 
21726
    public void clear() {
-
 
21727
      this.success = null;
-
 
21728
      this.se = null;
-
 
21729
    }
-
 
21730
 
-
 
21731
    public DeliveryEstimateAndCosting getSuccess() {
-
 
21732
      return this.success;
-
 
21733
    }
-
 
21734
 
-
 
21735
    public void setSuccess(DeliveryEstimateAndCosting success) {
-
 
21736
      this.success = success;
-
 
21737
    }
-
 
21738
 
-
 
21739
    public void unsetSuccess() {
-
 
21740
      this.success = null;
-
 
21741
    }
-
 
21742
 
-
 
21743
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
21744
    public boolean isSetSuccess() {
-
 
21745
      return this.success != null;
-
 
21746
    }
-
 
21747
 
-
 
21748
    public void setSuccessIsSet(boolean value) {
-
 
21749
      if (!value) {
-
 
21750
        this.success = null;
-
 
21751
      }
-
 
21752
    }
-
 
21753
 
-
 
21754
    public LogisticsServiceException getSe() {
-
 
21755
      return this.se;
-
 
21756
    }
-
 
21757
 
-
 
21758
    public void setSe(LogisticsServiceException se) {
-
 
21759
      this.se = se;
-
 
21760
    }
-
 
21761
 
-
 
21762
    public void unsetSe() {
-
 
21763
      this.se = null;
-
 
21764
    }
-
 
21765
 
-
 
21766
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
-
 
21767
    public boolean isSetSe() {
-
 
21768
      return this.se != null;
-
 
21769
    }
-
 
21770
 
-
 
21771
    public void setSeIsSet(boolean value) {
-
 
21772
      if (!value) {
-
 
21773
        this.se = null;
-
 
21774
      }
-
 
21775
    }
-
 
21776
 
-
 
21777
    public void setFieldValue(_Fields field, Object value) {
-
 
21778
      switch (field) {
-
 
21779
      case SUCCESS:
-
 
21780
        if (value == null) {
-
 
21781
          unsetSuccess();
-
 
21782
        } else {
-
 
21783
          setSuccess((DeliveryEstimateAndCosting)value);
-
 
21784
        }
-
 
21785
        break;
-
 
21786
 
-
 
21787
      case SE:
-
 
21788
        if (value == null) {
-
 
21789
          unsetSe();
-
 
21790
        } else {
-
 
21791
          setSe((LogisticsServiceException)value);
-
 
21792
        }
-
 
21793
        break;
-
 
21794
 
-
 
21795
      }
-
 
21796
    }
-
 
21797
 
-
 
21798
    public Object getFieldValue(_Fields field) {
-
 
21799
      switch (field) {
-
 
21800
      case SUCCESS:
-
 
21801
        return getSuccess();
-
 
21802
 
-
 
21803
      case SE:
-
 
21804
        return getSe();
-
 
21805
 
-
 
21806
      }
-
 
21807
      throw new IllegalStateException();
-
 
21808
    }
-
 
21809
 
-
 
21810
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
21811
    public boolean isSet(_Fields field) {
-
 
21812
      if (field == null) {
-
 
21813
        throw new IllegalArgumentException();
-
 
21814
      }
-
 
21815
 
-
 
21816
      switch (field) {
-
 
21817
      case SUCCESS:
-
 
21818
        return isSetSuccess();
-
 
21819
      case SE:
-
 
21820
        return isSetSe();
-
 
21821
      }
-
 
21822
      throw new IllegalStateException();
-
 
21823
    }
-
 
21824
 
-
 
21825
    @Override
-
 
21826
    public boolean equals(Object that) {
-
 
21827
      if (that == null)
-
 
21828
        return false;
-
 
21829
      if (that instanceof getCostingAndDeliveryEstimateForPincode_result)
-
 
21830
        return this.equals((getCostingAndDeliveryEstimateForPincode_result)that);
-
 
21831
      return false;
-
 
21832
    }
-
 
21833
 
-
 
21834
    public boolean equals(getCostingAndDeliveryEstimateForPincode_result that) {
-
 
21835
      if (that == null)
-
 
21836
        return false;
-
 
21837
 
-
 
21838
      boolean this_present_success = true && this.isSetSuccess();
-
 
21839
      boolean that_present_success = true && that.isSetSuccess();
-
 
21840
      if (this_present_success || that_present_success) {
-
 
21841
        if (!(this_present_success && that_present_success))
-
 
21842
          return false;
-
 
21843
        if (!this.success.equals(that.success))
-
 
21844
          return false;
-
 
21845
      }
-
 
21846
 
-
 
21847
      boolean this_present_se = true && this.isSetSe();
-
 
21848
      boolean that_present_se = true && that.isSetSe();
-
 
21849
      if (this_present_se || that_present_se) {
-
 
21850
        if (!(this_present_se && that_present_se))
-
 
21851
          return false;
-
 
21852
        if (!this.se.equals(that.se))
-
 
21853
          return false;
-
 
21854
      }
-
 
21855
 
-
 
21856
      return true;
-
 
21857
    }
-
 
21858
 
-
 
21859
    @Override
-
 
21860
    public int hashCode() {
-
 
21861
      return 0;
-
 
21862
    }
-
 
21863
 
-
 
21864
    public int compareTo(getCostingAndDeliveryEstimateForPincode_result other) {
-
 
21865
      if (!getClass().equals(other.getClass())) {
-
 
21866
        return getClass().getName().compareTo(other.getClass().getName());
-
 
21867
      }
-
 
21868
 
-
 
21869
      int lastComparison = 0;
-
 
21870
      getCostingAndDeliveryEstimateForPincode_result typedOther = (getCostingAndDeliveryEstimateForPincode_result)other;
-
 
21871
 
-
 
21872
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
21873
      if (lastComparison != 0) {
-
 
21874
        return lastComparison;
-
 
21875
      }
-
 
21876
      if (isSetSuccess()) {
-
 
21877
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
21878
        if (lastComparison != 0) {
-
 
21879
          return lastComparison;
-
 
21880
        }
-
 
21881
      }
-
 
21882
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
-
 
21883
      if (lastComparison != 0) {
-
 
21884
        return lastComparison;
-
 
21885
      }
-
 
21886
      if (isSetSe()) {
-
 
21887
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
-
 
21888
        if (lastComparison != 0) {
-
 
21889
          return lastComparison;
-
 
21890
        }
-
 
21891
      }
-
 
21892
      return 0;
-
 
21893
    }
-
 
21894
 
-
 
21895
    public _Fields fieldForId(int fieldId) {
-
 
21896
      return _Fields.findByThriftId(fieldId);
-
 
21897
    }
-
 
21898
 
-
 
21899
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
21900
      org.apache.thrift.protocol.TField field;
-
 
21901
      iprot.readStructBegin();
-
 
21902
      while (true)
-
 
21903
      {
-
 
21904
        field = iprot.readFieldBegin();
-
 
21905
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
21906
          break;
-
 
21907
        }
-
 
21908
        switch (field.id) {
-
 
21909
          case 0: // SUCCESS
-
 
21910
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
21911
              this.success = new DeliveryEstimateAndCosting();
-
 
21912
              this.success.read(iprot);
-
 
21913
            } else { 
-
 
21914
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21915
            }
-
 
21916
            break;
-
 
21917
          case 1: // SE
-
 
21918
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
21919
              this.se = new LogisticsServiceException();
-
 
21920
              this.se.read(iprot);
-
 
21921
            } else { 
-
 
21922
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21923
            }
-
 
21924
            break;
-
 
21925
          default:
-
 
21926
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
21927
        }
-
 
21928
        iprot.readFieldEnd();
-
 
21929
      }
-
 
21930
      iprot.readStructEnd();
-
 
21931
      validate();
-
 
21932
    }
-
 
21933
 
-
 
21934
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
21935
      oprot.writeStructBegin(STRUCT_DESC);
-
 
21936
 
-
 
21937
      if (this.isSetSuccess()) {
-
 
21938
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
21939
        this.success.write(oprot);
-
 
21940
        oprot.writeFieldEnd();
-
 
21941
      } else if (this.isSetSe()) {
-
 
21942
        oprot.writeFieldBegin(SE_FIELD_DESC);
-
 
21943
        this.se.write(oprot);
-
 
21944
        oprot.writeFieldEnd();
-
 
21945
      }
-
 
21946
      oprot.writeFieldStop();
-
 
21947
      oprot.writeStructEnd();
-
 
21948
    }
-
 
21949
 
-
 
21950
    @Override
-
 
21951
    public String toString() {
-
 
21952
      StringBuilder sb = new StringBuilder("getCostingAndDeliveryEstimateForPincode_result(");
-
 
21953
      boolean first = true;
-
 
21954
 
-
 
21955
      sb.append("success:");
-
 
21956
      if (this.success == null) {
-
 
21957
        sb.append("null");
-
 
21958
      } else {
-
 
21959
        sb.append(this.success);
-
 
21960
      }
-
 
21961
      first = false;
-
 
21962
      if (!first) sb.append(", ");
-
 
21963
      sb.append("se:");
-
 
21964
      if (this.se == null) {
-
 
21965
        sb.append("null");
-
 
21966
      } else {
-
 
21967
        sb.append(this.se);
-
 
21968
      }
-
 
21969
      first = false;
-
 
21970
      sb.append(")");
-
 
21971
      return sb.toString();
-
 
21972
    }
20861
 
21973
 
20862
    public void validate() throws org.apache.thrift.TException {
21974
    public void validate() throws org.apache.thrift.TException {
20863
      // check for required fields
21975
      // check for required fields
20864
    }
21976
    }
20865
 
21977