Subversion Repositories SmartDukaan

Rev

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

Rev 4865 Rev 4934
Line 97... Line 97...
97
     * @param fromDate
97
     * @param fromDate
98
     * @param toDate
98
     * @param toDate
99
     */
99
     */
100
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException;
100
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException;
101
 
101
 
-
 
102
    /**
-
 
103
     * Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
-
 
104
     * Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
-
 
105
     * is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
-
 
106
     * 
-
 
107
     * @param catalogItemId
-
 
108
     * @param destination_pin
-
 
109
     * @param type
-
 
110
     */
-
 
111
    public List<Long> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
-
 
112
 
102
  }
113
  }
103
 
114
 
104
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
115
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
105
 
116
 
106
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
117
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
Line 119... Line 130...
119
 
130
 
120
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
131
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
121
 
132
 
122
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
133
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
123
 
134
 
-
 
135
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
-
 
136
 
124
  }
137
  }
125
 
138
 
126
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
139
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
127
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
140
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
128
      public Factory() {}
141
      public Factory() {}
Line 376... Line 389...
376
        return result.success;
389
        return result.success;
377
      }
390
      }
378
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
391
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
379
    }
392
    }
380
 
393
 
-
 
394
    public List<Long> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
-
 
395
    {
-
 
396
      send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type);
-
 
397
      return recv_getEntityLogisticsEstimation();
-
 
398
    }
-
 
399
 
-
 
400
    public void send_getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
-
 
401
    {
-
 
402
      getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
-
 
403
      args.setCatalogItemId(catalogItemId);
-
 
404
      args.setDestination_pin(destination_pin);
-
 
405
      args.setType(type);
-
 
406
      sendBase("getEntityLogisticsEstimation", args);
-
 
407
    }
-
 
408
 
-
 
409
    public List<Long> recv_getEntityLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
-
 
410
    {
-
 
411
      getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
-
 
412
      receiveBase(result, "getEntityLogisticsEstimation");
-
 
413
      if (result.isSetSuccess()) {
-
 
414
        return result.success;
-
 
415
      }
-
 
416
      if (result.se != null) {
-
 
417
        throw result.se;
-
 
418
      }
-
 
419
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
-
 
420
    }
-
 
421
 
381
  }
422
  }
382
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
423
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
383
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
424
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
384
      private org.apache.thrift.async.TAsyncClientManager clientManager;
425
      private org.apache.thrift.async.TAsyncClientManager clientManager;
385
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
426
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 703... Line 744...
703
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
744
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
704
        return (new Client(prot)).recv_getHolidays();
745
        return (new Client(prot)).recv_getHolidays();
705
      }
746
      }
706
    }
747
    }
707
 
748
 
-
 
749
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
-
 
750
      checkReady();
-
 
751
      getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
-
 
752
      this.___currentMethod = method_call;
-
 
753
      ___manager.call(method_call);
-
 
754
    }
-
 
755
 
-
 
756
    public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
757
      private long catalogItemId;
-
 
758
      private String destination_pin;
-
 
759
      private DeliveryType type;
-
 
760
      public getEntityLogisticsEstimation_call(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_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 {
-
 
761
        super(client, protocolFactory, transport, resultHandler, false);
-
 
762
        this.catalogItemId = catalogItemId;
-
 
763
        this.destination_pin = destination_pin;
-
 
764
        this.type = type;
-
 
765
      }
-
 
766
 
-
 
767
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
768
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
769
        getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
-
 
770
        args.setCatalogItemId(catalogItemId);
-
 
771
        args.setDestination_pin(destination_pin);
-
 
772
        args.setType(type);
-
 
773
        args.write(prot);
-
 
774
        prot.writeMessageEnd();
-
 
775
      }
-
 
776
 
-
 
777
      public List<Long> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
-
 
778
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
779
          throw new IllegalStateException("Method call not finished!");
-
 
780
        }
-
 
781
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
782
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
783
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
-
 
784
      }
-
 
785
    }
-
 
786
 
708
  }
787
  }
709
 
788
 
710
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
789
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
711
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
790
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
712
    public Processor(I iface) {
791
    public Processor(I iface) {
Line 725... Line 804...
725
      processMap.put("getEmptyAWB", new getEmptyAWB());
804
      processMap.put("getEmptyAWB", new getEmptyAWB());
726
      processMap.put("getShipmentInfo", new getShipmentInfo());
805
      processMap.put("getShipmentInfo", new getShipmentInfo());
727
      processMap.put("getDestinationCode", new getDestinationCode());
806
      processMap.put("getDestinationCode", new getDestinationCode());
728
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
807
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
729
      processMap.put("getHolidays", new getHolidays());
808
      processMap.put("getHolidays", new getHolidays());
-
 
809
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
730
      return processMap;
810
      return processMap;
731
    }
811
    }
732
 
812
 
