Subversion Repositories SmartDukaan

Rev

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

Rev 7808 Rev 7888
Line 140... Line 140...
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) 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;
-
 
146
 
145
  }
147
  }
146
 
148
 
147
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
149
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
148
 
150
 
149
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
151
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
Line 184... Line 186...
184
 
186
 
185
    public void addNewAwbs(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addNewAwbs_call> resultHandler) throws org.apache.thrift.TException;
187
    public void addNewAwbs(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addNewAwbs_call> resultHandler) throws org.apache.thrift.TException;
186
 
188
 
187
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.runLogisticsLocationInfoUpdate_call> resultHandler) throws org.apache.thrift.TException;
189
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.runLogisticsLocationInfoUpdate_call> resultHandler) throws org.apache.thrift.TException;
188
 
190
 
-
 
191
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException;
-
 
192
 
189
  }
193
  }
190
 
194
 
191
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
195
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
192
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
196
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
193
      public Factory() {}
197
      public Factory() {}
Line 709... Line 713...
709
      runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
713
      runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
710
      receiveBase(result, "runLogisticsLocationInfoUpdate");
714
      receiveBase(result, "runLogisticsLocationInfoUpdate");
711
      return;
715
      return;
712
    }
716
    }
713
 
717
 
-
 
718
    public long adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
-
 
719
    {
-
 
720
      send_adjustDeliveryDays(startDate, days);
-
 
721
      return recv_adjustDeliveryDays();
-
 
722
    }
-
 
723
 
-
 
724
    public void send_adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
-
 
725
    {
-
 
726
      adjustDeliveryDays_args args = new adjustDeliveryDays_args();
-
 
727
      args.setStartDate(startDate);
-
 
728
      args.setDays(days);
-
 
729
      sendBase("adjustDeliveryDays", args);
-
 
730
    }
-
 
731
 
-
 
732
    public long recv_adjustDeliveryDays() throws org.apache.thrift.TException
-
 
733
    {
-
 
734
      adjustDeliveryDays_result result = new adjustDeliveryDays_result();
-
 
735
      receiveBase(result, "adjustDeliveryDays");
-
 
736
      if (result.isSetSuccess()) {
-
 
737
        return result.success;
-
 
738
      }
-
 
739
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "adjustDeliveryDays failed: unknown result");
-
 
740
    }
-
 
741
 
714
  }
742
  }
715
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
743
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
716
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
744
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
717
      private org.apache.thrift.async.TAsyncClientManager clientManager;
745
      private org.apache.thrift.async.TAsyncClientManager clientManager;
718
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
746
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1442... Line 1470...
1442
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1470
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1443
        (new Client(prot)).recv_runLogisticsLocationInfoUpdate();
1471
        (new Client(prot)).recv_runLogisticsLocationInfoUpdate();
1444
      }
1472
      }
1445
    }
1473
    }
1446
 
1474
 
-
 
1475
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException {
-
 
1476
      checkReady();
-
 
1477
      adjustDeliveryDays_call method_call = new adjustDeliveryDays_call(startDate, days, resultHandler, this, ___protocolFactory, ___transport);
-
 
1478
      this.___currentMethod = method_call;
-
 
1479
      ___manager.call(method_call);
-
 
1480
    }
-
 
1481
 
-
 
1482
    public static class adjustDeliveryDays_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1483
      private long startDate;
-
 
1484
      private long days;
-
 
1485
      public adjustDeliveryDays_call(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<adjustDeliveryDays_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 {
-
 
1486
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1487
        this.startDate = startDate;
-
 
1488
        this.days = days;
-
 
1489
      }
-
 
1490
 
-
 
1491
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1492
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("adjustDeliveryDays", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1493
        adjustDeliveryDays_args args = new adjustDeliveryDays_args();
-
 
1494
        args.setStartDate(startDate);
-
 
1495
        args.setDays(days);
-
 
1496
        args.write(prot);
-
 
1497
        prot.writeMessageEnd();
-
 
1498
      }
-
 
1499
 
-
 
1500
      public long getResult() throws org.apache.thrift.TException {
-
 
1501
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1502
          throw new IllegalStateException("Method call not finished!");
-
 
1503
        }
-
 
1504
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1505
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1506
        return (new Client(prot)).recv_adjustDeliveryDays();
-
 
1507
      }
