Subversion Repositories SmartDukaan

Rev

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

Rev 4709 Rev 4712
Line 304... Line 304...
304
     * 
304
     * 
305
     * @param orderId
305
     * @param orderId
306
     */
306
     */
307
    public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
307
    public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, org.apache.thrift.TException;
308
 
308
 
-
 
309
    public void markOrderAsDelivered(long orderId, long deliveryTimestamp, String receiver) throws TransactionServiceException, org.apache.thrift.TException;
-
 
310
 
309
    /**
311
    /**
310
     * Once user raise the request for a DOA, order status will be changed from DELVIERY_SUCCESS to DOA_REQUEST_RECEIVED
312
     * Once user raise the request for a DOA, order status will be changed from DELVIERY_SUCCESS to DOA_REQUEST_RECEIVED
311
     * 
313
     * 
312
     * @param orderId
314
     * @param orderId
313
     */
315
     */
Line 770... Line 772...
770
 
772
 
771
    public void getUndeliveredOrders(long providerId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUndeliveredOrders_call> resultHandler) throws org.apache.thrift.TException;
773
    public void getUndeliveredOrders(long providerId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUndeliveredOrders_call> resultHandler) throws org.apache.thrift.TException;
772
 
774
 
773
    public void toggleDOAFlag(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.toggleDOAFlag_call> resultHandler) throws org.apache.thrift.TException;
775
    public void toggleDOAFlag(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.toggleDOAFlag_call> resultHandler) throws org.apache.thrift.TException;
774
 
776
 
-
 
777
    public void markOrderAsDelivered(long orderId, long deliveryTimestamp, String receiver, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderAsDelivered_call> resultHandler) throws org.apache.thrift.TException;
-
 
778
 
775
    public void markOrderDoaRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderDoaRequestReceived_call> resultHandler) throws org.apache.thrift.TException;
779
    public void markOrderDoaRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderDoaRequestReceived_call> resultHandler) throws org.apache.thrift.TException;
776
 
780
 
777
    public void markOrderDoaRequestAuthorized(long orderId, boolean isAuthorized, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderDoaRequestAuthorized_call> resultHandler) throws org.apache.thrift.TException;
781
    public void markOrderDoaRequestAuthorized(long orderId, boolean isAuthorized, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderDoaRequestAuthorized_call> resultHandler) throws org.apache.thrift.TException;
778
 
782
 
779
    public void markOrderReturnRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderReturnRequestReceived_call> resultHandler) throws org.apache.thrift.TException;
783
    public void markOrderReturnRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderReturnRequestReceived_call> resultHandler) throws org.apache.thrift.TException;
Line 1990... Line 1994...
1990
        throw result.ex;
1994
        throw result.ex;
1991
      }
1995
      }
1992
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "toggleDOAFlag failed: unknown result");
1996
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "toggleDOAFlag failed: unknown result");
1993
    }
1997
    }
1994
 
1998
 
-
 
1999
    public void markOrderAsDelivered(long orderId, long deliveryTimestamp, String receiver) throws TransactionServiceException, org.apache.thrift.TException
-
 
2000
    {
-
 
2001
      send_markOrderAsDelivered(orderId, deliveryTimestamp, receiver);
-
 
2002
      recv_markOrderAsDelivered();
-
 
2003
    }
-
 
2004
 
-
 
2005
    public void send_markOrderAsDelivered(long orderId, long deliveryTimestamp, String receiver) throws org.apache.thrift.TException
-
 
2006
    {
-
 
2007
      markOrderAsDelivered_args args = new markOrderAsDelivered_args();
-
 
2008
      args.setOrderId(orderId);
-
 
2009
      args.setDeliveryTimestamp(deliveryTimestamp);
-
 
2010
      args.setReceiver(receiver);
-
 
2011
      sendBase("markOrderAsDelivered", args);
-
 
2012
    }
-
 
2013
 
-
 
2014
    public void recv_markOrderAsDelivered() throws TransactionServiceException, org.apache.thrift.TException
-
 
2015
    {
-
 
2016
      markOrderAsDelivered_result result = new markOrderAsDelivered_result();
-
 
2017
      receiveBase(result, "markOrderAsDelivered");
-
 
2018
      if (result.ex != null) {
-
 
2019
        throw result.ex;
-
 
2020
      }
-
 
2021
      return;
-
 
2022
    }
-
 
2023
 
1995
    public boolean markOrderDoaRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException
2024
    public boolean markOrderDoaRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException
1996
    {
2025
    {
1997
      send_markOrderDoaRequestReceived(orderId);
2026
      send_markOrderDoaRequestReceived(orderId);
1998
      return recv_markOrderDoaRequestReceived();
2027
      return recv_markOrderDoaRequestReceived();
1999
    }
2028
    }
Line 4753... Line 4782...
4753
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4782
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4754
        return (new Client(prot)).recv_toggleDOAFlag();
4783
        return (new Client(prot)).recv_toggleDOAFlag();
4755
      }
4784
      }
4756
    }
4785
    }
4757
 
4786
 
-
 
