Subversion Repositories SmartDukaan

Rev

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

Rev 12895 Rev 13146
Line 136... Line 136...
136
 
136
 
137
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable) throws org.apache.thrift.TException;
137
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable) throws org.apache.thrift.TException;
138
 
138
 
139
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException;
139
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException;
140
 
140
 
141
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs) throws org.apache.thrift.TException;
141
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor) throws org.apache.thrift.TException;
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;
147
    public long getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException;
148
 
148
 
-
 
149
    public String getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws LogisticsServiceException, org.apache.thrift.TException;
-
 
150
 
-
 
151
    public Map<String,String> getProviderLimitDetailsForPincode(long providerId, String pincode) throws LogisticsServiceException, org.apache.thrift.TException;
-
 
152
 
149
  }
153
  }
150
 
154
 
151
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
155
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
152
 
156
 
153
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
157
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
Line 184... Line 188...
184
 
188
 
185
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addPincode_call> resultHandler) throws org.apache.thrift.TException;
189
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addPincode_call> resultHandler) throws org.apache.thrift.TException;
186
 
190
 
187
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePincode_call> resultHandler) throws org.apache.thrift.TException;
191
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePincode_call> resultHandler) throws org.apache.thrift.TException;
188
 
192
 
189
    public void addNewAwbs(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addNewAwbs_call> resultHandler) throws org.apache.thrift.TException;
193
    public void addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addNewAwbs_call> resultHandler) throws org.apache.thrift.TException;
190
 
194
 
191
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.runLogisticsLocationInfoUpdate_call> resultHandler) throws org.apache.thrift.TException;
195
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.runLogisticsLocationInfoUpdate_call> resultHandler) throws org.apache.thrift.TException;
192
 
196
 
193
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException;
197
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException;
194
 
198
 
195
    public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException;
199
    public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException;
196
 
200
 
-
 
201
    public void getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNewEmptyAwb_call> resultHandler) throws org.apache.thrift.TException;
-
 
202
 
-
 
203
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException;
-
 
204
 
197
  }
205
  }
198
 
206
 
199
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
207
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
200
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
208
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
201
      public Factory() {}
209
      public Factory() {}
Line 671... Line 679...
671
      updatePincode_result result = new updatePincode_result();
679
      updatePincode_result result = new updatePincode_result();
672
      receiveBase(result, "updatePincode");
680
      receiveBase(result, "updatePincode");
673
      return;
681
      return;
674
    }
682
    }
675
 
683
 
676
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs) throws org.apache.thrift.TException
684
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor) throws org.apache.thrift.TException
677
    {
685
    {
678
      send_addNewAwbs(providerId, cod, awbs);
686
      send_addNewAwbs(providerId, cod, awbs, awbUsedFor);
679
      return recv_addNewAwbs();
687
      return recv_addNewAwbs();
680
    }
688
    }
681
 
689
 
682
    public void send_addNewAwbs(long providerId, boolean cod, List<String> awbs) throws org.apache.thrift.TException
690
    public void send_addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor) throws org.apache.thrift.TException
683
    {
691
    {
684
      addNewAwbs_args args = new addNewAwbs_args();
692
      addNewAwbs_args args = new addNewAwbs_args();
685
      args.setProviderId(providerId);
693
      args.setProviderId(providerId);
686
      args.setCod(cod);
694
      args.setCod(cod);
687
      args.setAwbs(awbs);
695
      args.setAwbs(awbs);
-
 
696
      args.setAwbUsedFor(awbUsedFor);
688
      sendBase("addNewAwbs", args);
697
      sendBase("addNewAwbs", args);
689
    }
698
    }
690
 
699
 
691
    public boolean recv_addNewAwbs() throws org.apache.thrift.TException
700
    public boolean recv_addNewAwbs() throws org.apache.thrift.TException
692
    {
701
    {
Line 765... Line 774...
765
        return result.success;
774
        return result.success;
766
      }
775
      }
767
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFirstDeliveryEstimateForWhLocation failed: unknown result");
776
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFirstDeliveryEstimateForWhLocation failed: unknown result");
768
    }
777
    }
769
 
778
 
-
 
779
    public String getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws LogisticsServiceException, org.apache.thrift.TException
-
 
780
    {
-
 
781
      send_getNewEmptyAwb(providerId, type, orderQuantity);
-
 
782
      return recv_getNewEmptyAwb();
-
 
783
    }
-
 
784
 
-
 
785
    public void send_getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws org.apache.thrift.TException
-
 
786
    {
-
 
787
      getNewEmptyAwb_args args = new getNewEmptyAwb_args();
-
 
788
      args.setProviderId(providerId);
-
 
789
      args.setType(type);
-
 
790
      args.setOrderQuantity(orderQuantity);
-
 
791
      sendBase("getNewEmptyAwb", args);
-
 
792
    }
-
 
793
 
-
 
794
    public String recv_getNewEmptyAwb() throws LogisticsServiceException, org.apache.thrift.TException
-
 
795
    {
-
 
796
      getNewEmptyAwb_result result = new getNewEmptyAwb_result();
-
 
797
      receiveBase(result, "getNewEmptyAwb");
-
 
798
      if (result.isSetSuccess()) {
-
 
799
        return result.success;
-
 
800
      }
-
 
801
      if (result.se != null) {
-
 
802
        throw result.se;
-
 
803
      }
-
 
804
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNewEmptyAwb failed: unknown result");
-
 
805
    }
-
 
806
 
-
 
807
    public Map<String,String> getProviderLimitDetailsForPincode(long providerId, String pincode) throws LogisticsServiceException, org.apache.thrift.TException
-
 
808
    {
-
 
809
      send_getProviderLimitDetailsForPincode(providerId, pincode);
-
 
810
      return recv_getProviderLimitDetailsForPincode();
-
 
811
    }
-
 
812
 
-
 
813
    public void send_getProviderLimitDetailsForPincode(long providerId, String pincode) throws org.apache.thrift.TException
-
 
814
    {
-
 
815
      getProviderLimitDetailsForPincode_args args = new getProviderLimitDetailsForPincode_args();
-
 
816
      args.setProviderId(providerId);
-
 
817
      args.setPincode(pincode);
-
 
818
      sendBase("getProviderLimitDetailsForPincode", args);
-
 
819
    }
-
 
820
 
-
 
821
    public Map<String,String> recv_getProviderLimitDetailsForPincode() throws LogisticsServiceException, org.apache.thrift.TException
-
 
822
    {
-
 
823
      getProviderLimitDetailsForPincode_result result = new getProviderLimitDetailsForPincode_result();
-
 
824
      receiveBase(result, "getProviderLimitDetailsForPincode");
-
 
825
      if (result.isSetSuccess()) {
-
 
826
        return result.success;
-
 
827
      }
-
 
828
      if (result.se != null) {
-
 
829
        throw result.se;
-
 
830
      }
-
 
831
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderLimitDetailsForPincode failed: unknown result");
-
 
832
    }
-
 
833
 
770
  }
834
  }
771
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
835
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
772
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
836
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
773
      private org.apache.thrift.async.TAsyncClientManager clientManager;
837
      private org.apache.thrift.async.TAsyncClientManager clientManager;
774
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
838
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1425... Line 1489...
1425
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1489
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1426
        (new Client(prot)).recv_updatePincode();
1490
        (new Client(prot)).recv_updatePincode();
1427
      }
1491
      }
1428
    }
1492
    }
1429
 
1493
 
1430
    public void addNewAwbs(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<addNewAwbs_call> resultHandler) throws org.apache.thrift.TException {
1494
    public void addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor, org.apache.thrift.async.AsyncMethodCallback<addNewAwbs_call> resultHandler) throws org.apache.thrift.TException {
1431
      checkReady();
1495
      checkReady();
1432
      addNewAwbs_call method_call = new addNewAwbs_call(providerId, cod, awbs, resultHandler, this, ___protocolFactory, ___transport);
1496
      addNewAwbs_call method_call = new addNewAwbs_call(providerId, cod, awbs, awbUsedFor, resultHandler, this, ___protocolFactory, ___transport);
1433
      this.___currentMethod = method_call;
1497
      this.___currentMethod = method_call;
1434
      ___manager.call(method_call);
1498
      ___manager.call(method_call);
1435
    }
1499
    }
1436
 
1500
 
1437
    public static class addNewAwbs_call extends org.apache.thrift.async.TAsyncMethodCall {
1501
    public static class addNewAwbs_call extends org.apache.thrift.async.TAsyncMethodCall {
1438
      private long providerId;
1502
      private long providerId;
1439
      private boolean cod;
1503
      private boolean cod;
1440
      private List<String> awbs;
1504
      private List<String> awbs;
-
 
1505
      private long awbUsedFor;
1441
      public addNewAwbs_call(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<addNewAwbs_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 {
1506
      public addNewAwbs_call(long providerId, boolean cod, List<String> awbs, long awbUsedFor, org.apache.thrift.async.AsyncMethodCallback<addNewAwbs_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 {
1442
        super(client, protocolFactory, transport, resultHandler, false);
1507
        super(client, protocolFactory, transport, resultHandler, false);
1443
        this.providerId = providerId;
1508
        this.providerId = providerId;
1444
        this.cod = cod;
1509
        this.cod = cod;
1445
        this.awbs = awbs;
1510
        this.awbs = awbs;
-
 
1511
        this.awbUsedFor = awbUsedFor;
1446
      }
1512
      }
1447
 
1513
 
1448
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1514
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1449
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addNewAwbs", org.apache.thrift.protocol.TMessageType.CALL, 0));
1515
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addNewAwbs", org.apache.thrift.protocol.TMessageType.CALL, 0));
1450
        addNewAwbs_args args = new addNewAwbs_args();
1516
        addNewAwbs_args args = new addNewAwbs_args();
1451
        args.setProviderId(providerId);
1517
        args.setProviderId(providerId);
1452
        args.setCod(cod);
1518
        args.setCod(cod);
1453
        args.setAwbs(awbs);
1519
        args.setAwbs(awbs);
-
 
1520
        args.setAwbUsedFor(awbUsedFor);
1454
        args.write(prot);
1521
        args.write(prot);
1455
        prot.writeMessageEnd();
1522
        prot.writeMessageEnd();
1456
      }
1523
      }
1457
 
1524
 
1458
      public boolean getResult() throws org.apache.thrift.TException {
1525
      public boolean getResult() throws org.apache.thrift.TException {
Line 1568... Line 1635...
1568
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1635
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1569
        return (new Client(prot)).recv_getFirstDeliveryEstimateForWhLocation();
1636
        return (new Client(prot)).recv_getFirstDeliveryEstimateForWhLocation();
1570
      }
1637
      }
1571
    }
1638
    }
1572
 
1639
 
-
 
1640
    public void getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<getNewEmptyAwb_call> resultHandler) throws org.apache.thrift.TException {
-
 
1641
      checkReady();
-
 
1642
      getNewEmptyAwb_call method_call = new getNewEmptyAwb_call(providerId, type, orderQuantity, resultHandler, this, ___protocolFactory, ___transport);
-
 
1643
      this.___currentMethod = method_call;
-
 
1644
      ___manager.call(method_call);
-
 
1645
    }
-
 
1646
 
-
 
1647
    public static class getNewEmptyAwb_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1648
      private long providerId;
-
 
1649
      private DeliveryType type;
-
 
1650
      private long orderQuantity;
-
 
1651
      public getNewEmptyAwb_call(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<getNewEmptyAwb_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 {
-
 
1652
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1653
        this.providerId = providerId;
-
 
1654
        this.type = type;
-
 
1655
        this.orderQuantity = orderQuantity;
-
 
1656
      }
-
 
1657
 
-
 
1658
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1659
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNewEmptyAwb", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1660
        getNewEmptyAwb_args args = new getNewEmptyAwb_args();
-
 
1661
        args.setProviderId(providerId);
-
 
1662
        args.setType(type);
-
 
1663
        args.setOrderQuantity(orderQuantity);
-
 
1664
        args.write(prot);
-
 
1665
        prot.writeMessageEnd();
-
 
1666
      }