733
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
813
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
734
      public getProvider() {
814
      public getProvider() {
Line 901... Line 981...
901
        result.success = iface.getHolidays(args.fromDate, args.toDate);
981
        result.success = iface.getHolidays(args.fromDate, args.toDate);
902
        return result;
982
        return result;
903
      }
983
      }
904
    }
984
    }
905
 
985
 
-
 
986
    private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
-
 
987
      public getEntityLogisticsEstimation() {
-
 
988
        super("getEntityLogisticsEstimation");
-
 
989
      }
-
 
990
 
-
 
991
      protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
-
 
992
        return new getEntityLogisticsEstimation_args();
-
 
993
      }
-
 
994
 
-
 
995
      protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
-
 
996
        getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
-
 
997
        try {
-
 
998
          result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
-
 
999
        } catch (LogisticsServiceException se) {
-
 
1000
          result.se = se;
-
 
1001
        }
-
 
1002
        return result;
-
 
1003
      }
-
 
1004
    }
-
 
1005
 
906
  }
1006
  }
907
 
1007
 
908
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1008
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
909
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
1009
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
910
 
1010
 
Line 7512... Line 7612...
7512
      }
7612
      }
7513
      first = false;
7613
      first = false;
7514
      sb.append(")");
7614
      sb.append(")");
7515
      return sb.toString();
7615
      return sb.toString();
7516
    }
7616
    }
-
 
7617
 
-
 
7618
    public void validate() throws org.apache.thrift.TException {
-
 
7619
      // check for required fields
-
 
7620
    }
-
 
7621
 
-
 
7622
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7623
      try {
-
 
7624
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7625
      } catch (org.apache.thrift.TException te) {
-
 
7626
        throw new java.io.IOException(te);
-
 
7627
      }
-
 
7628
    }
-
 
7629
 
-
 
7630
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7631
      try {
-
 
7632
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7633
      } catch (org.apache.thrift.TException te) {
-
 
7634
        throw new java.io.IOException(te);
-
 
7635
      }
-
 
7636
    }
-
 
7637
 
-
 
7638
  }
-
 
7639
 
-
 
7640
  public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
-
 
7641
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
-
 
7642
 
-
 
7643
    private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogItemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
7644
    private static final org.apache.thrift.protocol.TField DESTINATION_PIN_FIELD_DESC = new org.apache.thrift.protocol.TField("destination_pin", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
7645
    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)3);
-
 
7646
 
-
 
7647
    private long catalogItemId; // required
-
 
7648
    private String destination_pin; // required
-
 
7649
    private DeliveryType type; // required
-
 
7650
 
-
 
7651
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7652
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
7653
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
-
 
7654
      DESTINATION_PIN((short)2, "destination_pin"),
-
 
7655
      /**
-
 
7656
       * 
-
 
7657
       * @see DeliveryType
-
 
7658
       */
-
 
7659
      TYPE((short)3, "type");
-
 
7660
 
-
 
7661
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7662
 
-
 
7663
      static {
-
 
7664
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7665
          byName.put(field.getFieldName(), field);
-
 
7666
        }
-
 
7667
      }
-
 
7668
 
-
 
7669
      /**
-
 
7670
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7671
       */
-
 
7672
      public static _Fields findByThriftId(int fieldId) {
-
 
7673
        switch(fieldId) {
-
 
7674
          case 1: // CATALOG_ITEM_ID
-
 
7675
            return CATALOG_ITEM_ID;
-
 
7676
          case 2: // DESTINATION_PIN
-
 
7677
            return DESTINATION_PIN;
-
 
7678
          case 3: // TYPE
-
 
7679
            return TYPE;
-
 
7680
          default:
-
 
7681
            return null;
-
 
7682
        }
-
 
7683
      }
-
 
7684
 
-
 
7685
      /**
-
 
7686
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7687
       * if it is not found.
-
 
7688
       */
-
 
7689
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7690
        _Fields fields = findByThriftId(fieldId);
-
 
7691
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7692
        return fields;
-
 
7693
      }
-
 
7694
 
-
 
7695
      /**
-
 
7696
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7697
       */
-
 
7698
      public static _Fields findByName(String name) {
-
 
7699
        return byName.get(name);
-
 
7700
      }
-
 
7701
 
-
 
7702
      private final short _thriftId;
-
 
7703
      private final String _fieldName;
-
 
7704
 
-
 
7705
      _Fields(short thriftId, String fieldName) {
-
 
7706
        _thriftId = thriftId;
-
 
7707
        _fieldName = fieldName;
-
 
7708
      }
-
 
7709
 
-
 
7710
      public short getThriftFieldId() {
-
 
7711
        return _thriftId;
-
 
7712
      }
-
 
7713
 
-
 
7714
      public String getFieldName() {
-
 
7715
        return _fieldName;
-
 
7716
      }
-
 
7717
    }
-
 
7718
 
-
 
7719
    // isset id assignments