4787
    public void markOrderAsDelivered(long orderId, long deliveryTimestamp, String receiver, org.apache.thrift.async.AsyncMethodCallback<markOrderAsDelivered_call> resultHandler) throws org.apache.thrift.TException {
-
 
4788
      checkReady();
-
 
4789
      markOrderAsDelivered_call method_call = new markOrderAsDelivered_call(orderId, deliveryTimestamp, receiver, resultHandler, this, ___protocolFactory, ___transport);
-
 
4790
      this.___currentMethod = method_call;
-
 
4791
      ___manager.call(method_call);
-
 
4792
    }
-
 
4793
 
-
 
4794
    public static class markOrderAsDelivered_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4795
      private long orderId;
-
 
4796
      private long deliveryTimestamp;
-
 
4797
      private String receiver;
-
 
4798
      public markOrderAsDelivered_call(long orderId, long deliveryTimestamp, String receiver, org.apache.thrift.async.AsyncMethodCallback<markOrderAsDelivered_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 {
-
 
4799
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4800
        this.orderId = orderId;
-
 
4801
        this.deliveryTimestamp = deliveryTimestamp;
-
 
4802
        this.receiver = receiver;
-
 
4803
      }
-
 
4804
 
-
 
4805
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4806
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderAsDelivered", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4807
        markOrderAsDelivered_args args = new markOrderAsDelivered_args();
-
 
4808
        args.setOrderId(orderId);
-
 
4809
        args.setDeliveryTimestamp(deliveryTimestamp);
-
 
4810
        args.setReceiver(receiver);
-
 
4811
        args.write(prot);
-
 
4812
        prot.writeMessageEnd();
-
 
4813
      }
-
 
4814
 
-
 
4815
      public void getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
4816
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4817
          throw new IllegalStateException("Method call not finished!");
-
 
4818
        }
-
 
4819
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4820
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4821
        (new Client(prot)).recv_markOrderAsDelivered();
-
 
4822
      }
-
 
4823
    }
-
 
4824
 
4758
    public void markOrderDoaRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderDoaRequestReceived_call> resultHandler) throws org.apache.thrift.TException {
4825
    public void markOrderDoaRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderDoaRequestReceived_call> resultHandler) throws org.apache.thrift.TException {
4759
      checkReady();
4826
      checkReady();
4760
      markOrderDoaRequestReceived_call method_call = new markOrderDoaRequestReceived_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
4827
      markOrderDoaRequestReceived_call method_call = new markOrderDoaRequestReceived_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
4761
      this.___currentMethod = method_call;
4828
      this.___currentMethod = method_call;
4762
      ___manager.call(method_call);
4829
      ___manager.call(method_call);
Line 6523... Line 6590...
6523
      processMap.put("markOrdersAsDelivered", new markOrdersAsDelivered());
6590
      processMap.put("markOrdersAsDelivered", new markOrdersAsDelivered());
6524
      processMap.put("markOrdersAsFailed", new markOrdersAsFailed());
6591
      processMap.put("markOrdersAsFailed", new markOrdersAsFailed());
6525
      processMap.put("updateNonDeliveryReason", new updateNonDeliveryReason());
6592
      processMap.put("updateNonDeliveryReason", new updateNonDeliveryReason());
6526
      processMap.put("getUndeliveredOrders", new getUndeliveredOrders());
6593
      processMap.put("getUndeliveredOrders", new getUndeliveredOrders());
6527
      processMap.put("toggleDOAFlag", new toggleDOAFlag());
6594
      processMap.put("toggleDOAFlag", new toggleDOAFlag());
-
 
6595
      processMap.put("markOrderAsDelivered", new markOrderAsDelivered());
6528
      processMap.put("markOrderDoaRequestReceived", new markOrderDoaRequestReceived());
6596
      processMap.put("markOrderDoaRequestReceived", new markOrderDoaRequestReceived());
6529
      processMap.put("markOrderDoaRequestAuthorized", new markOrderDoaRequestAuthorized());
6597
      processMap.put("markOrderDoaRequestAuthorized", new markOrderDoaRequestAuthorized());
6530
      processMap.put("markOrderReturnRequestReceived", new markOrderReturnRequestReceived());
6598
      processMap.put("markOrderReturnRequestReceived", new markOrderReturnRequestReceived());
6531
      processMap.put("markOrderReturnRequestAuthorized", new markOrderReturnRequestAuthorized());
6599
      processMap.put("markOrderReturnRequestAuthorized", new markOrderReturnRequestAuthorized());
6532
      processMap.put("requestPickupNumber", new requestPickupNumber());
6600
      processMap.put("requestPickupNumber", new requestPickupNumber());
Line 7398... Line 7466...
7398
        }
7466
        }
7399
        return result;
7467
        return result;
7400
      }
7468
      }
7401
    }
7469
    }
7402
 
7470
 
-
 
7471
    private static class markOrderAsDelivered<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderAsDelivered_args> {
-
 
7472
      public markOrderAsDelivered() {
-
 
7473
        super("markOrderAsDelivered");
-
 
7474
      }
-
 
7475
 
-
 
7476
      protected markOrderAsDelivered_args getEmptyArgsInstance() {
-
 
7477
        return new markOrderAsDelivered_args();
-
 
7478
      }
-
 
7479
 
-
 
7480
      protected markOrderAsDelivered_result getResult(I iface, markOrderAsDelivered_args args) throws org.apache.thrift.TException {
-
 
7481
        markOrderAsDelivered_result result = new markOrderAsDelivered_result();
-
 
7482
        try {
-
 
7483
          iface.markOrderAsDelivered(args.orderId, args.deliveryTimestamp, args.receiver);
-
 
7484
        } catch (TransactionServiceException ex) {
-
 
7485
          result.ex = ex;
-
 
7486
        }
-
 
7487
        return result;
-
 
7488
      }
-
 
7489
    }