-
 
1667
 
-
 
1668
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
-
 
1669
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1670
          throw new IllegalStateException("Method call not finished!");
-
 
1671
        }
-
 
1672
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1673
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1674
        return (new Client(prot)).recv_getNewEmptyAwb();
-
 
1675
      }
-
 
1676
    }
-
 
1677
 
-
 
1678
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException {
-
 
1679
      checkReady();
-
 
1680
      getProviderLimitDetailsForPincode_call method_call = new getProviderLimitDetailsForPincode_call(providerId, pincode, resultHandler, this, ___protocolFactory, ___transport);
-
 
1681
      this.___currentMethod = method_call;
-
 
1682
      ___manager.call(method_call);
-
 
1683
    }
-
 
1684
 
-
 
1685
    public static class getProviderLimitDetailsForPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1686
      private long providerId;
-
 
1687
      private String pincode;
-
 
1688
      public getProviderLimitDetailsForPincode_call(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<getProviderLimitDetailsForPincode_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 {
-
 
1689
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1690
        this.providerId = providerId;
-
 
1691
        this.pincode = pincode;
-
 
1692
      }
-
 
1693
 
-
 
1694
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1695
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderLimitDetailsForPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1696
        getProviderLimitDetailsForPincode_args args = new getProviderLimitDetailsForPincode_args();
-
 
1697
        args.setProviderId(providerId);
-
 
1698
        args.setPincode(pincode);
-
 
1699
        args.write(prot);
-
 
1700
        prot.writeMessageEnd();
-
 
1701
      }
-
 
1702
 
-
 
1703
      public Map<String,String> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
-
 
1704
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1705
          throw new IllegalStateException("Method call not finished!");
-
 
1706
        }
-
 
1707
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1708
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1709
        return (new Client(prot)).recv_getProviderLimitDetailsForPincode();
-
 
1710
      }
-
 
1711
    }
-
 
1712
 
1573
  }
1713
  }
1574
 
1714
 
1575
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1715
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1576
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1716
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1577
    public Processor(I iface) {
1717
    public Processor(I iface) {
Line 1603... Line 1743...
1603
      processMap.put("updatePincode", new updatePincode());
1743
      processMap.put("updatePincode", new updatePincode());
1604
      processMap.put("addNewAwbs", new addNewAwbs());
1744
      processMap.put("addNewAwbs", new addNewAwbs());
1605
      processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
1745
      processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
1606
      processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
1746
      processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
1607
      processMap.put("getFirstDeliveryEstimateForWhLocation", new getFirstDeliveryEstimateForWhLocation());
1747
      processMap.put("getFirstDeliveryEstimateForWhLocation", new getFirstDeliveryEstimateForWhLocation());
-
 
1748
      processMap.put("getNewEmptyAwb", new getNewEmptyAwb());
-
 
1749
      processMap.put("getProviderLimitDetailsForPincode", new getProviderLimitDetailsForPincode());
1608
      return processMap;
1750
      return processMap;
1609
    }
1751
    }
1610
 
1752
 
1611
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1753
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1612
      public getProvider() {
1754
      public getProvider() {
Line 1947... Line 2089...
1947
        return new addNewAwbs_args();
2089
        return new addNewAwbs_args();
1948
      }
2090
      }
1949
 
2091
 
1950
      protected addNewAwbs_result getResult(I iface, addNewAwbs_args args) throws org.apache.thrift.TException {
2092
      protected addNewAwbs_result getResult(I iface, addNewAwbs_args args) throws org.apache.thrift.TException {
1951
        addNewAwbs_result result = new addNewAwbs_result();
2093
        addNewAwbs_result result = new addNewAwbs_result();
1952
        result.success = iface.addNewAwbs(args.providerId, args.cod, args.awbs);
2094
        result.success = iface.addNewAwbs(args.providerId, args.cod, args.awbs, args.awbUsedFor);
1953
        result.setSuccessIsSet(true);
2095
        result.setSuccessIsSet(true);
1954
        return result;
2096
        return result;
1955
      }
2097
      }
1956
    }
2098
    }
1957
 
2099
 
Line 2003... Line 2145...
2003
        result.setSuccessIsSet(true);
2145
        result.setSuccessIsSet(true);
2004
        return result;
2146
        return result;
2005
      }
2147
      }
2006
    }
2148
    }
2007
 
2149
 
-
 
2150
    private static class getNewEmptyAwb<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNewEmptyAwb_args> {
-
 
2151
      public getNewEmptyAwb() {
-
 
2152
        super("getNewEmptyAwb");
-
 
2153
      }
-
 
2154
 
-
 
2155
      protected getNewEmptyAwb_args getEmptyArgsInstance() {
-
 
2156
        return new getNewEmptyAwb_args();
-
 
2157
      }
-
 
2158
 
-
 
2159
      protected getNewEmptyAwb_result getResult(I iface, getNewEmptyAwb_args args) throws org.apache.thrift.TException {
-
 
2160
        getNewEmptyAwb_result result = new getNewEmptyAwb_result();
-
 
2161
        try {
-
 
2162
          result.success = iface.getNewEmptyAwb(args.providerId, args.type, args.orderQuantity);
-
 
2163
        } catch (LogisticsServiceException se) {
-
 
2164
          result.se = se;
-
 
2165
        }
-
 
2166
        return result;
-
 
2167
      }
-
 
2168
    }
-
 
2169
 
-
 
2170
    private static class getProviderLimitDetailsForPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderLimitDetailsForPincode_args> {
-
 
2171
      public getProviderLimitDetailsForPincode() {
-
 
2172
        super("getProviderLimitDetailsForPincode");
-
 
2173
      }
-
 
2174
 
-
 
2175
      protected getProviderLimitDetailsForPincode_args getEmptyArgsInstance() {
-
 
2176
        return new getProviderLimitDetailsForPincode_args();
-
 
2177
      }
-
 
2178
 
-
 
2179
      protected getProviderLimitDetailsForPincode_result getResult(I iface, getProviderLimitDetailsForPincode_args args) throws org.apache.thrift.TException {
-
 
2180
        getProviderLimitDetailsForPincode_result result = new getProviderLimitDetailsForPincode_result();
-
 
2181
        try {
-
 
2182
          result.success = iface.getProviderLimitDetailsForPincode(args.providerId, args.pincode);
-
 
2183
        } catch (LogisticsServiceException se) {
-
 
2184
          result.se = se;
-
 
2185
        }
-
 
2186
        return result;
-
 
2187
      }
-
 
2188
    }
-
 
2189
 
2008
  }
2190
  }
2009
 
2191
 
2010
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
2192
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
2011
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
2193
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
2012
 
2194
 
Line 15318... Line 15500...
15318
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_args");
15500
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_args");
15319
 
15501
 
15320
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
15502
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
15321
    private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)2);
15503
    private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)2);
15322
    private static final org.apache.thrift.protocol.TField AWBS_FIELD_DESC = new org.apache.thrift.protocol.TField("awbs", org.apache.thrift.protocol.TType.LIST, (short)3);
15504
    private static final org.apache.thrift.protocol.TField AWBS_FIELD_DESC = new org.apache.thrift.protocol.TField("awbs", org.apache.thrift.protocol.TType.LIST, (short)3);
-
 
15505
    private static final org.apache.thrift.protocol.TField AWB_USED_FOR_FIELD_DESC = new org.apache.thrift.protocol.TField("awbUsedFor", org.apache.thrift.protocol.TType.I64, (short)4);
15323
 
15506
 
15324
    private long providerId; // required
15507
    private long providerId; // required
15325
    private boolean cod; // required
15508
    private boolean cod; // required
15326
    private List<String> awbs; // required
15509
    private List<String> awbs; // required
-
 
15510
    private long awbUsedFor; // required
15327
 
15511
 
15328
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15512
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15329
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15513
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15330
      PROVIDER_ID((short)1, "providerId"),
15514
      PROVIDER_ID((short)1, "providerId"),
15331
      COD((short)2, "cod"),
15515
      COD((short)2, "cod"),
15332
      AWBS((short)3, "awbs");
15516
      AWBS((short)3, "awbs"),
-
 
15517
      AWB_USED_FOR((short)4, "awbUsedFor");
15333
 
15518
 
15334
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15519
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15335
 
15520
 
15336
      static {
15521
      static {
15337
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15522
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 15348... Line 15533...
15348
            return PROVIDER_ID;
15533
            return PROVIDER_ID;
15349
          case 2: // COD
15534
          case 2: // COD
15350
            return COD;
15535
            return COD;
15351
          case 3: // AWBS
15536
          case 3: // AWBS
15352
            return AWBS;
15537
            return AWBS;
-
 
15538
          case 4: // AWB_USED_FOR
-
 
15539
            return AWB_USED_FOR;
15353
          default:
15540
          default:
15354
            return null;
15541
            return null;
15355
        }
15542
        }
15356
      }
15543
      }
15357
 
15544
 
Line 15390... Line 15577...
15390
    }
15577
    }
15391
 
15578
 
15392
    // isset id assignments
15579
    // isset id assignments
15393
    private static final int __PROVIDERID_ISSET_ID = 0;
15580
    private static final int __PROVIDERID_ISSET_ID = 0;
15394
    private static final int __COD_ISSET_ID = 1;
15581
    private static final int __COD_ISSET_ID = 1;
-
 
15582
    private static final int __AWBUSEDFOR_ISSET_ID = 2;
15395
    private BitSet __isset_bit_vector = new BitSet(2);
15583
    private BitSet __isset_bit_vector = new BitSet(3);
15396
 
15584
 
15397
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15585
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15398
    static {
15586
    static {
15399
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15587
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15400
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15588
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 15402... Line 15590...
15402
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15590
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15403
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15591
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15404
      tmpMap.put(_Fields.AWBS, new org.apache.thrift.meta_data.FieldMetaData("awbs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15592
      tmpMap.put(_Fields.AWBS, new org.apache.thrift.meta_data.FieldMetaData("awbs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15405
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15593
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15406
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
15594
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
15595
      tmpMap.put(_Fields.AWB_USED_FOR, new org.apache.thrift.meta_data.FieldMetaData("awbUsedFor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
15596
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15407
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15597
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15408
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_args.class, metaDataMap);
15598
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_args.class, metaDataMap);
15409
    }
15599
    }
15410
 
15600
 
15411
    public addNewAwbs_args() {
15601
    public addNewAwbs_args() {
15412
    }
15602
    }
15413
 
15603
 
15414
    public addNewAwbs_args(
15604
    public addNewAwbs_args(
15415
      long providerId,
15605
      long providerId,
15416
      boolean cod,
15606
      boolean cod,
15417
      List<String> awbs)
15607
      List<String> awbs,
-
 
15608
      long awbUsedFor)
15418
    {
15609
    {
15419
      this();
15610
      this();
15420
      this.providerId = providerId;
15611
      this.providerId = providerId;
15421
      setProviderIdIsSet(true);
15612
      setProviderIdIsSet(true);
15422
      this.cod = cod;
15613
      this.cod = cod;
15423
      setCodIsSet(true);
15614
      setCodIsSet(true);
15424
      this.awbs = awbs;
15615
      this.awbs = awbs;
-
 
15616
      this.awbUsedFor = awbUsedFor;
-
 
15617
      setAwbUsedForIsSet(true);
15425
    }
15618
    }
15426
 
15619
 
15427
    /**
15620
    /**
15428
     * Performs a deep copy on <i>other</i>.
15621
     * Performs a deep copy on <i>other</i>.
15429
     */
15622
     */
Line 15437... Line 15630...
15437
        for (String other_element : other.awbs) {
15630
        for (String other_element : other.awbs) {
15438
          __this__awbs.add(other_element);
15631
          __this__awbs.add(other_element);
15439
        }
15632
        }
15440
        this.awbs = __this__awbs;
15633
        this.awbs = __this__awbs;
15441
      }
15634
      }
-
 
15635
      this.awbUsedFor = other.awbUsedFor;
15442
    }
15636
    }
