Subversion Repositories SmartDukaan

Rev

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

Rev 9840 Rev 12895
Line 142... Line 142...
142
 
142
 
143
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException;
143
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException;
144
 
144
 
145
    public long adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException;
145
    public long adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException;
146
 
146
 
-
 
147
    public long getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException;
-
 
148
 
147
  }
149
  }
148
 
150
 
149
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
151
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
150
 
152
 
151
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
153
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
Line 188... Line 190...
188
 
190
 
189
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.runLogisticsLocationInfoUpdate_call> resultHandler) throws org.apache.thrift.TException;
191
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.runLogisticsLocationInfoUpdate_call> resultHandler) throws org.apache.thrift.TException;
190
 
192
 
191
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException;
193
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException;
192
 
194
 
-
 
195
    public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException;
-
 
196
 
193
  }
197
  }
194
 
198
 
195
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
199
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
196
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
200
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
197
      public Factory() {}
201
      public Factory() {}
Line 737... Line 741...
737
        return result.success;
741
        return result.success;
738
      }
742
      }
739
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "adjustDeliveryDays failed: unknown result");
743
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "adjustDeliveryDays failed: unknown result");
740
    }
744
    }
741
 
745
 
-
 
746
    public long getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException
-
 
747
    {
-
 
748
      send_getFirstDeliveryEstimateForWhLocation(pincode, whLocation);
-
 
749
      return recv_getFirstDeliveryEstimateForWhLocation();
-
 
750
    }
-
 
751
 
-
 
752
    public void send_getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException
-
 
753
    {
-
 
754
      getFirstDeliveryEstimateForWhLocation_args args = new getFirstDeliveryEstimateForWhLocation_args();
-
 
755
      args.setPincode(pincode);
-
 
756
      args.setWhLocation(whLocation);
-
 
757
      sendBase("getFirstDeliveryEstimateForWhLocation", args);
-
 
758
    }
-
 
759
 
-
 
760
    public long recv_getFirstDeliveryEstimateForWhLocation() throws org.apache.thrift.TException
-
 
761
    {
-
 
762
      getFirstDeliveryEstimateForWhLocation_result result = new getFirstDeliveryEstimateForWhLocation_result();
-
 
763
      receiveBase(result, "getFirstDeliveryEstimateForWhLocation");
-
 
764
      if (result.isSetSuccess()) {
-
 
765
        return result.success;
-
 
766
      }
-
 
767
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFirstDeliveryEstimateForWhLocation failed: unknown result");
-
 
768
    }
-
 
769
 
742
  }
770
  }
743
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
771
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
744
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
772
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
745
      private org.apache.thrift.async.TAsyncClientManager clientManager;
773
      private org.apache.thrift.async.TAsyncClientManager clientManager;
746
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
774
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1505... Line 1533...
1505
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1533
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1506
        return (new Client(prot)).recv_adjustDeliveryDays();
1534
        return (new Client(prot)).recv_adjustDeliveryDays();
1507
      }
1535
      }
1508
    }
1536
    }
1509
 
1537
 
-
 
1538
    public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException {
-
 
1539
      checkReady();
-
 
1540
      getFirstDeliveryEstimateForWhLocation_call method_call = new getFirstDeliveryEstimateForWhLocation_call(pincode, whLocation, resultHandler, this, ___protocolFactory, ___transport);
-
 
1541
      this.___currentMethod = method_call;
-
 
1542
      ___manager.call(method_call);
-
 
1543
    }
-
 
1544
 
-
 
1545
    public static class getFirstDeliveryEstimateForWhLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1546
      private String pincode;
-
 
1547
      private long whLocation;
-
 
1548
      public getFirstDeliveryEstimateForWhLocation_call(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<getFirstDeliveryEstimateForWhLocation_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 {
-
 
1549
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1550
        this.pincode = pincode;
-
 
1551
        this.whLocation = whLocation;
-
 
1552
      }
-
 
1553
 
-
 
1554
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1555
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFirstDeliveryEstimateForWhLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1556
        getFirstDeliveryEstimateForWhLocation_args args = new getFirstDeliveryEstimateForWhLocation_args();
-
 
1557
        args.setPincode(pincode);
-
 
1558
        args.setWhLocation(whLocation);
-
 
1559
        args.write(prot);
-
 
1560
        prot.writeMessageEnd();
-
 
1561
      }