-
 
7490
 
7403
    private static class markOrderDoaRequestReceived<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderDoaRequestReceived_args> {
7491
    private static class markOrderDoaRequestReceived<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderDoaRequestReceived_args> {
7404
      public markOrderDoaRequestReceived() {
7492
      public markOrderDoaRequestReceived() {
7405
        super("markOrderDoaRequestReceived");
7493
        super("markOrderDoaRequestReceived");
7406
      }
7494
      }
7407
 
7495
 
Line 40519... Line 40607...
40519
      sb.append("ex:");
40607
      sb.append("ex:");
40520
      if (this.ex == null) {
40608
      if (this.ex == null) {
40521
        sb.append("null");
40609
        sb.append("null");
40522
      } else {
40610
      } else {
40523
        sb.append(this.ex);
40611
        sb.append(this.ex);
-
 
40612
      }
-
 
40613
      first = false;
-
 
40614
      sb.append(")");
-
 
40615
      return sb.toString();
-
 
40616
    }
-
 
40617
 
-
 
40618
    public void validate() throws org.apache.thrift.TException {
-
 
40619
      // check for required fields
-
 
40620
    }
-
 
40621
 
-
 
40622
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
40623
      try {
-
 
40624
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
40625
      } catch (org.apache.thrift.TException te) {
-
 
40626
        throw new java.io.IOException(te);
-
 
40627
      }
-
 
40628
    }
-
 
40629
 
-
 
40630
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
40631
      try {
-
 
40632
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
40633
      } catch (org.apache.thrift.TException te) {
-
 
40634
        throw new java.io.IOException(te);
-
 
40635
      }
-
 
40636
    }
-
 
40637
 
-
 
40638
  }
-
 
40639
 
-
 
40640
  public static class markOrderAsDelivered_args implements org.apache.thrift.TBase<markOrderAsDelivered_args, markOrderAsDelivered_args._Fields>, java.io.Serializable, Cloneable   {
-
 
40641
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsDelivered_args");
-
 
40642
 
-
 
40643
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
40644
    private static final org.apache.thrift.protocol.TField DELIVERY_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("deliveryTimestamp", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
40645
    private static final org.apache.thrift.protocol.TField RECEIVER_FIELD_DESC = new org.apache.thrift.protocol.TField("receiver", org.apache.thrift.protocol.TType.STRING, (short)-1);
-
 
40646
 
-
 
40647
    private long orderId; // required
-
 
40648
    private long deliveryTimestamp; // required
-
 
40649
    private String receiver; // required
-
 
40650
 
-
 
40651
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
40652
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
40653
      ORDER_ID((short)1, "orderId"),
-
 
40654
      DELIVERY_TIMESTAMP((short)2, "deliveryTimestamp"),
-
 
40655
      RECEIVER((short)-1, "receiver");
-
 
40656
 
-
 
40657
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
40658
 
-
 
40659
      static {
-
 
40660
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
40661
          byName.put(field.getFieldName(), field);
-
 
40662
        }
-
 
40663
      }
-
 
40664
 
-
 
40665
      /**
-
 
40666
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
40667
       */
-
 
40668
      public static _Fields findByThriftId(int fieldId) {
-
 
40669
        switch(fieldId) {
-
 
40670
          case 1: // ORDER_ID
-
 
40671
            return ORDER_ID;
-
 
40672
          case 2: // DELIVERY_TIMESTAMP
-
 
40673
            return DELIVERY_TIMESTAMP;
-
 
40674
          case -1: // RECEIVER
-
 
40675
            return RECEIVER;
-
 
40676
          default:
-
 
40677
            return null;
-
 
40678
        }
-
 
40679
      }
-
 
40680
 
-
 
40681
      /**
-
 
40682
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
40683
       * if it is not found.
-
 
40684
       */
-
 
40685
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
40686
        _Fields fields = findByThriftId(fieldId);
-
 
40687
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
40688
        return fields;
-
 
40689
      }
-
 
40690
 
-
 
40691
      /**
-
 
40692
       * Find the _Fields constant that matches name, or null if its not found.
-
 
40693
       */
-
 
40694
      public static _Fields findByName(String name) {
-
 
40695
        return byName.get(name);
-
 
40696
      }
-
 
40697
 
-
 
40698
      private final short _thriftId;
-
 
40699
      private final String _fieldName;
-
 
40700
 
-
 
40701
      _Fields(short thriftId, String fieldName) {
-
 
40702
        _thriftId = thriftId;
-
 
40703
        _fieldName = fieldName;
-
 
40704
      }
-
 
40705
 
-
 
40706
      public short getThriftFieldId() {
-
 
40707
        return _thriftId;
-
 
40708
      }
-
 
40709
 
-
 
40710
      public String getFieldName() {
-
 
40711
        return _fieldName;
-
 
40712
      }
-
 
40713
    }
-
 
40714
 