15443
 
15637
 
15444
    public addNewAwbs_args deepCopy() {
15638
    public addNewAwbs_args deepCopy() {
15445
      return new addNewAwbs_args(this);
15639
      return new addNewAwbs_args(this);
15446
    }
15640
    }
Line 15450... Line 15644...
15450
      setProviderIdIsSet(false);
15644
      setProviderIdIsSet(false);
15451
      this.providerId = 0;
15645
      this.providerId = 0;
15452
      setCodIsSet(false);
15646
      setCodIsSet(false);
15453
      this.cod = false;
15647
      this.cod = false;
15454
      this.awbs = null;
15648
      this.awbs = null;
-
 
15649
      setAwbUsedForIsSet(false);
-
 
15650
      this.awbUsedFor = 0;
15455
    }
15651
    }
15456
 
15652
 
15457
    public long getProviderId() {
15653
    public long getProviderId() {
15458
      return this.providerId;
15654
      return this.providerId;
15459
    }
15655
    }
Line 15534... Line 15730...
15534
      if (!value) {
15730
      if (!value) {
15535
        this.awbs = null;
15731
        this.awbs = null;
15536
      }
15732
      }
15537
    }
15733
    }
15538
 
15734
 
-
 
15735
    public long getAwbUsedFor() {
-
 
15736
      return this.awbUsedFor;
-
 
15737
    }
-
 
15738
 
-
 
15739
    public void setAwbUsedFor(long awbUsedFor) {
-
 
15740
      this.awbUsedFor = awbUsedFor;
-
 
15741
      setAwbUsedForIsSet(true);
-
 
15742
    }
-
 
15743
 
-
 
15744
    public void unsetAwbUsedFor() {
-
 
15745
      __isset_bit_vector.clear(__AWBUSEDFOR_ISSET_ID);
-
 
15746
    }
-
 
15747
 
-
 
15748
    /** Returns true if field awbUsedFor is set (has been assigned a value) and false otherwise */
-
 
15749
    public boolean isSetAwbUsedFor() {
-
 
15750
      return __isset_bit_vector.get(__AWBUSEDFOR_ISSET_ID);
-
 
15751
    }
-
 
15752
 
-
 
15753
    public void setAwbUsedForIsSet(boolean value) {
-
 
15754
      __isset_bit_vector.set(__AWBUSEDFOR_ISSET_ID, value);
-
 
15755
    }
-
 
15756
 
15539
    public void setFieldValue(_Fields field, Object value) {
15757
    public void setFieldValue(_Fields field, Object value) {
15540
      switch (field) {
15758
      switch (field) {
15541
      case PROVIDER_ID:
15759
      case PROVIDER_ID:
15542
        if (value == null) {
15760
        if (value == null) {
15543
          unsetProviderId();
15761
          unsetProviderId();
Line 15560... Line 15778...
15560
        } else {
15778
        } else {
15561
          setAwbs((List<String>)value);
15779
          setAwbs((List<String>)value);
15562
        }
15780
        }
15563
        break;
15781
        break;
15564
 
15782
 
-
 
15783
      case AWB_USED_FOR:
-
 
15784
        if (value == null) {
-
 
15785
          unsetAwbUsedFor();
-
 
15786
        } else {
-
 
15787
          setAwbUsedFor((Long)value);
-
 
15788
        }
-
 
15789
        break;
-
 
15790
 
15565
      }
15791
      }
15566
    }
15792
    }
15567
 
15793
 
15568
    public Object getFieldValue(_Fields field) {
15794
    public Object getFieldValue(_Fields field) {
15569
      switch (field) {
15795
      switch (field) {
Line 15574... Line 15800...
15574
        return Boolean.valueOf(isCod());
15800
        return Boolean.valueOf(isCod());
15575
 
15801
 
15576
      case AWBS:
15802
      case AWBS:
15577
        return getAwbs();
15803
        return getAwbs();
15578
 
15804
 
-
 
15805
      case AWB_USED_FOR:
-
 
15806
        return Long.valueOf(getAwbUsedFor());
-
 
15807
 
15579
      }
15808
      }
15580
      throw new IllegalStateException();
15809
      throw new IllegalStateException();
15581
    }
15810
    }
15582
 
15811
 
15583
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15812
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 15591... Line 15820...
15591
        return isSetProviderId();
15820
        return isSetProviderId();
15592
      case COD:
15821
      case COD:
15593
        return isSetCod();
15822
        return isSetCod();
15594
      case AWBS:
15823
      case AWBS:
15595
        return isSetAwbs();
15824
        return isSetAwbs();
-
 
15825
      case AWB_USED_FOR:
-
 
15826
        return isSetAwbUsedFor();
15596
      }
15827
      }
15597
      throw new IllegalStateException();
15828
      throw new IllegalStateException();
15598
    }
15829
    }
15599
 
15830
 
15600
    @Override
15831
    @Override
Line 15635... Line 15866...
15635
          return false;
15866
          return false;
15636
        if (!this.awbs.equals(that.awbs))
15867
        if (!this.awbs.equals(that.awbs))
15637
          return false;
15868
          return false;
15638
      }
15869
      }
15639
 
15870
 
-
 
15871
      boolean this_present_awbUsedFor = true;
-
 
15872
      boolean that_present_awbUsedFor = true;
-
 
15873
      if (this_present_awbUsedFor || that_present_awbUsedFor) {
-
 
15874
        if (!(this_present_awbUsedFor && that_present_awbUsedFor))
-
 
15875
          return false;
-
 
15876
        if (this.awbUsedFor != that.awbUsedFor)
-
 
15877
          return false;
-
 
15878
      }
-
 
15879
 
15640
      return true;
15880
      return true;
15641
    }
15881
    }
15642
 
15882
 
15643
    @Override
15883
    @Override
15644
    public int hashCode() {
15884
    public int hashCode() {
Line 15681... Line 15921...
15681
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbs, typedOther.awbs);
15921
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbs, typedOther.awbs);
15682
        if (lastComparison != 0) {
15922
        if (lastComparison != 0) {
15683
          return lastComparison;
15923
          return lastComparison;
15684
        }
15924
        }
15685
      }
15925
      }
-
 
15926
      lastComparison = Boolean.valueOf(isSetAwbUsedFor()).compareTo(typedOther.isSetAwbUsedFor());
-
 
15927
      if (lastComparison != 0) {
-
 
15928
        return lastComparison;
-
 
15929
      }
-
 
15930
      if (isSetAwbUsedFor()) {
-
 
15931
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbUsedFor, typedOther.awbUsedFor);
-
 
15932
        if (lastComparison != 0) {
-
 
15933
          return lastComparison;
-
 
15934
        }
-
 
15935
      }
15686
      return 0;
15936
      return 0;
15687
    }
15937
    }
15688
 
15938
 
15689
    public _Fields fieldForId(int fieldId) {
15939
    public _Fields fieldForId(int fieldId) {
15690
      return _Fields.findByThriftId(fieldId);
15940
      return _Fields.findByThriftId(fieldId);
Line 15731... Line 15981...
15731
              }
15981
              }
15732
            } else { 
15982
            } else { 
15733
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15983
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15734
            }
15984
            }
15735
            break;
15985
            break;
-
 
15986
          case 4: // AWB_USED_FOR
-
 
15987
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
15988
              this.awbUsedFor = iprot.readI64();
-
 
15989
              setAwbUsedForIsSet(true);
-
 
15990
            } else { 
-
 
15991
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
15992
            }
-
 
15993
            break;
15736
          default:
15994
          default:
15737
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15995
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15738
        }
15996
        }
15739
        iprot.readFieldEnd();
15997
        iprot.readFieldEnd();
15740
      }
15998
      }
Line 15762... Line 16020...
15762
          }
16020
          }
15763
          oprot.writeListEnd();
16021
          oprot.writeListEnd();
15764
        }
16022
        }
15765
        oprot.writeFieldEnd();
16023
        oprot.writeFieldEnd();
15766
      }
16024
      }
-
 
16025
      oprot.writeFieldBegin(AWB_USED_FOR_FIELD_DESC);
-
 
16026
      oprot.writeI64(this.awbUsedFor);
-
 
16027
      oprot.writeFieldEnd();
15767
      oprot.writeFieldStop();
16028
      oprot.writeFieldStop();
15768
      oprot.writeStructEnd();
16029
      oprot.writeStructEnd();
15769
    }
16030
    }
15770
 
16031
 
15771
    @Override
16032
    @Override
Line 15786... Line 16047...
15786
        sb.append("null");
16047
        sb.append("null");
15787
      } else {
16048
      } else {
15788
        sb.append(this.awbs);
16049
        sb.append(this.awbs);
15789
      }
16050
      }
15790
      first = false;
16051
      first = false;
-
 
16052
      if (!first) sb.append(", ");
-
 
16053
      sb.append("awbUsedFor:");
-
 
16054
      sb.append(this.awbUsedFor);
-
 
16055
      first = false;
15791
      sb.append(")");
16056
      sb.append(")");
15792
      return sb.toString();
16057
      return sb.toString();
15793
    }
16058
    }
15794
 
16059
 
15795
    public void validate() throws org.apache.thrift.TException {
16060
    public void validate() throws org.apache.thrift.TException {
Line 18049... Line 18314...
18049
      first = false;
18314
      first = false;
18050
      sb.append(")");
18315
      sb.append(")");
18051
      return sb.toString();
18316
      return sb.toString();
18052
    }
18317
    }
18053
 
18318
 
-
 
18319
    public void validate() throws org.apache.thrift.TException {
-
 
18320
      // check for required fields
-
 
18321
    }
-
 
18322
 
-
 
18323
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
18324
      try {
-
 
18325
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
18326
      } catch (org.apache.thrift.TException te) {
-
 
18327
        throw new java.io.IOException(te);
-
 
18328
      }
-
 
18329
    }
-
 
18330
 
-
 
18331
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
18332
      try {
-
 
18333
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
18334
      } catch (org.apache.thrift.TException te) {
-
 
18335
        throw new java.io.IOException(te);
-
 
18336
      }
-
 
18337
    }
-
 
18338
 
-
 
18339
  }
-
 
18340
 
-
 
18341
  public static class getNewEmptyAwb_args implements org.apache.thrift.TBase<getNewEmptyAwb_args, getNewEmptyAwb_args._Fields>, java.io.Serializable, Cloneable   {
-
 
18342
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_args");
-
 
18343
 
-
 
18344
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
18345
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
-
 
18346
    private static final org.apache.thrift.protocol.TField ORDER_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("orderQuantity", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
18347
 
-
 
18348
    private long providerId; // required
-
 
18349
    private DeliveryType type; // required
-
 
18350
    private long orderQuantity; // required
-
 
18351
 
-
 
18352
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
18353
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
18354
      PROVIDER_ID((short)1, "providerId"),
-
 
18355
      /**
-
 
18356
       * 
-
 
18357
       * @see DeliveryType
-
 
18358
       */
-
 
18359
      TYPE((short)2, "type"),
-
 
18360
      ORDER_QUANTITY((short)3, "orderQuantity");
-
 
18361
 
-
 
18362
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
18363
 
-
 
18364
      static {
-
 
18365
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
18366
          byName.put(field.getFieldName(), field);
-
 
18367
        }
-
 
18368
      }
-
 
18369
 
-
 
18370
      /**
-
 
18371
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
18372
       */
-
 
18373
      public static _Fields findByThriftId(int fieldId) {
-
 
18374
        switch(fieldId) {
-
 
18375
          case 1: // PROVIDER_ID
-
 
18376
            return PROVIDER_ID;
-
 
18377
          case 2: // TYPE
-
 
18378
            return TYPE;
-
 
18379
          case 3: // ORDER_QUANTITY
-
 
18380
            return ORDER_QUANTITY;
-
 
18381
          default:
-
 
18382
            return null;
-
 
18383
        }
-
 
18384
      }
-
 
18385
 
-
 
18386
      /**
-
 
18387
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
18388
       * if it is not found.
-
 
18389
       */
-
 
18390
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
18391
        _Fields fields = findByThriftId(fieldId);
-
 
18392
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
18393
        return fields;
-
 
18394
      }