-
 
1508
    }
-
 
1509
 
1447
  }
1510
  }
1448
 
1511
 
1449
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1512
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1450
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1513
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1451
    public Processor(I iface) {
1514
    public Processor(I iface) {
Line 1475... Line 1538...
1475
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
1538
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
1476
      processMap.put("addPincode", new addPincode());
1539
      processMap.put("addPincode", new addPincode());
1477
      processMap.put("updatePincode", new updatePincode());
1540
      processMap.put("updatePincode", new updatePincode());
1478
      processMap.put("addNewAwbs", new addNewAwbs());
1541
      processMap.put("addNewAwbs", new addNewAwbs());
1479
      processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
1542
      processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
-
 
1543
      processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
1480
      return processMap;
1544
      return processMap;
1481
    }
1545
    }
1482
 
1546
 
1483
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1547
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1484
      public getProvider() {
1548
      public getProvider() {
Line 1841... Line 1905...
1841
        iface.runLogisticsLocationInfoUpdate(args.logisticsLocationInfoList, args.runCompleteUpdate);
1905
        iface.runLogisticsLocationInfoUpdate(args.logisticsLocationInfoList, args.runCompleteUpdate);
1842
        return result;
1906
        return result;
1843
      }
1907
      }
1844
    }
1908
    }
1845
 
1909
 
-
 
1910
    private static class adjustDeliveryDays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, adjustDeliveryDays_args> {
-
 
1911
      public adjustDeliveryDays() {
-
 
1912
        super("adjustDeliveryDays");
-
 
1913
      }
-
 
1914
 
-
 
1915
      protected adjustDeliveryDays_args getEmptyArgsInstance() {
-
 
1916
        return new adjustDeliveryDays_args();
-
 
1917
      }
-
 
1918
 
-
 
1919
      protected adjustDeliveryDays_result getResult(I iface, adjustDeliveryDays_args args) throws org.apache.thrift.TException {
-
 
1920
        adjustDeliveryDays_result result = new adjustDeliveryDays_result();
-
 
1921
        result.success = iface.adjustDeliveryDays(args.startDate, args.days);
-
 
1922
        result.setSuccessIsSet(true);
-
 
1923
        return result;
-
 
1924
      }
-
 
1925
    }
-
 
1926
 
1846
  }
1927
  }
1847
 
1928
 
1848
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1929
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1849
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
1930
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
1850
 
1931
 
Line 16542... Line 16623...
16542
      sb.append(")");
16623
      sb.append(")");
16543
      return sb.toString();
16624
      return sb.toString();
16544
    }
16625
    }
16545
 
16626
 
16546
    public void validate() throws org.apache.thrift.TException {
16627
    public void validate() throws org.apache.thrift.TException {
-
 
16628
      // check for required fields
-
 
16629
    }
-
 
16630
 
-
 
16631
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
16632
      try {
-
 
16633
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
16634
      } catch (org.apache.thrift.TException te) {
-
 
16635
        throw new java.io.IOException(te);
-
 
16636
      }
-
 
16637
    }
-
 
16638
 
-
 
16639
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
16640
      try {
-
 
16641
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
16642
      } catch (org.apache.thrift.TException te) {
-
 
16643
        throw new java.io.IOException(te);
-
 
16644
      }
-
 
16645
    }
-
 
16646
 
-
 
16647
  }
-
 
16648
 
-
 