-
 
7720
    private static final int __CATALOGITEMID_ISSET_ID = 0;
-
 
7721
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
7722
 
-
 
7723
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
7724
    static {
-
 
7725
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7726
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7727
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
7728
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7729
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
7730
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7731
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
-
 
7732
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
7733
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
-
 
7734
    }
-
 
7735
 
-
 
7736
    public getEntityLogisticsEstimation_args() {
-
 
7737
    }
-
 
7738
 
-
 
7739
    public getEntityLogisticsEstimation_args(
-
 
7740
      long catalogItemId,
-
 
7741
      String destination_pin,
-
 
7742
      DeliveryType type)
-
 
7743
    {
-
 
7744
      this();
-
 
7745
      this.catalogItemId = catalogItemId;
-
 
7746
      setCatalogItemIdIsSet(true);
-
 
7747
      this.destination_pin = destination_pin;
-
 
7748
      this.type = type;
-
 
7749
    }
-
 
7750
 
-
 
7751
    /**
-
 
7752
     * Performs a deep copy on <i>other</i>.
-
 
7753
     */
-
 
7754
    public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
-
 
7755
      __isset_bit_vector.clear();
-
 
7756
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
7757
      this.catalogItemId = other.catalogItemId;
-
 
7758
      if (other.isSetDestination_pin()) {
-
 
7759
        this.destination_pin = other.destination_pin;
-
 
7760
      }
-
 
7761
      if (other.isSetType()) {
-
 
7762
        this.type = other.type;
-
 
7763
      }
-
 
7764
    }
-
 
7765
 
-
 
7766
    public getEntityLogisticsEstimation_args deepCopy() {
-
 
7767
      return new getEntityLogisticsEstimation_args(this);
-
 
7768
    }
-
 
7769
 
-
 
7770
    @Override
-
 
7771
    public void clear() {
-
 
7772
      setCatalogItemIdIsSet(false);
-
 
7773
      this.catalogItemId = 0;
-
 
7774
      this.destination_pin = null;
-
 
7775
      this.type = null;
-
 
7776
    }
-
 
7777
 
-
 
7778
    public long getCatalogItemId() {
-
 
7779
      return this.catalogItemId;
-
 
7780
    }
-
 
7781
 
-
 
7782
    public void setCatalogItemId(long catalogItemId) {
-
 
7783
      this.catalogItemId = catalogItemId;
-
 
7784
      setCatalogItemIdIsSet(true);
-
 
7785
    }
-
 
7786
 
-
 
7787
    public void unsetCatalogItemId() {
-
 
7788
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
-
 
7789
    }
-
 
7790
 
-
 
7791
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
-
 
7792
    public boolean isSetCatalogItemId() {
-
 
7793
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
-
 
7794
    }
-
 
7795
 
-
 
7796
    public void setCatalogItemIdIsSet(boolean value) {
-
 
7797
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
-
 
7798
    }
-
 
7799
 
-
 
7800
    public String getDestination_pin() {
-
 
7801
      return this.destination_pin;
-
 
7802
    }
-
 
7803
 
-
 
7804
    public void setDestination_pin(String destination_pin) {
-
 
7805
      this.destination_pin = destination_pin;
-
 
7806
    }
-
 
7807
 
-
 
7808
    public void unsetDestination_pin() {
-
 
7809
      this.destination_pin = null;
-
 
7810
    }
-
 
7811
 
-
 
7812
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
-
 
7813
    public boolean isSetDestination_pin() {
-
 
7814
      return this.destination_pin != null;
-
 
7815
    }
-
 
7816
 
-
 
7817
    public void setDestination_pinIsSet(boolean value) {
-
 
7818
      if (!value) {
-
 
7819
        this.destination_pin = null;
-
 
7820
      }
-
 
7821
    }
-
 
7822
 
-
 
7823
    /**
-
 
7824
     * 
-
 
7825
     * @see DeliveryType
-
 
7826
     */
-
 
7827
    public DeliveryType getType() {
-
 
7828
      return this.type;
-
 
7829
    }
-
 
7830
 
-
 
7831
    /**
-
 
7832
     * 
-
 
7833
     * @see DeliveryType
-
 
7834
     */
-
 
7835
    public void setType(DeliveryType type) {
-
 
7836
      this.type = type;
-
 
7837
    }
-
 
7838
 
-
 
7839
    public void unsetType() {
-
 
7840
      this.type = null;
-
 
7841
    }
-
 
7842
 
-
 
7843
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
-
 
7844
    public boolean isSetType() {
-
 
7845
      return this.type != null;
-
 
7846
    }
-
 
7847
 
-
 
7848
    public void setTypeIsSet(boolean value) {
-
 
7849
      if (!value) {
-
 
7850
        this.type = null;
-
 
7851
      }
-
 
7852
    }
-
 
7853
 
-
 