-
 
1562
 
-
 
1563
      public long getResult() throws org.apache.thrift.TException {
-
 
1564
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1565
          throw new IllegalStateException("Method call not finished!");
-
 
1566
        }
-
 
1567
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1568
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1569
        return (new Client(prot)).recv_getFirstDeliveryEstimateForWhLocation();
-
 
1570
      }
-
 
1571
    }
-
 
1572
 
1510
  }
1573
  }
1511
 
1574
 
1512
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1575
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1513
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1576
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1514
    public Processor(I iface) {
1577
    public Processor(I iface) {
Line 1539... Line 1602...
1539
      processMap.put("addPincode", new addPincode());
1602
      processMap.put("addPincode", new addPincode());
1540
      processMap.put("updatePincode", new updatePincode());
1603
      processMap.put("updatePincode", new updatePincode());
1541
      processMap.put("addNewAwbs", new addNewAwbs());
1604
      processMap.put("addNewAwbs", new addNewAwbs());
1542
      processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
1605
      processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
1543
      processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
1606
      processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
-
 
1607
      processMap.put("getFirstDeliveryEstimateForWhLocation", new getFirstDeliveryEstimateForWhLocation());
1544
      return processMap;
1608
      return processMap;
1545
    }
1609
    }
1546
 
1610
 
1547
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1611
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1548
      public getProvider() {
1612
      public getProvider() {
Line 1922... Line 1986...
1922
        result.setSuccessIsSet(true);
1986
        result.setSuccessIsSet(true);
1923
        return result;
1987
        return result;
1924
      }
1988
      }
1925
    }
1989
    }
1926
 
1990
 
-
 
1991
    private static class getFirstDeliveryEstimateForWhLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFirstDeliveryEstimateForWhLocation_args> {
-
 
1992
      public getFirstDeliveryEstimateForWhLocation() {
-
 
1993
        super("getFirstDeliveryEstimateForWhLocation");
-
 
1994
      }
-
 
1995
 
-
 
1996
      protected getFirstDeliveryEstimateForWhLocation_args getEmptyArgsInstance() {
-
 
1997
        return new getFirstDeliveryEstimateForWhLocation_args();
-
 
1998
      }
-
 
1999
 
-
 
2000
      protected getFirstDeliveryEstimateForWhLocation_result getResult(I iface, getFirstDeliveryEstimateForWhLocation_args args) throws org.apache.thrift.TException {
-
 
2001
        getFirstDeliveryEstimateForWhLocation_result result = new getFirstDeliveryEstimateForWhLocation_result();
-
 
2002
        result.success = iface.getFirstDeliveryEstimateForWhLocation(args.pincode, args.whLocation);
-
 
2003
        result.setSuccessIsSet(true);
-
 
2004
        return result;
-
 
2005
      }
-
 
2006
    }
-
 
2007
 
1927
  }
2008
  }
1928
 
2009
 
1929
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
2010
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1930
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
2011
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
1931
 
2012
 
Line 17289... Line 17370...
17289
      boolean first = true;
17370
      boolean first = true;
17290
 
17371
 
17291
      sb.append("success:");
17372
      sb.append("success:");
17292
      sb.append(this.success);
17373
      sb.append(this.success);
17293
      first = false;
17374
      first = false;
-
 
17375
      sb.append(")");
-
 
17376
      return sb.toString();
-
 
17377
    }
-
 
17378
 
-
 
17379
    public void validate() throws org.apache.thrift.TException {
-
 
17380
      // check for required fields
-
 
17381
    }
-
 
17382
 
-
 
17383
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
17384
      try {
-
 
17385
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
17386
      } catch (org.apache.thrift.TException te) {
-
 
17387
        throw new java.io.IOException(te);
-
 
17388
      }
-
 
17389
    }
-
 
17390
 
-
 
17391
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
17392
      try {
-
 
17393
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
17394
      } catch (org.apache.thrift.TException te) {
-
 
17395
        throw new java.io.IOException(te);
-
 
17396
      }