-
 
40715
    // isset id assignments
-
 
40716
    private static final int __ORDERID_ISSET_ID = 0;
-
 
40717
    private static final int __DELIVERYTIMESTAMP_ISSET_ID = 1;
-
 
40718
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
40719
 
-
 
40720
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
40721
    static {
-
 
40722
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
40723
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
40724
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
40725
      tmpMap.put(_Fields.DELIVERY_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("deliveryTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
40726
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
40727
      tmpMap.put(_Fields.RECEIVER, new org.apache.thrift.meta_data.FieldMetaData("receiver", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
40728
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
40729
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
40730
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsDelivered_args.class, metaDataMap);
-
 
40731
    }
-
 
40732
 
-
 
40733
    public markOrderAsDelivered_args() {
-
 
40734
    }
-
 
40735
 
-
 
40736
    public markOrderAsDelivered_args(
-
 
40737
      long orderId,
-
 
40738
      long deliveryTimestamp,
-
 
40739
      String receiver)
-
 
40740
    {
-
 
40741
      this();
-
 
40742
      this.orderId = orderId;
-
 
40743
      setOrderIdIsSet(true);
-
 
40744
      this.deliveryTimestamp = deliveryTimestamp;
-
 
40745
      setDeliveryTimestampIsSet(true);
-
 
40746
      this.receiver = receiver;
-
 
40747
    }
-
 
40748
 
-
 
40749
    /**
-
 
40750
     * Performs a deep copy on <i>other</i>.
-
 
40751
     */
-
 
40752
    public markOrderAsDelivered_args(markOrderAsDelivered_args other) {
-
 
40753
      __isset_bit_vector.clear();
-
 
40754
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
40755
      this.orderId = other.orderId;
-
 
40756
      this.deliveryTimestamp = other.deliveryTimestamp;
-
 
40757
      if (other.isSetReceiver()) {
-
 
40758
        this.receiver = other.receiver;
-
 
40759
      }
-
 
40760
    }
-
 
40761
 
-
 
40762
    public markOrderAsDelivered_args deepCopy() {
-
 
40763
      return new markOrderAsDelivered_args(this);
-
 
40764
    }
-
 
40765
 
-
 
40766
    @Override
-
 
40767
    public void clear() {
-
 
40768
      setOrderIdIsSet(false);
-
 
40769
      this.orderId = 0;
-
 
40770
      setDeliveryTimestampIsSet(false);
-
 
40771
      this.deliveryTimestamp = 0;
-
 
40772
      this.receiver = null;
-
 
40773
    }
-
 
40774
 
-
 
40775
    public long getOrderId() {
-
 
40776
      return this.orderId;
-
 
40777
    }
-
 
40778
 
-
 
40779
    public void setOrderId(long orderId) {
-
 
40780
      this.orderId = orderId;
-
 
40781
      setOrderIdIsSet(true);
-
 
40782
    }
-
 
40783
 
-
 
40784
    public void unsetOrderId() {
-
 
40785
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
40786
    }
-
 
40787
 
-
 
40788
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
40789
    public boolean isSetOrderId() {
-
 
40790
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
40791
    }
-
 
40792
 
-
 
40793
    public void setOrderIdIsSet(boolean value) {
-
 
40794
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
40795
    }
-
 
40796
 
-
 
40797
    public long getDeliveryTimestamp() {
-
 
40798
      return this.deliveryTimestamp;
-
 
40799
    }
-
 
40800
 
-
 
40801
    public void setDeliveryTimestamp(long deliveryTimestamp) {
-
 
40802
      this.deliveryTimestamp = deliveryTimestamp;
-
 
40803
      setDeliveryTimestampIsSet(true);
-
 
40804
    }
-
 
40805
 
-
 
40806
    public void unsetDeliveryTimestamp() {
-
 
40807
      __isset_bit_vector.clear(__DELIVERYTIMESTAMP_ISSET_ID);
-
 
40808
    }
-
 
40809
 
-
 
40810
    /** Returns true if field deliveryTimestamp is set (has been assigned a value) and false otherwise */
-
 
40811
    public boolean isSetDeliveryTimestamp() {
-
 
40812
      return __isset_bit_vector.get(__DELIVERYTIMESTAMP_ISSET_ID);
-
 
40813
    }
-
 
40814
 
-
 
40815
    public void setDeliveryTimestampIsSet(boolean value) {
-
 
40816
      __isset_bit_vector.set(__DELIVERYTIMESTAMP_ISSET_ID, value);
-
 
40817
    }
-
 
40818
 
-
 
40819
    public String getReceiver() {
-
 
40820
      return this.receiver;
-
 
40821
    }
-
 
40822
 
-
 
40823
    public void setReceiver(String receiver) {
-
 
40824
      this.receiver = receiver;
-
 
40825
    }
-
 
40826
 
-
 
40827
    public void unsetReceiver() {
-
 
40828
      this.receiver = null;
-
 
40829
    }
-
 
40830
 
-
 
40831
    /** Returns true if field receiver is set (has been assigned a value) and false otherwise */
-
 
40832
    public boolean isSetReceiver() {
-
 
40833
      return this.receiver != null;
-
 
40834
    }
-
 
40835
 
-
 
40836
    public void setReceiverIsSet(boolean value) {
-
 
40837
      if (!value) {
-
 
40838
        this.receiver = null;
-
 
40839
      }
-
 
40840
    }
-
 
40841
 
-
 
40842
    public void setFieldValue(_Fields field, Object value) {
-
 
40843
      switch (field) {
-
 
40844
      case ORDER_ID:
-
 
40845
        if (value == null) {
-
 
40846
          unsetOrderId();
-
 
40847
        } else {
-
 
40848
          setOrderId((Long)value);
-
 
40849
        }
-
 
40850
        break;
-
 
40851
 
-
 
40852
      case DELIVERY_TIMESTAMP:
-
 
40853
        if (value == null) {
-
 
40854
          unsetDeliveryTimestamp();
-
 
40855
        } else {
-
 
40856
          setDeliveryTimestamp((Long)value);
-
 
40857
        }
-
 
40858
        break;
-
 
40859
 
-
 
40860
      case RECEIVER:
-
 
40861
        if (value == null) {
-
 
40862
          unsetReceiver();
-
 
40863
        } else {
-
 
40864
          setReceiver((String)value);
-
 
40865
        }
-
 
40866
        break;
-
 
40867
 
-
 
40868
      }
-
 
40869
    }
-
 
40870
 
-
 
40871
    public Object getFieldValue(_Fields field) {
-
 
40872
      switch (field) {
-
 
40873
      case ORDER_ID:
-
 
40874
        return Long.valueOf(getOrderId());
-
 
40875
 
-
 
40876
      case DELIVERY_TIMESTAMP:
-
 
40877
        return Long.valueOf(getDeliveryTimestamp());
-
 
40878
 
-
 
40879
      case RECEIVER:
-
 
40880
        return getReceiver();
-
 
40881
 
-
 
40882
      }
-
 
40883
      throw new IllegalStateException();
-
 
40884
    }
-
 
40885
 
-
 
40886
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
40887
    public boolean isSet(_Fields field) {
-
 
40888
      if (field == null) {
-
 
40889
        throw new IllegalArgumentException();
-
 
40890
      }
-
 
40891
 
-
 
40892
      switch (field) {
-
 
40893
      case ORDER_ID:
-
 
40894
        return isSetOrderId();
-
 
40895
      case DELIVERY_TIMESTAMP:
-
 
40896
        return isSetDeliveryTimestamp();
-
 
40897
      case RECEIVER:
-
 
40898
        return isSetReceiver();
-
 
40899
      }
-
 
40900
      throw new IllegalStateException();
-
 
40901
    }
-
 
40902
 
-
 
40903
    @Override
-
 
40904
    public boolean equals(Object that) {
-
 
40905
      if (that == null)
-
 
40906
        return false;
-
 
40907
      if (that instanceof markOrderAsDelivered_args)
-
 
40908
        return this.equals((markOrderAsDelivered_args)that);
-
 
40909
      return false;
-
 
40910
    }
-
 
40911
 
-
 
40912
    public boolean equals(markOrderAsDelivered_args that) {
-
 
40913
      if (that == null)
-
 
40914
        return false;
-
 
40915
 
-
 
40916
      boolean this_present_orderId = true;
-
 
40917
      boolean that_present_orderId = true;
-
 
40918
      if (this_present_orderId || that_present_orderId) {
-
 
40919
        if (!(this_present_orderId && that_present_orderId))
-
 
40920
          return false;
-
 
40921
        if (this.orderId != that.orderId)
-
 
40922
          return false;
-
 
40923
      }
-
 
40924
 
-
 
40925
      boolean this_present_deliveryTimestamp = true;
-
 
40926
      boolean that_present_deliveryTimestamp = true;
-
 
40927
      if (this_present_deliveryTimestamp || that_present_deliveryTimestamp) {
-
 
40928
        if (!(this_present_deliveryTimestamp && that_present_deliveryTimestamp))
-
 
40929
          return false;
-
 
40930
        if (this.deliveryTimestamp != that.deliveryTimestamp)
-
 
40931
          return false;
-
 
40932
      }
-
 
40933
 
-
 
40934
      boolean this_present_receiver = true && this.isSetReceiver();
-
 
40935
      boolean that_present_receiver = true && that.isSetReceiver();
-
 
40936
      if (this_present_receiver || that_present_receiver) {
-
 
40937
        if (!(this_present_receiver && that_present_receiver))
-
 
40938
          return false;
-
 
40939
        if (!this.receiver.equals(that.receiver))
-
 
40940
          return false;
-
 
40941
      }
-
 
40942
 
-
 
40943
      return true;
-
 
40944
    }
-
 
40945
 
-
 
40946
    @Override
-
 
40947
    public int hashCode() {
-
 
40948
      return 0;
-
 
40949
    }
-
 
40950
 
-
 
40951
    public int compareTo(markOrderAsDelivered_args other) {
-
 
40952
      if (!getClass().equals(other.getClass())) {
-
 
40953
        return getClass().getName().compareTo(other.getClass().getName());
-
 
40954
      }
-
 
40955
 
-
 
40956
      int lastComparison = 0;
-
 
40957
      markOrderAsDelivered_args typedOther = (markOrderAsDelivered_args)other;
-
 
40958
 
-
 
40959
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
40960
      if (lastComparison != 0) {
-
 
40961
        return lastComparison;
-
 
40962
      }
-
 
40963
      if (isSetOrderId()) {
-
 
40964
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
40965
        if (lastComparison != 0) {
-
 
40966
          return lastComparison;
-
 
40967
        }
-
 
40968
      }
-
 
40969
      lastComparison = Boolean.valueOf(isSetDeliveryTimestamp()).compareTo(typedOther.isSetDeliveryTimestamp());
-
 
40970
      if (lastComparison != 0) {
-
 
40971
        return lastComparison;
-
 
40972
      }
-
 
40973
      if (isSetDeliveryTimestamp()) {
-
 
40974
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deliveryTimestamp, typedOther.deliveryTimestamp);
-
 
40975
        if (lastComparison != 0) {
-
 
40976
          return lastComparison;
-
 
40977
        }
-
 
40978
      }
-
 
40979
      lastComparison = Boolean.valueOf(isSetReceiver()).compareTo(typedOther.isSetReceiver());
-
 
40980
      if (lastComparison != 0) {
-
 
40981
        return lastComparison;
-
 
40982
      }
-
 
40983
      if (isSetReceiver()) {
-
 
40984
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.receiver, typedOther.receiver);
-
 
40985
        if (lastComparison != 0) {
-
 
40986
          return lastComparison;
-
 
40987
        }
-
 
40988
      }
-
 
40989
      return 0;
-
 
40990
    }
-
 
40991
 
-
 
40992
    public _Fields fieldForId(int fieldId) {
-
 
40993
      return _Fields.findByThriftId(fieldId);
-
 
40994
    }
-
 
40995
 
-
 
40996
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
40997
      org.apache.thrift.protocol.TField field;
-
 
40998
      iprot.readStructBegin();
-
 
40999
      while (true)
-
 
41000
      {
-
 
41001
        field = iprot.readFieldBegin();
-
 
41002
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
41003
          break;
-
 
41004
        }
-
 
41005
        switch (field.id) {
-
 
41006
          case 1: // ORDER_ID
-
 
41007
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
41008
              this.orderId = iprot.readI64();
-
 
41009
              setOrderIdIsSet(true);
-
 
41010
            } else { 
-
 
41011
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
41012
            }
-
 
41013
            break;
-
 
41014
          case 2: // DELIVERY_TIMESTAMP
-
 
41015
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
41016
              this.deliveryTimestamp = iprot.readI64();
-
 
41017
              setDeliveryTimestampIsSet(true);
-
 
41018
            } else { 
-
 
41019
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
41020
            }