7854
    public void setFieldValue(_Fields field, Object value) {
-
 
7855
      switch (field) {
-
 
7856
      case CATALOG_ITEM_ID:
-
 
7857
        if (value == null) {
-
 
7858
          unsetCatalogItemId();
-
 
7859
        } else {
-
 
7860
          setCatalogItemId((Long)value);
-
 
7861
        }
-
 
7862
        break;
-
 
7863
 
-
 
7864
      case DESTINATION_PIN:
-
 
7865
        if (value == null) {
-
 
7866
          unsetDestination_pin();
-
 
7867
        } else {
-
 
7868
          setDestination_pin((String)value);
-
 
7869
        }
-
 
7870
        break;
-
 
7871
 
-
 
7872
      case TYPE:
-
 
7873
        if (value == null) {
-
 
7874
          unsetType();
-
 
7875
        } else {
-
 
7876
          setType((DeliveryType)value);
-
 
7877
        }
-
 
7878
        break;
-
 
7879
 
-
 
7880
      }
-
 
7881
    }
-
 
7882
 
-
 
7883
    public Object getFieldValue(_Fields field) {
-
 
7884
      switch (field) {
-
 
7885
      case CATALOG_ITEM_ID:
-
 
7886
        return Long.valueOf(getCatalogItemId());
-
 
7887
 
-
 
7888
      case DESTINATION_PIN:
-
 
7889
        return getDestination_pin();
-
 
7890
 
-
 
7891
      case TYPE:
-
 
7892
        return getType();
-
 
7893
 
-
 
7894
      }
-
 
7895
      throw new IllegalStateException();
-
 
7896
    }
-
 
7897
 
-
 
7898
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
7899
    public boolean isSet(_Fields field) {
-
 
7900
      if (field == null) {
-
 
7901
        throw new IllegalArgumentException();
-
 
7902
      }
-
 
7903
 
-
 
7904
      switch (field) {
-
 
7905
      case CATALOG_ITEM_ID:
-
 
7906
        return isSetCatalogItemId();
-
 
7907
      case DESTINATION_PIN:
-
 
7908
        return isSetDestination_pin();
-
 
7909
      case TYPE:
-
 
7910
        return isSetType();
-
 
7911
      }
-
 
7912
      throw new IllegalStateException();
-
 
7913
    }
-
 
7914
 
-
 
7915
    @Override
-
 
7916
    public boolean equals(Object that) {
-
 
7917
      if (that == null)
-
 
7918
        return false;
-
 
7919
      if (that instanceof getEntityLogisticsEstimation_args)
-
 
7920
        return this.equals((getEntityLogisticsEstimation_args)that);
-
 
7921
      return false;
-
 
7922
    }
-
 
7923
 
-
 
7924
    public boolean equals(getEntityLogisticsEstimation_args that) {
-
 
7925
      if (that == null)
-
 
7926
        return false;
-
 
7927
 
-
 
7928
      boolean this_present_catalogItemId = true;
-
 
7929
      boolean that_present_catalogItemId = true;
-
 
7930
      if (this_present_catalogItemId || that_present_catalogItemId) {
-
 
7931
        if (!(this_present_catalogItemId && that_present_catalogItemId))
-
 
7932
          return false;
-
 
7933
        if (this.catalogItemId != that.catalogItemId)
-
 
7934
          return false;
-
 
7935
      }
-
 
7936
 
-
 
7937
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
-
 
7938
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
-
 
7939
      if (this_present_destination_pin || that_present_destination_pin) {
-
 
7940
        if (!(this_present_destination_pin && that_present_destination_pin))
-
 
7941
          return false;
-
 
7942
        if (!this.destination_pin.equals(that.destination_pin))
-
 
7943
          return false;
-
 
7944
      }
-
 
7945
 
-
 
7946
      boolean this_present_type = true && this.isSetType();
-
 
7947
      boolean that_present_type = true && that.isSetType();
-
 
7948
      if (this_present_type || that_present_type) {
-
 
7949
        if (!(this_present_type && that_present_type))
-
 
7950
          return false;
-
 
7951
        if (!this.type.equals(that.type))
-
 
7952
          return false;
-
 
7953
      }
-
 
7954
 
-
 
7955
      return true;
-
 
7956
    }
-
 
7957
 
-
 
7958
    @Override
-
 
7959
    public int hashCode() {
-
 
7960
      return 0;
-
 
7961
    }
-
 
7962
 
-
 