-
 
17397
    }
-
 
17398
 
-
 
17399
  }
-
 
17400
 
-
 
17401
  public static class getFirstDeliveryEstimateForWhLocation_args implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_args, getFirstDeliveryEstimateForWhLocation_args._Fields>, java.io.Serializable, Cloneable   {
-
 
17402
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_args");
-
 
17403
 
-
 
17404
    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);
-
 
17405
    private static final org.apache.thrift.protocol.TField WH_LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("whLocation", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
17406
 
-
 
17407
    private String pincode; // required
-
 
17408
    private long whLocation; // required
-
 
17409
 
-
 
17410
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
17411
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
17412
      PINCODE((short)1, "pincode"),
-
 
17413
      WH_LOCATION((short)2, "whLocation");
-
 
17414
 
-
 
17415
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
17416
 
-
 
17417
      static {
-
 
17418
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
17419
          byName.put(field.getFieldName(), field);
-
 
17420
        }
-
 
17421
      }
-
 
17422
 
-
 
17423
      /**
-
 
17424
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
17425
       */
-
 
17426
      public static _Fields findByThriftId(int fieldId) {
-
 
17427
        switch(fieldId) {
-
 
17428
          case 1: // PINCODE
-
 
17429
            return PINCODE;
-
 
17430
          case 2: // WH_LOCATION
-
 
17431
            return WH_LOCATION;
-
 
17432
          default:
-
 
17433
            return null;
-
 
17434
        }
-
 
17435
      }
-
 
17436
 
-
 
17437
      /**
-
 
17438
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
17439
       * if it is not found.
-
 
17440
       */
-
 
17441
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
17442
        _Fields fields = findByThriftId(fieldId);
-
 
17443
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
17444
        return fields;
-
 
17445
      }
-
 
17446
 
-
 
17447
      /**
-
 
17448
       * Find the _Fields constant that matches name, or null if its not found.
-
 
17449
       */
-
 
17450
      public static _Fields findByName(String name) {
-
 
17451
        return byName.get(name);
-
 
17452
      }
-
 
17453
 
-
 
17454
      private final short _thriftId;
-
 
17455
      private final String _fieldName;
-
 
17456
 
-
 
17457
      _Fields(short thriftId, String fieldName) {
-
 
17458
        _thriftId = thriftId;
-
 
17459
        _fieldName = fieldName;
-
 
17460
      }
-
 
17461
 
-
 
17462
      public short getThriftFieldId() {
-
 
17463
        return _thriftId;
-
 
17464
      }
-
 
17465
 
-
 
17466
      public String getFieldName() {
-
 
17467
        return _fieldName;
-
 
17468
      }
-
 
17469
    }
-
 
17470
 
-
 
17471
    // isset id assignments
-
 
17472
    private static final int __WHLOCATION_ISSET_ID = 0;
-
 
17473
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
17474
 
-
 