-
 
18395
 
-
 
18396
      /**
-
 
18397
       * Find the _Fields constant that matches name, or null if its not found.
-
 
18398
       */
-
 
18399
      public static _Fields findByName(String name) {
-
 
18400
        return byName.get(name);
-
 
18401
      }
-
 
18402
 
-
 
18403
      private final short _thriftId;
-
 
18404
      private final String _fieldName;
-
 
18405
 
-
 
18406
      _Fields(short thriftId, String fieldName) {
-
 
18407
        _thriftId = thriftId;
-
 
18408
        _fieldName = fieldName;
-
 
18409
      }
-
 
18410
 
-
 
18411
      public short getThriftFieldId() {
-
 
18412
        return _thriftId;
-
 
18413
      }
-
 
18414
 
-
 
18415
      public String getFieldName() {
-
 
18416
        return _fieldName;
-
 
18417
      }
-
 
18418
    }
-
 
18419
 
-
 
18420
    // isset id assignments
-
 
18421
    private static final int __PROVIDERID_ISSET_ID = 0;
-
 
18422
    private static final int __ORDERQUANTITY_ISSET_ID = 1;
-
 
18423
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
18424
 
-
 
18425
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
18426
    static {
-
 
18427
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
18428
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
18429
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
18430
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
18431
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
-
 
18432
      tmpMap.put(_Fields.ORDER_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("orderQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
18433
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
18434
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
18435
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_args.class, metaDataMap);
-
 
18436
    }
-
 
18437
 
-
 
18438
    public getNewEmptyAwb_args() {
-
 
18439
    }
-
 
18440
 
-
 
18441
    public getNewEmptyAwb_args(
-
 
18442
      long providerId,
-
 
18443
      DeliveryType type,
-
 
18444
      long orderQuantity)
-
 
18445
    {
-
 
18446
      this();
-
 
18447
      this.providerId = providerId;
-
 
18448
      setProviderIdIsSet(true);
-
 
18449
      this.type = type;
-
 
18450
      this.orderQuantity = orderQuantity;
-
 
18451
      setOrderQuantityIsSet(true);
-
 
18452
    }
-
 
18453
 
-
 
18454
    /**
-
 
18455
     * Performs a deep copy on <i>other</i>.
-
 
18456
     */
-
 
18457
    public getNewEmptyAwb_args(getNewEmptyAwb_args other) {
-
 
18458
      __isset_bit_vector.clear();
-
 
18459
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
18460
      this.providerId = other.providerId;
-
 
18461
      if (other.isSetType()) {
-
 
18462
        this.type = other.type;
-
 
18463
      }
-
 
18464
      this.orderQuantity = other.orderQuantity;
-
 
18465
    }
-
 
18466
 
-
 
18467
    public getNewEmptyAwb_args deepCopy() {
-
 
18468
      return new getNewEmptyAwb_args(this);
-
 
18469
    }
-
 
18470
 
-
 
18471
    @Override
-
 
18472
    public void clear() {
-
 
18473
      setProviderIdIsSet(false);
-
 
18474
      this.providerId = 0;
-
 
18475
      this.type = null;
-
 
18476
      setOrderQuantityIsSet(false);
-
 
18477
      this.orderQuantity = 0;
-
 
18478
    }
-
 
18479
 
-
 
18480
    public long getProviderId() {
-
 
18481
      return this.providerId;
-
 
18482
    }
-
 
18483
 
-
 
18484
    public void setProviderId(long providerId) {
-
 
18485
      this.providerId = providerId;
-
 
18486
      setProviderIdIsSet(true);
-
 
18487
    }
-
 
18488
 
-
 
18489
    public void unsetProviderId() {
-
 
18490
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
-
 
18491
    }
-
 
18492
 
-
 
18493
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
-
 
18494
    public boolean isSetProviderId() {
-
 
18495
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
-
 
18496
    }
-
 
18497
 
-
 
18498
    public void setProviderIdIsSet(boolean value) {
-
 
18499
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
-
 
18500
    }
-
 
18501
 
-
 
18502
    /**
-
 
18503
     * 
-
 
18504
     * @see DeliveryType
-
 
18505
     */
-
 
18506
    public DeliveryType getType() {
-
 
18507
      return this.type;
-
 
18508
    }
-
 
18509
 
-
 
18510
    /**
-
 
18511
     * 
-
 
18512
     * @see DeliveryType
-
 
18513
     */
-
 
18514
    public void setType(DeliveryType type) {
-
 
18515
      this.type = type;
-
 
18516
    }
-
 
18517
 
-
 
18518
    public void unsetType() {
-
 
18519
      this.type = null;
-
 
18520
    }
-
 
18521
 
-
 
18522
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
-
 
18523
    public boolean isSetType() {
-
 
18524
      return this.type != null;
-
 
18525
    }
-
 
18526
 
-
 
18527
    public void setTypeIsSet(boolean value) {
-
 
18528
      if (!value) {
-
 
18529
        this.type = null;
-
 
18530
      }
-
 
18531
    }
-
 
18532
 
-
 
18533
    public long getOrderQuantity() {
-
 
18534
      return this.orderQuantity;
-
 
18535
    }
-
 
18536
 
-
 
18537
    public void setOrderQuantity(long orderQuantity) {
-
 
18538
      this.orderQuantity = orderQuantity;
-
 
18539
      setOrderQuantityIsSet(true);
-
 
18540
    }
-
 
18541
 
-
 
18542
    public void unsetOrderQuantity() {
-
 
18543
      __isset_bit_vector.clear(__ORDERQUANTITY_ISSET_ID);
-
 
18544
    }
-
 
18545
 
-
 
18546
    /** Returns true if field orderQuantity is set (has been assigned a value) and false otherwise */
-
 
18547
    public boolean isSetOrderQuantity() {
-
 
18548
      return __isset_bit_vector.get(__ORDERQUANTITY_ISSET_ID);
-
 
18549
    }
-
 
18550
 
-
 
18551
    public void setOrderQuantityIsSet(boolean value) {
-
 
18552
      __isset_bit_vector.set(__ORDERQUANTITY_ISSET_ID, value);
-
 
18553
    }
-
 
18554
 
-
 
18555
    public void setFieldValue(_Fields field, Object value) {
-
 
18556
      switch (field) {
-
 
18557
      case PROVIDER_ID:
-
 
18558
        if (value == null) {
-
 
18559
          unsetProviderId();
-
 
18560
        } else {
-
 
18561
          setProviderId((Long)value);
-
 
18562
        }
-
 
18563
        break;
-
 
18564
 
-
 
18565
      case TYPE:
-
 
18566
        if (value == null) {
-
 
18567
          unsetType();
-
 
18568
        } else {
-
 
18569
          setType((DeliveryType)value);
-
 
18570
        }
-
 
18571
        break;
-
 
18572
 
-
 
18573
      case ORDER_QUANTITY:
-
 
18574
        if (value == null) {
-
 
18575
          unsetOrderQuantity();
-
 
18576
        } else {
-
 
18577
          setOrderQuantity((Long)value);
-
 
18578
        }
-
 
18579
        break;
-
 
18580
 
-
 
18581
      }
-
 
18582
    }
-
 
18583
 
-
 
18584
    public Object getFieldValue(_Fields field) {
-
 
18585
      switch (field) {
-
 
18586
      case PROVIDER_ID:
-
 
18587
        return Long.valueOf(getProviderId());
-
 
18588
 
-
 
18589
      case TYPE:
-
 
18590
        return getType();
-
 
18591
 
-
 
18592
      case ORDER_QUANTITY:
-
 
18593
        return Long.valueOf(getOrderQuantity());
-
 
18594
 
-
 
18595
      }
-
 
18596
      throw new IllegalStateException();
-
 
18597
    }
-
 
18598
 
-
 
18599
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
18600
    public boolean isSet(_Fields field) {
-
 
18601
      if (field == null) {
-
 
18602
        throw new IllegalArgumentException();
-
 
18603
      }
-
 
18604
 
-
 
18605
      switch (field) {
-
 
18606
      case PROVIDER_ID:
-
 
18607
        return isSetProviderId();
-
 
18608
      case TYPE:
-
 
18609
        return isSetType();
-
 
18610
      case ORDER_QUANTITY:
-
 
18611
        return isSetOrderQuantity();
-
 
18612
      }
-
 
18613
      throw new IllegalStateException();
-
 
18614
    }
-
 
18615
 
-
 
18616
    @Override
-
 
18617
    public boolean equals(Object that) {
-
 
18618
      if (that == null)
-
 
18619
        return false;
-
 
18620
      if (that instanceof getNewEmptyAwb_args)
-
 
18621
        return this.equals((getNewEmptyAwb_args)that);
-
 
18622
      return false;
-
 
18623
    }
-
 
18624
 
-
 
18625
    public boolean equals(getNewEmptyAwb_args that) {
-
 
18626
      if (that == null)
-
 
18627
        return false;
-
 
18628
 
-
 
18629
      boolean this_present_providerId = true;
-
 
18630
      boolean that_present_providerId = true;
-
 
18631
      if (this_present_providerId || that_present_providerId) {
-
 
18632
        if (!(this_present_providerId && that_present_providerId))
-
 
18633
          return false;
-
 
18634
        if (this.providerId != that.providerId)
-
 
18635
          return false;
-
 
18636
      }
-
 
18637
 
-
 
18638
      boolean this_present_type = true && this.isSetType();
-
 
18639
      boolean that_present_type = true && that.isSetType();
-
 
18640
      if (this_present_type || that_present_type) {
-
 
18641
        if (!(this_present_type && that_present_type))
-
 
18642
          return false;
-
 
18643
        if (!this.type.equals(that.type))
-
 
18644
          return false;
-
 
18645
      }
-
 
18646
 
-
 
18647
      boolean this_present_orderQuantity = true;
-
 
18648
      boolean that_present_orderQuantity = true;
-
 
18649
      if (this_present_orderQuantity || that_present_orderQuantity) {
-
 
18650
        if (!(this_present_orderQuantity && that_present_orderQuantity))
-
 
18651
          return false;
-
 
18652
        if (this.orderQuantity != that.orderQuantity)
-
 
18653
          return false;
-
 
18654
      }
-
 
18655
 
-
 
18656
      return true;
-
 
18657
    }
-
 
18658
 
-
 
18659
    @Override
-
 
18660
    public int hashCode() {
-
 
18661
      return 0;
-
 
18662
    }
-
 
18663
 
-
 
18664
    public int compareTo(getNewEmptyAwb_args other) {
-
 
18665
      if (!getClass().equals(other.getClass())) {
-
 
18666
        return getClass().getName().compareTo(other.getClass().getName());
-
 
18667
      }
-
 
18668
 
-
 
18669
      int lastComparison = 0;
-
 
18670
      getNewEmptyAwb_args typedOther = (getNewEmptyAwb_args)other;
-
 
18671
 
-
 
18672
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
-
 
18673
      if (lastComparison != 0) {
-
 
18674
        return lastComparison;
-
 
18675
      }
-
 
18676
      if (isSetProviderId()) {
-
 
18677
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
-
 
18678
        if (lastComparison != 0) {
-
 
18679
          return lastComparison;
-
 
18680
        }
-
 
18681
      }
-
 
18682
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
-
 
18683
      if (lastComparison != 0) {
-
 
18684
        return lastComparison;
-
 
18685
      }
-
 
18686
      if (isSetType()) {
-
 
18687
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
-
 
18688
        if (lastComparison != 0) {
-
 
18689
          return lastComparison;
-
 
18690
        }
-
 
18691
      }
-
 
18692
      lastComparison = Boolean.valueOf(isSetOrderQuantity()).compareTo(typedOther.isSetOrderQuantity());
-
 
18693
      if (lastComparison != 0) {
-
 
18694
        return lastComparison;
-
 
18695
      }
-
 
18696
      if (isSetOrderQuantity()) {
-
 
18697
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderQuantity, typedOther.orderQuantity);
-
 
18698
        if (lastComparison != 0) {
-
 
18699
          return lastComparison;
-
 
18700
        }
-
 
18701
      }
-
 
18702
      return 0;
-
 
18703
    }