-
 
41021
            break;
-
 
41022
          case -1: // RECEIVER
-
 
41023
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
41024
              this.receiver = iprot.readString();
-
 
41025
            } else { 
-
 
41026
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
41027
            }
-
 
41028
            break;
-
 
41029
          default:
-
 
41030
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
41031
        }
-
 
41032
        iprot.readFieldEnd();
-
 
41033
      }
-
 
41034
      iprot.readStructEnd();
-
 
41035
      validate();
-
 
41036
    }
-
 
41037
 
-
 
41038
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
41039
      validate();
-
 
41040
 
-
 
41041
      oprot.writeStructBegin(STRUCT_DESC);
-
 
41042
      if (this.receiver != null) {
-
 
41043
        oprot.writeFieldBegin(RECEIVER_FIELD_DESC);
-
 
41044
        oprot.writeString(this.receiver);
-
 
41045
        oprot.writeFieldEnd();
-
 
41046
      }
-
 
41047
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
41048
      oprot.writeI64(this.orderId);
-
 
41049
      oprot.writeFieldEnd();
-
 
41050
      oprot.writeFieldBegin(DELIVERY_TIMESTAMP_FIELD_DESC);
-
 
41051
      oprot.writeI64(this.deliveryTimestamp);
-
 
41052
      oprot.writeFieldEnd();