17475
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
17476
    static {
-
 
17477
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
17478
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
17479
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
17480
      tmpMap.put(_Fields.WH_LOCATION, new org.apache.thrift.meta_data.FieldMetaData("whLocation", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
17481
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
17482
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
17483
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_args.class, metaDataMap);
-
 
17484
    }
-
 
17485
 
-
 
17486
    public getFirstDeliveryEstimateForWhLocation_args() {
-
 
17487
    }
-
 
17488
 
-
 
17489
    public getFirstDeliveryEstimateForWhLocation_args(
-
 
17490
      String pincode,
-
 
17491
      long whLocation)
-
 
17492
    {
-
 
17493
      this();
-
 
17494
      this.pincode = pincode;
-
 
17495
      this.whLocation = whLocation;
-
 
17496
      setWhLocationIsSet(true);
-
 
17497
    }
-
 
17498
 
-
 
17499
    /**
-
 
17500
     * Performs a deep copy on <i>other</i>.
-
 
17501
     */
-
 
17502
    public getFirstDeliveryEstimateForWhLocation_args(getFirstDeliveryEstimateForWhLocation_args other) {
-
 
17503
      __isset_bit_vector.clear();
-
 
17504
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
17505
      if (other.isSetPincode()) {
-
 
17506
        this.pincode = other.pincode;
-
 
17507
      }
-
 
17508
      this.whLocation = other.whLocation;
-
 
17509
    }
-
 
17510
 
-
 
17511
    public getFirstDeliveryEstimateForWhLocation_args deepCopy() {
-
 
17512
      return new getFirstDeliveryEstimateForWhLocation_args(this);
-
 
17513
    }
-
 
17514
 
-
 
17515
    @Override
-
 
17516
    public void clear() {
-
 
17517
      this.pincode = null;
-
 
17518
      setWhLocationIsSet(false);
-
 
17519
      this.whLocation = 0;
-
 
17520
    }
-
 
17521
 
-
 
17522
    public String getPincode() {
-
 
17523
      return this.pincode;
-
 
17524
    }
-
 
17525
 
-
 
17526
    public void setPincode(String pincode) {
-
 
17527
      this.pincode = pincode;
-
 
17528
    }
-
 
17529
 
-
 
17530
    public void unsetPincode() {
-
 
17531
      this.pincode = null;
-
 
17532
    }
-
 
17533
 
-
 
17534
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
-
 
17535
    public boolean isSetPincode() {
-
 
17536
      return this.pincode != null;
-
 
17537
    }
-
 
17538
 
-
 
17539
    public void setPincodeIsSet(boolean value) {
-
 
17540
      if (!value) {
-
 
17541
        this.pincode = null;
-
 
17542
      }
-
 
17543
    }
-
 
17544
 
-
 
17545
    public long getWhLocation() {
-
 
17546
      return this.whLocation;
-
 
17547
    }
-
 
17548
 
-
 
17549
    public void setWhLocation(long whLocation) {
-
 
17550
      this.whLocation = whLocation;
-
 
17551
      setWhLocationIsSet(true);
-
 
17552
    }
-
 
17553
 
-
 
17554
    public void unsetWhLocation() {
-
 
17555
      __isset_bit_vector.clear(__WHLOCATION_ISSET_ID);
-
 
17556
    }
-
 
17557
 
-
 
17558
    /** Returns true if field whLocation is set (has been assigned a value) and false otherwise */
-
 
17559
    public boolean isSetWhLocation() {
-
 
17560
      return __isset_bit_vector.get(__WHLOCATION_ISSET_ID);
-
 
17561
    }
-
 
17562
 
-
 
17563
    public void setWhLocationIsSet(boolean value) {
-
 
17564
      __isset_bit_vector.set(__WHLOCATION_ISSET_ID, value);
-
 
17565
    }
-
 
17566
 
-
 
17567
    public void setFieldValue(_Fields field, Object value) {
-
 
17568
      switch (field) {
-
 
17569
      case PINCODE:
-
 
17570
        if (value == null) {
-
 
17571
          unsetPincode();
-
 
17572
        } else {
-
 
17573
          setPincode((String)value);
-
 
17574
        }
-
 
17575
        break;
-
 
17576
 
-
 
17577
      case WH_LOCATION:
-
 
17578
        if (value == null) {
-
 
17579
          unsetWhLocation();
-
 
17580
        } else {
-
 
17581
          setWhLocation((Long)value);
-
 
17582
        }
-
 
17583
        break;
-
 
17584
 
-
 
17585
      }
-
 
17586
    }
-
 
17587
 
-
 
17588
    public Object getFieldValue(_Fields field) {
-
 
17589
      switch (field) {
-
 
17590
      case PINCODE:
-
 
17591
        return getPincode();
-
 
17592
 
-
 
17593
      case WH_LOCATION:
-
 
17594
        return Long.valueOf(getWhLocation());
-
 
17595
 
-
 
17596
      }
-
 
17597
      throw new IllegalStateException();
-
 
17598
    }
-
 
17599
 
-
 
17600
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
17601
    public boolean isSet(_Fields field) {
-
 
17602
      if (field == null) {
-
 
17603
        throw new IllegalArgumentException();
-
 
17604
      }
-
 
17605
 
-
 
17606
      switch (field) {
-
 
17607
      case PINCODE:
-
 
17608
        return isSetPincode();
-
 
17609
      case WH_LOCATION:
-
 
17610
        return isSetWhLocation();
-
 
17611
      }
-
 
17612
      throw new IllegalStateException();
-
 
17613
    }
-
 
17614
 
-
 
17615
    @Override
-
 
17616
    public boolean equals(Object that) {
-
 
17617
      if (that == null)
-
 
17618
        return false;
-
 
17619
      if (that instanceof getFirstDeliveryEstimateForWhLocation_args)
-
 
17620
        return this.equals((getFirstDeliveryEstimateForWhLocation_args)that);
-
 
17621
      return false;
-
 
17622
    }
-
 
17623
 
-
 
17624
    public boolean equals(getFirstDeliveryEstimateForWhLocation_args that) {
-
 
17625
      if (that == null)
-
 
17626
        return false;
-
 
17627
 
-
 
17628
      boolean this_present_pincode = true && this.isSetPincode();
-
 
17629
      boolean that_present_pincode = true && that.isSetPincode();
-
 
17630
      if (this_present_pincode || that_present_pincode) {
-
 
17631
        if (!(this_present_pincode && that_present_pincode))
-
 
17632
          return false;
-
 
17633
        if (!this.pincode.equals(that.pincode))
-
 
17634
          return false;
-
 
17635
      }
-
 
17636
 
-
 
17637
      boolean this_present_whLocation = true;
-
 
17638
      boolean that_present_whLocation = true;
-
 
17639
      if (this_present_whLocation || that_present_whLocation) {
-
 
17640
        if (!(this_present_whLocation && that_present_whLocation))
-
 
17641
          return false;
-
 
17642
        if (this.whLocation != that.whLocation)
-
 
17643
          return false;
-
 
17644
      }
-
 
17645
 
-
 
17646
      return true;
-
 
17647
    }
-
 
17648
 
-
 
17649
    @Override
-
 
17650
    public int hashCode() {
-
 
17651
      return 0;
-
 
17652
    }
-
 
17653
 
-
 
17654
    public int compareTo(getFirstDeliveryEstimateForWhLocation_args other) {
-
 
17655
      if (!getClass().equals(other.getClass())) {
-
 
17656
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17657
      }
-
 
17658
 
-
 
17659
      int lastComparison = 0;
-
 
17660
      getFirstDeliveryEstimateForWhLocation_args typedOther = (getFirstDeliveryEstimateForWhLocation_args)other;
-
 
17661
 
-
 
17662
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
-
 
17663
      if (lastComparison != 0) {
-
 
17664
        return lastComparison;
-
 
17665
      }
-
 
17666
      if (isSetPincode()) {
-
 
17667
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
-
 
17668
        if (lastComparison != 0) {
-
 
17669
          return lastComparison;
-
 
17670
        }
-
 
17671
      }
-
 
17672
      lastComparison = Boolean.valueOf(isSetWhLocation()).compareTo(typedOther.isSetWhLocation());
-
 
17673
      if (lastComparison != 0) {
-
 
17674
        return lastComparison;
-
 
17675
      }
-
 
17676
      if (isSetWhLocation()) {
-
 
17677
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.whLocation, typedOther.whLocation);
-
 
17678
        if (lastComparison != 0) {
-
 
17679
          return lastComparison;
-
 
17680
        }
-
 
17681
      }
-
 
17682
      return 0;
-
 
17683
    }