-
 
18704
 
-
 
18705
    public _Fields fieldForId(int fieldId) {
-
 
18706
      return _Fields.findByThriftId(fieldId);
-
 
18707
    }
-
 
18708
 
-
 
18709
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
18710
      org.apache.thrift.protocol.TField field;
-
 
18711
      iprot.readStructBegin();
-
 
18712
      while (true)
-
 
18713
      {
-
 
18714
        field = iprot.readFieldBegin();
-
 
18715
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
18716
          break;
-
 
18717
        }
-
 
18718
        switch (field.id) {
-
 
18719
          case 1: // PROVIDER_ID
-
 
18720
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
18721
              this.providerId = iprot.readI64();
-
 
18722
              setProviderIdIsSet(true);
-
 
18723
            } else { 
-
 
18724
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18725
            }
-
 
18726
            break;
-
 
18727
          case 2: // TYPE
-
 
18728
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
18729
              this.type = DeliveryType.findByValue(iprot.readI32());
-
 
18730
            } else { 
-
 
18731
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18732
            }
-
 
18733
            break;
-
 
18734
          case 3: // ORDER_QUANTITY
-
 
18735
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
18736
              this.orderQuantity = iprot.readI64();
-
 
18737
              setOrderQuantityIsSet(true);
-
 
18738
            } else { 
-
 
18739
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18740
            }
-
 
18741
            break;
-
 
18742
          default:
-
 
18743
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
18744
        }
-
 
18745
        iprot.readFieldEnd();
-
 
18746
      }
-
 
18747
      iprot.readStructEnd();
-
 
18748
      validate();
-
 
18749
    }
-
 
18750
 
-
 
18751
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
18752
      validate();
-
 
18753
 
-
 
18754
      oprot.writeStructBegin(STRUCT_DESC);
-
 
18755
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
-
 
18756
      oprot.writeI64(this.providerId);
-
 
18757
      oprot.writeFieldEnd();
-
 
18758
      if (this.type != null) {
-
 
18759
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
-
 
18760
        oprot.writeI32(this.type.getValue());
-
 
18761
        oprot.writeFieldEnd();
-
 
18762
      }
-
 
18763
      oprot.writeFieldBegin(ORDER_QUANTITY_FIELD_DESC);
-
 
18764
      oprot.writeI64(this.orderQuantity);
-
 
18765
      oprot.writeFieldEnd();
-
 
18766
      oprot.writeFieldStop();
-
 
18767
      oprot.writeStructEnd();
-
 
18768
    }
-
 
18769
 
-
 
18770
    @Override
-
 
18771
    public String toString() {
-
 
18772
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_args(");
-
 
18773
      boolean first = true;
-
 
18774
 
-
 
18775
      sb.append("providerId:");
-
 
18776
      sb.append(this.providerId);
-
 
18777
      first = false;
-
 
18778
      if (!first) sb.append(", ");
-
 
18779
      sb.append("type:");
-
 
18780
      if (this.type == null) {
-
 
18781
        sb.append("null");
-
 
18782
      } else {
-
 
18783
        sb.append(this.type);
-
 
18784
      }
-
 
18785
      first = false;
-
 
18786
      if (!first) sb.append(", ");
-
 
18787
      sb.append("orderQuantity:");
-
 
18788
      sb.append(this.orderQuantity);
-
 
18789
      first = false;
-
 
18790
      sb.append(")");
-
 
18791
      return sb.toString();
-
 
18792
    }
-
 
18793
 
-
 
18794
    public void validate() throws org.apache.thrift.TException {
-
 
18795
      // check for required fields
-
 
18796
    }
-
 
18797
 
-
 
18798
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
18799
      try {
-
 
18800
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
18801
      } catch (org.apache.thrift.TException te) {
-
 
18802
        throw new java.io.IOException(te);
-
 
18803
      }
-
 
18804
    }
-
 
18805
 
-
 
18806
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
18807
      try {
-
 
18808
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
18809
        __isset_bit_vector = new BitSet(1);
-
 
18810
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
18811
      } catch (org.apache.thrift.TException te) {
-
 
18812
        throw new java.io.IOException(te);
-
 
18813
      }
-
 
18814
    }
-
 
18815
 
-
 
18816
  }
-
 
18817
 
-
 
18818
  public static class getNewEmptyAwb_result implements org.apache.thrift.TBase<getNewEmptyAwb_result, getNewEmptyAwb_result._Fields>, java.io.Serializable, Cloneable   {
-
 
18819
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_result");
-
 
18820
 
-
 
18821
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
-
 
18822
    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);
-
 
18823
 
-
 
18824
    private String success; // required
-
 
18825
    private LogisticsServiceException se; // required
-
 
18826
 
-
 
18827
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
18828
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
18829
      SUCCESS((short)0, "success"),
-
 
18830
      SE((short)1, "se");
-
 
18831
 
-
 
18832
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
18833
 
-
 
18834
      static {
-
 
18835
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
18836
          byName.put(field.getFieldName(), field);
-
 
18837
        }
-
 
18838
      }
-
 
18839
 
-
 
18840
      /**
-
 
18841
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
18842
       */
-
 
18843
      public static _Fields findByThriftId(int fieldId) {
-
 
18844
        switch(fieldId) {
-
 
18845
          case 0: // SUCCESS
-
 
18846
            return SUCCESS;
-
 
18847
          case 1: // SE
-
 
18848
            return SE;
-
 
18849
          default:
-
 
18850
            return null;
-
 
18851
        }
-
 
18852
      }
-
 
18853
 
-
 
18854
      /**
-
 
18855
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
18856
       * if it is not found.
-
 
18857
       */
-
 
18858
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
18859
        _Fields fields = findByThriftId(fieldId);
-
 
18860
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
18861
        return fields;
-
 
18862
      }
-
 
18863
 
-
 
18864
      /**
-
 
18865
       * Find the _Fields constant that matches name, or null if its not found.
-
 
18866
       */
-
 
18867
      public static _Fields findByName(String name) {
-
 
18868
        return byName.get(name);
-
 
18869
      }
-
 
18870
 
-
 
18871
      private final short _thriftId;
-
 
18872
      private final String _fieldName;
-
 
18873
 
-
 
18874
      _Fields(short thriftId, String fieldName) {
-
 
18875
        _thriftId = thriftId;
-
 
18876
        _fieldName = fieldName;
-
 
18877
      }
-
 
18878
 
-
 
18879
      public short getThriftFieldId() {
-
 
18880
        return _thriftId;
-
 
18881
      }
-
 
18882
 
-
 
18883
      public String getFieldName() {
-
 
18884
        return _fieldName;
-
 
18885
      }
-
 
18886
    }
-
 
18887
 
-
 
18888
    // isset id assignments
-
 
18889
 
-
 
18890
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
18891
    static {
-
 
18892
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
18893
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
18894
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
18895
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
18896
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
18897
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
18898
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_result.class, metaDataMap);
-
 
18899
    }
-
 
18900
 
-
 
18901
    public getNewEmptyAwb_result() {
-
 
18902
    }
-
 
18903
 
-
 
18904
    public getNewEmptyAwb_result(
-
 
18905
      String success,
-
 
18906
      LogisticsServiceException se)
-
 
18907
    {
-
 
18908
      this();
-
 
18909
      this.success = success;
-
 
18910
      this.se = se;
-
 
18911
    }
-
 
18912
 
-
 
18913
    /**
-
 
18914
     * Performs a deep copy on <i>other</i>.
-
 
18915
     */
-
 
18916
    public getNewEmptyAwb_result(getNewEmptyAwb_result other) {
-
 
18917
      if (other.isSetSuccess()) {
-
 
18918
        this.success = other.success;
-
 
18919
      }
-
 
18920
      if (other.isSetSe()) {
-
 
18921
        this.se = new LogisticsServiceException(other.se);
-
 
18922
      }
-
 
18923
    }
-
 
18924
 
-
 
18925
    public getNewEmptyAwb_result deepCopy() {
-
 
18926
      return new getNewEmptyAwb_result(this);
-
 
18927
    }
-
 
18928
 
-
 
18929
    @Override
-
 
18930
    public void clear() {
-
 
18931
      this.success = null;
-
 
18932
      this.se = null;
-
 
18933
    }
-
 
18934
 
-
 
18935
    public String getSuccess() {
-
 
18936
      return this.success;
-
 
18937
    }
-
 
18938
 
-
 
18939
    public void setSuccess(String success) {
-
 
18940
      this.success = success;
-
 
18941
    }
-
 
18942
 
-
 
18943
    public void unsetSuccess() {
-
 
18944
      this.success = null;
-
 
18945
    }
-
 
18946
 
-
 
18947
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
18948
    public boolean isSetSuccess() {
-
 
18949
      return this.success != null;
-
 
18950
    }
-
 
18951
 
-
 
18952
    public void setSuccessIsSet(boolean value) {
-
 
18953
      if (!value) {
-
 
18954
        this.success = null;
-
 
18955
      }
-
 
18956
    }
-
 
18957
 
-
 
18958
    public LogisticsServiceException getSe() {
-
 
18959
      return this.se;
-
 
18960
    }
-
 
18961
 
-
 
18962
    public void setSe(LogisticsServiceException se) {
-
 
18963
      this.se = se;
-
 
18964
    }
-
 
18965
 
-
 
18966
    public void unsetSe() {
-
 
18967
      this.se = null;
-
 
18968
    }
-
 
18969
 
-
 
18970
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
-
 
18971
    public boolean isSetSe() {
-
 
18972
      return this.se != null;
-
 
18973
    }
-
 
18974
 
-
 
18975
    public void setSeIsSet(boolean value) {
-
 
18976
      if (!value) {
-
 
18977
        this.se = null;
-
 
18978
      }
-
 
18979
    }
-
 
18980
 
-
 
18981
    public void setFieldValue(_Fields field, Object value) {
-
 
18982
      switch (field) {
-
 
18983
      case SUCCESS:
-
 
18984
        if (value == null) {
-
 
18985
          unsetSuccess();
-
 
18986
        } else {
-
 
18987
          setSuccess((String)value);
-
 
18988
        }
-
 
18989
        break;
-
 
18990
 
-
 
18991
      case SE:
-
 
18992
        if (value == null) {
-
 
18993
          unsetSe();
-
 
18994
        } else {
-
 
18995
          setSe((LogisticsServiceException)value);
-
 
18996
        }
-
 
18997
        break;
-
 
18998
 
-
 
18999
      }
-
 
19000
    }
-
 
19001
 
-
 
19002
    public Object getFieldValue(_Fields field) {
-
 
19003
      switch (field) {
-
 
19004
      case SUCCESS:
-
 
19005
        return getSuccess();
-
 
19006
 
-
 
19007
      case SE:
-
 
19008
        return getSe();
-
 
19009
 
-
 
19010
      }
-
 
19011
      throw new IllegalStateException();
-
 
19012
    }
-
 
19013
 
-
 
19014
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
19015
    public boolean isSet(_Fields field) {
-
 
19016
      if (field == null) {
-
 
19017
        throw new IllegalArgumentException();
-
 
19018
      }
-
 
19019
 
-
 
19020
      switch (field) {
-
 
19021
      case SUCCESS:
-
 
19022
        return isSetSuccess();
-
 
19023
      case SE:
-
 
19024
        return isSetSe();
-
 
19025
      }
-
 
19026
      throw new IllegalStateException();
-
 
19027
    }