7963
    public int compareTo(getEntityLogisticsEstimation_args other) {
-
 
7964
      if (!getClass().equals(other.getClass())) {
-
 
7965
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7966
      }
-
 
7967
 
-
 
7968
      int lastComparison = 0;
-
 
7969
      getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
-
 
7970
 
-
 
7971
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
-
 
7972
      if (lastComparison != 0) {
-
 
7973
        return lastComparison;
-
 
7974
      }
-
 
7975
      if (isSetCatalogItemId()) {
-
 
7976
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
-
 
7977
        if (lastComparison != 0) {
-
 
7978
          return lastComparison;
-
 
7979
        }
-
 
7980
      }
-
 
7981
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
-
 
7982
      if (lastComparison != 0) {
-
 
7983
        return lastComparison;
-
 
7984
      }
-
 
7985
      if (isSetDestination_pin()) {
-
 
7986
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
-
 
7987
        if (lastComparison != 0) {
-
 
7988
          return lastComparison;
-
 
7989
        }
-
 
7990
      }
-
 
7991
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
-
 
7992
      if (lastComparison != 0) {
-
 
7993
        return lastComparison;
-
 
7994
      }
-
 
7995
      if (isSetType()) {
-
 
7996
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
-
 
7997
        if (lastComparison != 0) {
-
 
7998
          return lastComparison;
-
 
7999
        }
-
 
8000
      }
-
 
8001
      return 0;
-
 
8002
    }
-
 
8003
 
-
 
8004
    public _Fields fieldForId(int fieldId) {
-
 
8005
      return _Fields.findByThriftId(fieldId);
-
 
8006
    }
-
 
8007
 
-
 
8008
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
8009
      org.apache.thrift.protocol.TField field;
-
 
8010
      iprot.readStructBegin();
-
 
8011
      while (true)
-
 
8012
      {
-
 
8013
        field = iprot.readFieldBegin();
-
 
8014
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
8015
          break;
-
 
8016
        }
-
 
8017
        switch (field.id) {
-
 
8018
          case 1: // CATALOG_ITEM_ID
-
 
8019
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
8020
              this.catalogItemId = iprot.readI64();
-
 
8021
              setCatalogItemIdIsSet(true);
-
 
8022
            } else { 
-
 
8023
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8024
            }
-
 
8025
            break;
-
 
8026
          case 2: // DESTINATION_PIN
-
 
8027
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
8028
              this.destination_pin = iprot.readString();
-
 
8029
            } else { 
-
 
8030
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8031
            }
-
 
8032
            break;
-
 
8033
          case 3: // TYPE
-
 
8034
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
8035
              this.type = DeliveryType.findByValue(iprot.readI32());
-
 
8036
            } else { 
-
 
8037
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8038
            }
-
 
8039
            break;
-
 
8040
          default:
-
 
8041
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8042
        }
-
 
8043
        iprot.readFieldEnd();
-
 
8044
      }
-
 
8045
      iprot.readStructEnd();
-
 
8046
      validate();
-
 
8047
    }
-
 
8048
 
-
 
8049
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
8050
      validate();
-
 
8051
 
-
 
8052
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8053
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
-
 
8054
      oprot.writeI64(this.catalogItemId);
-
 
8055
      oprot.writeFieldEnd();
-
 
8056
      if (this.destination_pin != null) {
-
 
8057
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
-
 
8058
        oprot.writeString(this.destination_pin);
-
 
8059
        oprot.writeFieldEnd();
-
 
8060
      }
-
 
8061
      if (this.type != null) {
-
 
8062
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
-
 
8063
        oprot.writeI32(this.type.getValue());
-
 
8064
        oprot.writeFieldEnd();
-
 
8065
      }
-
 
8066
      oprot.writeFieldStop();
-
 
8067
      oprot.writeStructEnd();
-
 
8068
    }
-
 
8069
 
-
 
8070
    @Override
-
 
8071
    public String toString() {
-
 
8072
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
-
 
8073
      boolean first = true;
-
 
8074
 
-
 
8075
      sb.append("catalogItemId:");
-
 
8076
      sb.append(this.catalogItemId);
-
 
8077
      first = false;
-
 
8078
      if (!first) sb.append(", ");
-
 
8079
      sb.append("destination_pin:");
-
 
8080
      if (this.destination_pin == null) {
-
 
8081
        sb.append("null");
-
 
8082
      } else {
-
 
8083
        sb.append(this.destination_pin);
-
 
8084
      }
-
 
8085
      first = false;
-
 
8086
      if (!first) sb.append(", ");
-
 
8087
      sb.append("type:");
-
 
8088
      if (this.type == null) {
-
 
8089
        sb.append("null");
-
 
8090
      } else {
-
 
8091
        sb.append(this.type);
-
 
8092
      }
-
 
8093
      first = false;
-
 
8094
      sb.append(")");
-
 
8095
      return sb.toString();
-
 
8096
    }
-
 
8097
 
-
 
8098
    public void validate() throws org.apache.thrift.TException {
-
 
8099
      // check for required fields
-
 
8100
    }
-
 
8101
 
-
 
8102
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8103
      try {
-
 
8104
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8105
      } catch (org.apache.thrift.TException te) {
-
 
8106
        throw new java.io.IOException(te);
-
 
8107
      }
-
 
8108
    }
-
 
8109
 
-
 