16649
  public static class adjustDeliveryDays_args implements org.apache.thrift.TBase<adjustDeliveryDays_args, adjustDeliveryDays_args._Fields>, java.io.Serializable, Cloneable   {
-
 
16650
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_args");
-
 
16651
 
-
 
16652
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
16653
    private static final org.apache.thrift.protocol.TField DAYS_FIELD_DESC = new org.apache.thrift.protocol.TField("days", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
16654
 
-
 
16655
    private long startDate; // required
-
 
16656
    private long days; // required
-
 
16657
 
-
 
16658
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
16659
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
16660
      START_DATE((short)1, "startDate"),
-
 
16661
      DAYS((short)2, "days");
-
 
16662
 
-
 
16663
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
16664
 
-
 
16665
      static {
-
 
16666
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
16667
          byName.put(field.getFieldName(), field);
-
 
16668
        }
-
 
16669
      }
-
 
16670
 
-
 
16671
      /**
-
 
16672
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
16673
       */
-
 
16674
      public static _Fields findByThriftId(int fieldId) {
-
 
16675
        switch(fieldId) {
-
 
16676
          case 1: // START_DATE
-
 
16677
            return START_DATE;
-
 
16678
          case 2: // DAYS
-
 
16679
            return DAYS;
-
 
16680
          default:
-
 
16681
            return null;
-
 
16682
        }
-
 
16683
      }
-
 
16684
 
-
 
16685
      /**
-
 
16686
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
16687
       * if it is not found.
-
 
16688
       */
-
 
16689
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
16690
        _Fields fields = findByThriftId(fieldId);
-
 
16691
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
16692
        return fields;
-
 
16693
      }
-
 
16694
 
-
 
16695
      /**
-
 
16696
       * Find the _Fields constant that matches name, or null if its not found.
-
 
16697
       */
-
 
16698
      public static _Fields findByName(String name) {
-
 
16699
        return byName.get(name);
-
 
16700
      }
-
 
16701
 
-
 
16702
      private final short _thriftId;
-
 
16703
      private final String _fieldName;
-
 
16704
 
-
 
16705
      _Fields(short thriftId, String fieldName) {
-
 
16706
        _thriftId = thriftId;
-
 
16707
        _fieldName = fieldName;
-
 
16708
      }
-
 
16709
 
-
 
16710
      public short getThriftFieldId() {
-
 
16711
        return _thriftId;
-
 
16712
      }
-
 
16713
 
-
 
16714
      public String getFieldName() {
-
 
16715
        return _fieldName;
-
 
16716
      }
-
 
16717
    }
-
 
16718
 
-
 
16719
    // isset id assignments
-
 
16720
    private static final int __STARTDATE_ISSET_ID = 0;
-
 
16721
    private static final int __DAYS_ISSET_ID = 1;
-
 
16722
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
16723
 
-
 
16724
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
16725
    static {
-
 
16726
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
16727
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
16728
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
16729
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
16730
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
16731
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
16732
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_args.class, metaDataMap);
-
 
16733
    }
-
 
16734
 
-
 
16735
    public adjustDeliveryDays_args() {
-
 
16736
    }
-
 
16737
 
-
 
16738
    public adjustDeliveryDays_args(
-
 
16739
      long startDate,
-
 
16740
      long days)
-
 
16741
    {
-
 
16742
      this();
-
 
16743
      this.startDate = startDate;
-
 
16744
      setStartDateIsSet(true);
-
 
16745
      this.days = days;
-
 
16746
      setDaysIsSet(true);
-
 
16747
    }
-
 
16748
 
-
 
16749
    /**
-
 
16750
     * Performs a deep copy on <i>other</i>.
-
 
16751
     */
-
 
16752
    public adjustDeliveryDays_args(adjustDeliveryDays_args other) {
-
 
16753
      __isset_bit_vector.clear();
-
 
16754
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
16755
      this.startDate = other.startDate;
-
 
16756
      this.days = other.days;
-
 
16757
    }
-
 
16758
 
-
 
16759
    public adjustDeliveryDays_args deepCopy() {
-
 
16760
      return new adjustDeliveryDays_args(this);
-
 
16761
    }