-
 
19028
 
-
 
19029
    @Override
-
 
19030
    public boolean equals(Object that) {
-
 
19031
      if (that == null)
-
 
19032
        return false;
-
 
19033
      if (that instanceof getNewEmptyAwb_result)
-
 
19034
        return this.equals((getNewEmptyAwb_result)that);
-
 
19035
      return false;
-
 
19036
    }
-
 
19037
 
-
 
19038
    public boolean equals(getNewEmptyAwb_result that) {
-
 
19039
      if (that == null)
-
 
19040
        return false;
-
 
19041
 
-
 
19042
      boolean this_present_success = true && this.isSetSuccess();
-
 
19043
      boolean that_present_success = true && that.isSetSuccess();
-
 
19044
      if (this_present_success || that_present_success) {
-
 
19045
        if (!(this_present_success && that_present_success))
-
 
19046
          return false;
-
 
19047
        if (!this.success.equals(that.success))
-
 
19048
          return false;
-
 
19049
      }
-
 
19050
 
-
 
19051
      boolean this_present_se = true && this.isSetSe();
-
 
19052
      boolean that_present_se = true && that.isSetSe();
-
 
19053
      if (this_present_se || that_present_se) {
-
 
19054
        if (!(this_present_se && that_present_se))
-
 
19055
          return false;
-
 
19056
        if (!this.se.equals(that.se))
-
 
19057
          return false;
-
 
19058
      }
-
 
19059
 
-
 
19060
      return true;
-
 
19061
    }
-
 
19062
 
-
 
19063
    @Override
-
 
19064
    public int hashCode() {
-
 
19065
      return 0;
-
 
19066
    }
-
 
19067
 
-
 
19068
    public int compareTo(getNewEmptyAwb_result other) {
-
 
19069
      if (!getClass().equals(other.getClass())) {
-
 
19070
        return getClass().getName().compareTo(other.getClass().getName());
-
 
19071
      }
-
 
19072
 
-
 
19073
      int lastComparison = 0;
-
 
19074
      getNewEmptyAwb_result typedOther = (getNewEmptyAwb_result)other;
-
 
19075
 
-
 
19076
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
19077
      if (lastComparison != 0) {
-
 
19078
        return lastComparison;
-
 
19079
      }
-
 
19080
      if (isSetSuccess()) {
-
 
19081
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
19082
        if (lastComparison != 0) {
-
 
19083
          return lastComparison;
-
 
19084
        }
-
 
19085
      }
-
 
19086
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
-
 
19087
      if (lastComparison != 0) {
-
 
19088
        return lastComparison;
-
 
19089
      }
-
 
19090
      if (isSetSe()) {
-
 
19091
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
-
 
19092
        if (lastComparison != 0) {
-
 
19093
          return lastComparison;
-
 
19094
        }
-
 
19095
      }
-
 
19096
      return 0;
-
 
19097
    }
-
 
19098
 
-
 
19099
    public _Fields fieldForId(int fieldId) {
-
 
19100
      return _Fields.findByThriftId(fieldId);
-
 
19101
    }
-
 
19102
 
-
 
19103
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
19104
      org.apache.thrift.protocol.TField field;
-
 
19105
      iprot.readStructBegin();
-
 
19106
      while (true)
-
 
19107
      {
-
 
19108
        field = iprot.readFieldBegin();
-
 
19109
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
19110
          break;
-
 
19111
        }
-
 
19112
        switch (field.id) {
-
 
19113
          case 0: // SUCCESS
-
 
19114
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
19115
              this.success = iprot.readString();
-
 
19116
            } else { 
-
 
19117
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19118
            }
-
 
19119
            break;
-
 
19120
          case 1: // SE
-
 
19121
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
19122
              this.se = new LogisticsServiceException();
-
 
19123
              this.se.read(iprot);
-
 
19124
            } else { 
-
 
19125
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19126
            }
-
 
19127
            break;
-
 
19128
          default:
-
 
19129
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19130
        }
-
 
19131
        iprot.readFieldEnd();
-
 
19132
      }
-
 
19133
      iprot.readStructEnd();
-
 
19134
      validate();
-
 
19135
    }
-
 
19136
 
-
 
19137
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
19138
      oprot.writeStructBegin(STRUCT_DESC);
-
 
19139
 
-
 
19140
      if (this.isSetSuccess()) {
-
 
19141
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
19142
        oprot.writeString(this.success);
-
 
19143
        oprot.writeFieldEnd();
-
 
19144
      } else if (this.isSetSe()) {
-
 
19145
        oprot.writeFieldBegin(SE_FIELD_DESC);
-
 
19146
        this.se.write(oprot);
-
 
19147
        oprot.writeFieldEnd();
-
 
19148
      }
-
 
19149
      oprot.writeFieldStop();
-
 
19150
      oprot.writeStructEnd();
-
 
19151
    }
-
 
19152
 
-
 
19153
    @Override
-
 
19154
    public String toString() {
-
 
19155
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_result(");
-
 
19156
      boolean first = true;
-
 
19157
 
-
 
19158
      sb.append("success:");
-
 
19159
      if (this.success == null) {
-
 
19160
        sb.append("null");
-
 
19161
      } else {
-
 
19162
        sb.append(this.success);
-
 
19163
      }
-
 
19164
      first = false;
-
 
19165
      if (!first) sb.append(", ");
-
 
19166
      sb.append("se:");
-
 
19167
      if (this.se == null) {
-
 
19168
        sb.append("null");
-
 
19169
      } else {
-
 
19170
        sb.append(this.se);
-
 
19171
      }
-
 
19172
      first = false;
-
 
19173
      sb.append(")");
-
 
19174
      return sb.toString();
-
 
19175
    }
-
 
19176
 
-
 
19177
    public void validate() throws org.apache.thrift.TException {
-
 
19178
      // check for required fields
-
 
19179
    }
-
 
19180
 
-
 
19181
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
19182
      try {
-
 
19183
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
19184
      } catch (org.apache.thrift.TException te) {
-
 
19185
        throw new java.io.IOException(te);
-
 
19186
      }
-
 
19187
    }
-
 
19188
 
-
 
19189
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
19190
      try {
-
 
19191
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
19192
      } catch (org.apache.thrift.TException te) {
-
 
19193
        throw new java.io.IOException(te);
-
 
19194
      }
-
 
19195
    }
-
 
19196
 
-
 
19197
  }
-
 
19198
 
-
 
19199
  public static class getProviderLimitDetailsForPincode_args implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_args, getProviderLimitDetailsForPincode_args._Fields>, java.io.Serializable, Cloneable   {
-
 
19200
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_args");
-
 
19201
 
-
 
19202
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
19203
    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)2);
-
 
19204
 
-
 
19205
    private long providerId; // required
-
 
19206
    private String pincode; // required
-
 
19207
 
-
 
19208
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
19209
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
19210
      PROVIDER_ID((short)1, "providerId"),
-
 
19211
      PINCODE((short)2, "pincode");
-
 
19212
 
-
 
19213
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
19214
 
-
 
19215
      static {
-
 
19216
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
19217
          byName.put(field.getFieldName(), field);
-
 
19218
        }
-
 
19219
      }
-
 
19220
 
-
 
19221
      /**
-
 
19222
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
19223
       */
-
 
19224
      public static _Fields findByThriftId(int fieldId) {
-
 
19225
        switch(fieldId) {
-
 
19226
          case 1: // PROVIDER_ID
-
 
19227
            return PROVIDER_ID;
-
 
19228
          case 2: // PINCODE
-
 
19229
            return PINCODE;
-
 
19230
          default:
-
 
19231
            return null;
-
 
19232
        }
-
 
19233
      }
-
 
19234
 
-
 
19235
      /**
-
 
19236
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
19237
       * if it is not found.
-
 
19238
       */
-
 
19239
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
19240
        _Fields fields = findByThriftId(fieldId);
-
 
19241
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
19242
        return fields;
-
 
19243
      }
-
 
19244
 
-
 
19245
      /**
-
 
19246
       * Find the _Fields constant that matches name, or null if its not found.
-
 
19247
       */
-
 
19248
      public static _Fields findByName(String name) {
-
 
19249
        return byName.get(name);
-
 
19250
      }
-
 
19251
 
-
 
19252
      private final short _thriftId;
-
 
19253
      private final String _fieldName;
-
 
19254
 
-
 
19255
      _Fields(short thriftId, String fieldName) {
-
 
19256
        _thriftId = thriftId;
-
 
19257
        _fieldName = fieldName;
-
 
19258
      }
-
 
19259
 
-
 
19260
      public short getThriftFieldId() {
-
 
19261
        return _thriftId;
-
 
19262
      }
-
 
19263
 
-
 
19264
      public String getFieldName() {
-
 
19265
        return _fieldName;
-
 
19266
      }
-
 
19267
    }
-
 
19268
 
-
 
19269
    // isset id assignments
-
 
19270
    private static final int __PROVIDERID_ISSET_ID = 0;
-
 
19271
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
19272
 
-
 
19273
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
19274
    static {
-
 
19275
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
19276
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
19277
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
19278
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
19279
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
19280
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
19281
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_args.class, metaDataMap);
-
 
19282
    }
-
 
19283
 
-
 
19284
    public getProviderLimitDetailsForPincode_args() {
-
 
19285
    }
-
 
19286
 
-
 
19287
    public getProviderLimitDetailsForPincode_args(
-
 
19288
      long providerId,
-
 
19289
      String pincode)
-
 
19290
    {
-
 
19291
      this();
-
 
19292
      this.providerId = providerId;
-
 
19293
      setProviderIdIsSet(true);
-
 
19294
      this.pincode = pincode;
-
 
19295
    }
-
 
19296
 
-
 
19297
    /**
-
 
19298
     * Performs a deep copy on <i>other</i>.
-
 
19299
     */
-
 
19300
    public getProviderLimitDetailsForPincode_args(getProviderLimitDetailsForPincode_args other) {
-
 
19301
      __isset_bit_vector.clear();
-
 
19302
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
19303
      this.providerId = other.providerId;
-
 
19304
      if (other.isSetPincode()) {
-
 
19305
        this.pincode = other.pincode;
-
 
19306
      }
-
 
19307
    }
-
 
19308
 
-
 
19309
    public getProviderLimitDetailsForPincode_args deepCopy() {
-
 
19310
      return new getProviderLimitDetailsForPincode_args(this);
-
 
19311
    }
-
 
19312
 
-
 
19313
    @Override
-
 
19314
    public void clear() {
-
 
19315
      setProviderIdIsSet(false);
-
 
19316
      this.providerId = 0;
-
 
19317
      this.pincode = null;
-
 
19318
    }
-
 
19319
 
-
 
19320
    public long getProviderId() {
-
 
19321
      return this.providerId;
-
 
19322
    }
-
 
19323
 
-
 
19324
    public void setProviderId(long providerId) {
-
 
19325
      this.providerId = providerId;
-
 
19326
      setProviderIdIsSet(true);
-
 
19327
    }
-
 
19328
 
-
 
19329
    public void unsetProviderId() {
-
 
19330
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
-
 
19331
    }
-
 
19332
 
-
 
19333
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
-
 
19334
    public boolean isSetProviderId() {
-
 
19335
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
-
 
19336
    }
-
 
19337
 
-
 
19338
    public void setProviderIdIsSet(boolean value) {
-
 
19339
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
-
 
19340
    }
-
 
19341
 
-
 
19342
    public String getPincode() {
-
 
19343
      return this.pincode;
-
 
19344
    }
-
 
19345
 
-
 
19346
    public void setPincode(String pincode) {
-
 
19347
      this.pincode = pincode;
-
 
19348
    }
-
 
19349
 
-
 