8110
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8111
      try {
-
 
8112
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8113
      } catch (org.apache.thrift.TException te) {
-
 
8114
        throw new java.io.IOException(te);
-
 
8115
      }
-
 
8116
    }
-
 
8117
 
-
 
8118
  }
-
 
8119
 
-
 
8120
  public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
-
 
8121
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
-
 
8122
 
-
 
8123
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
8124
    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);
-
 
8125
 
-
 
8126
    private List<Long> success; // required
-
 
8127
    private LogisticsServiceException se; // required
-
 
8128
 
-
 
8129
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8130
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
8131
      SUCCESS((short)0, "success"),
-
 
8132
      SE((short)1, "se");
-
 
8133
 
-
 
8134
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8135
 
-
 
8136
      static {
-
 
8137
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8138
          byName.put(field.getFieldName(), field);
-
 
8139
        }
-
 
8140
      }
-
 
8141
 
-
 
8142
      /**
-
 
8143
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8144
       */
-
 
8145
      public static _Fields findByThriftId(int fieldId) {
-
 
8146
        switch(fieldId) {
-
 
8147
          case 0: // SUCCESS
-
 
8148
            return SUCCESS;
-
 
8149
          case 1: // SE
-
 
8150
            return SE;
-
 
8151
          default:
-
 
8152
            return null;
-
 
8153
        }
-
 
8154
      }
-
 
8155
 
-
 
8156
      /**
-
 
8157
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8158
       * if it is not found.
-
 
8159
       */
-
 
8160
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8161
        _Fields fields = findByThriftId(fieldId);
-
 
8162
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8163
        return fields;
-
 
8164
      }
-
 
8165
 
-
 
8166
      /**
-
 
8167
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8168
       */
-
 
8169
      public static _Fields findByName(String name) {
-
 
8170
        return byName.get(name);
-
 
8171
      }
-
 
8172
 
-
 
8173
      private final short _thriftId;
-
 
8174
      private final String _fieldName;
-
 
8175
 
-
 
8176
      _Fields(short thriftId, String fieldName) {
-
 
8177
        _thriftId = thriftId;
-
 
8178
        _fieldName = fieldName;
-
 
8179
      }
-
 
8180
 
-
 
8181
      public short getThriftFieldId() {
-
 
8182
        return _thriftId;
-
 
8183
      }
-
 
8184
 
-
 
8185
      public String getFieldName() {
-
 
8186
        return _fieldName;
-
 
8187
      }
-
 
8188
    }
-
 
8189
 
-
 
8190
    // isset id assignments
-
 
8191
 
-
 
8192
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
8193
    static {
-
 
8194
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8195
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8196
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
8197
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
8198
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8199
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
8200
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
8201
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
-
 
8202
    }
-
 
8203
 
-
 
8204
    public getEntityLogisticsEstimation_result() {
-
 
8205
    }
-
 
8206
 
-
 
8207
    public getEntityLogisticsEstimation_result(
-
 
8208
      List<Long> success,
-
 
8209
      LogisticsServiceException se)
-
 
8210
    {
-
 
8211
      this();
-
 
8212
      this.success = success;
-
 
8213
      this.se = se;
-
 
8214
    }
-
 
8215
 
-
 
8216
    /**
-
 
8217
     * Performs a deep copy on <i>other</i>.
-
 
8218
     */
-
 
8219
    public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
-
 
8220
      if (other.isSetSuccess()) {
-
 
8221
        List<Long> __this__success = new ArrayList<Long>();
-
 
8222
        for (Long other_element : other.success) {
-
 
8223
          __this__success.add(other_element);
-
 
8224
        }
-
 
8225
        this.success = __this__success;
-
 
8226
      }
-
 
8227
      if (other.isSetSe()) {
-
 
8228
        this.se = new LogisticsServiceException(other.se);
-
 
8229
      }
-
 
8230
    }
-
 
8231
 
-
 
8232
    public getEntityLogisticsEstimation_result deepCopy() {
-
 
8233
      return new getEntityLogisticsEstimation_result(this);
-
 
8234
    }
-
 
8235
 
-
 
8236
    @Override
-
 
8237
    public void clear() {
-
 
8238
      this.success = null;
-
 
8239
      this.se = null;
-
 
8240
    }
-
 
8241
 
-
 
8242
    public int getSuccessSize() {
-
 
8243
      return (this.success == null) ? 0 : this.success.size();
-
 
8244
    }
-
 
8245
 
-
 
8246
    public java.util.Iterator<Long> getSuccessIterator() {
-
 
8247
      return (this.success == null) ? null : this.success.iterator();
-
 
8248
    }
-
 
8249
 
-
 
8250
    public void addToSuccess(long elem) {
-
 
8251
      if (this.success == null) {
-
 
8252
        this.success = new ArrayList<Long>();
-
 
8253
      }
-
 
8254
      this.success.add(elem);
-
 
8255
    }
-
 