-
 
41053
      oprot.writeFieldStop();
-
 
41054
      oprot.writeStructEnd();
-
 
41055
    }
-
 
41056
 
-
 
41057
    @Override
-
 
41058
    public String toString() {
-
 
41059
      StringBuilder sb = new StringBuilder("markOrderAsDelivered_args(");
-
 
41060
      boolean first = true;
-
 
41061
 
-
 
41062
      sb.append("orderId:");
-
 
41063
      sb.append(this.orderId);
-
 
41064
      first = false;
-
 
41065
      if (!first) sb.append(", ");
-
 
41066
      sb.append("deliveryTimestamp:");
-
 
41067
      sb.append(this.deliveryTimestamp);
-
 
41068
      first = false;
-
 
41069
      if (!first) sb.append(", ");
-
 
41070
      sb.append("receiver:");
-
 
41071
      if (this.receiver == null) {
-
 
41072
        sb.append("null");
-
 
41073
      } else {
-
 
41074
        sb.append(this.receiver);
-
 
41075
      }
-
 
41076
      first = false;
-
 
41077
      sb.append(")");
-
 
41078
      return sb.toString();
-
 
41079
    }
-
 
41080
 
-
 
41081
    public void validate() throws org.apache.thrift.TException {
-
 
41082
      // check for required fields
-
 
41083
    }
-
 
41084
 
-
 