19350
    public void unsetPincode() {
-
 
19351
      this.pincode = null;
-
 
19352
    }
-
 
19353
 
-
 
19354
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
-
 
19355
    public boolean isSetPincode() {
-
 
19356
      return this.pincode != null;
-
 
19357
    }
-
 
19358
 
-
 
19359
    public void setPincodeIsSet(boolean value) {
-
 
19360
      if (!value) {
-
 
19361
        this.pincode = null;
-
 
19362
      }
-
 
19363
    }
-
 
19364
 
-
 
19365
    public void setFieldValue(_Fields field, Object value) {
-
 
19366
      switch (field) {
-
 
19367
      case PROVIDER_ID:
-
 
19368
        if (value == null) {
-
 
19369
          unsetProviderId();
-
 
19370
        } else {
-
 
19371
          setProviderId((Long)value);
-
 
19372
        }
-
 
19373
        break;
-
 
19374
 
-
 
19375
      case PINCODE:
-
 
19376
        if (value == null) {
-
 
19377
          unsetPincode();
-
 
19378
        } else {
-
 
19379
          setPincode((String)value);
-
 
19380
        }
-
 
19381
        break;
-
 
19382
 
-
 
19383
      }
-
 
19384
    }
-
 
19385
 
-
 
19386
    public Object getFieldValue(_Fields field) {
-
 
19387
      switch (field) {
-
 
19388
      case PROVIDER_ID:
-
 
19389
        return Long.valueOf(getProviderId());
-
 
19390
 
-
 
19391
      case PINCODE:
-
 
19392
        return getPincode();
-
 
19393
 
-
 
19394
      }
-
 
19395
      throw new IllegalStateException();
-
 
19396
    }
-
 
19397
 
-
 
19398
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
19399
    public boolean isSet(_Fields field) {
-
 
19400
      if (field == null) {
-
 
19401
        throw new IllegalArgumentException();
-
 
19402
      }
-
 
19403
 
-
 
19404
      switch (field) {
-
 
19405
      case PROVIDER_ID:
-
 
19406
        return isSetProviderId();
-
 
19407
      case PINCODE:
-
 
19408
        return isSetPincode();
-
 
19409
      }
-
 
19410
      throw new IllegalStateException();
-
 
19411
    }
-
 
19412
 
-
 
19413
    @Override
-
 
19414
    public boolean equals(Object that) {
-
 
19415
      if (that == null)
-
 
19416
        return false;
-
 
19417
      if (that instanceof getProviderLimitDetailsForPincode_args)
-
 
19418
        return this.equals((getProviderLimitDetailsForPincode_args)that);
-
 
19419
      return false;
-
 
19420
    }
-
 
19421
 
-
 
19422
    public boolean equals(getProviderLimitDetailsForPincode_args that) {
-
 
19423
      if (that == null)
-
 
19424
        return false;
-
 
19425
 
-
 
19426
      boolean this_present_providerId = true;
-
 
19427
      boolean that_present_providerId = true;
-
 
19428
      if (this_present_providerId || that_present_providerId) {
-
 
19429
        if (!(this_present_providerId && that_present_providerId))
-
 
19430
          return false;
-
 
19431
        if (this.providerId != that.providerId)
-
 
19432
          return false;
-
 
19433
      }
-
 
19434
 
-
 
19435
      boolean this_present_pincode = true && this.isSetPincode();
-
 
19436
      boolean that_present_pincode = true && that.isSetPincode();
-
 
19437
      if (this_present_pincode || that_present_pincode) {
-
 
19438
        if (!(this_present_pincode && that_present_pincode))
-
 
19439
          return false;
-
 
19440
        if (!this.pincode.equals(that.pincode))
-
 
19441
          return false;
-
 
19442
      }
-
 
19443
 
-
 
19444
      return true;
-
 
19445
    }
-
 
19446
 
-
 
19447
    @Override
-
 
19448
    public int hashCode() {
-
 
19449
      return 0;
-
 
19450
    }
-
 
19451
 
-
 
19452
    public int compareTo(getProviderLimitDetailsForPincode_args other) {
-
 
19453
      if (!getClass().equals(other.getClass())) {
-
 
19454
        return getClass().getName().compareTo(other.getClass().getName());
-
 
19455
      }
-
 
19456
 
-
 
19457
      int lastComparison = 0;
-
 
19458
      getProviderLimitDetailsForPincode_args typedOther = (getProviderLimitDetailsForPincode_args)other;
-
 
19459
 
-
 
19460
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
-
 
19461
      if (lastComparison != 0) {
-
 
19462
        return lastComparison;
-
 
19463
      }
-
 
19464
      if (isSetProviderId()) {
-
 
19465
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
-
 
19466
        if (lastComparison != 0) {
-
 
19467
          return lastComparison;
-
 
19468
        }
-
 
19469
      }
-
 
19470
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
-
 
19471
      if (lastComparison != 0) {
-
 
19472
        return lastComparison;
-
 
19473
      }
-
 
19474
      if (isSetPincode()) {
-
 
19475
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
-
 
19476
        if (lastComparison != 0) {
-
 
19477
          return lastComparison;
-
 
19478
        }
-
 
19479
      }
-
 
19480
      return 0;
-
 
19481
    }
-
 
19482
 
-
 
19483
    public _Fields fieldForId(int fieldId) {
-
 
19484
      return _Fields.findByThriftId(fieldId);
-
 
19485
    }
-
 
19486
 
-
 
19487
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
19488
      org.apache.thrift.protocol.TField field;
-
 
19489
      iprot.readStructBegin();
-
 
19490
      while (true)
-
 
19491
      {
-
 
19492
        field = iprot.readFieldBegin();
-
 
19493
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
19494
          break;
-
 
19495
        }
-
 
19496
        switch (field.id) {
-
 
19497
          case 1: // PROVIDER_ID
-
 
19498
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
19499
              this.providerId = iprot.readI64();
-
 
19500
              setProviderIdIsSet(true);
-
 
19501
            } else { 
-
 
19502
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19503
            }
-
 
19504
            break;
-
 
19505
          case 2: // PINCODE
-
 
19506
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
19507
              this.pincode = iprot.readString();
-
 
19508
            } else { 
-
 
19509
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19510
            }
-
 
19511
            break;
-
 
19512
          default:
-
 
19513
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19514
        }
-
 
19515
        iprot.readFieldEnd();
-
 
19516
      }
-
 
19517
      iprot.readStructEnd();
-
 
19518
      validate();
-
 
19519
    }
-
 
19520
 
-
 
19521
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
19522
      validate();
-
 
19523
 
-
 
19524
      oprot.writeStructBegin(STRUCT_DESC);
-
 
19525
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
-
 
19526
      oprot.writeI64(this.providerId);
-
 
19527
      oprot.writeFieldEnd();
-
 
19528
      if (this.pincode != null) {
-
 
19529
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
-
 
19530
        oprot.writeString(this.pincode);
-
 
19531
        oprot.writeFieldEnd();
-
 
19532
      }
-
 
19533
      oprot.writeFieldStop();
-
 
19534
      oprot.writeStructEnd();
-
 
19535
    }
-
 
19536
 
-
 
19537
    @Override
-
 
19538
    public String toString() {
-
 
19539
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_args(");
-
 
19540
      boolean first = true;
-
 
19541
 
-
 
19542
      sb.append("providerId:");
-
 
19543
      sb.append(this.providerId);
-
 
19544
      first = false;
-
 
19545
      if (!first) sb.append(", ");
-
 
19546
      sb.append("pincode:");
-
 
19547
      if (this.pincode == null) {
-
 
19548
        sb.append("null");
-
 
19549
      } else {
-
 
19550
        sb.append(this.pincode);
-
 
19551
      }
-
 
19552
      first = false;
-
 
19553
      sb.append(")");
-
 
19554
      return sb.toString();
-
 
19555
    }
-
 
19556
 
-
 
19557
    public void validate() throws org.apache.thrift.TException {
-
 
19558
      // check for required fields
-
 
19559
    }
-
 
19560
 
-
 
19561
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
19562
      try {
-
 
19563
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
19564
      } catch (org.apache.thrift.TException te) {
-
 
19565
        throw new java.io.IOException(te);
-
 
19566
      }
-
 
19567
    }
-
 
19568
 
-
 
19569
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
19570
      try {
-
 
19571
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
19572
        __isset_bit_vector = new BitSet(1);
-
 
19573
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
19574
      } catch (org.apache.thrift.TException te) {
-
 
19575
        throw new java.io.IOException(te);
-
 
19576
      }
-
 
19577
    }
-
 
19578
 
-
 
19579
  }
-
 
19580
 
-
 
19581
  public static class getProviderLimitDetailsForPincode_result implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_result, getProviderLimitDetailsForPincode_result._Fields>, java.io.Serializable, Cloneable   {
-
 
19582
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_result");
-
 
19583
 
-
 
19584
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
-
 
19585
    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);
-
 
19586
 
-
 
19587
    private Map<String,String> success; // required
-
 
19588
    private LogisticsServiceException se; // required
-
 
19589
 
-
 
19590
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
19591
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
19592
      SUCCESS((short)0, "success"),
-
 
19593
      SE((short)1, "se");
-
 
19594
 
-
 
19595
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
19596
 
-
 
19597
      static {
-
 
19598
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
19599
          byName.put(field.getFieldName(), field);
-
 
19600
        }
-
 
19601
      }
-
 
19602
 
-
 
19603
      /**
-
 
19604
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
19605
       */
-
 
19606
      public static _Fields findByThriftId(int fieldId) {
-
 
19607
        switch(fieldId) {
-
 
19608
          case 0: // SUCCESS
-
 
19609
            return SUCCESS;
-
 
19610
          case 1: // SE
-
 
19611
            return SE;
-
 
19612
          default:
-
 
19613
            return null;
-
 
19614
        }
-
 
19615
      }
-
 
19616
 
-
 
19617
      /**
-
 
19618
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
19619
       * if it is not found.
-
 
19620
       */
-
 
19621
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
19622
        _Fields fields = findByThriftId(fieldId);
-
 
19623
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
19624
        return fields;
-
 
19625
      }
-
 
19626
 
-
 
19627
      /**
-
 
19628
       * Find the _Fields constant that matches name, or null if its not found.
-
 
19629
       */
-
 
19630
      public static _Fields findByName(String name) {
-
 
19631
        return byName.get(name);
-
 
19632
      }
-
 
19633
 
-
 
19634
      private final short _thriftId;
-
 
19635
      private final String _fieldName;
-
 
19636
 
-
 
19637
      _Fields(short thriftId, String fieldName) {
-
 
19638
        _thriftId = thriftId;
-
 
19639
        _fieldName = fieldName;
-
 
19640
      }
-
 
19641
 
-
 
19642
      public short getThriftFieldId() {
-
 
19643
        return _thriftId;
-
 
19644
      }
-
 
19645
 
-
 
19646
      public String getFieldName() {
-
 
19647
        return _fieldName;
-
 
19648
      }
-
 
19649
    }
-
 
19650
 
-
 
19651
    // isset id assignments
-
 
19652
 
-
 
19653
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
19654
    static {
-
 
19655
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
19656
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
19657
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
19658
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
-
 
19659
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
19660
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
19661
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
19662
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
19663
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_result.class, metaDataMap);
-
 
19664
    }
-
 
19665
 
-
 
19666
    public getProviderLimitDetailsForPincode_result() {
-
 
19667
    }
-
 
19668
 
-
 
19669
    public getProviderLimitDetailsForPincode_result(
-
 
19670
      Map<String,String> success,
-
 
19671
      LogisticsServiceException se)
-
 
19672
    {
-
 
19673
      this();
-
 
19674
      this.success = success;
-
 
19675
      this.se = se;
-
 
19676
    }
-
 
19677
 
-
 
19678
    /**
-
 
19679
     * Performs a deep copy on <i>other</i>.
-
 
19680
     */
-
 