-
 
17684
 
-
 
17685
    public _Fields fieldForId(int fieldId) {
-
 
17686
      return _Fields.findByThriftId(fieldId);
-
 
17687
    }
-
 
17688
 
-
 
17689
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
17690
      org.apache.thrift.protocol.TField field;
-
 
17691
      iprot.readStructBegin();
-
 
17692
      while (true)
-
 
17693
      {
-
 
17694
        field = iprot.readFieldBegin();
-
 
17695
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
17696
          break;
-
 
17697
        }
-
 
17698
        switch (field.id) {
-
 
17699
          case 1: // PINCODE
-
 
17700
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
17701
              this.pincode = iprot.readString();
-
 
17702
            } else { 
-
 
17703
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17704
            }
-
 
17705
            break;
-
 
17706
          case 2: // WH_LOCATION
-
 
17707
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
17708
              this.whLocation = iprot.readI64();
-
 
17709
              setWhLocationIsSet(true);
-
 
17710
            } else { 
-
 
17711
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17712
            }
-
 
17713
            break;
-
 
17714
          default:
-
 
17715
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17716
        }
-
 
17717
        iprot.readFieldEnd();
-
 
17718
      }
-
 
17719
      iprot.readStructEnd();
-
 
17720
      validate();
-
 
17721
    }