8256
 
-
 
8257
    public List<Long> getSuccess() {
-
 
8258
      return this.success;
-
 
8259
    }
-
 
8260
 
-
 
8261
    public void setSuccess(List<Long> success) {
-
 
8262
      this.success = success;
-
 
8263
    }
-
 
8264
 
-
 
8265
    public void unsetSuccess() {
-
 
8266
      this.success = null;
-
 
8267
    }
-
 
8268
 
-
 
8269
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
8270
    public boolean isSetSuccess() {
-
 
8271
      return this.success != null;
-
 
8272
    }
-
 
8273
 
-
 
8274
    public void setSuccessIsSet(boolean value) {
-
 
8275
      if (!value) {
-
 
8276
        this.success = null;
-
 
8277
      }
-
 
8278
    }
-
 
8279
 
-
 
8280
    public LogisticsServiceException getSe() {
-
 
8281
      return this.se;
-
 
8282
    }
-
 
8283
 
-
 
8284
    public void setSe(LogisticsServiceException se) {
-
 
8285
      this.se = se;
-
 
8286
    }
-
 
8287
 
-
 
8288
    public void unsetSe() {
-
 
8289
      this.se = null;
-
 
8290
    }
-
 
8291
 
-
 
8292
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
-
 
8293
    public boolean isSetSe() {
-
 
8294
      return this.se != null;
-
 
8295
    }
-
 
8296
 
-
 
8297
    public void setSeIsSet(boolean value) {
-
 
8298
      if (!value) {
-
 
8299
        this.se = null;
-
 
8300
      }
-
 
8301
    }
-
 
8302
 
-
 
8303
    public void setFieldValue(_Fields field, Object value) {
-
 
8304
      switch (field) {
-
 
8305
      case SUCCESS:
-
 
8306
        if (value == null) {
-
 
8307
          unsetSuccess();
-
 
8308
        } else {
-
 
8309
          setSuccess((List<Long>)value);
-
 
8310
        }
-
 
8311
        break;
-
 
8312
 
-
 
8313
      case SE:
-
 
8314
        if (value == null) {
-
 
8315
          unsetSe();
-
 
8316
        } else {
-
 
8317
          setSe((LogisticsServiceException)value);
-
 
8318
        }
-
 
8319
        break;
-
 
8320
 
-
 
8321
      }
-
 
8322
    }
-
 
8323
 
-
 
8324
    public Object getFieldValue(_Fields field) {
-
 
8325
      switch (field) {
-
 
8326
      case SUCCESS:
-
 
8327
        return getSuccess();
-
 
8328
 
-
 
8329
      case SE:
-
 
8330
        return getSe();
-
 
8331
 
-
 
8332
      }
-
 
8333
      throw new IllegalStateException();
-
 
8334
    }
-
 
8335
 
-
 
8336
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
8337
    public boolean isSet(_Fields field) {
-
 
8338
      if (field == null) {
-
 
8339
        throw new IllegalArgumentException();
-
 
8340
      }
-
 
8341
 
-
 
8342
      switch (field) {
-
 
8343
      case SUCCESS:
-
 
8344
        return isSetSuccess();
-
 
8345
      case SE:
-
 
8346
        return isSetSe();
-
 
8347
      }
-
 
8348
      throw new IllegalStateException();
-
 
8349
    }
-
 
8350
 
-
 
8351
    @Override
-
 
8352
    public boolean equals(Object that) {
-
 
8353
      if (that == null)
-
 
8354
        return false;
-
 
8355
      if (that instanceof getEntityLogisticsEstimation_result)
-
 
8356
        return this.equals((getEntityLogisticsEstimation_result)that);
-
 
8357
      return false;
-
 
8358
    }
-
 
8359
 
-
 
8360
    public boolean equals(getEntityLogisticsEstimation_result that) {
-
 
8361
      if (that == null)
-
 
8362
        return false;
-
 
8363
 
-
 
8364
      boolean this_present_success = true && this.isSetSuccess();
-
 
8365
      boolean that_present_success = true && that.isSetSuccess();
-
 
8366
      if (this_present_success || that_present_success) {
-
 
8367
        if (!(this_present_success && that_present_success))
-
 
8368
          return false;
-
 
8369
        if (!this.success.equals(that.success))
-
 
8370
          return false;
-
 
8371
      }
-
 
8372
 
-
 
8373
      boolean this_present_se = true && this.isSetSe();
-
 
8374
      boolean that_present_se = true && that.isSetSe();
-
 
8375
      if (this_present_se || that_present_se) {
-
 
8376
        if (!(this_present_se && that_present_se))
-
 
8377
          return false;
-
 
8378
        if (!this.se.equals(that.se))
-
 
8379
          return false;
-
 
8380
      }
-
 
8381
 
-
 
8382
      return true;
-
 
8383
    }
-
 
8384
 
-
 
8385
    @Override
-
 