-
 
16762
 
-
 
16763
    @Override
-
 
16764
    public void clear() {
-
 
16765
      setStartDateIsSet(false);
-
 
16766
      this.startDate = 0;
-
 
16767
      setDaysIsSet(false);
-
 
16768
      this.days = 0;
-
 
16769
    }
-
 
16770
 
-
 
16771
    public long getStartDate() {
-
 
16772
      return this.startDate;
-
 
16773
    }
-
 
16774
 
-
 
16775
    public void setStartDate(long startDate) {
-
 
16776
      this.startDate = startDate;
-
 
16777
      setStartDateIsSet(true);
-
 
16778
    }
-
 
16779
 
-
 
16780
    public void unsetStartDate() {
-
 
16781
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
-
 
16782
    }
-
 
16783
 
-
 
16784
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
-
 
16785
    public boolean isSetStartDate() {
-
 
16786
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
-
 
16787
    }
-
 
16788
 
-
 
16789
    public void setStartDateIsSet(boolean value) {
-
 
16790
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
-
 
16791
    }
-
 
16792
 
-
 
16793
    public long getDays() {
-
 
16794
      return this.days;
-
 
16795
    }
-
 
16796
 
-
 
16797
    public void setDays(long days) {
-
 
16798
      this.days = days;
-
 
16799
      setDaysIsSet(true);
-
 
16800
    }
-
 
16801
 
-
 
16802
    public void unsetDays() {
-
 
16803
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
-
 
16804
    }
-
 
16805
 
-
 
16806
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
-
 
16807
    public boolean isSetDays() {
-
 
16808
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
-
 
16809
    }
-
 
16810
 
-
 
16811
    public void setDaysIsSet(boolean value) {
-
 
16812
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
-
 
16813
    }
-
 
16814
 
-
 
16815
    public void setFieldValue(_Fields field, Object value) {
-
 
16816
      switch (field) {
-
 
16817
      case START_DATE:
-
 
16818
        if (value == null) {
-
 
16819
          unsetStartDate();
-
 
16820
        } else {
-
 
16821
          setStartDate((Long)value);
-
 
16822
        }
-
 
16823
        break;
-
 
16824
 
-
 
16825
      case DAYS:
-
 
16826
        if (value == null) {
-
 
16827
          unsetDays();
-
 
16828
        } else {
-
 
16829
          setDays((Long)value);
-
 
16830
        }
-
 
16831
        break;
-
 
16832
 
-
 
16833
      }
-
 
16834
    }
-
 
16835
 
-
 
16836
    public Object getFieldValue(_Fields field) {
-
 
16837
      switch (field) {
-
 
16838
      case START_DATE:
-
 
16839
        return Long.valueOf(getStartDate());
-
 
16840
 
-
 
16841
      case DAYS:
-
 
16842
        return Long.valueOf(getDays());
-
 
16843
 
-
 
16844
      }
-
 
16845
      throw new IllegalStateException();
-
 
16846
    }
-
 
16847
 
-
 
16848
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
16849
    public boolean isSet(_Fields field) {
-
 
16850
      if (field == null) {
-
 
16851
        throw new IllegalArgumentException();
-
 
16852
      }
-
 
16853
 
-
 
16854
      switch (field) {
-
 
16855
      case START_DATE:
-
 
16856
        return isSetStartDate();
-
 
16857
      case DAYS:
-
 
16858
        return isSetDays();
-
 
16859
      }
-
 
16860
      throw new IllegalStateException();
-
 
16861
    }
-
 
16862
 
-
 
16863
    @Override
-
 
16864
    public boolean equals(Object that) {
-
 
16865
      if (that == null)
-
 
16866
        return false;
-
 
16867
      if (that instanceof adjustDeliveryDays_args)
-
 
16868
        return this.equals((adjustDeliveryDays_args)that);
-
 
16869
      return false;
-
 
16870
    }