-
 
17722
 
-
 
17723
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
17724
      validate();
-
 
17725
 
-
 
17726
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17727
      if (this.pincode != null) {
-
 
17728
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
-
 
17729
        oprot.writeString(this.pincode);
-
 
17730
        oprot.writeFieldEnd();
-
 
17731
      }
-
 
17732
      oprot.writeFieldBegin(WH_LOCATION_FIELD_DESC);
-
 
17733
      oprot.writeI64(this.whLocation);
-
 
17734
      oprot.writeFieldEnd();
-
 
17735
      oprot.writeFieldStop();
-
 
17736
      oprot.writeStructEnd();
-
 
17737
    }
-
 
17738
 
-
 
17739
    @Override
-
 
17740
    public String toString() {
-
 
17741
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_args(");
-
 
17742
      boolean first = true;
-
 
17743
 
-
 
17744
      sb.append("pincode:");
-
 
17745
      if (this.pincode == null) {
-
 
17746
        sb.append("null");
-
 
17747
      } else {
-
 
17748
        sb.append(this.pincode);
-
 
17749
      }
-
 
17750
      first = false;
-
 
17751
      if (!first) sb.append(", ");
-
 
17752
      sb.append("whLocation:");
-
 
17753
      sb.append(this.whLocation);
-
 
17754
      first = false;
-
 
17755
      sb.append(")");
-
 
17756
      return sb.toString();
-
 
17757
    }
-
 
17758
 
-
 
17759
    public void validate() throws org.apache.thrift.TException {
-
 
17760
      // check for required fields
-
 
17761
    }
-
 
17762
 
-
 
17763
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
17764
      try {
-
 
17765
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
17766
      } catch (org.apache.thrift.TException te) {
-
 
17767
        throw new java.io.IOException(te);
-
 
17768
      }
-
 
17769
    }
-
 
17770
 
-
 
17771
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
17772
      try {
-
 
17773
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
17774
        __isset_bit_vector = new BitSet(1);
-
 
17775
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
17776
      } catch (org.apache.thrift.TException te) {
-
 
17777
        throw new java.io.IOException(te);
-
 
17778
      }
-
 
17779
    }
-
 
17780
 
-
 
17781
  }
-
 
17782
 
-
 
17783
  public static class getFirstDeliveryEstimateForWhLocation_result implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_result, getFirstDeliveryEstimateForWhLocation_result._Fields>, java.io.Serializable, Cloneable   {
-
 
17784
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_result");
-
 
17785
 
-
 
17786
    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);
-
 
17787
 
-
 
17788
    private long success; // required
-
 
17789
 
-
 
17790
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
17791
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
17792
      SUCCESS((short)0, "success");
-
 
17793
 
-
 
17794
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
17795
 
-
 
17796
      static {
-
 
17797
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
17798
          byName.put(field.getFieldName(), field);
-
 
17799
        }
-
 
17800
      }
-
 
17801
 
-
 
17802
      /**
-
 
17803
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
17804
       */
-
 
17805
      public static _Fields findByThriftId(int fieldId) {
-
 
17806
        switch(fieldId) {
-
 
17807
          case 0: // SUCCESS
-
 
17808
            return SUCCESS;
-
 
17809
          default:
-
 
17810
            return null;
-
 
17811
        }
-
 
17812
      }
-
 
17813
 
-
 
17814
      /**
-
 
17815
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
17816
       * if it is not found.
-
 
17817
       */
-
 
17818
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
17819
        _Fields fields = findByThriftId(fieldId);
-
 
17820
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
17821
        return fields;
-
 
17822
      }
-
 
17823
 
-
 
17824
      /**
-
 
17825
       * Find the _Fields constant that matches name, or null if its not found.
-
 
17826
       */
-
 
17827
      public static _Fields findByName(String name) {
-
 
17828
        return byName.get(name);
-
 
17829
      }
-
 
17830
 