8386
    public int hashCode() {
-
 
8387
      return 0;
-
 
8388
    }
-
 
8389
 
-
 
8390
    public int compareTo(getEntityLogisticsEstimation_result other) {
-
 
8391
      if (!getClass().equals(other.getClass())) {
-
 
8392
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8393
      }
-
 
8394
 
-
 
8395
      int lastComparison = 0;
-
 
8396
      getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
-
 
8397
 
-
 
8398
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
8399
      if (lastComparison != 0) {
-
 
8400
        return lastComparison;
-
 
8401
      }
-
 
8402
      if (isSetSuccess()) {
-
 
8403
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
8404
        if (lastComparison != 0) {
-
 
8405
          return lastComparison;
-
 
8406
        }
-
 
8407
      }
-
 
8408
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
-
 
8409
      if (lastComparison != 0) {
-
 
8410
        return lastComparison;
-
 
8411
      }
-
 
8412
      if (isSetSe()) {
-
 
8413
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
-
 
8414
        if (lastComparison != 0) {
-
 
8415
          return lastComparison;
-
 
8416
        }
-
 
8417
      }
-
 
8418
      return 0;
-
 
8419
    }
-
 
8420
 
-
 
8421
    public _Fields fieldForId(int fieldId) {
-
 
8422
      return _Fields.findByThriftId(fieldId);
-
 
8423
    }
-
 
8424
 
-
 
8425
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
8426
      org.apache.thrift.protocol.TField field;
-
 
8427
      iprot.readStructBegin();
-
 
8428
      while (true)
-
 
8429
      {
-
 
8430
        field = iprot.readFieldBegin();
-
 
8431
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
8432
          break;
-
 
8433
        }
-
 
8434
        switch (field.id) {
-
 
8435
          case 0: // SUCCESS
-
 
8436
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
8437
              {
-
 
8438
                org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();
-
 
8439
                this.success = new ArrayList<Long>(_list17.size);
-
 
8440
                for (int _i18 = 0; _i18 < _list17.size; ++_i18)
-
 
8441
                {
-
 
8442
                  long _elem19; // required
-
 
8443
                  _elem19 = iprot.readI64();
-
 
8444
                  this.success.add(_elem19);
-
 
8445
                }
-
 
8446
                iprot.readListEnd();
-
 
8447
              }
-
 
8448
            } else { 
-
 
8449
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8450
            }
-
 
8451
            break;
-
 
8452
          case 1: // SE
-
 
8453
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
8454
              this.se = new LogisticsServiceException();
-
 
8455
              this.se.read(iprot);
-
 
8456
            } else { 
-
 
8457
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8458
            }
-
 
8459
            break;
-
 
8460
          default:
-
 
8461
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8462
        }
-
 
8463
        iprot.readFieldEnd();
-
 
8464
      }
-
 
8465
      iprot.readStructEnd();
-
 
8466
      validate();
-
 
8467
    }
-
 
8468
 
-
 
8469
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
8470
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8471
 
-
 
8472
      if (this.isSetSuccess()) {
-
 
8473
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
8474
        {
-
 
8475
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
8476
          for (long _iter20 : this.success)
-
 
8477
          {
-
 
8478
            oprot.writeI64(_iter20);
-
 
8479
          }
-
 
8480
          oprot.writeListEnd();
-
 
8481
        }
-
 
8482
        oprot.writeFieldEnd();
-
 
8483
      } else if (this.isSetSe()) {
-
 
8484
        oprot.writeFieldBegin(SE_FIELD_DESC);
-
 
8485
        this.se.write(oprot);
-
 
8486
        oprot.writeFieldEnd();
-
 
8487
      }
-
 
8488
      oprot.writeFieldStop();
-
 
8489
      oprot.writeStructEnd();
-
 
8490
    }
-
 
8491
 
-
 
8492
    @Override
-
 
8493
    public String toString() {
-
 
8494
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
-
 
8495
      boolean first = true;
-
 
8496
 
-
 
8497
      sb.append("success:");
-
 
8498
      if (this.success == null) {
-
 
8499
        sb.append("null");
-
 
8500
      } else {
-
 
8501
        sb.append(this.success);
-
 
8502
      }
-
 
8503
      first = false;
-
 
8504
      if (!first) sb.append(", ");
-
 
8505
      sb.append("se:");
-
 
8506
      if (this.se == null) {
-
 
8507
        sb.append("null");
-
 
8508
      } else {
-
 
8509
        sb.append(this.se);
-
 
8510
      }
-
 
8511
      first = false;
-
 
8512
      sb.append(")");
-
 
8513
      return sb.toString();
-
 
8514
    }
7517
 
8515
 
7518
    public void validate() throws org.apache.thrift.TException {
8516
    public void validate() throws org.apache.thrift.TException {
7519
      // check for required fields
8517
      // check for required fields
7520
    }
8518
    }
7521
 
8519