-
 
16871
 
-
 
16872
    public boolean equals(adjustDeliveryDays_args that) {
-
 
16873
      if (that == null)
-
 
16874
        return false;
-
 
16875
 
-
 
16876
      boolean this_present_startDate = true;
-
 
16877
      boolean that_present_startDate = true;
-
 
16878
      if (this_present_startDate || that_present_startDate) {
-
 
16879
        if (!(this_present_startDate && that_present_startDate))
-
 
16880
          return false;
-
 
16881
        if (this.startDate != that.startDate)
-
 
16882
          return false;
-
 
16883
      }
-
 
16884
 
-
 
16885
      boolean this_present_days = true;
-
 
16886
      boolean that_present_days = true;
-
 
16887
      if (this_present_days || that_present_days) {
-
 
16888
        if (!(this_present_days && that_present_days))
-
 
16889
          return false;
-
 
16890
        if (this.days != that.days)
-
 
16891
          return false;
-
 
16892
      }
-
 
16893
 
-
 
16894
      return true;
-
 
16895
    }
-
 
16896
 
-
 
16897
    @Override
-
 
16898
    public int hashCode() {
-
 
16899
      return 0;
-
 
16900
    }
-
 
16901
 
-
 
16902
    public int compareTo(adjustDeliveryDays_args other) {
-
 
16903
      if (!getClass().equals(other.getClass())) {
-
 
16904
        return getClass().getName().compareTo(other.getClass().getName());
-
 
16905
      }
-
 
16906
 
-
 
16907
      int lastComparison = 0;
-
 
16908
      adjustDeliveryDays_args typedOther = (adjustDeliveryDays_args)other;
-
 
16909
 
-
 
16910
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
-
 
16911
      if (lastComparison != 0) {
-
 
16912
        return lastComparison;
-
 
16913
      }
-
 
16914
      if (isSetStartDate()) {
-
 
16915
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
-
 
16916
        if (lastComparison != 0) {
-
 
16917
          return lastComparison;
-
 
16918
        }
-
 
16919
      }
-
 
16920
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
-
 
16921
      if (lastComparison != 0) {
-
 
16922
        return lastComparison;
-
 
16923
      }
-
 
16924
      if (isSetDays()) {
-
 
16925
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
-
 
16926
        if (lastComparison != 0) {
-
 
16927
          return lastComparison;
-
 
16928
        }
-
 
16929
      }
-
 
16930
      return 0;
-
 
16931
    }
-
 
16932
 
-
 
16933
    public _Fields fieldForId(int fieldId) {
-
 
16934
      return _Fields.findByThriftId(fieldId);
-
 
16935
    }
-
 
16936
 
-
 
16937
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
16938
      org.apache.thrift.protocol.TField field;
-
 
16939
      iprot.readStructBegin();
-
 
16940
      while (true)
-
 
16941
      {
-
 
16942
        field = iprot.readFieldBegin();
-
 
16943
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
16944
          break;
-
 
16945
        }
-
 
16946
        switch (field.id) {
-
 
16947
          case 1: // START_DATE
-
 
16948
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
16949
              this.startDate = iprot.readI64();
-
 
16950
              setStartDateIsSet(true);
-
 
16951
            } else { 
-
 
16952
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16953
            }
-
 
16954
            break;
-
 
16955
          case 2: // DAYS
-
 
16956
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
16957
              this.days = iprot.readI64();
-
 
16958
              setDaysIsSet(true);
-
 
16959
            } else { 
-
 
16960
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16961
            }
-
 
16962
            break;
-
 
16963
          default:
-
 
16964
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
16965
        }
-
 
16966
        iprot.readFieldEnd();
-
 
16967
      }
-
 
16968
      iprot.readStructEnd();
-
 
16969
      validate();
-
 
16970
    }
-
 
16971
 
-
 
16972
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
16973
      validate();
-
 
16974
 
-
 