-
 
17831
      private final short _thriftId;
-
 
17832
      private final String _fieldName;
-
 
17833
 
-
 
17834
      _Fields(short thriftId, String fieldName) {
-
 
17835
        _thriftId = thriftId;
-
 
17836
        _fieldName = fieldName;
-
 
17837
      }
-
 
17838
 
-
 
17839
      public short getThriftFieldId() {
-
 
17840
        return _thriftId;
-
 
17841
      }
-
 
17842
 
-
 
17843
      public String getFieldName() {
-
 
17844
        return _fieldName;
-
 
17845
      }
-
 
17846
    }
-
 
17847
 
-
 
17848
    // isset id assignments
-
 
17849
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
17850
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
17851
 
-
 
17852
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
17853
    static {
-
 
17854
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
17855
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
17856
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
17857
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
17858
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_result.class, metaDataMap);
-
 
17859
    }
-
 
17860
 
-
 
17861
    public getFirstDeliveryEstimateForWhLocation_result() {
-
 
17862
    }
-
 
17863
 
-
 
17864
    public getFirstDeliveryEstimateForWhLocation_result(
-
 
17865
      long success)
-
 
17866
    {
-
 
17867
      this();
-
 
17868
      this.success = success;
-
 
17869
      setSuccessIsSet(true);
-
 
17870
    }
-
 
17871
 
-
 
17872
    /**
-
 
17873
     * Performs a deep copy on <i>other</i>.
-
 
17874
     */
-
 
17875
    public getFirstDeliveryEstimateForWhLocation_result(getFirstDeliveryEstimateForWhLocation_result other) {
-
 
17876
      __isset_bit_vector.clear();
-
 
17877
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
17878
      this.success = other.success;
-
 
17879
    }
-
 
17880
 
-
 
17881
    public getFirstDeliveryEstimateForWhLocation_result deepCopy() {
-
 
17882
      return new getFirstDeliveryEstimateForWhLocation_result(this);
-
 
17883
    }
-
 
17884
 
-
 
17885
    @Override
-
 
17886
    public void clear() {
-
 
17887
      setSuccessIsSet(false);
-
 
17888
      this.success = 0;
-
 
17889
    }
-
 
17890
 
-
 
17891
    public long getSuccess() {
-
 
17892
      return this.success;
-
 
17893
    }
-
 
17894
 
-
 
17895
    public void setSuccess(long success) {
-
 
17896
      this.success = success;
-
 
17897
      setSuccessIsSet(true);
-
 
17898
    }
-
 
17899
 
-
 
17900
    public void unsetSuccess() {
-
 
17901
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
17902
    }
-
 
17903
 
-
 
17904
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
17905
    public boolean isSetSuccess() {
-
 
17906
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
17907
    }
-
 
17908
 
-
 
17909
    public void setSuccessIsSet(boolean value) {
-
 
17910
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
17911
    }
-
 
17912
 
-
 
17913
    public void setFieldValue(_Fields field, Object value) {
-
 
17914
      switch (field) {
-
 
17915
      case SUCCESS:
-
 
17916
        if (value == null) {
-
 
17917
          unsetSuccess();
-
 
17918
        } else {
-
 
17919
          setSuccess((Long)value);
-
 
17920
        }
-
 
17921
        break;
-
 
17922
 
-
 
17923
      }
-
 
17924
    }
-
 
17925
 
-
 
17926
    public Object getFieldValue(_Fields field) {
-
 
17927
      switch (field) {
-
 
17928
      case SUCCESS:
-
 
17929
        return Long.valueOf(getSuccess());
-
 
17930
 
-
 
17931
      }
-
 
17932
      throw new IllegalStateException();
-
 
17933
    }
-
 
17934
 
-
 
17935
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
17936
    public boolean isSet(_Fields field) {
-
 
17937
      if (field == null) {
-
 
17938
        throw new IllegalArgumentException();
-
 
17939
      }
-
 
17940
 
-
 
17941
      switch (field) {
-
 
17942
      case SUCCESS:
-
 
17943
        return isSetSuccess();
-
 
17944
      }
-
 
17945
      throw new IllegalStateException();
-
 
17946
    }
-
 
17947
 
-
 
17948
    @Override