41085
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
41086
      try {
-
 
41087
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
41088
      } catch (org.apache.thrift.TException te) {
-
 
41089
        throw new java.io.IOException(te);
-
 
41090
      }
-
 
41091
    }
-
 
41092
 
-
 
41093
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
41094
      try {
-
 
41095
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
41096
        __isset_bit_vector = new BitSet(1);
-
 
41097
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
41098
      } catch (org.apache.thrift.TException te) {
-
 
41099
        throw new java.io.IOException(te);
-
 
41100
      }
-
 
41101
    }
-
 
41102
 
-
 
41103
  }
-
 
41104
 
-
 
41105
  public static class markOrderAsDelivered_result implements org.apache.thrift.TBase<markOrderAsDelivered_result, markOrderAsDelivered_result._Fields>, java.io.Serializable, Cloneable   {
-
 
41106
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsDelivered_result");
-
 
41107
 
-
 
41108
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
41109
 
-
 
41110
    private TransactionServiceException ex; // required
-
 
41111
 
-
 
41112
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
41113
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
41114
      EX((short)1, "ex");
-
 
41115
 
-
 
41116
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
41117
 
-
 
41118
      static {
-
 
41119
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
41120
          byName.put(field.getFieldName(), field);
-
 
41121
        }
-
 
41122
      }
-
 
41123
 
-
 
41124
      /**
-
 
41125
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
41126
       */
-
 
41127
      public static _Fields findByThriftId(int fieldId) {
-
 
41128
        switch(fieldId) {
-
 
41129
          case 1: // EX
-
 
41130
            return EX;
-
 
41131
          default:
-
 
41132
            return null;
-
 
41133
        }
-
 
41134
      }
-
 
41135
 
-
 
41136
      /**
-
 
41137
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
41138
       * if it is not found.
-
 
41139
       */
-
 
41140
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
41141
        _Fields fields = findByThriftId(fieldId);
-
 
41142
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
41143
        return fields;
-
 
41144
      }
-
 
41145
 
-
 
41146
      /**
-
 
41147
       * Find the _Fields constant that matches name, or null if its not found.
-
 
41148
       */
-
 
41149
      public static _Fields findByName(String name) {
-
 
41150
        return byName.get(name);
-
 
41151
      }
-
 
41152
 
-
 
41153
      private final short _thriftId;
-
 
41154
      private final String _fieldName;
-
 
41155
 
-
 
41156
      _Fields(short thriftId, String fieldName) {
-
 
41157
        _thriftId = thriftId;
-
 
41158
        _fieldName = fieldName;
-
 
41159
      }
-
 
41160
 
-
 
41161
      public short getThriftFieldId() {
-
 
41162
        return _thriftId;
-
 
41163
      }
-
 
41164
 
-
 
41165
      public String getFieldName() {
-
 
41166
        return _fieldName;
-
 
41167
      }
-
 
41168
    }
-
 
41169
 
-
 
41170
    // isset id assignments
-
 
41171
 
-
 
41172
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
41173
    static {
-
 
41174
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
41175
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
41176
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
41177
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
41178
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsDelivered_result.class, metaDataMap);
-
 
41179
    }
-
 
41180
 
-
 
41181
    public markOrderAsDelivered_result() {
-
 
41182
    }
-
 
41183
 
-
 
41184
    public markOrderAsDelivered_result(
-
 
41185
      TransactionServiceException ex)
-
 
41186
    {
-
 
41187
      this();
-
 
41188
      this.ex = ex;
-
 
41189
    }
-
 
41190
 
-
 
41191
    /**
-
 
41192
     * Performs a deep copy on <i>other</i>.
-
 
41193
     */
-
 
41194
    public markOrderAsDelivered_result(markOrderAsDelivered_result other) {
-
 
41195
      if (other.isSetEx()) {
-
 
41196
        this.ex = new TransactionServiceException(other.ex);
-
 
41197
      }
-
 
41198
    }
-
 
41199
 
-
 
41200
    public markOrderAsDelivered_result deepCopy() {
-
 
41201
      return new markOrderAsDelivered_result(this);
-
 
41202
    }
-
 
41203
 
-
 
41204
    @Override
-
 
41205
    public void clear() {
-
 
41206
      this.ex = null;
-
 
41207
    }
-
 
41208
 
-
 
41209
    public TransactionServiceException getEx() {
-
 
41210
      return this.ex;
-
 
41211
    }
-
 
41212
 
-
 
41213
    public void setEx(TransactionServiceException ex) {
-
 
41214
      this.ex = ex;
-
 
41215
    }
-
 
41216
 
-
 
41217
    public void unsetEx() {
-
 
41218
      this.ex = null;
-
 
41219
    }
-
 
41220
 
-
 
41221
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
41222
    public boolean isSetEx() {
-
 
41223
      return this.ex != null;
-
 
41224
    }
-
 
41225
 
-
 
41226
    public void setExIsSet(boolean value) {
-
 
41227
      if (!value) {
-
 
41228
        this.ex = null;
-
 
41229
      }
-
 
41230
    }
-
 
41231
 
-
 
41232
    public void setFieldValue(_Fields field, Object value) {
-
 
41233
      switch (field) {
-
 
41234
      case EX:
-
 
41235
        if (value == null) {
-
 
41236
          unsetEx();
-
 
41237
        } else {
-
 
41238
          setEx((TransactionServiceException)value);
-
 
41239
        }
-
 
41240
        break;
-
 
41241
 
-
 
41242
      }
-
 
41243
    }