16975
      oprot.writeStructBegin(STRUCT_DESC);
-
 
16976
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
-
 
16977
      oprot.writeI64(this.startDate);
-
 
16978
      oprot.writeFieldEnd();
-
 
16979
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
-
 
16980
      oprot.writeI64(this.days);
-
 
16981
      oprot.writeFieldEnd();
-
 
16982
      oprot.writeFieldStop();
-
 
16983
      oprot.writeStructEnd();
-
 
16984
    }
-
 
16985
 
-
 
16986
    @Override
-
 
16987
    public String toString() {
-
 
16988
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_args(");
-
 
16989
      boolean first = true;
-
 
16990
 
-
 
16991
      sb.append("startDate:");
-
 
16992
      sb.append(this.startDate);
-
 
16993
      first = false;
-
 
16994
      if (!first) sb.append(", ");
-
 
16995
      sb.append("days:");
-
 
16996
      sb.append(this.days);
-
 
16997
      first = false;
-
 
16998
      sb.append(")");
-
 
16999
      return sb.toString();
-
 
17000
    }
-
 
17001
 
-
 
17002
    public void validate() throws org.apache.thrift.TException {
-
 
17003
      // check for required fields
-
 
17004
    }
-
 
17005
 
-
 
17006
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
17007
      try {
-
 
17008
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
17009
      } catch (org.apache.thrift.TException te) {
-
 
17010
        throw new java.io.IOException(te);
-
 
17011
      }
-
 
17012
    }
-
 
17013
 
-
 
17014
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
17015
      try {
-
 
17016
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
17017
        __isset_bit_vector = new BitSet(1);
-
 
17018
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
17019
      } catch (org.apache.thrift.TException te) {
-
 
17020
        throw new java.io.IOException(te);
-
 
17021
      }
-
 
17022
    }
-
 
17023
 
-
 
17024
  }
-
 
17025
 
-
 
17026
  public static class adjustDeliveryDays_result implements org.apache.thrift.TBase<adjustDeliveryDays_result, adjustDeliveryDays_result._Fields>, java.io.Serializable, Cloneable   {
-
 
17027
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_result");
-
 
17028
 
-
 
17029
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
-
 
17030
 
-
 
17031
    private long success; // required
-
 
17032
 
-
 
17033
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
17034
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
17035
      SUCCESS((short)0, "success");
-
 
17036
 
-
 
17037
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
17038
 
-
 
17039
      static {
-
 
17040
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
17041
          byName.put(field.getFieldName(), field);
-
 
17042
        }
-
 
17043
      }
-
 
17044
 
-
 
17045
      /**
-
 
17046
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
17047
       */
-
 
17048
      public static _Fields findByThriftId(int fieldId) {
-
 
17049
        switch(fieldId) {
-
 
17050
          case 0: // SUCCESS
-
 
17051
            return SUCCESS;
-
 
17052
          default:
-
 
17053
            return null;
-
 
17054
        }
-
 
17055
      }
-
 
17056
 
-
 
17057
      /**
-
 
17058
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
17059
       * if it is not found.
-
 
17060
       */
-
 
17061
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
17062
        _Fields fields = findByThriftId(fieldId);
-
 
17063
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
17064
        return fields;
-
 
17065
      }
-
 
17066
 
-
 
17067
      /**
-
 
17068
       * Find the _Fields constant that matches name, or null if its not found.
-
 
17069
       */
-
 
17070
      public static _Fields findByName(String name) {
-
 
17071
        return byName.get(name);
-
 
17072
      }
-
 
17073
 
-
 
17074
      private final short _thriftId;
-
 
17075
      private final String _fieldName;
-
 
17076
 
-
 
17077
      _Fields(short thriftId, String fieldName) {
-
 
17078
        _thriftId = thriftId;
-
 
17079
        _fieldName = fieldName;
-
 
17080
      }
-
 
17081
 
-
 
17082
      public short getThriftFieldId() {
-
 
17083
        return _thriftId;
-
 
17084
      }