19681
    public getProviderLimitDetailsForPincode_result(getProviderLimitDetailsForPincode_result other) {
-
 
19682
      if (other.isSetSuccess()) {
-
 
19683
        Map<String,String> __this__success = new HashMap<String,String>();
-
 
19684
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
-
 
19685
 
-
 
19686
          String other_element_key = other_element.getKey();
-
 
19687
          String other_element_value = other_element.getValue();
-
 
19688
 
-
 
19689
          String __this__success_copy_key = other_element_key;
-
 
19690
 
-
 
19691
          String __this__success_copy_value = other_element_value;
-
 
19692
 
-
 
19693
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
19694
        }
-
 
19695
        this.success = __this__success;
-
 
19696
      }
-
 
19697
      if (other.isSetSe()) {
-
 
19698
        this.se = new LogisticsServiceException(other.se);
-
 
19699
      }
-
 
19700
    }
-
 
19701
 
-
 
19702
    public getProviderLimitDetailsForPincode_result deepCopy() {
-
 
19703
      return new getProviderLimitDetailsForPincode_result(this);
-
 
19704
    }
-
 
19705
 
-
 
19706
    @Override
-
 
19707
    public void clear() {
-
 
19708
      this.success = null;
-
 
19709
      this.se = null;
-
 
19710
    }
-
 
19711
 
-
 
19712
    public int getSuccessSize() {
-
 
19713
      return (this.success == null) ? 0 : this.success.size();
-
 
19714
    }
-
 
19715
 
-
 
19716
    public void putToSuccess(String key, String val) {
-
 
19717
      if (this.success == null) {
-
 
19718
        this.success = new HashMap<String,String>();
-
 
19719
      }
-
 
19720
      this.success.put(key, val);
-
 
19721
    }
-
 
19722
 
-
 
19723
    public Map<String,String> getSuccess() {
-
 
19724
      return this.success;
-
 
19725
    }
-
 
19726
 
-
 
19727
    public void setSuccess(Map<String,String> success) {
-
 
19728
      this.success = success;
-
 
19729
    }
-
 
19730
 
-
 
19731
    public void unsetSuccess() {
-
 
19732
      this.success = null;
-
 
19733
    }
-
 
19734
 
-
 
19735
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
19736
    public boolean isSetSuccess() {
-
 
19737
      return this.success != null;
-
 
19738
    }
-
 
19739
 
-
 
19740
    public void setSuccessIsSet(boolean value) {
-
 
19741
      if (!value) {
-
 
19742
        this.success = null;
-
 
19743
      }
-
 
19744
    }
-
 
19745
 
-
 
19746
    public LogisticsServiceException getSe() {
-
 
19747
      return this.se;
-
 
19748
    }
-
 
19749
 
-
 
19750
    public void setSe(LogisticsServiceException se) {
-
 
19751
      this.se = se;
-
 
19752
    }
-
 
19753
 
-
 
19754
    public void unsetSe() {
-
 
19755
      this.se = null;
-
 
19756
    }
-
 
19757
 
-
 
19758
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
-
 
19759
    public boolean isSetSe() {
-
 
19760
      return this.se != null;
-
 
19761
    }
-
 
19762
 
-
 
19763
    public void setSeIsSet(boolean value) {
-
 
19764
      if (!value) {
-
 
19765
        this.se = null;
-
 
19766
      }
-
 
19767
    }
-
 
19768
 
-
 
19769
    public void setFieldValue(_Fields field, Object value) {
-
 
19770
      switch (field) {
-
 
19771
      case SUCCESS:
-
 
19772
        if (value == null) {
-
 
19773
          unsetSuccess();
-
 
19774
        } else {
-
 
19775
          setSuccess((Map<String,String>)value);
-
 
19776
        }
-
 
19777
        break;
-
 
19778
 
-
 
19779
      case SE:
-
 
19780
        if (value == null) {
-
 
19781
          unsetSe();
-
 
19782
        } else {
-
 
19783
          setSe((LogisticsServiceException)value);
-
 
19784
        }
-
 
19785
        break;
-
 
19786
 
-
 
19787
      }
-
 
19788
    }
-
 
19789
 
-
 
19790
    public Object getFieldValue(_Fields field) {
-
 
19791
      switch (field) {
-
 
19792
      case SUCCESS:
-
 
19793
        return getSuccess();
-
 
19794
 
-
 
19795
      case SE:
-
 
19796
        return getSe();
-
 
19797
 
-
 
19798
      }
-
 
19799
      throw new IllegalStateException();
-
 
19800
    }
-
 
19801
 
-
 
19802
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
19803
    public boolean isSet(_Fields field) {
-
 
19804
      if (field == null) {
-
 
19805
        throw new IllegalArgumentException();
-
 
19806
      }
-
 
19807
 
-
 
19808
      switch (field) {
-
 
19809
      case SUCCESS:
-
 
19810
        return isSetSuccess();
-
 
19811
      case SE:
-
 
19812
        return isSetSe();
-
 
19813
      }
-
 
19814
      throw new IllegalStateException();
-
 
19815
    }
-
 
19816
 
-
 
19817
    @Override
-
 
19818
    public boolean equals(Object that) {
-
 
19819
      if (that == null)
-
 
19820
        return false;
-
 
19821
      if (that instanceof getProviderLimitDetailsForPincode_result)
-
 
19822
        return this.equals((getProviderLimitDetailsForPincode_result)that);
-
 
19823
      return false;
-
 
19824
    }
-
 
19825
 
-
 
19826
    public boolean equals(getProviderLimitDetailsForPincode_result that) {
-
 
19827
      if (that == null)
-
 
19828
        return false;
-
 
19829
 
-
 
19830
      boolean this_present_success = true && this.isSetSuccess();
-
 
19831
      boolean that_present_success = true && that.isSetSuccess();
-
 
19832
      if (this_present_success || that_present_success) {
-
 
19833
        if (!(this_present_success && that_present_success))
-
 
19834
          return false;
-
 
19835
        if (!this.success.equals(that.success))
-
 
19836
          return false;
-
 
19837
      }
-
 
19838
 
-
 
19839
      boolean this_present_se = true && this.isSetSe();
-
 
19840
      boolean that_present_se = true && that.isSetSe();
-
 
19841
      if (this_present_se || that_present_se) {
-
 
19842
        if (!(this_present_se && that_present_se))
-
 
19843
          return false;
-
 
19844
        if (!this.se.equals(that.se))
-
 
19845
          return false;
-
 
19846
      }
-
 
19847
 
-
 
19848
      return true;
-
 
19849
    }
-
 
19850
 
-
 
19851
    @Override
-
 
19852
    public int hashCode() {
-
 
19853
      return 0;
-
 
19854
    }
-
 
19855
 
-
 
19856
    public int compareTo(getProviderLimitDetailsForPincode_result other) {
-
 
19857
      if (!getClass().equals(other.getClass())) {
-
 
19858
        return getClass().getName().compareTo(other.getClass().getName());
-
 
19859
      }
-
 
19860
 
-
 
19861
      int lastComparison = 0;
-
 
19862
      getProviderLimitDetailsForPincode_result typedOther = (getProviderLimitDetailsForPincode_result)other;
-
 
19863
 
-
 
19864
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
19865
      if (lastComparison != 0) {
-
 
19866
        return lastComparison;
-
 
19867
      }
-
 
19868
      if (isSetSuccess()) {
-
 
19869
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
19870
        if (lastComparison != 0) {
-
 
19871
          return lastComparison;
-
 
19872
        }
-
 
19873
      }
-
 
19874
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
-
 
19875
      if (lastComparison != 0) {
-
 
19876
        return lastComparison;
-
 
19877
      }
-
 
19878
      if (isSetSe()) {
-
 
19879
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
-
 
19880
        if (lastComparison != 0) {
-
 
19881
          return lastComparison;
-
 
19882
        }
-
 
19883
      }
-
 
19884
      return 0;
-
 
19885
    }
-
 
19886
 
-
 
19887
    public _Fields fieldForId(int fieldId) {
-
 
19888
      return _Fields.findByThriftId(fieldId);
-
 
19889
    }
-
 
19890
 
-
 
19891
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
19892
      org.apache.thrift.protocol.TField field;
-
 
19893
      iprot.readStructBegin();
-
 
19894
      while (true)
-
 
19895
      {
-
 
19896
        field = iprot.readFieldBegin();
-
 
19897
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
19898
          break;
-
 
19899
        }
-
 
19900
        switch (field.id) {
-
 
19901
          case 0: // SUCCESS
-
 
19902
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
19903
              {
-
 
19904
                org.apache.thrift.protocol.TMap _map32 = iprot.readMapBegin();
-
 
19905
                this.success = new HashMap<String,String>(2*_map32.size);
-
 
19906
                for (int _i33 = 0; _i33 < _map32.size; ++_i33)
-
 
19907
                {
-
 
19908
                  String _key34; // required
-
 
19909
                  String _val35; // required
-
 
19910
                  _key34 = iprot.readString();
-
 
19911
                  _val35 = iprot.readString();
-
 
19912
                  this.success.put(_key34, _val35);
-
 
19913
                }
-
 
19914
                iprot.readMapEnd();
-
 
19915
              }
-
 
19916
            } else { 
-
 
19917
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19918
            }
-
 
19919
            break;
-
 
19920
          case 1: // SE
-
 
19921
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
19922
              this.se = new LogisticsServiceException();
-
 
19923
              this.se.read(iprot);
-
 
19924
            } else { 
-
 
19925
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19926
            }
-
 
19927
            break;
-
 
19928
          default:
-
 
19929
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
19930
        }
-
 
19931
        iprot.readFieldEnd();
-
 
19932
      }
-
 
19933
      iprot.readStructEnd();
-
 
19934
      validate();
-
 
19935
    }
-
 
19936
 
-
 
19937
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
19938
      oprot.writeStructBegin(STRUCT_DESC);
-
 
19939
 
-
 
19940
      if (this.isSetSuccess()) {
-
 
19941
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
19942
        {
-
 
19943
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
-
 
19944
          for (Map.Entry<String, String> _iter36 : this.success.entrySet())
-
 
19945
          {
-
 
19946
            oprot.writeString(_iter36.getKey());
-
 
19947
            oprot.writeString(_iter36.getValue());
-
 
19948
          }
-
 
19949
          oprot.writeMapEnd();
-
 
19950
        }
-
 
19951
        oprot.writeFieldEnd();
-
 
19952
      } else if (this.isSetSe()) {
-
 
19953
        oprot.writeFieldBegin(SE_FIELD_DESC);
-
 
19954
        this.se.write(oprot);
-
 
19955
        oprot.writeFieldEnd();
-
 
19956
      }
-
 
19957
      oprot.writeFieldStop();
-
 
19958
      oprot.writeStructEnd();
-
 
19959
    }
-
 
19960
 
-
 
19961
    @Override
-
 
19962
    public String toString() {
-
 
19963
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_result(");
-
 
19964
      boolean first = true;
-
 
19965
 
-
 
19966
      sb.append("success:");
-
 
19967
      if (this.success == null) {
-
 
19968
        sb.append("null");
-
 
19969
      } else {
-
 
19970
        sb.append(this.success);
-
 
19971
      }
-
 
19972
      first = false;
-
 
19973
      if (!first) sb.append(", ");
-
 
19974
      sb.append("se:");
-
 
19975
      if (this.se == null) {
-
 
19976
        sb.append("null");
-
 
19977
      } else {
-
 
19978
        sb.append(this.se);
-
 
19979
      }
-
 
19980
      first = false;
-
 
19981
      sb.append(")");
-
 
19982
      return sb.toString();
-
 
19983
    }
-
 
19984
 
18054
    public void validate() throws org.apache.thrift.TException {
19985
    public void validate() throws org.apache.thrift.TException {
18055
      // check for required fields
19986
      // check for required fields
18056
    }
19987
    }
18057
 
19988
 
18058
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19989
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {