Subversion Repositories SmartDukaan

Rev

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

Rev 2383 Rev 2538
Line 223... Line 223...
223
     * 
223
     * 
224
     * @param limit
224
     * @param limit
225
     */
225
     */
226
    public List<Order> getValidOrders(long limit) throws TException;
226
    public List<Order> getValidOrders(long limit) throws TException;
227
 
227
 
-
 
228
    /**
-
 
229
     * Toggle the DOA flag of an order. This should be used to flag an order for follow-up and unflag it when the follow-up is complete.
-
 
230
     * Returns the final flag status.
-
 
231
     * Throws an exception if the order with the given id couldn't be found or if the order status is not DELVIERY_SUCCESS.
-
 
232
     * 
-
 
233
     * @param orderId
-
 
234
     */
-
 
235
    public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, TException;
-
 
236
 
-
 
237
    /**
-
 
238
     * Sends out an email to the account manager of the original courier provider used to ship the order.
-
 
239
     * If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUESTED.
-
 
240
     * If the order status was DOA_PICKUP_REQUESTED, it is left unchanged.
-
 
241
     * For any other status, it returns false.
-
 
242
     * Throws an exception if the order with the given id couldn't be found.
-
 
243
     * 
-
 
244
     * @param orderId
-
 
245
     */
-
 
246
    public boolean requestPickupNumber(long orderId) throws TransactionServiceException, TException;
-
 
247
 
-
 
248
    /**
-
 
249
     * If the order status is DOA_PICKUP_REQUESTED, it does the following
-
 
250
     * 	1. Sends out an email to the customer with the dispatch advice that he has to print as an attachment.
-
 
251
     * 	2. Changes order status to be DOA_PICKUP_AUTHORIZED.
-
 
252
     * 	3. Returns true
-
 
253
     * If the order is any other status, it returns false.
-
 
254
     * Throws an exception if the order with the given id couldn't be found.
-
 
255
     * 
-
 
256
     * @param orderId
-
 
257
     * @param pickupNumber
-
 
258
     */
-
 
259
    public boolean authorizePickup(long orderId, String pickupNumber) throws TransactionServiceException, TException;
-
 
260
 
228
  }
261
  }
229
 
262
 
230
  public static class Client implements Iface {
263
  public static class Client implements Iface {
231
    public Client(TProtocol prot)
264
    public Client(TProtocol prot)
232
    {
265
    {
Line 1574... Line 1607...
1574
        return result.success;
1607
        return result.success;
1575
      }
1608
      }
1576
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrders failed: unknown result");
1609
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrders failed: unknown result");
1577
    }
1610
    }
1578
 
1611
 
-
 
1612
    public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, TException
-
 
1613
    {
-
 
1614
      send_toggleDOAFlag(orderId);
-
 
1615
      return recv_toggleDOAFlag();
-
 
1616
    }
-
 
1617
 
-
 
1618
    public void send_toggleDOAFlag(long orderId) throws TException
-
 
1619
    {
-
 
1620
      oprot_.writeMessageBegin(new TMessage("toggleDOAFlag", TMessageType.CALL, seqid_));
-
 
1621
      toggleDOAFlag_args args = new toggleDOAFlag_args();
-
 
1622
      args.orderId = orderId;
-
 
1623
      args.write(oprot_);
-
 
1624
      oprot_.writeMessageEnd();
-
 
1625
      oprot_.getTransport().flush();
-
 
1626
    }
-
 
1627
 
-
 
1628
    public boolean recv_toggleDOAFlag() throws TransactionServiceException, TException
-
 
1629
    {
-
 
1630
      TMessage msg = iprot_.readMessageBegin();
-
 
1631
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1632
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1633
        iprot_.readMessageEnd();
-
 
1634
        throw x;
-
 
1635
      }
-
 
1636
      toggleDOAFlag_result result = new toggleDOAFlag_result();
-
 
1637
      result.read(iprot_);
-
 
1638
      iprot_.readMessageEnd();
-
 
1639
      if (result.isSetSuccess()) {
-
 
1640
        return result.success;
-
 
1641
      }
-
 
1642
      if (result.ex != null) {
-
 
1643
        throw result.ex;
-
 
1644
      }
-
 
1645
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "toggleDOAFlag failed: unknown result");
-
 
1646
    }
-
 
1647
 
-
 
1648
    public boolean requestPickupNumber(long orderId) throws TransactionServiceException, TException
-
 
1649
    {
-
 
1650
      send_requestPickupNumber(orderId);
-
 
1651
      return recv_requestPickupNumber();
-
 
1652
    }
-
 
1653
 
-
 
1654
    public void send_requestPickupNumber(long orderId) throws TException
-
 
1655
    {
-
 
1656
      oprot_.writeMessageBegin(new TMessage("requestPickupNumber", TMessageType.CALL, seqid_));
-
 
1657
      requestPickupNumber_args args = new requestPickupNumber_args();
-
 
1658
      args.orderId = orderId;
-
 
1659
      args.write(oprot_);
-
 
1660
      oprot_.writeMessageEnd();
-
 
1661
      oprot_.getTransport().flush();
-
 
1662
    }
-
 
1663
 
-
 
1664
    public boolean recv_requestPickupNumber() throws TransactionServiceException, TException
-
 
1665
    {
-
 
1666
      TMessage msg = iprot_.readMessageBegin();
-
 
1667
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1668
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1669
        iprot_.readMessageEnd();
-
 
1670
        throw x;
-
 
1671
      }
-
 
1672
      requestPickupNumber_result result = new requestPickupNumber_result();
-
 
1673
      result.read(iprot_);
-
 
1674
      iprot_.readMessageEnd();
-
 
1675
      if (result.isSetSuccess()) {
-
 
1676
        return result.success;
-
 
1677
      }
-
 
1678
      if (result.ex != null) {
-
 
1679
        throw result.ex;
-
 
1680
      }
-
 
1681
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "requestPickupNumber failed: unknown result");
-
 
1682
    }
-
 
1683
 
-
 
1684
    public boolean authorizePickup(long orderId, String pickupNumber) throws TransactionServiceException, TException
-
 
1685
    {
-
 
1686
      send_authorizePickup(orderId, pickupNumber);
-
 
1687
      return recv_authorizePickup();
-
 
1688
    }
-
 
1689
 
-
 
1690
    public void send_authorizePickup(long orderId, String pickupNumber) throws TException
-
 
1691
    {
-
 
1692
      oprot_.writeMessageBegin(new TMessage("authorizePickup", TMessageType.CALL, seqid_));
-
 
1693
      authorizePickup_args args = new authorizePickup_args();
-
 
1694
      args.orderId = orderId;
-
 
1695
      args.pickupNumber = pickupNumber;
-
 
1696
      args.write(oprot_);
-
 
1697
      oprot_.writeMessageEnd();
-
 
1698
      oprot_.getTransport().flush();
-
 
1699
    }
-
 
1700
 
-
 
1701
    public boolean recv_authorizePickup() throws TransactionServiceException, TException
-
 
1702
    {
-
 
1703
      TMessage msg = iprot_.readMessageBegin();
-
 
1704
      if (msg.type == TMessageType.EXCEPTION) {
-
 
1705
        TApplicationException x = TApplicationException.read(iprot_);
-
 
1706
        iprot_.readMessageEnd();
-
 
1707
        throw x;
-
 
1708
      }
-
 
1709
      authorizePickup_result result = new authorizePickup_result();
-
 
1710
      result.read(iprot_);
-
 
1711
      iprot_.readMessageEnd();
-
 
1712
      if (result.isSetSuccess()) {
-
 
1713
        return result.success;
-
 
1714
      }
-
 
1715
      if (result.ex != null) {
-
 
1716
        throw result.ex;
-
 
1717
      }
-
 
1718
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "authorizePickup failed: unknown result");
-
 
1719
    }
-
 
1720
 
1579
  }
1721
  }
1580
  public static class Processor implements TProcessor {
1722
  public static class Processor implements TProcessor {
1581
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1723
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1582
    public Processor(Iface iface)
1724
    public Processor(Iface iface)
1583
    {
1725
    {
Line 1617... Line 1759...
1617
      processMap_.put("setAlert", new setAlert());
1759
      processMap_.put("setAlert", new setAlert());
1618
      processMap_.put("getValidOrderCount", new getValidOrderCount());
1760
      processMap_.put("getValidOrderCount", new getValidOrderCount());
1619
      processMap_.put("getNoOfCustomersWithSuccessfulTransaction", new getNoOfCustomersWithSuccessfulTransaction());
1761
      processMap_.put("getNoOfCustomersWithSuccessfulTransaction", new getNoOfCustomersWithSuccessfulTransaction());
1620
      processMap_.put("getValidOrdersAmountRange", new getValidOrdersAmountRange());
1762
      processMap_.put("getValidOrdersAmountRange", new getValidOrdersAmountRange());
1621
      processMap_.put("getValidOrders", new getValidOrders());
1763
      processMap_.put("getValidOrders", new getValidOrders());
-
 
1764
      processMap_.put("toggleDOAFlag", new toggleDOAFlag());
-
 
1765
      processMap_.put("requestPickupNumber", new requestPickupNumber());
-
 
1766
      processMap_.put("authorizePickup", new authorizePickup());
1622
    }
1767
    }
1623
 
1768
 
1624
    protected static interface ProcessFunction {
1769
    protected static interface ProcessFunction {
1625
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
1770
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
1626
    }
1771
    }
Line 2597... Line 2742...
2597
        oprot.getTransport().flush();
2742
        oprot.getTransport().flush();
2598
      }
2743
      }
2599
 
2744
 
2600
    }
2745
    }
2601
 
2746
 
-
 
2747
    private class toggleDOAFlag implements ProcessFunction {
-
 
2748
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2749
      {
-
 
2750
        toggleDOAFlag_args args = new toggleDOAFlag_args();
-
 
2751
        args.read(iprot);
-
 
2752
        iprot.readMessageEnd();
-
 
2753
        toggleDOAFlag_result result = new toggleDOAFlag_result();
-
 
2754
        try {
-
 
2755
          result.success = iface_.toggleDOAFlag(args.orderId);
-
 
2756
          result.setSuccessIsSet(true);
-
 
2757
        } catch (TransactionServiceException ex) {
-
 
2758
          result.ex = ex;
-
 
2759
        } catch (Throwable th) {
-
 
2760
          LOGGER.error("Internal error processing toggleDOAFlag", th);
-
 
2761
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing toggleDOAFlag");
-
 
2762
          oprot.writeMessageBegin(new TMessage("toggleDOAFlag", TMessageType.EXCEPTION, seqid));
-
 
2763
          x.write(oprot);
-
 
2764
          oprot.writeMessageEnd();
-
 
2765
          oprot.getTransport().flush();
-
 
2766
          return;
-
 
2767
        }
-
 
2768
        oprot.writeMessageBegin(new TMessage("toggleDOAFlag", TMessageType.REPLY, seqid));
-
 
2769
        result.write(oprot);
-
 
2770
        oprot.writeMessageEnd();
-
 
2771
        oprot.getTransport().flush();
-
 
2772
      }
-
 
2773
 
-
 
2774
    }
-
 
2775
 
-
 
2776
    private class requestPickupNumber implements ProcessFunction {
-
 
2777
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2778
      {
-
 
2779
        requestPickupNumber_args args = new requestPickupNumber_args();
-
 
2780
        args.read(iprot);
-
 
2781
        iprot.readMessageEnd();
-
 
2782
        requestPickupNumber_result result = new requestPickupNumber_result();
-
 
2783
        try {
-
 
2784
          result.success = iface_.requestPickupNumber(args.orderId);
-
 
2785
          result.setSuccessIsSet(true);
-
 
2786
        } catch (TransactionServiceException ex) {
-
 
2787
          result.ex = ex;
-
 
2788
        } catch (Throwable th) {
-
 
2789
          LOGGER.error("Internal error processing requestPickupNumber", th);
-
 
2790
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing requestPickupNumber");
-
 
2791
          oprot.writeMessageBegin(new TMessage("requestPickupNumber", TMessageType.EXCEPTION, seqid));
-
 
2792
          x.write(oprot);
-
 
2793
          oprot.writeMessageEnd();
-
 
2794
          oprot.getTransport().flush();
-
 
2795
          return;
-
 
2796
        }
-
 
2797
        oprot.writeMessageBegin(new TMessage("requestPickupNumber", TMessageType.REPLY, seqid));
-
 
2798
        result.write(oprot);
-
 
2799
        oprot.writeMessageEnd();
-
 
2800
        oprot.getTransport().flush();
-
 
2801
      }
-
 
2802
 
-
 
2803
    }
-
 
2804
 
-
 
2805
    private class authorizePickup implements ProcessFunction {
-
 
2806
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2807
      {
-
 
2808
        authorizePickup_args args = new authorizePickup_args();
-
 
2809
        args.read(iprot);
-
 
2810
        iprot.readMessageEnd();
-
 
2811
        authorizePickup_result result = new authorizePickup_result();
-
 
2812
        try {
-
 
2813
          result.success = iface_.authorizePickup(args.orderId, args.pickupNumber);
-
 
2814
          result.setSuccessIsSet(true);
-
 
2815
        } catch (TransactionServiceException ex) {
-
 
2816
          result.ex = ex;
-
 
2817
        } catch (Throwable th) {
-
 
2818
          LOGGER.error("Internal error processing authorizePickup", th);
-
 
2819
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing authorizePickup");
-
 
2820
          oprot.writeMessageBegin(new TMessage("authorizePickup", TMessageType.EXCEPTION, seqid));
-
 
2821
          x.write(oprot);
-
 
2822
          oprot.writeMessageEnd();
-
 
2823
          oprot.getTransport().flush();
-
 
2824
          return;
-
 
2825
        }
-
 
2826
        oprot.writeMessageBegin(new TMessage("authorizePickup", TMessageType.REPLY, seqid));
-
 
2827
        result.write(oprot);
-
 
2828
        oprot.writeMessageEnd();
-
 
2829
        oprot.getTransport().flush();
-
 
2830
      }
-
 
2831
 
-
 
2832
    }
-
 
2833
 
2602
  }
2834
  }
2603
 
2835
 
2604
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
2836
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
2605
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
2837
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
2606
 
2838
 
Line 28338... Line 28570...
28338
      }
28570
      }
28339
      first = false;
28571
      first = false;
28340
      sb.append(")");
28572
      sb.append(")");
28341
      return sb.toString();
28573
      return sb.toString();
28342
    }
28574
    }
-
 
28575
 
-
 
28576
    public void validate() throws TException {
-
 
28577
      // check for required fields
-
 
28578
    }
-
 
28579
 
-
 
28580
  }
-
 
28581
 
-
 
28582
  public static class toggleDOAFlag_args implements TBase<toggleDOAFlag_args._Fields>, java.io.Serializable, Cloneable, Comparable<toggleDOAFlag_args>   {
-
 
28583
    private static final TStruct STRUCT_DESC = new TStruct("toggleDOAFlag_args");
-
 
28584
 
-
 
28585
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
-
 
28586
 
-
 
28587
    private long orderId;
-
 
28588
 
-
 
28589
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
28590
    public enum _Fields implements TFieldIdEnum {
-
 
28591
      ORDER_ID((short)1, "orderId");
-
 
28592
 
-
 
28593
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
28594
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
28595
 
-
 
28596
      static {
-
 
28597
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
28598
          byId.put((int)field._thriftId, field);
-
 
28599
          byName.put(field.getFieldName(), field);
-
 
28600
        }
-
 
28601
      }
-
 
28602
 
-
 
28603
      /**
-
 
28604
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
28605
       */
-
 
28606
      public static _Fields findByThriftId(int fieldId) {
-
 
28607
        return byId.get(fieldId);
-
 
28608
      }
-
 
28609
 
-
 
28610
      /**
-
 
28611
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
28612
       * if it is not found.
-
 
28613
       */
-
 
28614
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
28615
        _Fields fields = findByThriftId(fieldId);
-
 
28616
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
28617
        return fields;
-
 
28618
      }
-
 
28619
 
-
 
28620
      /**
-
 
28621
       * Find the _Fields constant that matches name, or null if its not found.
-
 
28622
       */
-
 
28623
      public static _Fields findByName(String name) {
-
 
28624
        return byName.get(name);
-
 
28625
      }
-
 
28626
 
-
 
28627
      private final short _thriftId;
-
 
28628
      private final String _fieldName;
-
 
28629
 
-
 
28630
      _Fields(short thriftId, String fieldName) {
-
 
28631
        _thriftId = thriftId;
-
 
28632
        _fieldName = fieldName;
-
 
28633
      }
-
 
28634
 
-
 
28635
      public short getThriftFieldId() {
-
 
28636
        return _thriftId;
-
 
28637
      }
-
 
28638
 
-
 
28639
      public String getFieldName() {
-
 
28640
        return _fieldName;
-
 
28641
      }
-
 
28642
    }
-
 
28643
 
-
 
28644
    // isset id assignments
-
 
28645
    private static final int __ORDERID_ISSET_ID = 0;
-
 
28646
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
28647
 
-
 
28648
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
28649
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
-
 
28650
          new FieldValueMetaData(TType.I64)));
-
 
28651
    }});
-
 
28652
 
-
 
28653
    static {
-
 
28654
      FieldMetaData.addStructMetaDataMap(toggleDOAFlag_args.class, metaDataMap);
-
 
28655
    }
-
 
28656
 
-
 
28657
    public toggleDOAFlag_args() {
-
 
28658
    }
-
 
28659
 
-
 
28660
    public toggleDOAFlag_args(
-
 
28661
      long orderId)
-
 
28662
    {
-
 
28663
      this();
-
 
28664
      this.orderId = orderId;
-
 
28665
      setOrderIdIsSet(true);
-
 
28666
    }
-
 
28667
 
-
 
28668
    /**
-
 
28669
     * Performs a deep copy on <i>other</i>.
-
 
28670
     */
-
 
28671
    public toggleDOAFlag_args(toggleDOAFlag_args other) {
-
 
28672
      __isset_bit_vector.clear();
-
 
28673
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
28674
      this.orderId = other.orderId;
-
 
28675
    }
-
 
28676
 
-
 
28677
    public toggleDOAFlag_args deepCopy() {
-
 
28678
      return new toggleDOAFlag_args(this);
-
 
28679
    }
-
 
28680
 
-
 
28681
    @Deprecated
-
 
28682
    public toggleDOAFlag_args clone() {
-
 
28683
      return new toggleDOAFlag_args(this);
-
 
28684
    }
-
 
28685
 
-
 
28686
    public long getOrderId() {
-
 
28687
      return this.orderId;
-
 
28688
    }
-
 
28689
 
-
 
28690
    public toggleDOAFlag_args setOrderId(long orderId) {
-
 
28691
      this.orderId = orderId;
-
 
28692
      setOrderIdIsSet(true);
-
 
28693
      return this;
-
 
28694
    }
-
 
28695
 
-
 
28696
    public void unsetOrderId() {
-
 
28697
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
28698
    }
-
 
28699
 
-
 
28700
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
-
 
28701
    public boolean isSetOrderId() {
-
 
28702
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
28703
    }
-
 
28704
 
-
 
28705
    public void setOrderIdIsSet(boolean value) {
-
 
28706
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
28707
    }
-
 
28708
 
-
 
28709
    public void setFieldValue(_Fields field, Object value) {
-
 
28710
      switch (field) {
-
 
28711
      case ORDER_ID:
-
 
28712
        if (value == null) {
-
 
28713
          unsetOrderId();
-
 
28714
        } else {
-
 
28715
          setOrderId((Long)value);
-
 
28716
        }
-
 
28717
        break;
-
 
28718
 
-
 
28719
      }
-
 
28720
    }
-
 
28721
 
-
 
28722
    public void setFieldValue(int fieldID, Object value) {
-
 
28723
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
28724
    }
-
 
28725
 
-
 
28726
    public Object getFieldValue(_Fields field) {
-
 
28727
      switch (field) {
-
 
28728
      case ORDER_ID:
-
 
28729
        return new Long(getOrderId());
-
 
28730
 
-
 
28731
      }
-
 
28732
      throw new IllegalStateException();
-
 
28733
    }
-
 
28734
 
-
 
28735
    public Object getFieldValue(int fieldId) {
-
 
28736
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
28737
    }
-
 
28738
 
-
 
28739
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
28740
    public boolean isSet(_Fields field) {
-
 
28741
      switch (field) {
-
 
28742
      case ORDER_ID:
-
 
28743
        return isSetOrderId();
-
 
28744
      }
-
 
28745
      throw new IllegalStateException();
-
 
28746
    }
-
 
28747
 
-
 
28748
    public boolean isSet(int fieldID) {
-
 
28749
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
28750
    }
-
 
28751
 
-
 
28752
    @Override
-
 
28753
    public boolean equals(Object that) {
-
 
28754
      if (that == null)
-
 
28755
        return false;
-
 
28756
      if (that instanceof toggleDOAFlag_args)
-
 
28757
        return this.equals((toggleDOAFlag_args)that);
-
 
28758
      return false;
-
 
28759
    }
-
 
28760
 
-
 
28761
    public boolean equals(toggleDOAFlag_args that) {
-
 
28762
      if (that == null)
-
 
28763
        return false;
-
 
28764
 
-
 
28765
      boolean this_present_orderId = true;
-
 
28766
      boolean that_present_orderId = true;
-
 
28767
      if (this_present_orderId || that_present_orderId) {
-
 
28768
        if (!(this_present_orderId && that_present_orderId))
-
 
28769
          return false;
-
 
28770
        if (this.orderId != that.orderId)
-
 
28771
          return false;
-
 
28772
      }
-
 
28773
 
-
 
28774
      return true;
-
 
28775
    }
-
 
28776
 
-
 
28777
    @Override
-
 
28778
    public int hashCode() {
-
 
28779
      return 0;
-
 
28780
    }
-
 
28781
 
-
 
28782
    public int compareTo(toggleDOAFlag_args other) {
-
 
28783
      if (!getClass().equals(other.getClass())) {
-
 
28784
        return getClass().getName().compareTo(other.getClass().getName());
-
 
28785
      }
-
 
28786
 
-
 
28787
      int lastComparison = 0;
-
 
28788
      toggleDOAFlag_args typedOther = (toggleDOAFlag_args)other;
-
 
28789
 
-
 
28790
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
-
 
28791
      if (lastComparison != 0) {
-
 
28792
        return lastComparison;
-
 
28793
      }
-
 
28794
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
-
 
28795
      if (lastComparison != 0) {
-
 
28796
        return lastComparison;
-
 
28797
      }
-
 
28798
      return 0;
-
 
28799
    }
-
 
28800
 
-
 
28801
    public void read(TProtocol iprot) throws TException {
-
 
28802
      TField field;
-
 
28803
      iprot.readStructBegin();
-
 
28804
      while (true)
-
 
28805
      {
-
 
28806
        field = iprot.readFieldBegin();
-
 
28807
        if (field.type == TType.STOP) { 
-
 
28808
          break;
-
 
28809
        }
-
 
28810
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
28811
        if (fieldId == null) {
-
 
28812
          TProtocolUtil.skip(iprot, field.type);
-
 
28813
        } else {
-
 
28814
          switch (fieldId) {
-
 
28815
            case ORDER_ID:
-
 
28816
              if (field.type == TType.I64) {
-
 
28817
                this.orderId = iprot.readI64();
-
 
28818
                setOrderIdIsSet(true);
-
 
28819
              } else { 
-
 
28820
                TProtocolUtil.skip(iprot, field.type);
-
 
28821
              }
-
 
28822
              break;
-
 
28823
          }
-
 
28824
          iprot.readFieldEnd();
-
 
28825
        }
-
 
28826
      }
-
 
28827
      iprot.readStructEnd();
-
 
28828
      validate();
-
 
28829
    }
-
 
28830
 
-
 
28831
    public void write(TProtocol oprot) throws TException {
-
 
28832
      validate();
-
 
28833
 
-
 
28834
      oprot.writeStructBegin(STRUCT_DESC);
-
 
28835
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
28836
      oprot.writeI64(this.orderId);
-
 
28837
      oprot.writeFieldEnd();
-
 
28838
      oprot.writeFieldStop();
-
 
28839
      oprot.writeStructEnd();
-
 
28840
    }
-
 
28841
 
-
 
28842
    @Override
-
 
28843
    public String toString() {
-
 
28844
      StringBuilder sb = new StringBuilder("toggleDOAFlag_args(");
-
 
28845
      boolean first = true;
-
 
28846
 
-
 
28847
      sb.append("orderId:");
-
 
28848
      sb.append(this.orderId);
-
 
28849
      first = false;
-
 
28850
      sb.append(")");
-
 
28851
      return sb.toString();
-
 
28852
    }
-
 
28853
 
-
 
28854
    public void validate() throws TException {
-
 
28855
      // check for required fields
-
 
28856
    }
-
 
28857
 
-
 
28858
  }
-
 
28859
 
-
 
28860
  public static class toggleDOAFlag_result implements TBase<toggleDOAFlag_result._Fields>, java.io.Serializable, Cloneable, Comparable<toggleDOAFlag_result>   {
-
 
28861
    private static final TStruct STRUCT_DESC = new TStruct("toggleDOAFlag_result");
-
 
28862
 
-
 
28863
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
-
 
28864
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
28865
 
-
 
28866
    private boolean success;
-
 
28867
    private TransactionServiceException ex;
-
 
28868
 
-
 
28869
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
28870
    public enum _Fields implements TFieldIdEnum {
-
 
28871
      SUCCESS((short)0, "success"),
-
 
28872
      EX((short)1, "ex");
-
 
28873
 
-
 
28874
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
28875
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
28876
 
-
 
28877
      static {
-
 
28878
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
28879
          byId.put((int)field._thriftId, field);
-
 
28880
          byName.put(field.getFieldName(), field);
-
 
28881
        }
-
 
28882
      }
-
 
28883
 
-
 
28884
      /**
-
 
28885
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
28886
       */
-
 
28887
      public static _Fields findByThriftId(int fieldId) {
-
 
28888
        return byId.get(fieldId);
-
 
28889
      }
-
 
28890
 
-
 
28891
      /**
-
 
28892
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
28893
       * if it is not found.
-
 
28894
       */
-
 
28895
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
28896
        _Fields fields = findByThriftId(fieldId);
-
 
28897
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
28898
        return fields;
-
 
28899
      }
-
 
28900
 
-
 
28901
      /**
-
 
28902
       * Find the _Fields constant that matches name, or null if its not found.
-
 
28903
       */
-
 
28904
      public static _Fields findByName(String name) {
-
 
28905
        return byName.get(name);
-
 
28906
      }
-
 
28907
 
-
 
28908
      private final short _thriftId;
-
 
28909
      private final String _fieldName;
-
 
28910
 
-
 
28911
      _Fields(short thriftId, String fieldName) {
-
 
28912
        _thriftId = thriftId;
-
 
28913
        _fieldName = fieldName;
-
 
28914
      }
-
 
28915
 
-
 
28916
      public short getThriftFieldId() {
-
 
28917
        return _thriftId;
-
 
28918
      }
-
 
28919
 
-
 
28920
      public String getFieldName() {
-
 
28921
        return _fieldName;
-
 
28922
      }
-
 
28923
    }
-
 
28924
 
-
 
28925
    // isset id assignments
-
 
28926
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
28927
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
28928
 
-
 
28929
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
28930
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
28931
          new FieldValueMetaData(TType.BOOL)));
-
 
28932
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
28933
          new FieldValueMetaData(TType.STRUCT)));
-
 
28934
    }});
-
 
28935
 
-
 
28936
    static {
-
 
28937
      FieldMetaData.addStructMetaDataMap(toggleDOAFlag_result.class, metaDataMap);
-
 
28938
    }
-
 
28939
 
-
 
28940
    public toggleDOAFlag_result() {
-
 
28941
    }
-
 
28942
 
-
 
28943
    public toggleDOAFlag_result(
-
 
28944
      boolean success,
-
 
28945
      TransactionServiceException ex)
-
 
28946
    {
-
 
28947
      this();
-
 
28948
      this.success = success;
-
 
28949
      setSuccessIsSet(true);
-
 
28950
      this.ex = ex;
-
 
28951
    }
-
 
28952
 
-
 
28953
    /**
-
 
28954
     * Performs a deep copy on <i>other</i>.
-
 
28955
     */
-
 
28956
    public toggleDOAFlag_result(toggleDOAFlag_result other) {
-
 
28957
      __isset_bit_vector.clear();
-
 
28958
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
28959
      this.success = other.success;
-
 
28960
      if (other.isSetEx()) {
-
 
28961
        this.ex = new TransactionServiceException(other.ex);
-
 
28962
      }
-
 
28963
    }
-
 
28964
 
-
 
28965
    public toggleDOAFlag_result deepCopy() {
-
 
28966
      return new toggleDOAFlag_result(this);
-
 
28967
    }
-
 
28968
 
-
 
28969
    @Deprecated
-
 
28970
    public toggleDOAFlag_result clone() {
-
 
28971
      return new toggleDOAFlag_result(this);
-
 
28972
    }
-
 
28973
 
-
 
28974
    public boolean isSuccess() {
-
 
28975
      return this.success;
-
 
28976
    }
-
 
28977
 
-
 
28978
    public toggleDOAFlag_result setSuccess(boolean success) {
-
 
28979
      this.success = success;
-
 
28980
      setSuccessIsSet(true);
-
 
28981
      return this;
-
 
28982
    }
-
 
28983
 
-
 
28984
    public void unsetSuccess() {
-
 
28985
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
28986
    }
-
 
28987
 
-
 
28988
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
28989
    public boolean isSetSuccess() {
-
 
28990
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
28991
    }
-
 
28992
 
-
 
28993
    public void setSuccessIsSet(boolean value) {
-
 
28994
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
28995
    }
-
 
28996
 
-
 
28997
    public TransactionServiceException getEx() {
-
 
28998
      return this.ex;
-
 
28999
    }
-
 
29000
 
-
 
29001
    public toggleDOAFlag_result setEx(TransactionServiceException ex) {
-
 
29002
      this.ex = ex;
-
 
29003
      return this;
-
 
29004
    }
-
 
29005
 
-
 
29006
    public void unsetEx() {
-
 
29007
      this.ex = null;
-
 
29008
    }
-
 
29009
 
-
 
29010
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
29011
    public boolean isSetEx() {
-
 
29012
      return this.ex != null;
-
 
29013
    }
-
 
29014
 
-
 
29015
    public void setExIsSet(boolean value) {
-
 
29016
      if (!value) {
-
 
29017
        this.ex = null;
-
 
29018
      }
-
 
29019
    }
-
 
29020
 
-
 
29021
    public void setFieldValue(_Fields field, Object value) {
-
 
29022
      switch (field) {
-
 
29023
      case SUCCESS:
-
 
29024
        if (value == null) {
-
 
29025
          unsetSuccess();
-
 
29026
        } else {
-
 
29027
          setSuccess((Boolean)value);
-
 
29028
        }
-
 
29029
        break;
-
 
29030
 
-
 
29031
      case EX:
-
 
29032
        if (value == null) {
-
 
29033
          unsetEx();
-
 
29034
        } else {
-
 
29035
          setEx((TransactionServiceException)value);
-
 
29036
        }
-
 
29037
        break;
-
 
29038
 
-
 
29039
      }
-
 
29040
    }
-
 
29041
 
-
 
29042
    public void setFieldValue(int fieldID, Object value) {
-
 
29043
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
29044
    }
-
 
29045
 
-
 
29046
    public Object getFieldValue(_Fields field) {
-
 
29047
      switch (field) {
-
 
29048
      case SUCCESS:
-
 
29049
        return new Boolean(isSuccess());
-
 
29050
 
-
 
29051
      case EX:
-
 
29052
        return getEx();
-
 
29053
 
-
 
29054
      }
-
 
29055
      throw new IllegalStateException();
-
 
29056
    }
-
 
29057
 
-
 
29058
    public Object getFieldValue(int fieldId) {
-
 
29059
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
29060
    }
-
 
29061
 
-
 
29062
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
29063
    public boolean isSet(_Fields field) {
-
 
29064
      switch (field) {
-
 
29065
      case SUCCESS:
-
 
29066
        return isSetSuccess();
-
 
29067
      case EX:
-
 
29068
        return isSetEx();
-
 
29069
      }
-
 
29070
      throw new IllegalStateException();
-
 
29071
    }
-
 
29072
 
-
 
29073
    public boolean isSet(int fieldID) {
-
 
29074
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
29075
    }
-
 
29076
 
-
 
29077
    @Override
-
 
29078
    public boolean equals(Object that) {
-
 
29079
      if (that == null)
-
 
29080
        return false;
-
 
29081
      if (that instanceof toggleDOAFlag_result)
-
 
29082
        return this.equals((toggleDOAFlag_result)that);
-
 
29083
      return false;
-
 
29084
    }
-
 
29085
 
-
 
29086
    public boolean equals(toggleDOAFlag_result that) {
-
 
29087
      if (that == null)
-
 
29088
        return false;
-
 
29089
 
-
 
29090
      boolean this_present_success = true;
-
 
29091
      boolean that_present_success = true;
-
 
29092
      if (this_present_success || that_present_success) {
-
 
29093
        if (!(this_present_success && that_present_success))
-
 
29094
          return false;
-
 
29095
        if (this.success != that.success)
-
 
29096
          return false;
-
 
29097
      }
-
 
29098
 
-
 
29099
      boolean this_present_ex = true && this.isSetEx();
-
 
29100
      boolean that_present_ex = true && that.isSetEx();
-
 
29101
      if (this_present_ex || that_present_ex) {
-
 
29102
        if (!(this_present_ex && that_present_ex))
-
 
29103
          return false;
-
 
29104
        if (!this.ex.equals(that.ex))
-
 
29105
          return false;
-
 
29106
      }
-
 
29107
 
-
 
29108
      return true;
-
 
29109
    }
-
 
29110
 
-
 
29111
    @Override
-
 
29112
    public int hashCode() {
-
 
29113
      return 0;
-
 
29114
    }
-
 
29115
 
-
 
29116
    public int compareTo(toggleDOAFlag_result other) {
-
 
29117
      if (!getClass().equals(other.getClass())) {
-
 
29118
        return getClass().getName().compareTo(other.getClass().getName());
-
 
29119
      }
-
 
29120
 
-
 
29121
      int lastComparison = 0;
-
 
29122
      toggleDOAFlag_result typedOther = (toggleDOAFlag_result)other;
-
 
29123
 
-
 
29124
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
29125
      if (lastComparison != 0) {
-
 
29126
        return lastComparison;
-
 
29127
      }
-
 
29128
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
29129
      if (lastComparison != 0) {
-
 
29130
        return lastComparison;
-
 
29131
      }
-
 
29132
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
29133
      if (lastComparison != 0) {
-
 
29134
        return lastComparison;
-
 
29135
      }
-
 
29136
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
29137
      if (lastComparison != 0) {
-
 
29138
        return lastComparison;
-
 
29139
      }
-
 
29140
      return 0;
-
 
29141
    }
-
 
29142
 
-
 
29143
    public void read(TProtocol iprot) throws TException {
-
 
29144
      TField field;
-
 
29145
      iprot.readStructBegin();
-
 
29146
      while (true)
-
 
29147
      {
-
 
29148
        field = iprot.readFieldBegin();
-
 
29149
        if (field.type == TType.STOP) { 
-
 
29150
          break;
-
 
29151
        }
-
 
29152
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
29153
        if (fieldId == null) {
-
 
29154
          TProtocolUtil.skip(iprot, field.type);
-
 
29155
        } else {
-
 
29156
          switch (fieldId) {
-
 
29157
            case SUCCESS:
-
 
29158
              if (field.type == TType.BOOL) {
-
 
29159
                this.success = iprot.readBool();
-
 
29160
                setSuccessIsSet(true);
-
 
29161
              } else { 
-
 
29162
                TProtocolUtil.skip(iprot, field.type);
-
 
29163
              }
-
 
29164
              break;
-
 
29165
            case EX:
-
 
29166
              if (field.type == TType.STRUCT) {
-
 
29167
                this.ex = new TransactionServiceException();
-
 
29168
                this.ex.read(iprot);
-
 
29169
              } else { 
-
 
29170
                TProtocolUtil.skip(iprot, field.type);
-
 
29171
              }
-
 
29172
              break;
-
 
29173
          }
-
 
29174
          iprot.readFieldEnd();
-
 
29175
        }
-
 
29176
      }
-
 
29177
      iprot.readStructEnd();
-
 
29178
      validate();
-
 
29179
    }
-
 
29180
 
-
 
29181
    public void write(TProtocol oprot) throws TException {
-
 
29182
      oprot.writeStructBegin(STRUCT_DESC);
-
 
29183
 
-
 
29184
      if (this.isSetSuccess()) {
-
 
29185
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
29186
        oprot.writeBool(this.success);
-
 
29187
        oprot.writeFieldEnd();
-
 
29188
      } else if (this.isSetEx()) {
-
 
29189
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
29190
        this.ex.write(oprot);
-
 
29191
        oprot.writeFieldEnd();
-
 
29192
      }
-
 
29193
      oprot.writeFieldStop();
-
 
29194
      oprot.writeStructEnd();
-
 
29195
    }
-
 
29196
 
-
 
29197
    @Override
-
 
29198
    public String toString() {
-
 
29199
      StringBuilder sb = new StringBuilder("toggleDOAFlag_result(");
-
 
29200
      boolean first = true;
-
 
29201
 
-
 
29202
      sb.append("success:");
-
 
29203
      sb.append(this.success);
-
 
29204
      first = false;
-
 
29205
      if (!first) sb.append(", ");
-
 
29206
      sb.append("ex:");
-
 
29207
      if (this.ex == null) {
-
 
29208
        sb.append("null");
-
 
29209
      } else {
-
 
29210
        sb.append(this.ex);
-
 
29211
      }
-
 
29212
      first = false;
-
 
29213
      sb.append(")");
-
 
29214
      return sb.toString();
-
 
29215
    }
-
 
29216
 
-
 
29217
    public void validate() throws TException {
-
 
29218
      // check for required fields
-
 
29219
    }
-
 
29220
 
-
 
29221
  }
-
 
29222
 
-
 
29223
  public static class requestPickupNumber_args implements TBase<requestPickupNumber_args._Fields>, java.io.Serializable, Cloneable, Comparable<requestPickupNumber_args>   {
-
 
29224
    private static final TStruct STRUCT_DESC = new TStruct("requestPickupNumber_args");
-
 
29225
 
-
 
29226
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
-
 
29227
 
-
 
29228
    private long orderId;
-
 
29229
 
-
 
29230
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
29231
    public enum _Fields implements TFieldIdEnum {
-
 
29232
      ORDER_ID((short)1, "orderId");
-
 
29233
 
-
 
29234
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
29235
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
29236
 
-
 
29237
      static {
-
 
29238
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
29239
          byId.put((int)field._thriftId, field);
-
 
29240
          byName.put(field.getFieldName(), field);
-
 
29241
        }
-
 
29242
      }
-
 
29243
 
-
 
29244
      /**
-
 
29245
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
29246
       */
-
 
29247
      public static _Fields findByThriftId(int fieldId) {
-
 
29248
        return byId.get(fieldId);
-
 
29249
      }
-
 
29250
 
-
 
29251
      /**
-
 
29252
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
29253
       * if it is not found.
-
 
29254
       */
-
 
29255
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
29256
        _Fields fields = findByThriftId(fieldId);
-
 
29257
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
29258
        return fields;
-
 
29259
      }
-
 
29260
 
-
 
29261
      /**
-
 
29262
       * Find the _Fields constant that matches name, or null if its not found.
-
 
29263
       */
-
 
29264
      public static _Fields findByName(String name) {
-
 
29265
        return byName.get(name);
-
 
29266
      }
-
 
29267
 
-
 
29268
      private final short _thriftId;
-
 
29269
      private final String _fieldName;
-
 
29270
 
-
 
29271
      _Fields(short thriftId, String fieldName) {
-
 
29272
        _thriftId = thriftId;
-
 
29273
        _fieldName = fieldName;
-
 
29274
      }
-
 
29275
 
-
 
29276
      public short getThriftFieldId() {
-
 
29277
        return _thriftId;
-
 
29278
      }
-
 
29279
 
-
 
29280
      public String getFieldName() {
-
 
29281
        return _fieldName;
-
 
29282
      }
-
 
29283
    }
-
 
29284
 
-
 
29285
    // isset id assignments
-
 
29286
    private static final int __ORDERID_ISSET_ID = 0;
-
 
29287
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
29288
 
-
 
29289
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
29290
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
-
 
29291
          new FieldValueMetaData(TType.I64)));
-
 
29292
    }});
-
 
29293
 
-
 
29294
    static {
-
 
29295
      FieldMetaData.addStructMetaDataMap(requestPickupNumber_args.class, metaDataMap);
-
 
29296
    }
-
 
29297
 
-
 
29298
    public requestPickupNumber_args() {
-
 
29299
    }
-
 
29300
 
-
 
29301
    public requestPickupNumber_args(
-
 
29302
      long orderId)
-
 
29303
    {
-
 
29304
      this();
-
 
29305
      this.orderId = orderId;
-
 
29306
      setOrderIdIsSet(true);
-
 
29307
    }
-
 
29308
 
-
 
29309
    /**
-
 
29310
     * Performs a deep copy on <i>other</i>.
-
 
29311
     */
-
 
29312
    public requestPickupNumber_args(requestPickupNumber_args other) {
-
 
29313
      __isset_bit_vector.clear();
-
 
29314
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
29315
      this.orderId = other.orderId;
-
 
29316
    }
-
 
29317
 
-
 
29318
    public requestPickupNumber_args deepCopy() {
-
 
29319
      return new requestPickupNumber_args(this);
-
 
29320
    }
-
 
29321
 
-
 
29322
    @Deprecated
-
 
29323
    public requestPickupNumber_args clone() {
-
 
29324
      return new requestPickupNumber_args(this);
-
 
29325
    }
-
 
29326
 
-
 
29327
    public long getOrderId() {
-
 
29328
      return this.orderId;
-
 
29329
    }
-
 
29330
 
-
 
29331
    public requestPickupNumber_args setOrderId(long orderId) {
-
 
29332
      this.orderId = orderId;
-
 
29333
      setOrderIdIsSet(true);
-
 
29334
      return this;
-
 
29335
    }
-
 
29336
 
-
 
29337
    public void unsetOrderId() {
-
 
29338
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
29339
    }
-
 
29340
 
-
 
29341
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
-
 
29342
    public boolean isSetOrderId() {
-
 
29343
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
29344
    }
-
 
29345
 
-
 
29346
    public void setOrderIdIsSet(boolean value) {
-
 
29347
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
29348
    }
-
 
29349
 
-
 
29350
    public void setFieldValue(_Fields field, Object value) {
-
 
29351
      switch (field) {
-
 
29352
      case ORDER_ID:
-
 
29353
        if (value == null) {
-
 
29354
          unsetOrderId();
-
 
29355
        } else {
-
 
29356
          setOrderId((Long)value);
-
 
29357
        }
-
 
29358
        break;
-
 
29359
 
-
 
29360
      }
-
 
29361
    }
-
 
29362
 
-
 
29363
    public void setFieldValue(int fieldID, Object value) {
-
 
29364
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
29365
    }
-
 
29366
 
-
 
29367
    public Object getFieldValue(_Fields field) {
-
 
29368
      switch (field) {
-
 
29369
      case ORDER_ID:
-
 
29370
        return new Long(getOrderId());
-
 
29371
 
-
 
29372
      }
-
 
29373
      throw new IllegalStateException();
-
 
29374
    }
-
 
29375
 
-
 
29376
    public Object getFieldValue(int fieldId) {
-
 
29377
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
29378
    }
-
 
29379
 
-
 
29380
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
29381
    public boolean isSet(_Fields field) {
-
 
29382
      switch (field) {
-
 
29383
      case ORDER_ID:
-
 
29384
        return isSetOrderId();
-
 
29385
      }
-
 
29386
      throw new IllegalStateException();
-
 
29387
    }
-
 
29388
 
-
 
29389
    public boolean isSet(int fieldID) {
-
 
29390
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
29391
    }
-
 
29392
 
-
 
29393
    @Override
-
 
29394
    public boolean equals(Object that) {
-
 
29395
      if (that == null)
-
 
29396
        return false;
-
 
29397
      if (that instanceof requestPickupNumber_args)
-
 
29398
        return this.equals((requestPickupNumber_args)that);
-
 
29399
      return false;
-
 
29400
    }
-
 
29401
 
-
 
29402
    public boolean equals(requestPickupNumber_args that) {
-
 
29403
      if (that == null)
-
 
29404
        return false;
-
 
29405
 
-
 
29406
      boolean this_present_orderId = true;
-
 
29407
      boolean that_present_orderId = true;
-
 
29408
      if (this_present_orderId || that_present_orderId) {
-
 
29409
        if (!(this_present_orderId && that_present_orderId))
-
 
29410
          return false;
-
 
29411
        if (this.orderId != that.orderId)
-
 
29412
          return false;
-
 
29413
      }
-
 
29414
 
-
 
29415
      return true;
-
 
29416
    }
-
 
29417
 
-
 
29418
    @Override
-
 
29419
    public int hashCode() {
-
 
29420
      return 0;
-
 
29421
    }
-
 
29422
 
-
 
29423
    public int compareTo(requestPickupNumber_args other) {
-
 
29424
      if (!getClass().equals(other.getClass())) {
-
 
29425
        return getClass().getName().compareTo(other.getClass().getName());
-
 
29426
      }
-
 
29427
 
-
 
29428
      int lastComparison = 0;
-
 
29429
      requestPickupNumber_args typedOther = (requestPickupNumber_args)other;
-
 
29430
 
-
 
29431
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
-
 
29432
      if (lastComparison != 0) {
-
 
29433
        return lastComparison;
-
 
29434
      }
-
 
29435
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
-
 
29436
      if (lastComparison != 0) {
-
 
29437
        return lastComparison;
-
 
29438
      }
-
 
29439
      return 0;
-
 
29440
    }
-
 
29441
 
-
 
29442
    public void read(TProtocol iprot) throws TException {
-
 
29443
      TField field;
-
 
29444
      iprot.readStructBegin();
-
 
29445
      while (true)
-
 
29446
      {
-
 
29447
        field = iprot.readFieldBegin();
-
 
29448
        if (field.type == TType.STOP) { 
-
 
29449
          break;
-
 
29450
        }
-
 
29451
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
29452
        if (fieldId == null) {
-
 
29453
          TProtocolUtil.skip(iprot, field.type);
-
 
29454
        } else {
-
 
29455
          switch (fieldId) {
-
 
29456
            case ORDER_ID:
-
 
29457
              if (field.type == TType.I64) {
-
 
29458
                this.orderId = iprot.readI64();
-
 
29459
                setOrderIdIsSet(true);
-
 
29460
              } else { 
-
 
29461
                TProtocolUtil.skip(iprot, field.type);
-
 
29462
              }
-
 
29463
              break;
-
 
29464
          }
-
 
29465
          iprot.readFieldEnd();
-
 
29466
        }
-
 
29467
      }
-
 
29468
      iprot.readStructEnd();
-
 
29469
      validate();
-
 
29470
    }
-
 
29471
 
-
 
29472
    public void write(TProtocol oprot) throws TException {
-
 
29473
      validate();
-
 
29474
 
-
 
29475
      oprot.writeStructBegin(STRUCT_DESC);
-
 
29476
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
29477
      oprot.writeI64(this.orderId);
-
 
29478
      oprot.writeFieldEnd();
-
 
29479
      oprot.writeFieldStop();
-
 
29480
      oprot.writeStructEnd();
-
 
29481
    }
-
 
29482
 
-
 
29483
    @Override
-
 
29484
    public String toString() {
-
 
29485
      StringBuilder sb = new StringBuilder("requestPickupNumber_args(");
-
 
29486
      boolean first = true;
-
 
29487
 
-
 
29488
      sb.append("orderId:");
-
 
29489
      sb.append(this.orderId);
-
 
29490
      first = false;
-
 
29491
      sb.append(")");
-
 
29492
      return sb.toString();
-
 
29493
    }
-
 
29494
 
-
 
29495
    public void validate() throws TException {
-
 
29496
      // check for required fields
-
 
29497
    }
-
 
29498
 
-
 
29499
  }
-
 
29500
 
-
 
29501
  public static class requestPickupNumber_result implements TBase<requestPickupNumber_result._Fields>, java.io.Serializable, Cloneable, Comparable<requestPickupNumber_result>   {
-
 
29502
    private static final TStruct STRUCT_DESC = new TStruct("requestPickupNumber_result");
-
 
29503
 
-
 
29504
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
-
 
29505
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
29506
 
-
 
29507
    private boolean success;
-
 
29508
    private TransactionServiceException ex;
-
 
29509
 
-
 
29510
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
29511
    public enum _Fields implements TFieldIdEnum {
-
 
29512
      SUCCESS((short)0, "success"),
-
 
29513
      EX((short)1, "ex");
-
 
29514
 
-
 
29515
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
29516
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
29517
 
-
 
29518
      static {
-
 
29519
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
29520
          byId.put((int)field._thriftId, field);
-
 
29521
          byName.put(field.getFieldName(), field);
-
 
29522
        }
-
 
29523
      }
-
 
29524
 
-
 
29525
      /**
-
 
29526
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
29527
       */
-
 
29528
      public static _Fields findByThriftId(int fieldId) {
-
 
29529
        return byId.get(fieldId);
-
 
29530
      }
-
 
29531
 
-
 
29532
      /**
-
 
29533
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
29534
       * if it is not found.
-
 
29535
       */
-
 
29536
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
29537
        _Fields fields = findByThriftId(fieldId);
-
 
29538
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
29539
        return fields;
-
 
29540
      }
-
 
29541
 
-
 
29542
      /**
-
 
29543
       * Find the _Fields constant that matches name, or null if its not found.
-
 
29544
       */
-
 
29545
      public static _Fields findByName(String name) {
-
 
29546
        return byName.get(name);
-
 
29547
      }
-
 
29548
 
-
 
29549
      private final short _thriftId;
-
 
29550
      private final String _fieldName;
-
 
29551
 
-
 
29552
      _Fields(short thriftId, String fieldName) {
-
 
29553
        _thriftId = thriftId;
-
 
29554
        _fieldName = fieldName;
-
 
29555
      }
-
 
29556
 
-
 
29557
      public short getThriftFieldId() {
-
 
29558
        return _thriftId;
-
 
29559
      }
-
 
29560
 
-
 
29561
      public String getFieldName() {
-
 
29562
        return _fieldName;
-
 
29563
      }
-
 
29564
    }
-
 
29565
 
-
 
29566
    // isset id assignments
-
 
29567
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
29568
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
29569
 
-
 
29570
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
29571
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
29572
          new FieldValueMetaData(TType.BOOL)));
-
 
29573
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
29574
          new FieldValueMetaData(TType.STRUCT)));
-
 
29575
    }});
-
 
29576
 
-
 
29577
    static {
-
 
29578
      FieldMetaData.addStructMetaDataMap(requestPickupNumber_result.class, metaDataMap);
-
 
29579
    }
-
 
29580
 
-
 
29581
    public requestPickupNumber_result() {
-
 
29582
    }
-
 
29583
 
-
 
29584
    public requestPickupNumber_result(
-
 
29585
      boolean success,
-
 
29586
      TransactionServiceException ex)
-
 
29587
    {
-
 
29588
      this();
-
 
29589
      this.success = success;
-
 
29590
      setSuccessIsSet(true);
-
 
29591
      this.ex = ex;
-
 
29592
    }
-
 
29593
 
-
 
29594
    /**
-
 
29595
     * Performs a deep copy on <i>other</i>.
-
 
29596
     */
-
 
29597
    public requestPickupNumber_result(requestPickupNumber_result other) {
-
 
29598
      __isset_bit_vector.clear();
-
 
29599
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
29600
      this.success = other.success;
-
 
29601
      if (other.isSetEx()) {
-
 
29602
        this.ex = new TransactionServiceException(other.ex);
-
 
29603
      }
-
 
29604
    }
-
 
29605
 
-
 
29606
    public requestPickupNumber_result deepCopy() {
-
 
29607
      return new requestPickupNumber_result(this);
-
 
29608
    }
-
 
29609
 
-
 
29610
    @Deprecated
-
 
29611
    public requestPickupNumber_result clone() {
-
 
29612
      return new requestPickupNumber_result(this);
-
 
29613
    }
-
 
29614
 
-
 
29615
    public boolean isSuccess() {
-
 
29616
      return this.success;
-
 
29617
    }
-
 
29618
 
-
 
29619
    public requestPickupNumber_result setSuccess(boolean success) {
-
 
29620
      this.success = success;
-
 
29621
      setSuccessIsSet(true);
-
 
29622
      return this;
-
 
29623
    }
-
 
29624
 
-
 
29625
    public void unsetSuccess() {
-
 
29626
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
29627
    }
-
 
29628
 
-
 
29629
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
29630
    public boolean isSetSuccess() {
-
 
29631
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
29632
    }
-
 
29633
 
-
 
29634
    public void setSuccessIsSet(boolean value) {
-
 
29635
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
29636
    }
-
 
29637
 
-
 
29638
    public TransactionServiceException getEx() {
-
 
29639
      return this.ex;
-
 
29640
    }
-
 
29641
 
-
 
29642
    public requestPickupNumber_result setEx(TransactionServiceException ex) {
-
 
29643
      this.ex = ex;
-
 
29644
      return this;
-
 
29645
    }
-
 
29646
 
-
 
29647
    public void unsetEx() {
-
 
29648
      this.ex = null;
-
 
29649
    }
-
 
29650
 
-
 
29651
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
29652
    public boolean isSetEx() {
-
 
29653
      return this.ex != null;
-
 
29654
    }
-
 
29655
 
-
 
29656
    public void setExIsSet(boolean value) {
-
 
29657
      if (!value) {
-
 
29658
        this.ex = null;
-
 
29659
      }
-
 
29660
    }
-
 
29661
 
-
 
29662
    public void setFieldValue(_Fields field, Object value) {
-
 
29663
      switch (field) {
-
 
29664
      case SUCCESS:
-
 
29665
        if (value == null) {
-
 
29666
          unsetSuccess();
-
 
29667
        } else {
-
 
29668
          setSuccess((Boolean)value);
-
 
29669
        }
-
 
29670
        break;
-
 
29671
 
-
 
29672
      case EX:
-
 
29673
        if (value == null) {
-
 
29674
          unsetEx();
-
 
29675
        } else {
-
 
29676
          setEx((TransactionServiceException)value);
-
 
29677
        }
-
 
29678
        break;
-
 
29679
 
-
 
29680
      }
-
 
29681
    }
-
 
29682
 
-
 
29683
    public void setFieldValue(int fieldID, Object value) {
-
 
29684
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
29685
    }
-
 
29686
 
-
 
29687
    public Object getFieldValue(_Fields field) {
-
 
29688
      switch (field) {
-
 
29689
      case SUCCESS:
-
 
29690
        return new Boolean(isSuccess());
-
 
29691
 
-
 
29692
      case EX:
-
 
29693
        return getEx();
-
 
29694
 
-
 
29695
      }
-
 
29696
      throw new IllegalStateException();
-
 
29697
    }
-
 
29698
 
-
 
29699
    public Object getFieldValue(int fieldId) {
-
 
29700
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
29701
    }
-
 
29702
 
-
 
29703
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
29704
    public boolean isSet(_Fields field) {
-
 
29705
      switch (field) {
-
 
29706
      case SUCCESS:
-
 
29707
        return isSetSuccess();
-
 
29708
      case EX:
-
 
29709
        return isSetEx();
-
 
29710
      }
-
 
29711
      throw new IllegalStateException();
-
 
29712
    }
-
 
29713
 
-
 
29714
    public boolean isSet(int fieldID) {
-
 
29715
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
29716
    }
-
 
29717
 
-
 
29718
    @Override
-
 
29719
    public boolean equals(Object that) {
-
 
29720
      if (that == null)
-
 
29721
        return false;
-
 
29722
      if (that instanceof requestPickupNumber_result)
-
 
29723
        return this.equals((requestPickupNumber_result)that);
-
 
29724
      return false;
-
 
29725
    }
-
 
29726
 
-
 
29727
    public boolean equals(requestPickupNumber_result that) {
-
 
29728
      if (that == null)
-
 
29729
        return false;
-
 
29730
 
-
 
29731
      boolean this_present_success = true;
-
 
29732
      boolean that_present_success = true;
-
 
29733
      if (this_present_success || that_present_success) {
-
 
29734
        if (!(this_present_success && that_present_success))
-
 
29735
          return false;
-
 
29736
        if (this.success != that.success)
-
 
29737
          return false;
-
 
29738
      }
-
 
29739
 
-
 
29740
      boolean this_present_ex = true && this.isSetEx();
-
 
29741
      boolean that_present_ex = true && that.isSetEx();
-
 
29742
      if (this_present_ex || that_present_ex) {
-
 
29743
        if (!(this_present_ex && that_present_ex))
-
 
29744
          return false;
-
 
29745
        if (!this.ex.equals(that.ex))
-
 
29746
          return false;
-
 
29747
      }
-
 
29748
 
-
 
29749
      return true;
-
 
29750
    }
-
 
29751
 
-
 
29752
    @Override
-
 
29753
    public int hashCode() {
-
 
29754
      return 0;
-
 
29755
    }
-
 
29756
 
-
 
29757
    public int compareTo(requestPickupNumber_result other) {
-
 
29758
      if (!getClass().equals(other.getClass())) {
-
 
29759
        return getClass().getName().compareTo(other.getClass().getName());
-
 
29760
      }
-
 
29761
 
-
 
29762
      int lastComparison = 0;
-
 
29763
      requestPickupNumber_result typedOther = (requestPickupNumber_result)other;
-
 
29764
 
-
 
29765
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
29766
      if (lastComparison != 0) {
-
 
29767
        return lastComparison;
-
 
29768
      }
-
 
29769
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
29770
      if (lastComparison != 0) {
-
 
29771
        return lastComparison;
-
 
29772
      }
-
 
29773
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
29774
      if (lastComparison != 0) {
-
 
29775
        return lastComparison;
-
 
29776
      }
-
 
29777
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
29778
      if (lastComparison != 0) {
-
 
29779
        return lastComparison;
-
 
29780
      }
-
 
29781
      return 0;
-
 
29782
    }
-
 
29783
 
-
 
29784
    public void read(TProtocol iprot) throws TException {
-
 
29785
      TField field;
-
 
29786
      iprot.readStructBegin();
-
 
29787
      while (true)
-
 
29788
      {
-
 
29789
        field = iprot.readFieldBegin();
-
 
29790
        if (field.type == TType.STOP) { 
-
 
29791
          break;
-
 
29792
        }
-
 
29793
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
29794
        if (fieldId == null) {
-
 
29795
          TProtocolUtil.skip(iprot, field.type);
-
 
29796
        } else {
-
 
29797
          switch (fieldId) {
-
 
29798
            case SUCCESS:
-
 
29799
              if (field.type == TType.BOOL) {
-
 
29800
                this.success = iprot.readBool();
-
 
29801
                setSuccessIsSet(true);
-
 
29802
              } else { 
-
 
29803
                TProtocolUtil.skip(iprot, field.type);
-
 
29804
              }
-
 
29805
              break;
-
 
29806
            case EX:
-
 
29807
              if (field.type == TType.STRUCT) {
-
 
29808
                this.ex = new TransactionServiceException();
-
 
29809
                this.ex.read(iprot);
-
 
29810
              } else { 
-
 
29811
                TProtocolUtil.skip(iprot, field.type);
-
 
29812
              }
-
 
29813
              break;
-
 
29814
          }
-
 
29815
          iprot.readFieldEnd();
-
 
29816
        }
-
 
29817
      }
-
 
29818
      iprot.readStructEnd();
-
 
29819
      validate();
-
 
29820
    }
-
 
29821
 
-
 
29822
    public void write(TProtocol oprot) throws TException {
-
 
29823
      oprot.writeStructBegin(STRUCT_DESC);
-
 
29824
 
-
 
29825
      if (this.isSetSuccess()) {
-
 
29826
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
29827
        oprot.writeBool(this.success);
-
 
29828
        oprot.writeFieldEnd();
-
 
29829
      } else if (this.isSetEx()) {
-
 
29830
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
29831
        this.ex.write(oprot);
-
 
29832
        oprot.writeFieldEnd();
-
 
29833
      }
-
 
29834
      oprot.writeFieldStop();
-
 
29835
      oprot.writeStructEnd();
-
 
29836
    }
-
 
29837
 
-
 
29838
    @Override
-
 
29839
    public String toString() {
-
 
29840
      StringBuilder sb = new StringBuilder("requestPickupNumber_result(");
-
 
29841
      boolean first = true;
-
 
29842
 
-
 
29843
      sb.append("success:");
-
 
29844
      sb.append(this.success);
-
 
29845
      first = false;
-
 
29846
      if (!first) sb.append(", ");
-
 
29847
      sb.append("ex:");
-
 
29848
      if (this.ex == null) {
-
 
29849
        sb.append("null");
-
 
29850
      } else {
-
 
29851
        sb.append(this.ex);
-
 
29852
      }
-
 
29853
      first = false;
-
 
29854
      sb.append(")");
-
 
29855
      return sb.toString();
-
 
29856
    }
-
 
29857
 
-
 
29858
    public void validate() throws TException {
-
 
29859
      // check for required fields
-
 
29860
    }
-
 
29861
 
-
 
29862
  }
-
 
29863
 
-
 
29864
  public static class authorizePickup_args implements TBase<authorizePickup_args._Fields>, java.io.Serializable, Cloneable, Comparable<authorizePickup_args>   {
-
 
29865
    private static final TStruct STRUCT_DESC = new TStruct("authorizePickup_args");
-
 
29866
 
-
 
29867
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
-
 
29868
    private static final TField PICKUP_NUMBER_FIELD_DESC = new TField("pickupNumber", TType.STRING, (short)2);
-
 
29869
 
-
 
29870
    private long orderId;
-
 
29871
    private String pickupNumber;
-
 
29872
 
-
 
29873
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
29874
    public enum _Fields implements TFieldIdEnum {
-
 
29875
      ORDER_ID((short)1, "orderId"),
-
 
29876
      PICKUP_NUMBER((short)2, "pickupNumber");
-
 
29877
 
-
 
29878
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
29879
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
29880
 
-
 
29881
      static {
-
 
29882
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
29883
          byId.put((int)field._thriftId, field);
-
 
29884
          byName.put(field.getFieldName(), field);
-
 
29885
        }
-
 
29886
      }
-
 
29887
 
-
 
29888
      /**
-
 
29889
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
29890
       */
-
 
29891
      public static _Fields findByThriftId(int fieldId) {
-
 
29892
        return byId.get(fieldId);
-
 
29893
      }
-
 
29894
 
-
 
29895
      /**
-
 
29896
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
29897
       * if it is not found.
-
 
29898
       */
-
 
29899
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
29900
        _Fields fields = findByThriftId(fieldId);
-
 
29901
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
29902
        return fields;
-
 
29903
      }
-
 
29904
 
-
 
29905
      /**
-
 
29906
       * Find the _Fields constant that matches name, or null if its not found.
-
 
29907
       */
-
 
29908
      public static _Fields findByName(String name) {
-
 
29909
        return byName.get(name);
-
 
29910
      }
-
 
29911
 
-
 
29912
      private final short _thriftId;
-
 
29913
      private final String _fieldName;
-
 
29914
 
-
 
29915
      _Fields(short thriftId, String fieldName) {
-
 
29916
        _thriftId = thriftId;
-
 
29917
        _fieldName = fieldName;
-
 
29918
      }
-
 
29919
 
-
 
29920
      public short getThriftFieldId() {
-
 
29921
        return _thriftId;
-
 
29922
      }
-
 
29923
 
-
 
29924
      public String getFieldName() {
-
 
29925
        return _fieldName;
-
 
29926
      }
-
 
29927
    }
-
 
29928
 
-
 
29929
    // isset id assignments
-
 
29930
    private static final int __ORDERID_ISSET_ID = 0;
-
 
29931
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
29932
 
-
 
29933
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
29934
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
-
 
29935
          new FieldValueMetaData(TType.I64)));
-
 
29936
      put(_Fields.PICKUP_NUMBER, new FieldMetaData("pickupNumber", TFieldRequirementType.DEFAULT, 
-
 
29937
          new FieldValueMetaData(TType.STRING)));
-
 
29938
    }});
-
 
29939
 
-
 
29940
    static {
-
 
29941
      FieldMetaData.addStructMetaDataMap(authorizePickup_args.class, metaDataMap);
-
 
29942
    }
-
 
29943
 
-
 
29944
    public authorizePickup_args() {
-
 
29945
    }
-
 
29946
 
-
 
29947
    public authorizePickup_args(
-
 
29948
      long orderId,
-
 
29949
      String pickupNumber)
-
 
29950
    {
-
 
29951
      this();
-
 
29952
      this.orderId = orderId;
-
 
29953
      setOrderIdIsSet(true);
-
 
29954
      this.pickupNumber = pickupNumber;
-
 
29955
    }
-
 
29956
 
-
 
29957
    /**
-
 
29958
     * Performs a deep copy on <i>other</i>.
-
 
29959
     */
-
 
29960
    public authorizePickup_args(authorizePickup_args other) {
-
 
29961
      __isset_bit_vector.clear();
-
 
29962
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
29963
      this.orderId = other.orderId;
-
 
29964
      if (other.isSetPickupNumber()) {
-
 
29965
        this.pickupNumber = other.pickupNumber;
-
 
29966
      }
-
 
29967
    }
-
 
29968
 
-
 
29969
    public authorizePickup_args deepCopy() {
-
 
29970
      return new authorizePickup_args(this);
-
 
29971
    }
-
 
29972
 
-
 
29973
    @Deprecated
-
 
29974
    public authorizePickup_args clone() {
-
 
29975
      return new authorizePickup_args(this);
-
 
29976
    }
-
 
29977
 
-
 
29978
    public long getOrderId() {
-
 
29979
      return this.orderId;
-
 
29980
    }
-
 
29981
 
-
 
29982
    public authorizePickup_args setOrderId(long orderId) {
-
 
29983
      this.orderId = orderId;
-
 
29984
      setOrderIdIsSet(true);
-
 
29985
      return this;
-
 
29986
    }
-
 
29987
 
-
 
29988
    public void unsetOrderId() {
-
 
29989
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
29990
    }
-
 
29991
 
-
 
29992
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
-
 
29993
    public boolean isSetOrderId() {
-
 
29994
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
29995
    }
-
 
29996
 
-
 
29997
    public void setOrderIdIsSet(boolean value) {
-
 
29998
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
29999
    }
-
 
30000
 
-
 
30001
    public String getPickupNumber() {
-
 
30002
      return this.pickupNumber;
-
 
30003
    }
-
 
30004
 
-
 
30005
    public authorizePickup_args setPickupNumber(String pickupNumber) {
-
 
30006
      this.pickupNumber = pickupNumber;
-
 
30007
      return this;
-
 
30008
    }
-
 
30009
 
-
 
30010
    public void unsetPickupNumber() {
-
 
30011
      this.pickupNumber = null;
-
 
30012
    }
-
 
30013
 
-
 
30014
    /** Returns true if field pickupNumber is set (has been asigned a value) and false otherwise */
-
 
30015
    public boolean isSetPickupNumber() {
-
 
30016
      return this.pickupNumber != null;
-
 
30017
    }
-
 
30018
 
-
 
30019
    public void setPickupNumberIsSet(boolean value) {
-
 
30020
      if (!value) {
-
 
30021
        this.pickupNumber = null;
-
 
30022
      }
-
 
30023
    }
-
 
30024
 
-
 
30025
    public void setFieldValue(_Fields field, Object value) {
-
 
30026
      switch (field) {
-
 
30027
      case ORDER_ID:
-
 
30028
        if (value == null) {
-
 
30029
          unsetOrderId();
-
 
30030
        } else {
-
 
30031
          setOrderId((Long)value);
-
 
30032
        }
-
 
30033
        break;
-
 
30034
 
-
 
30035
      case PICKUP_NUMBER:
-
 
30036
        if (value == null) {
-
 
30037
          unsetPickupNumber();
-
 
30038
        } else {
-
 
30039
          setPickupNumber((String)value);
-
 
30040
        }
-
 
30041
        break;
-
 
30042
 
-
 
30043
      }
-
 
30044
    }
-
 
30045
 
-
 
30046
    public void setFieldValue(int fieldID, Object value) {
-
 
30047
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
30048
    }
-
 
30049
 
-
 
30050
    public Object getFieldValue(_Fields field) {
-
 
30051
      switch (field) {
-
 
30052
      case ORDER_ID:
-
 
30053
        return new Long(getOrderId());
-
 
30054
 
-
 
30055
      case PICKUP_NUMBER:
-
 
30056
        return getPickupNumber();
-
 
30057
 
-
 
30058
      }
-
 
30059
      throw new IllegalStateException();
-
 
30060
    }
-
 
30061
 
-
 
30062
    public Object getFieldValue(int fieldId) {
-
 
30063
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
30064
    }
-
 
30065
 
-
 
30066
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
30067
    public boolean isSet(_Fields field) {
-
 
30068
      switch (field) {
-
 
30069
      case ORDER_ID:
-
 
30070
        return isSetOrderId();
-
 
30071
      case PICKUP_NUMBER:
-
 
30072
        return isSetPickupNumber();
-
 
30073
      }
-
 
30074
      throw new IllegalStateException();
-
 
30075
    }
-
 
30076
 
-
 
30077
    public boolean isSet(int fieldID) {
-
 
30078
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
30079
    }
-
 
30080
 
-
 
30081
    @Override
-
 
30082
    public boolean equals(Object that) {
-
 
30083
      if (that == null)
-
 
30084
        return false;
-
 
30085
      if (that instanceof authorizePickup_args)
-
 
30086
        return this.equals((authorizePickup_args)that);
-
 
30087
      return false;
-
 
30088
    }
-
 
30089
 
-
 
30090
    public boolean equals(authorizePickup_args that) {
-
 
30091
      if (that == null)
-
 
30092
        return false;
-
 
30093
 
-
 
30094
      boolean this_present_orderId = true;
-
 
30095
      boolean that_present_orderId = true;
-
 
30096
      if (this_present_orderId || that_present_orderId) {
-
 
30097
        if (!(this_present_orderId && that_present_orderId))
-
 
30098
          return false;
-
 
30099
        if (this.orderId != that.orderId)
-
 
30100
          return false;
-
 
30101
      }
-
 
30102
 
-
 
30103
      boolean this_present_pickupNumber = true && this.isSetPickupNumber();
-
 
30104
      boolean that_present_pickupNumber = true && that.isSetPickupNumber();
-
 
30105
      if (this_present_pickupNumber || that_present_pickupNumber) {
-
 
30106
        if (!(this_present_pickupNumber && that_present_pickupNumber))
-
 
30107
          return false;
-
 
30108
        if (!this.pickupNumber.equals(that.pickupNumber))
-
 
30109
          return false;
-
 
30110
      }
-
 
30111
 
-
 
30112
      return true;
-
 
30113
    }
-
 
30114
 
-
 
30115
    @Override
-
 
30116
    public int hashCode() {
-
 
30117
      return 0;
-
 
30118
    }
-
 
30119
 
-
 
30120
    public int compareTo(authorizePickup_args other) {
-
 
30121
      if (!getClass().equals(other.getClass())) {
-
 
30122
        return getClass().getName().compareTo(other.getClass().getName());
-
 
30123
      }
-
 
30124
 
-
 
30125
      int lastComparison = 0;
-
 
30126
      authorizePickup_args typedOther = (authorizePickup_args)other;
-
 
30127
 
-
 
30128
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
-
 
30129
      if (lastComparison != 0) {
-
 
30130
        return lastComparison;
-
 
30131
      }
-
 
30132
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
-
 
30133
      if (lastComparison != 0) {
-
 
30134
        return lastComparison;
-
 
30135
      }
-
 
30136
      lastComparison = Boolean.valueOf(isSetPickupNumber()).compareTo(isSetPickupNumber());
-
 
30137
      if (lastComparison != 0) {
-
 
30138
        return lastComparison;
-
 
30139
      }
-
 
30140
      lastComparison = TBaseHelper.compareTo(pickupNumber, typedOther.pickupNumber);
-
 
30141
      if (lastComparison != 0) {
-
 
30142
        return lastComparison;
-
 
30143
      }
-
 
30144
      return 0;
-
 
30145
    }
-
 
30146
 
-
 
30147
    public void read(TProtocol iprot) throws TException {
-
 
30148
      TField field;
-
 
30149
      iprot.readStructBegin();
-
 
30150
      while (true)
-
 
30151
      {
-
 
30152
        field = iprot.readFieldBegin();
-
 
30153
        if (field.type == TType.STOP) { 
-
 
30154
          break;
-
 
30155
        }
-
 
30156
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
30157
        if (fieldId == null) {
-
 
30158
          TProtocolUtil.skip(iprot, field.type);
-
 
30159
        } else {
-
 
30160
          switch (fieldId) {
-
 
30161
            case ORDER_ID:
-
 
30162
              if (field.type == TType.I64) {
-
 
30163
                this.orderId = iprot.readI64();
-
 
30164
                setOrderIdIsSet(true);
-
 
30165
              } else { 
-
 
30166
                TProtocolUtil.skip(iprot, field.type);
-
 
30167
              }
-
 
30168
              break;
-
 
30169
            case PICKUP_NUMBER:
-
 
30170
              if (field.type == TType.STRING) {
-
 
30171
                this.pickupNumber = iprot.readString();
-
 
30172
              } else { 
-
 
30173
                TProtocolUtil.skip(iprot, field.type);
-
 
30174
              }
-
 
30175
              break;
-
 
30176
          }
-
 
30177
          iprot.readFieldEnd();
-
 
30178
        }
-
 
30179
      }
-
 
30180
      iprot.readStructEnd();
-
 
30181
      validate();
-
 
30182
    }
-
 
30183
 
-
 
30184
    public void write(TProtocol oprot) throws TException {
-
 
30185
      validate();
-
 
30186
 
-
 
30187
      oprot.writeStructBegin(STRUCT_DESC);
-
 
30188
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
30189
      oprot.writeI64(this.orderId);
-
 
30190
      oprot.writeFieldEnd();
-
 
30191
      if (this.pickupNumber != null) {
-
 
30192
        oprot.writeFieldBegin(PICKUP_NUMBER_FIELD_DESC);
-
 
30193
        oprot.writeString(this.pickupNumber);
-
 
30194
        oprot.writeFieldEnd();
-
 
30195
      }
-
 
30196
      oprot.writeFieldStop();
-
 
30197
      oprot.writeStructEnd();
-
 
30198
    }
-
 
30199
 
-
 
30200
    @Override
-
 
30201
    public String toString() {
-
 
30202
      StringBuilder sb = new StringBuilder("authorizePickup_args(");
-
 
30203
      boolean first = true;
-
 
30204
 
-
 
30205
      sb.append("orderId:");
-
 
30206
      sb.append(this.orderId);
-
 
30207
      first = false;
-
 
30208
      if (!first) sb.append(", ");
-
 
30209
      sb.append("pickupNumber:");
-
 
30210
      if (this.pickupNumber == null) {
-
 
30211
        sb.append("null");
-
 
30212
      } else {
-
 
30213
        sb.append(this.pickupNumber);
-
 
30214
      }
-
 
30215
      first = false;
-
 
30216
      sb.append(")");
-
 
30217
      return sb.toString();
-
 
30218
    }
-
 
30219
 
-
 
30220
    public void validate() throws TException {
-
 
30221
      // check for required fields
-
 
30222
    }
-
 
30223
 
-
 
30224
  }
-
 
30225
 
-
 
30226
  public static class authorizePickup_result implements TBase<authorizePickup_result._Fields>, java.io.Serializable, Cloneable, Comparable<authorizePickup_result>   {
-
 
30227
    private static final TStruct STRUCT_DESC = new TStruct("authorizePickup_result");
-
 
30228
 
-
 
30229
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
-
 
30230
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
30231
 
-
 
30232
    private boolean success;
-
 
30233
    private TransactionServiceException ex;
-
 
30234
 
-
 
30235
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
30236
    public enum _Fields implements TFieldIdEnum {
-
 
30237
      SUCCESS((short)0, "success"),
-
 
30238
      EX((short)1, "ex");
-
 
30239
 
-
 
30240
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
30241
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
30242
 
-
 
30243
      static {
-
 
30244
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
30245
          byId.put((int)field._thriftId, field);
-
 
30246
          byName.put(field.getFieldName(), field);
-
 
30247
        }
-
 
30248
      }
-
 
30249
 
-
 
30250
      /**
-
 
30251
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
30252
       */
-
 
30253
      public static _Fields findByThriftId(int fieldId) {
-
 
30254
        return byId.get(fieldId);
-
 
30255
      }
-
 
30256
 
-
 
30257
      /**
-
 
30258
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
30259
       * if it is not found.
-
 
30260
       */
-
 
30261
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
30262
        _Fields fields = findByThriftId(fieldId);
-
 
30263
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
30264
        return fields;
-
 
30265
      }
-
 
30266
 
-
 
30267
      /**
-
 
30268
       * Find the _Fields constant that matches name, or null if its not found.
-
 
30269
       */
-
 
30270
      public static _Fields findByName(String name) {
-
 
30271
        return byName.get(name);
-
 
30272
      }
-
 
30273
 
-
 
30274
      private final short _thriftId;
-
 
30275
      private final String _fieldName;
-
 
30276
 
-
 
30277
      _Fields(short thriftId, String fieldName) {
-
 
30278
        _thriftId = thriftId;
-
 
30279
        _fieldName = fieldName;
-
 
30280
      }
-
 
30281
 