-
 
41244
 
-
 
41245
    public Object getFieldValue(_Fields field) {
-
 
41246
      switch (field) {
-
 
41247
      case EX:
-
 
41248
        return getEx();
-
 
41249
 
-
 
41250
      }
-
 
41251
      throw new IllegalStateException();
-
 
41252
    }
-
 
41253
 
-
 
41254
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
41255
    public boolean isSet(_Fields field) {
-
 
41256
      if (field == null) {
-
 
41257
        throw new IllegalArgumentException();
-
 
41258
      }
-
 
41259
 
-
 
41260
      switch (field) {
-
 
41261
      case EX:
-
 
41262
        return isSetEx();
-
 
41263
      }
-
 
41264
      throw new IllegalStateException();
-
 
41265
    }
-
 
41266
 
-
 
41267
    @Override
-
 
41268
    public boolean equals(Object that) {
-
 
41269
      if (that == null)
-
 
41270
        return false;
-
 
41271
      if (that instanceof markOrderAsDelivered_result)
-
 
41272
        return this.equals((markOrderAsDelivered_result)that);
-
 
41273
      return false;
-
 
41274
    }
-
 
41275
 
-
 
41276
    public boolean equals(markOrderAsDelivered_result that) {
-
 
41277
      if (that == null)
-
 
41278
        return false;
-
 
41279
 
-
 
41280
      boolean this_present_ex = true && this.isSetEx();
-
 
41281
      boolean that_present_ex = true && that.isSetEx();
-
 
41282
      if (this_present_ex || that_present_ex) {
-
 
41283
        if (!(this_present_ex && that_present_ex))
-
 
41284
          return false;
-
 
41285
        if (!this.ex.equals(that.ex))
-
 
41286
          return false;
-
 
41287
      }
-
 
41288
 
-
 
41289
      return true;
-
 
41290
    }
-
 
41291
 
-
 
41292
    @Override
-
 
41293
    public int hashCode() {
-
 
41294
      return 0;
-
 
41295
    }
-
 
41296
 
-
 
41297
    public int compareTo(markOrderAsDelivered_result other) {
-
 
41298
      if (!getClass().equals(other.getClass())) {
-
 
41299
        return getClass().getName().compareTo(other.getClass().getName());
-
 
41300
      }
-
 
41301
 
-
 
41302
      int lastComparison = 0;
-
 
41303
      markOrderAsDelivered_result typedOther = (markOrderAsDelivered_result)other;
-
 
41304
 
-
 
41305
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
41306
      if (lastComparison != 0) {
-
 
41307
        return lastComparison;
-
 
41308
      }
-
 
41309
      if (isSetEx()) {
-
 
41310
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
41311
        if (lastComparison != 0) {
-
 
41312
          return lastComparison;
-
 
41313
        }
-
 
41314
      }
-
 
41315
      return 0;
-
 
41316
    }
-
 
41317
 
-
 
41318
    public _Fields fieldForId(int fieldId) {
-
 
41319
      return _Fields.findByThriftId(fieldId);
-
 
41320
    }
-
 
41321
 
-
 
41322
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
41323
      org.apache.thrift.protocol.TField field;
-
 
41324
      iprot.readStructBegin();
-
 
41325
      while (true)
-
 
41326
      {
-
 
41327
        field = iprot.readFieldBegin();
-
 
41328
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
41329
          break;
-
 
41330
        }
-
 
41331
        switch (field.id) {
-
 
41332
          case 1: // EX
-
 
41333
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
41334
              this.ex = new TransactionServiceException();
-
 
41335
              this.ex.read(iprot);
-
 
41336
            } else { 
-
 
41337
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
41338
            }
-
 
41339
            break;
-
 
41340
          default:
-
 
41341
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
41342
        }
-
 
41343
        iprot.readFieldEnd();
-
 
41344
      }
-
 
41345
      iprot.readStructEnd();
-
 
41346
      validate();
-
 
41347
    }
-
 
41348
 
-
 
41349
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
41350
      oprot.writeStructBegin(STRUCT_DESC);
-
 
41351
 
-
 
41352
      if (this.isSetEx()) {
-
 
41353
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
41354
        this.ex.write(oprot);
-
 
41355
        oprot.writeFieldEnd();
-
 
41356
      }
-
 
41357
      oprot.writeFieldStop();
-
 
41358
      oprot.writeStructEnd();
-
 
41359
    }
-
 
41360
 
-
 
41361
    @Override
-
 
41362
    public String toString() {
-
 
41363
      StringBuilder sb = new StringBuilder("markOrderAsDelivered_result(");
-
 
41364
      boolean first = true;
-
 
41365
 
-
 
41366
      sb.append("ex:");
-
 
41367
      if (this.ex == null) {
-
 
41368
        sb.append("null");
-
 
41369
      } else {
-
 
41370
        sb.append(this.ex);
40524
      }
41371
      }
40525
      first = false;
41372
      first = false;
40526
      sb.append(")");
41373
      sb.append(")");
40527
      return sb.toString();
41374
      return sb.toString();
40528
    }
41375
    }