-
 
17085
 
-
 
17086
      public String getFieldName() {
-
 
17087
        return _fieldName;
-
 
17088
      }
-
 
17089
    }
-
 
17090
 
-
 
17091
    // isset id assignments
-
 
17092
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
17093
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
17094
 
-
 
17095
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
17096
    static {
-
 
17097
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
17098
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
17099
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
17100
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
17101
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_result.class, metaDataMap);
-
 
17102
    }
-
 
17103
 
-
 
17104
    public adjustDeliveryDays_result() {
-
 
17105
    }
-
 
17106
 
-
 
17107
    public adjustDeliveryDays_result(
-
 
17108
      long success)
-
 
17109
    {
-
 
17110
      this();
-
 
17111
      this.success = success;
-
 
17112
      setSuccessIsSet(true);
-
 
17113
    }
-
 
17114
 
-
 
17115
    /**
-
 
17116
     * Performs a deep copy on <i>other</i>.
-
 
17117
     */
-
 
17118
    public adjustDeliveryDays_result(adjustDeliveryDays_result other) {
-
 
17119
      __isset_bit_vector.clear();
-
 
17120
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
17121
      this.success = other.success;
-
 
17122
    }
-
 
17123
 
-
 
17124
    public adjustDeliveryDays_result deepCopy() {
-
 
17125
      return new adjustDeliveryDays_result(this);
-
 
17126
    }
-
 
17127
 
-
 
17128
    @Override
-
 
17129
    public void clear() {
-
 
17130
      setSuccessIsSet(false);
-
 
17131
      this.success = 0;
-
 
17132
    }
-
 
17133
 
-
 
17134
    public long getSuccess() {
-
 
17135
      return this.success;
-
 
17136
    }
-
 
17137
 
-
 
17138
    public void setSuccess(long success) {
-
 
17139
      this.success = success;
-
 
17140
      setSuccessIsSet(true);
-
 
17141
    }
-
 
17142
 
-
 
17143
    public void unsetSuccess() {
-
 
17144
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
17145
    }
-
 
17146
 
-
 
17147
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
17148
    public boolean isSetSuccess() {
-
 
17149
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
17150
    }
-
 
17151
 
-
 
17152
    public void setSuccessIsSet(boolean value) {
-
 
17153
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
17154
    }
-
 
17155
 
-
 
17156
    public void setFieldValue(_Fields field, Object value) {
-
 
17157
      switch (field) {
-
 
17158
      case SUCCESS:
-
 
17159
        if (value == null) {
-
 
17160
          unsetSuccess();
-
 
17161
        } else {
-
 
17162
          setSuccess((Long)value);
-
 
17163
        }
-
 
17164
        break;
-
 
17165
 
-
 
17166
      }
-
 
17167
    }
-
 
17168
 
-
 
17169
    public Object getFieldValue(_Fields field) {
-
 
17170
      switch (field) {
-
 
17171
      case SUCCESS:
-
 
17172
        return Long.valueOf(getSuccess());
-
 
17173
 
-
 
17174
      }
-
 
17175
      throw new IllegalStateException();
-
 
17176
    }
-
 
17177
 
-
 
17178
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
17179
    public boolean isSet(_Fields field) {
-
 
17180
      if (field == null) {
-
 
17181
        throw new IllegalArgumentException();
-
 
17182
      }
-
 
17183
 
-
 
17184
      switch (field) {
-
 
17185
      case SUCCESS:
-
 
17186
        return isSetSuccess();
-
 
17187
      }
-
 
17188
      throw new IllegalStateException();
-
 
17189
    }
-
 
17190
 
-
 
17191
    @Override
-
 
17192
    public boolean equals(Object that) {
-
 
17193
      if (that == null)
-
 
17194
        return false;
-
 
17195
      if (that instanceof adjustDeliveryDays_result)
-
 
17196
        return this.equals((adjustDeliveryDays_result)that);
-
 
17197
      return false;
-
 
17198
    }