-
 
30282
      public short getThriftFieldId() {
-
 
30283
        return _thriftId;
-
 
30284
      }
-
 
30285
 
-
 
30286
      public String getFieldName() {
-
 
30287
        return _fieldName;
-
 
30288
      }
-
 
30289
    }
-
 
30290
 
-
 
30291
    // isset id assignments
-
 
30292
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
30293
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
30294
 
-
 
30295
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
30296
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
30297
          new FieldValueMetaData(TType.BOOL)));
-
 
30298
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
30299
          new FieldValueMetaData(TType.STRUCT)));
-
 
30300
    }});
-
 
30301
 
-
 
30302
    static {
-
 
30303
      FieldMetaData.addStructMetaDataMap(authorizePickup_result.class, metaDataMap);
-
 
30304
    }
-
 
30305
 
-
 
30306
    public authorizePickup_result() {
-
 
30307
    }
-
 
30308
 
-
 
30309
    public authorizePickup_result(
-
 
30310
      boolean success,
-
 
30311
      TransactionServiceException ex)
-
 
30312
    {
-
 
30313
      this();
-
 
30314
      this.success = success;
-
 
30315
      setSuccessIsSet(true);
-
 
30316
      this.ex = ex;
-
 
30317
    }
-
 
30318
 
-
 
30319
    /**
-
 
30320
     * Performs a deep copy on <i>other</i>.
-
 
30321
     */
-
 
30322
    public authorizePickup_result(authorizePickup_result other) {
-
 
30323
      __isset_bit_vector.clear();
-
 
30324
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
30325
      this.success = other.success;
-
 
30326
      if (other.isSetEx()) {
-
 
30327
        this.ex = new TransactionServiceException(other.ex);
-
 
30328
      }
-
 
30329
    }
-
 
30330
 
-
 
30331
    public authorizePickup_result deepCopy() {
-
 
30332
      return new authorizePickup_result(this);
-
 
30333
    }
-
 
30334
 
-
 
30335
    @Deprecated
-
 
30336
    public authorizePickup_result clone() {
-
 
30337
      return new authorizePickup_result(this);
-
 
30338
    }
-
 
30339
 
-
 
30340
    public boolean isSuccess() {
-
 
30341
      return this.success;
-
 
30342
    }
-
 
30343
 
-
 
30344
    public authorizePickup_result setSuccess(boolean success) {
-
 
30345
      this.success = success;
-
 
30346
      setSuccessIsSet(true);
-
 
30347
      return this;
-
 
30348
    }
-
 
30349
 
-
 
30350
    public void unsetSuccess() {
-
 
30351
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
30352
    }
-
 
30353
 
-
 
30354
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
30355
    public boolean isSetSuccess() {
-
 
30356
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
30357
    }
-
 
30358
 
-
 
30359
    public void setSuccessIsSet(boolean value) {
-
 
30360
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
30361
    }
-
 
30362
 
-
 
30363
    public TransactionServiceException getEx() {
-
 
30364
      return this.ex;
-
 
30365
    }
-
 
30366
 
-
 
30367
    public authorizePickup_result setEx(TransactionServiceException ex) {
-
 
30368
      this.ex = ex;
-
 
30369
      return this;
-
 
30370
    }
-
 
30371
 
-
 
30372
    public void unsetEx() {
-
 
30373
      this.ex = null;
-
 
30374
    }
-
 
30375
 
-
 
30376
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
30377
    public boolean isSetEx() {
-
 
30378
      return this.ex != null;
-
 
30379
    }
-
 
30380
 
-
 
30381
    public void setExIsSet(boolean value) {
-
 
30382
      if (!value) {
-
 
30383
        this.ex = null;
-
 
30384
      }
-
 
30385
    }
-
 
30386
 
-
 
30387
    public void setFieldValue(_Fields field, Object value) {
-
 
30388
      switch (field) {
-
 
30389
      case SUCCESS:
-
 
30390
        if (value == null) {
-
 
30391
          unsetSuccess();
-
 
30392
        } else {
-
 
30393
          setSuccess((Boolean)value);
-
 
30394
        }
-
 
30395
        break;
-
 
30396
 
-
 
30397
      case EX:
-
 
30398
        if (value == null) {
-
 
30399
          unsetEx();
-
 
30400
        } else {
-
 
30401
          setEx((TransactionServiceException)value);
-
 
30402
        }
-
 
30403
        break;
-
 
30404
 
-
 
30405
      }
-
 
30406
    }
-
 
30407
 
-
 
30408
    public void setFieldValue(int fieldID, Object value) {
-
 
30409
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
30410
    }
-
 
30411
 
-
 
30412
    public Object getFieldValue(_Fields field) {
-
 
30413
      switch (field) {
-
 
30414
      case SUCCESS:
-
 
30415
        return new Boolean(isSuccess());
-
 
30416
 
-
 
30417
      case EX:
-
 
30418
        return getEx();
-
 
30419
 
-
 
30420
      }
-
 
30421
      throw new IllegalStateException();
-
 
30422
    }
-
 
30423
 
-
 
30424
    public Object getFieldValue(int fieldId) {
-
 
30425
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
30426
    }
-
 
30427
 
-
 
30428
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
30429
    public boolean isSet(_Fields field) {
-
 
30430
      switch (field) {
-
 
30431
      case SUCCESS:
-
 
30432
        return isSetSuccess();
-
 
30433
      case EX:
-
 
30434
        return isSetEx();
-
 
30435
      }
-
 
30436
      throw new IllegalStateException();
-
 
30437
    }
-
 
30438
 
-
 
30439
    public boolean isSet(int fieldID) {
-
 
30440
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
30441
    }
-
 
30442
 
-
 
30443
    @Override
-
 
30444
    public boolean equals(Object that) {
-
 
30445
      if (that == null)
-
 
30446
        return false;
-
 
30447
      if (that instanceof authorizePickup_result)
-
 
30448
        return this.equals((authorizePickup_result)that);
-
 
30449
      return false;
-
 
30450
    }
-
 
30451
 
-
 
30452
    public boolean equals(authorizePickup_result that) {
-
 
30453
      if (that == null)
-
 
30454
        return false;
-
 
30455
 
-
 
30456
      boolean this_present_success = true;
-
 
30457
      boolean that_present_success = true;
-
 
30458
      if (this_present_success || that_present_success) {
-
 
30459
        if (!(this_present_success && that_present_success))
-
 
30460
          return false;
-
 
30461
        if (this.success != that.success)
-
 
30462
          return false;
-
 
30463
      }
-
 
30464
 
-
 
30465
      boolean this_present_ex = true && this.isSetEx();
-
 
30466
      boolean that_present_ex = true && that.isSetEx();
-
 
30467
      if (this_present_ex || that_present_ex) {
-
 
30468
        if (!(this_present_ex && that_present_ex))
-
 
30469
          return false;
-
 
30470
        if (!this.ex.equals(that.ex))
-
 
30471
          return false;
-
 
30472
      }
-
 
30473
 
-
 
30474
      return true;
-
 
30475
    }
-
 
30476
 
-
 
30477
    @Override
-
 
30478
    public int hashCode() {
-
 
30479
      return 0;
-
 
30480
    }
-
 
30481
 
-
 
30482
    public int compareTo(authorizePickup_result other) {
-
 
30483
      if (!getClass().equals(other.getClass())) {
-
 
30484
        return getClass().getName().compareTo(other.getClass().getName());
-
 
30485
      }
-
 
30486
 
-
 
30487
      int lastComparison = 0;
-
 
30488
      authorizePickup_result typedOther = (authorizePickup_result)other;
-
 
30489
 
-
 
30490
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
30491
      if (lastComparison != 0) {
-
 
30492
        return lastComparison;
-
 
30493
      }
-
 
30494
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
30495
      if (lastComparison != 0) {
-
 
30496
        return lastComparison;
-
 
30497
      }
-
 
30498
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
30499
      if (lastComparison != 0) {
-
 
30500
        return lastComparison;
-
 
30501
      }
-
 
30502
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
30503
      if (lastComparison != 0) {
-
 
30504
        return lastComparison;
-
 
30505
      }
-
 
30506
      return 0;
-
 
30507
    }
-
 
30508
 
-
 
30509
    public void read(TProtocol iprot) throws TException {
-
 
30510
      TField field;
-
 
30511
      iprot.readStructBegin();
-
 
30512
      while (true)
-
 
30513
      {
-
 
30514
        field = iprot.readFieldBegin();
-
 
30515
        if (field.type == TType.STOP) { 
-
 
30516
          break;
-
 
30517
        }
-
 
30518
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
30519
        if (fieldId == null) {
-
 
30520
          TProtocolUtil.skip(iprot, field.type);
-
 
30521
        } else {
-
 
30522
          switch (fieldId) {
-
 
30523
            case SUCCESS:
-
 
30524
              if (field.type == TType.BOOL) {
-
 
30525
                this.success = iprot.readBool();
-
 
30526
                setSuccessIsSet(true);
-
 
30527
              } else { 
-
 
30528
                TProtocolUtil.skip(iprot, field.type);
-
 
30529
              }
-
 
30530
              break;
-
 
30531
            case EX:
-
 
30532
              if (field.type == TType.STRUCT) {
-
 
30533
                this.ex = new TransactionServiceException();
-
 
30534
                this.ex.read(iprot);
-
 
30535
              } else { 
-
 
30536
                TProtocolUtil.skip(iprot, field.type);
-
 
30537
              }
-
 
30538
              break;
-
 
30539
          }
-
 
30540
          iprot.readFieldEnd();
-
 
30541
        }
-
 
30542
      }
-
 
30543
      iprot.readStructEnd();
-
 
30544
      validate();
-
 
30545
    }
-
 
30546
 
-
 
30547
    public void write(TProtocol oprot) throws TException {
-
 
30548
      oprot.writeStructBegin(STRUCT_DESC);
-
 
30549
 
-
 
30550
      if (this.isSetSuccess()) {
-
 
30551
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
30552
        oprot.writeBool(this.success);
-
 
30553
        oprot.writeFieldEnd();
-
 
30554
      } else if (this.isSetEx()) {
-
 
30555
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
30556
        this.ex.write(oprot);
-
 
30557
        oprot.writeFieldEnd();
-
 
30558
      }
-
 
30559
      oprot.writeFieldStop();
-
 
30560
      oprot.writeStructEnd();
-
 
30561
    }
-
 
30562
 
-
 
30563
    @Override
-
 
30564
    public String toString() {
-
 
30565
      StringBuilder sb = new StringBuilder("authorizePickup_result(");
-
 
30566
      boolean first = true;
-
 
30567
 
-
 
30568
      sb.append("success:");
-
 
30569
      sb.append(this.success);
-
 
30570
      first = false;
-
 
30571
      if (!first) sb.append(", ");
-
 
30572
      sb.append("ex:");
-
 
30573
      if (this.ex == null) {
-
 
30574
        sb.append("null");
-
 
30575
      } else {
-
 
30576
        sb.append(this.ex);
-
 
30577
      }
-
 
30578
      first = false;
-
 
30579
      sb.append(")");
-
 
30580
      return sb.toString();
-
 
30581
    }
28343
 
30582
 
28344
    public void validate() throws TException {
30583
    public void validate() throws TException {
28345
      // check for required fields
30584
      // check for required fields
28346
    }
30585
    }
28347
 
30586