-
 
17949
    public boolean equals(Object that) {
-
 
17950
      if (that == null)
-
 
17951
        return false;
-
 
17952
      if (that instanceof getFirstDeliveryEstimateForWhLocation_result)
-
 
17953
        return this.equals((getFirstDeliveryEstimateForWhLocation_result)that);
-
 
17954
      return false;
-
 
17955
    }
-
 
17956
 
-
 
17957
    public boolean equals(getFirstDeliveryEstimateForWhLocation_result that) {
-
 
17958
      if (that == null)
-
 
17959
        return false;
-
 
17960
 
-
 
17961
      boolean this_present_success = true;
-
 
17962
      boolean that_present_success = true;
-
 
17963
      if (this_present_success || that_present_success) {
-
 
17964
        if (!(this_present_success && that_present_success))
-
 
17965
          return false;
-
 
17966
        if (this.success != that.success)
-
 
17967
          return false;
-
 
17968
      }
-
 
17969
 
-
 
17970
      return true;
-
 
17971
    }
-
 
17972
 
-
 
17973
    @Override
-
 
17974
    public int hashCode() {
-
 
17975
      return 0;
-
 
17976
    }
-
 
17977
 
-
 
17978
    public int compareTo(getFirstDeliveryEstimateForWhLocation_result other) {
-
 
17979
      if (!getClass().equals(other.getClass())) {
-
 
17980
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17981
      }
-
 
17982
 
-
 
17983
      int lastComparison = 0;
-
 
17984
      getFirstDeliveryEstimateForWhLocation_result typedOther = (getFirstDeliveryEstimateForWhLocation_result)other;
-
 
17985
 
-
 
17986
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
17987
      if (lastComparison != 0) {
-
 
17988
        return lastComparison;
-
 
17989
      }
-
 
17990
      if (isSetSuccess()) {
-
 
17991
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
17992
        if (lastComparison != 0) {
-
 
17993
          return lastComparison;
-
 
17994
        }
-
 
17995
      }
-
 
17996
      return 0;
-
 
17997
    }
-
 
17998
 
-
 
17999
    public _Fields fieldForId(int fieldId) {
-
 
18000
      return _Fields.findByThriftId(fieldId);
-
 
18001
    }
-
 
18002
 
-
 
18003
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
18004
      org.apache.thrift.protocol.TField field;
-
 
18005
      iprot.readStructBegin();
-
 
18006
      while (true)
-
 
18007
      {
-
 
18008
        field = iprot.readFieldBegin();
-
 
18009
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
18010
          break;
-
 
18011
        }
-
 
18012
        switch (field.id) {
-
 
18013
          case 0: // SUCCESS
-
 
18014
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
18015
              this.success = iprot.readI64();
-
 
18016
              setSuccessIsSet(true);
-
 
18017
            } else { 
-
 
18018
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18019
            }
-
 
18020
            break;
-
 
18021
          default:
-
 
18022
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18023
        }
-
 
18024
        iprot.readFieldEnd();
-
 
18025
      }
-
 
18026
      iprot.readStructEnd();
-
 
18027
      validate();
-
 
18028
    }
-
 
18029
 
-
 
18030
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
18031
      oprot.writeStructBegin(STRUCT_DESC);
-
 
18032
 
-
 
18033
      if (this.isSetSuccess()) {
-
 
18034
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
18035
        oprot.writeI64(this.success);
-
 
18036
        oprot.writeFieldEnd();
-
 
18037
      }
-
 
18038
      oprot.writeFieldStop();
-
 
18039
      oprot.writeStructEnd();
-
 
18040
    }
-
 
18041
 
-
 
18042
    @Override
-
 
18043
    public String toString() {
-
 
18044
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_result(");
-
 
18045
      boolean first = true;
-
 
18046
 
-
 
18047
      sb.append("success:");
-
 
18048
      sb.append(this.success);
-
 
18049
      first = false;
17294
      sb.append(")");
18050
      sb.append(")");
17295
      return sb.toString();
18051
      return sb.toString();
17296
    }
18052
    }
17297
 
18053
 
17298
    public void validate() throws org.apache.thrift.TException {
18054
    public void validate() throws org.apache.thrift.TException {