-
 
17199
 
-
 
17200
    public boolean equals(adjustDeliveryDays_result that) {
-
 
17201
      if (that == null)
-
 
17202
        return false;
-
 
17203
 
-
 
17204
      boolean this_present_success = true;
-
 
17205
      boolean that_present_success = true;
-
 
17206
      if (this_present_success || that_present_success) {
-
 
17207
        if (!(this_present_success && that_present_success))
-
 
17208
          return false;
-
 
17209
        if (this.success != that.success)
-
 
17210
          return false;
-
 
17211
      }
-
 
17212
 
-
 
17213
      return true;
-
 
17214
    }
-
 
17215
 
-
 
17216
    @Override
-
 
17217
    public int hashCode() {
-
 
17218
      return 0;
-
 
17219
    }
-
 
17220
 
-
 
17221
    public int compareTo(adjustDeliveryDays_result other) {
-
 
17222
      if (!getClass().equals(other.getClass())) {
-
 
17223
        return getClass().getName().compareTo(other.getClass().getName());
-
 
17224
      }
-
 
17225
 
-
 
17226
      int lastComparison = 0;
-
 
17227
      adjustDeliveryDays_result typedOther = (adjustDeliveryDays_result)other;
-
 
17228
 
-
 
17229
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
17230
      if (lastComparison != 0) {
-
 
17231
        return lastComparison;
-
 
17232
      }
-
 
17233
      if (isSetSuccess()) {
-
 
17234
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
17235
        if (lastComparison != 0) {
-
 
17236
          return lastComparison;
-
 
17237
        }
-
 
17238
      }
-
 
17239
      return 0;
-
 
17240
    }
-
 
17241
 
-
 
17242
    public _Fields fieldForId(int fieldId) {
-
 
17243
      return _Fields.findByThriftId(fieldId);
-
 
17244
    }
-
 
17245
 
-
 
17246
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
17247
      org.apache.thrift.protocol.TField field;
-
 
17248
      iprot.readStructBegin();
-
 
17249
      while (true)
-
 
17250
      {
-
 
17251
        field = iprot.readFieldBegin();
-
 
17252
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
17253
          break;
-
 
17254
        }
-
 
17255
        switch (field.id) {
-
 
17256
          case 0: // SUCCESS
-
 
17257
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
17258
              this.success = iprot.readI64();
-
 
17259
              setSuccessIsSet(true);
-
 
17260
            } else { 
-
 
17261
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17262
            }
-
 
17263
            break;
-
 
17264
          default:
-
 
17265
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
17266
        }
-
 
17267
        iprot.readFieldEnd();
-
 
17268
      }
-
 
17269
      iprot.readStructEnd();
-
 
17270
      validate();
-
 
17271
    }
-
 
17272
 
-
 
17273
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
17274
      oprot.writeStructBegin(STRUCT_DESC);
-
 
17275
 
-
 
17276
      if (this.isSetSuccess()) {
-
 
17277
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
17278
        oprot.writeI64(this.success);
-
 
17279
        oprot.writeFieldEnd();
-
 
17280
      }
-
 
17281
      oprot.writeFieldStop();
-
 
17282
      oprot.writeStructEnd();
-
 
17283
    }
-
 
17284
 
-
 
17285
    @Override
-
 
17286
    public String toString() {
-
 
17287
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_result(");
-
 
17288
      boolean first = true;
-
 
17289
 
-
 
17290
      sb.append("success:");
-
 
17291
      sb.append(this.success);
-
 
17292
      first = false;
-
 
17293
      sb.append(")");
-
 
17294
      return sb.toString();
-
 
17295
    }
-
 
17296
 
-
 
17297
    public void validate() throws org.apache.thrift.TException {
16547
      // check for required fields
17298
      // check for required fields
16548
    }
17299
    }
16549
 
17300
 
16550
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17301
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16551
      try {
17302
      try {