Rev 5874 | Rev 6019 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
/*** Autogenerated by Thrift Compiler (0.7.0)** DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING*/package in.shop2020.model.v1.order;import java.util.List;import java.util.ArrayList;import java.util.Map;import java.util.HashMap;import java.util.EnumMap;import java.util.Set;import java.util.HashSet;import java.util.EnumSet;import java.util.Collections;import java.util.BitSet;import java.nio.ByteBuffer;import java.util.Arrays;import org.slf4j.Logger;import org.slf4j.LoggerFactory;public class TransactionService {public interface Iface extends in.shop2020.generic.GenericService.Iface {public long createTransaction(Transaction transaction) throws TransactionServiceException, org.apache.thrift.TException;public Transaction getTransaction(long id) throws TransactionServiceException, org.apache.thrift.TException;public List<Transaction> getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws TransactionServiceException, org.apache.thrift.TException;public List<Transaction> getTransactionsForShoppingCartId(long shoppingCartId) throws TransactionServiceException, org.apache.thrift.TException;public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType) throws TransactionServiceException, org.apache.thrift.TException;public boolean enqueueTransactionInfoEmail(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;public List<Order> getAllOrders(List<OrderStatus> statuses, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException;/*** Returns at most 'limit' orders with the given statuses for the given warehouse starting from the given offset.* Pass the status as null and the limit as 0 to ignore them.** @param statuses* @param offset* @param limit* @param warehouse_id*/public List<Order> getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException;/*** Returns the count of orders with the given statuses assigned to the given warehouse.** @param statuses* @param warehouseId*/public int getOrderCount(List<OrderStatus> statuses, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;/*** Returns orders within a range of their billing dates** @param status* @param start_billing_date* @param end_billing_date* @param warehouse_id*/public List<Order> getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException;/*** Returns orders for a particular provider and warehouse which were shipped between the given dates.* Returned orders comprise of COD orders if cod parameter is true. It comprises of prepaid orders otherwise.* Pass providerId and warehouseId as -1 to ignore both these parameters.** @param fromShippingDate* @param toShippingDate* @param providerId* @param warehouseId* @param cod*/public List<Order> getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId, boolean cod) throws TransactionServiceException, org.apache.thrift.TException;/*** Returns order ids for orders which can be returned** @param customer_id* @param limit*/public List<Long> getReturnableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, org.apache.thrift.TException;/*** Returns order ids for orders which can be cancelled** @param customer_id* @param limit*/public List<Long> getCancellableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, org.apache.thrift.TException;public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, org.apache.thrift.TException;/*** Returns list of orders for given transaction Id. Also filters based on customer Id so that* only user who owns the transaction can view its order details.** @param transactionId* @param customerId*/public List<Order> getOrdersForTransaction(long transactionId, long customerId) throws TransactionServiceException, org.apache.thrift.TException;/*** Returns list of orders for the given customer created between the given dates and having the given statuses.* Pass and empty list to ignore filtering on statuses.** @param customerId* @param from_date* @param to_date* @param statuses*/public List<Order> getOrdersForCustomer(long customerId, long from_date, long to_date, List<OrderStatus> statuses) throws TransactionServiceException, org.apache.thrift.TException;public long createOrder(Order order) throws TransactionServiceException, org.apache.thrift.TException;public Order getOrder(long id) throws TransactionServiceException, org.apache.thrift.TException;public List<LineItem> getLineItemsForOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;public List<Order> getOrderList(List<Long> order_ids) throws org.apache.thrift.TException;public List<Order> getOrderListForVendor(List<Long> order_ids, long vendorId) throws org.apache.thrift.TException;/*** Returns an order for the order Id. Also checks if the order belongs to the customer whose Id is passed.* Throws exception if either order Id is invalid or order does not below to the customer whose Id is passed.** @param orderId* @param customerId*/public Order getOrderForCustomer(long orderId, long customerId) throws TransactionServiceException, org.apache.thrift.TException;public List<Alert> getAlerts(long type, long warehouseId, long status, long timestamp) throws org.apache.thrift.TException;public void addAlert(long type, long warehouseId, String description) throws org.apache.thrift.TException;public void markAlertsAsSeen(long warehouseId) throws org.apache.thrift.TException;/*** Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)*/public long getValidOrderCount() throws org.apache.thrift.TException;/*** Returns the number of distinct customers who have done successful transactions*/public long getNoOfCustomersWithSuccessfulTransaction() throws org.apache.thrift.TException;/*** Returns the minimum and maximum amounts of a valid order. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)* List contains two values, first minimum amount and second maximum amount.*/public List<Double> getValidOrdersAmountRange() throws org.apache.thrift.TException;/*** Returns list of Orders in descending order by Order creation date. List is restricted to limit Orders.* If limit is passed as 0, then all valid Orders are returned.** @param limit* @param onlyStore*/public List<Order> getValidOrders(long limit, boolean onlyStore) throws org.apache.thrift.TException;/*** Create a batch of all the pending orders for the given warehouse.* The returned list is orderd by created_timestamp.* If there are no pending orders, an empty list is returned.** @param warehouseId*/public List<Order> batchOrders(long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;/*** Mark the given order as out of stock. Throws an exception if the order with the given Id couldn't be found.** @param orderId*/public boolean markOrderAsOutOfStock(long orderId) throws TransactionServiceException, org.apache.thrift.TException;/*** Marks the given order as SUBMITTED_FOR_PROCESSING and updates the verified* timestamp. It is intended to be used for COD orders but can be harmlessly* used for all other orders as well.* Throws an exception if no such order exists.** @param orderId*/public boolean verifyOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;/*** Marks the given order as ACCEPTED and updates the accepted timestamp. If the* given order is not a COD order, it also captures the payment if the same has* not been captured.* Throws an exception if no such order exists.** @param orderId*/public boolean acceptOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;/*** Add billing details such as the bill number and the biller to the Order.* Adds jacket number, item number and Serial no. to the order. Doesn't update* the IMEI no. if a -1 is supplied.* Also, it generates an invoice number for the order, marks the order as* BILLED and sets the billing timestamp.* Returns false if it doesn't find the order with the given ID.** @param orderId* @param invoice_number* @param serialNumber* @param itemNumber* @param billed_by* @param jacketNumber* @param billingType* @param fulfilmentWarehouseId* @param authorize*/public boolean addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize) throws TransactionServiceException, org.apache.thrift.TException;/*** Add the invoice number to the order.** @param orderId* @param invoiceNumber* @param color*/public void addInvoiceNumber(long orderId, String invoiceNumber, String color) throws TransactionServiceException, org.apache.thrift.TException;/*** Depending on the third parameter, marks either all prepaid or all cod orders BILLED by the* given warehouse and were picked up by the given provider as SHIPPED_FROM_WH.** @param warehouseId* @param providerId* @param cod* @param orderIds*/public boolean markOrdersAsShippedFromWarehouse(long warehouseId, long providerId, boolean cod, List<Long> orderIds) throws TransactionServiceException, org.apache.thrift.TException;public boolean markOrdersAsReturnedFromStore(long providerId, List<Long> orderIds, List<String> awbs) throws TransactionServiceException, org.apache.thrift.TException;/*** Marks all SHIPPED_FROM_WH orders of the previous day for a provider as SHIPPED_TO_LOGISTICS.* Raises an exception if we encounter report for an AWB number that we did not ship.** @param providerId* @param pickupDetails*/public void markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails) throws TransactionServiceException, org.apache.thrift.TException;/*** Returns a list of orders that were shipped from warehouse but did not appear in the pick-up report.** @param providerId*/public List<Order> getOrdersNotPickedUp(long providerId) throws org.apache.thrift.TException;/*** Marks all orders with AWBs in the given map as delivered. Also sets the delivery timestamp and* the name of the receiver.* Raises an exception if we encounter report for an AWB number that we did not ship.** @param providerId* @param deliveredOrders*/public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders) throws TransactionServiceException, org.apache.thrift.TException;/*** Mark all orders with AWBs in the given map as RTO. Also sets the delivery timestamp.* Raises an exception if we encounter report for an AWB number that we did not ship.** @param providerId* @param returnedOrders*/public void markAsRTOrders(long providerId, Map<String,String> returnedOrders) throws TransactionServiceException, org.apache.thrift.TException;/*** Returns a list of orders that were returned by courier.** @param providerId*/public List<Order> getRTOrders(long providerId) throws org.apache.thrift.TException;/*** Update the status description of orders whose AWB numbers are keys of the Map.** @param providerId* @param undeliveredOrders*/public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws TransactionServiceException, org.apache.thrift.TException;/*** Returns a list of orders that were picked up or shipped four days ago but did not get delivered.** @param providerId*/public List<Order> getNonDeliveredOrdersbyCourier(long providerId) throws org.apache.thrift.TException;/*** Mark all orders with AWBs in the given map as local connected. Also sets the local connected timestamp.** @param providerId* @param local_connected_orders*/public void markOrdersAsLocalConnected(long providerId, Map<String,String> local_connected_orders) throws TransactionServiceException, org.apache.thrift.TException;/*** Returns a list of orders that were picked up or shipped but pending local connection.** @param providerId*/public List<Order> getOrdersNotLocalConnected(long providerId) throws org.apache.thrift.TException;/*** Mark all orders with AWBs in the given map as reached destination city. Also sets the reached destination timestamp.** @param providerId* @param destination_city_reached_orders*/public void markOrdersAsDestinationCityReached(long providerId, Map<String,String> destination_city_reached_orders) throws TransactionServiceException, org.apache.thrift.TException;/*** Mark all orders with AWBs in the given map as first delivery attempt made. Also sets the first delivery attempted timestamp.** @param providerId* @param first_atdl_orders*/public void markOrdersAsFirstDeliveryAttempted(long providerId, Map<String,String> first_atdl_orders) throws TransactionServiceException, org.apache.thrift.TException;/*** Returns the list of orders whose delivery time has passed but have not been* delivered yet for the given provider and warehouse. To get a complete list of* undelivered orders, pass them as -1.* Returns an empty list if no such orders exist.** @param providerId* @param warehouseId*/public List<Order> getUndeliveredOrders(long providerId, long warehouseId) throws org.apache.thrift.TException;/*** Returns the list of orders whose expected delivery date has passed but have not been* delivered yet.* Returns an empty list if no such orders exist.*/public List<Order> getUndeliveredOrdersExpectedDeliveryDateNotMet() throws org.apache.thrift.TException;/*** 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.* Returns the final flag status.* Throws an exception if the order with the given id couldn't be found or if the order status is not DELVIERY_SUCCESS.** @param orderId*/public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, org.apache.thrift.TException;public void markOrderAsDelivered(long orderId, long deliveryTimestamp, String receiver) throws TransactionServiceException, org.apache.thrift.TException;public void markOrderAsReceivedAtStore(long orderId, long deliveryTimestamp) throws TransactionServiceException, org.apache.thrift.TException;/*** Once user raise the request for a DOA, order status will be changed from DELVIERY_SUCCESS to DOA_REQUEST_RECEIVED** @param orderId*/public boolean markOrderDoaRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException;/*** CRM person can authorize or deny the request reised by customer. If he authorizes order will change from DOA_REQUEST_RECEIVED* to DOA_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.** @param orderId* @param isAuthorized*/public boolean markOrderDoaRequestAuthorized(long orderId, boolean isAuthorized) throws TransactionServiceException, org.apache.thrift.TException;/*** Once user raise the request for a RET, order status will be changed from DELVIERY_SUCCESS to RET_REQUEST_RECEIVED** @param orderId*/public boolean markOrderReturnRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException;/*** CRM person can authorize or deny the request reised by customer. If he authorizes order will change from RET_REQUEST_RECEIVED* to RET_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.** @param orderId* @param isAuthorized*/public boolean markOrderReturnRequestAuthorized(long orderId, boolean isAuthorized) throws TransactionServiceException, org.apache.thrift.TException;/*** Sends out an email to the account manager of the original courier provider used to ship the order.* If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUEST_RAISED.* If the order status was DOA_PICKUP_REQUEST_RAISED, it is left unchanged.* For any other status, it returns false.* Throws an exception if the order with the given id couldn't be found.** @param orderId* @param providerId*/public boolean requestPickupNumber(long orderId, long providerId) throws TransactionServiceException, org.apache.thrift.TException;/*** If the order status is DOA_PICKUP_REQUEST_RAISED, it does the following* 1. Sends out an email to the customer with the dispatch advice that he has to print as an attachment.* 2. Changes order status to be DOA_PICKUP_AUTHORIZED.* 3. Returns true* If the order is in any other status, it returns false.* Throws an exception if the order with the given id couldn't be found.** @param orderId* @param pickupNumber* @param providerId*/public boolean authorizePickup(long orderId, String pickupNumber, long providerId) throws TransactionServiceException, org.apache.thrift.TException;/*** Marks all DOA_PICKUP_AUTHORIZED orders of the previous day for a provider as DOA_RETURN_IN_TRANSIT.** @param providerId* @param pickupDetails*/public void markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException;/*** Returns a list of orders that were authorized for pickup but did not appear in the pick-up report.** @param providerId*/public List<Order> getDoasNotPickedUp(long providerId) throws org.apache.thrift.TException;/*** Marks all RET_PICKUP_CONFIRMED orders of the previous day for a provider as RET_RETURN_IN_TRANSIT.** @param providerId* @param pickupDetails*/public void markReturnOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException;/*** Returns a list of orders that were authorized for pickup but did not appear in the pick-up report.** @param providerId*/public List<Order> getReturnOrdersNotPickedUp(long providerId) throws org.apache.thrift.TException;/*** If the order status is DOA_PICKUP_CONFIRMED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED_PRESTINE and returns true.* If the order status is RTO_IN_TRANSIT, marks the order status as RTO_RECEIVED_PRESTINE and returns true.* If the order is in any other state, it returns false.* Throws an exception if the order with the given id couldn't be found.** @param orderId* @param receiveCondition*/public boolean receiveReturn(long orderId, long receiveCondition) throws TransactionServiceException, org.apache.thrift.TException;/*** Used to validate the DOA certificate for an order in the DOA_RECEIVED_PRESTINE state. If the certificate is valid,* the order state is changed to DOA_CERT_VALID. If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.* If the order is in any other state, it returns false.* Throws an exception if the order with the given id couldn't be found.** @param orderId* @param isValid*/public boolean validateDoa(long orderId, boolean isValid) throws TransactionServiceException, org.apache.thrift.TException;public boolean validateReturnProduct(long orderId, boolean isUsable) throws TransactionServiceException, org.apache.thrift.TException;/*** If the order is in RTO_RECEIVED_PRESTINE or DOA_CERT_INVALID state, it does the following:* 1. Creates a new order for processing in the BILLED state. All billing information is saved.* 2. Marks the current order as one of the final states RTO_RESHIPPED and DOA_INVALID_RESHIPPED depending on what state the order started in.** If the order is in DOA_CERT_VALID state, it does the following:* 1. Creates a new order for processing in the SUBMITTED_FOR_PROCESSING state.* 2. Creates a return order for the warehouse executive to return the DOA material.* 3. Marks the current order as the final DOA_VALID_RESHIPPED state.** Returns the id of the newly created order.** Throws an exception if the order with the given id couldn't be found.** @param orderId*/public long reshipOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException;/*** If the order is in RTO_RECEIVED_PRESTINE, DOA_CERT_VALID or DOA_CERT_INVALID state, it does the following:* 1. Creates a refund request for batch processing.* 2. Creates a return order for the warehouse executive to return the shipped material.* 3. Marks the current order as RTO_REFUNDED, DOA_VALID_REFUNDED or DOA_INVALID_REFUNDED final states.** If the order is in SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:* 1. Creates a refund request for batch processing.* 2. Cancels the reservation of the item in the warehouse.* 3. Marks the current order as the REFUNDED final state.** For all COD orders, if the order is in INIT, SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:* 1. Cancels the reservation of the item in the warehouse.* 2. Marks the current order as CANCELED.** In all cases, it updates the reason for cancellation or refund and the person who performed the action.** Returns True if it is successful, False otherwise.** Throws an exception if the order with the given id couldn't be found.** @param orderId* @param refundedBy* @param reason*/public boolean refundOrder(long orderId, String refundedBy, String reason) throws TransactionServiceException, org.apache.thrift.TException;/*** Get all return orders created between the from and to dates for the given warehouse.* Ignores the warehouse if it is passed as -1.** @param warehouseId* @param fromDate* @param toDate*/public List<ReturnOrder> getReturnOrders(long warehouseId, long fromDate, long toDate) throws org.apache.thrift.TException;/*** Get all return orders created between the from and to dates.** @param onlyNotProcessed* @param fromDate* @param toDate*/public List<ReturnOrder> getAllReturnOrders(boolean onlyNotProcessed, long fromDate, long toDate) throws org.apache.thrift.TException;/*** Returns the ReturnOrder corresponding to the given id.* Throws an exception if the return order with the given id couldn't be found.** @param id*/public ReturnOrder getReturnOrder(long id) throws TransactionServiceException, org.apache.thrift.TException;/*** Marks the return order with the given id as processed. Raises an exception if no such return order exists.** @param returnOrderId*/public void processReturn(long returnOrderId) throws TransactionServiceException, org.apache.thrift.TException;/*** Set the weight of the given order to the provided value. Will attempt to update the weight of the item in the catalog as well.** @param orderId* @param weight*/public Order updateWeight(long orderId, double weight) throws TransactionServiceException, org.apache.thrift.TException;/*** Change the item to be shipped for this order. Also adjusts the reservation in the inventory accordingly.* Currently, it also ensures that only a different color of the given item is shipped.** @param orderId* @param itemId*/public Order changeItem(long orderId, long itemId) throws TransactionServiceException, org.apache.thrift.TException;/*** Moves the given order to the given warehouse. Also adjusts the inventory reservations accordingly.** @param orderId* @param warehouseId*/public Order shiftToWarehouse(long orderId, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;/*** Adds the given delay reason to the given order.* Increases the expected delivery time of the given order by the given no. of days.* Raises an exception if no order with the given id can be found.** @param orderId* @param delayReason* @param furtherDelay* @param delayReasonText*/public boolean addDelayReason(long orderId, DelayReason delayReason, long furtherDelay, String delayReasonText) throws TransactionServiceException, org.apache.thrift.TException;/*** Marks the COD orders with given AWB nos. as having been processed.* Updates the captured amount for the corresponding payment.** Returns a map of AWBs which were not processed and the associated reason. An AWB is not processed if:* 1. There is no order corresponding to an AWB number.* 2. The captured amount for a payment exceeds the total payment.* 3. The order corresponding to an AWB no. is in a state prior to DELIVERY_SUCCESS.** @param collectedAmountMap* @param xferBy* @param xferTxnId* @param xferDate*/public Map<String,String> reconcileCodCollection(Map<String,Double> collectedAmountMap, String xferBy, String xferTxnId, long xferDate) throws TransactionServiceException, org.apache.thrift.TException;/*** Returns the list of transaction ids that require some extra processing and* which belong to a particular category. This is currently used by CRM* application. If no such transaction ids are present, it returns an empty list.** @param category*/public List<Long> getTransactionsRequiringExtraProcessing(ExtraTransactionProcessingType category) throws org.apache.thrift.TException;/*** Marks a particular transaction as processed for a particular cateogory.* It essentially deletes the transaction id record for a particular* processing type category (if present) from DB.* This is currently used by CRM application.** @param transactionId* @param category*/public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category) throws org.apache.thrift.TException;/*** Returns a map containing the number of risky orders keyed by item id. A risky order* is defined as one whose shipping date is about to expire.*/public Map<Long,Long> getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException;/*** Returns a list of all orders which have items with given id** @param itemIds*/public List<Order> getOrdersForItemIds(List<Long> itemIds) throws org.apache.thrift.TException;/*** Mark order as cancellation request received. If customer sends request of cancellation of* a particular order, this method will be called. It will just change status of the order* depending on its current status. It also records the previous status, so that we can move* back to that status if cancellation request is denied.** @param orderId*/public void markOrderCancellationRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException;/*** If we decide to to cancel order, CRM will call this method to move the status of order to* cancellation request confirmed. After this OM will be able to cancel the order.** @param orderId*/public void markOrderCancellationRequestConfirmed(long orderId) throws TransactionServiceException, org.apache.thrift.TException;/*** If we decide to not to cancel order, we will move the order ro previous status.** @param orderId*/public void markOrderCancellationRequestDenied(long orderId) throws TransactionServiceException, org.apache.thrift.TException;/*** If we and/or payment gateway has decided to accept the payment, this method needs to be called.* Changed transaction and all orders status to payment accepted.** @param transactionId*/public void markTransactionAsPaymentFlagRemoved(long transactionId) throws TransactionServiceException, org.apache.thrift.TException;/*** This method is called when a flagged payment is deemed unserviceable and the corresponding orders* need to be cancelled** @param transactionId* @param refundedBy* @param reason*/public void refundTransaction(long transactionId, String refundedBy, String reason) throws TransactionServiceException, org.apache.thrift.TException;/*** Updates shipment address of an order. Delivery and shipping date estimates* etc. are also updated here.** Throws TransactionServiceException in case address change is not* possible due to certain reasons such as new pincode in address is* not serviceable etc.** @param orderId* @param addressId*/public void updateShipmentAddress(long orderId, long addressId) throws TransactionServiceException, org.apache.thrift.TException;/*** Marks the orders as ACCEPTED for the given itemId and inventory. It also updates the accepted timestamp. If the* given order is not a COD order, it also captures the payment if the same has not been captured.** @param itemId* @param inventory*/public boolean acceptOrdersForItemId(long itemId, long inventory) throws TransactionServiceException, org.apache.thrift.TException;public void markOrdersAsPORaised(long vendorId, long itemId, long quantity, long estimate, boolean isReminder) throws TransactionServiceException, org.apache.thrift.TException;public void markOrdersAsReversalInitiated(long vendorId, long itemId, long quantity, long estimate, boolean isReminder) throws TransactionServiceException, org.apache.thrift.TException;public void markOrdersAsNotAvailabke(long vendorId, long itemId, long quantity, long estimate, boolean isReminder) throws TransactionServiceException, org.apache.thrift.TException;public Map<Integer,TimeoutSummary> markOrdersAsTimeout(long vendorId) throws TransactionServiceException, org.apache.thrift.TException;/*** Mark order as LOST_IN_TRANSIT** @param orderId*/public boolean markOrderAsLostInTransit(long orderId) throws TransactionServiceException, org.apache.thrift.TException;/*** Returns the order corresponding to an AWB number** @param awb*/public Order getOrderForAwb(String awb) throws TransactionServiceException, org.apache.thrift.TException;/*** Returns the order corresponding to a logistics provider id for a given list of order status** @param logistics_provider_id* @param order_status_list*/public List<Order> getOrdersForProviderForStatus(long logistics_provider_id, List<OrderStatus> order_status_list) throws TransactionServiceException, org.apache.thrift.TException;/*** Returns list of orders fullfiled from a certain vendor and billed in a given date range** @param vendorId* @param billingDateFrom* @param billingDateTo*/public List<Order> getBilledOrdersForVendor(long vendorId, long billingDateFrom, long billingDateTo) throws TransactionServiceException, org.apache.thrift.TException;public List<Order> getSlippedSippingDateOrders() throws TransactionServiceException, org.apache.thrift.TException;public List<Order> getCancelledOrders(long cancelDateFrom, long cancelDateTo) throws TransactionServiceException, org.apache.thrift.TException;public void saveBluedartSettlements(Map<Long,Double> mapAWBAndAmount) throws TransactionServiceException, org.apache.thrift.TException;public void savePaymentSettlements(long settlementDate, long paymentGatewayId, long referenceId, double serviceTax, double otherCharges, double netCollection) throws TransactionServiceException, org.apache.thrift.TException;public void saveEBSSettlementSummary(long settlementId, long settlementDate, long transactionDateFrom, long transactionDateTo, double amount) throws TransactionServiceException, org.apache.thrift.TException;public PaymentSettlement getSettlementForPrepaid(long referenceId, boolean isRefund) throws TransactionServiceException, org.apache.thrift.TException;public PaymentSettlement getSettlementForCod(long orderId, boolean isRefund) throws TransactionServiceException, org.apache.thrift.TException;public Map<Long,String> getEBSSettlementSummaries() throws TransactionServiceException, org.apache.thrift.TException;public void markEBSSettlementUploaded(long settlementId) throws TransactionServiceException, org.apache.thrift.TException;public long getEBSSettlementDate(long settlementId) throws TransactionServiceException, org.apache.thrift.TException;public List<PaymentSettlement> getSettlementsByDate(long settlementDateFrom, long settlementDateTo, boolean isRefund) throws TransactionServiceException, org.apache.thrift.TException;/*** Returns list of Order Ids, which belong to reshiped orders, shortlisted from a given list of Order Ids** @param orderIds*/public List<Long> getReshippedOrderIds(List<Long> orderIds) throws TransactionServiceException, org.apache.thrift.TException;public List<Order> getBilledOrders(long vendorId, boolean onlyVendorNotPaid, long billingDateFrom, long billingDateTo) throws TransactionServiceException, org.apache.thrift.TException;public Map<Long,Long> getStatusDistributionOfOrders(long startDate, long endDate) throws TransactionServiceException, org.apache.thrift.TException;public List<Long> getOrderIdsForStatus(long status, long startDatetime, long endDatetime) throws TransactionServiceException, org.apache.thrift.TException;/*** Updates the agent who handled the COD verification call** @param agent* @param orderId*/public void updateCODAgent(String agent, long orderId) throws TransactionServiceException, org.apache.thrift.TException;public void updateOrderAsPaidToVendor(long orderId) throws TransactionServiceException, org.apache.thrift.TException;public void updateOrderOnlyAsPaidToVendor(long orderId) throws TransactionServiceException, org.apache.thrift.TException;public List<Order> getRefundedOrdersMarkedPaid() throws TransactionServiceException, org.apache.thrift.TException;/*** gets all COD Verification Agents for all orderIds from a minId to maxId*** @param minOrderId* @param maxOrderId*/public List<CODVerificationAgent> getAllVerificationAgents(long minOrderId, long maxOrderId) throws org.apache.thrift.TException;/*** gets all attributes for a given orderId** @param orderId*/public List<Attribute> getAllAttributesForOrderId(long orderId) throws org.apache.thrift.TException;/*** sets attributes for an order** @param orderId* @param attributes*/public void setOrderAttributes(long orderId, List<Attribute> attributes) throws org.apache.thrift.TException;/*** sets attributes for all orders in a transaction** @param transactionId* @param attribute*/public void setOrderAttributeForTransaction(long transactionId, Attribute attribute) throws org.apache.thrift.TException;public List<Order> getReceivePendingOrders(long storeId) throws org.apache.thrift.TException;public List<Order> getReceivedAtStoreOrders(long storeId) throws org.apache.thrift.TException;public List<Order> getOrdersCollectionAtStore(long storeId, long fromDate, long toDate, boolean onlyCod) throws org.apache.thrift.TException;public String getOrderAttributeValue(long orderId, String attributeName) throws org.apache.thrift.TException;/*** Accepts appropriate order for an item in a given billingWarehouse. Usually* invoked while scanning IN of items.** @param itemId* @param quantity* @param fulfilmentWarehouseId* @param billingWarehouseId*/public void acceptOrderForItem(long itemId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException;public RechargeOrder createRechargeOrder(RechargeOrder rechargeOrder) throws TransactionServiceException, org.apache.thrift.TException;public void updateRechargeOrderStatus(long rechargeOrderId, RechargeOrderStatus rechargeOrderStatus) throws TransactionServiceException, org.apache.thrift.TException;public RechargeResponse activateRechargeTxn(List<RechargeCoupon> rechargeCoupons) throws TransactionServiceException, org.apache.thrift.TException;public List<RechargeOrder> getRechargeOrders(long customerId) throws org.apache.thrift.TException;public List<RechargeCoupon> getRechargeCoupons(long customerId, RechargeCouponStatus rechargeCouponStatus) throws org.apache.thrift.TException;}public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;public void getTransaction(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransaction_call> resultHandler) throws org.apache.thrift.TException;public void getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionsForCustomer_call> resultHandler) throws org.apache.thrift.TException;public void getTransactionsForShoppingCartId(long shoppingCartId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionsForShoppingCartId_call> resultHandler) throws org.apache.thrift.TException;public void getTransactionStatus(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionStatus_call> resultHandler) throws org.apache.thrift.TException;public void changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeTransactionStatus_call> resultHandler) throws org.apache.thrift.TException;public void enqueueTransactionInfoEmail(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.enqueueTransactionInfoEmail_call> resultHandler) throws org.apache.thrift.TException;public void getAllOrders(List<OrderStatus> statuses, long from_date, long to_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllOrders_call> resultHandler) throws org.apache.thrift.TException;public void getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersInBatch_call> resultHandler) throws org.apache.thrift.TException;public void getOrderCount(List<OrderStatus> statuses, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderCount_call> resultHandler) throws org.apache.thrift.TException;public void getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersByBillingDate_call> resultHandler) throws org.apache.thrift.TException;public void getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersByShippingDate_call> resultHandler) throws org.apache.thrift.TException;public void getReturnableOrdersForCustomer(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnableOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException;public void getCancellableOrdersForCustomer(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCancellableOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException;public void changeOrderStatus(long orderId, OrderStatus status, String description, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeOrderStatus_call> resultHandler) throws org.apache.thrift.TException;public void getOrdersForTransaction(long transactionId, long customerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersForTransaction_call> resultHandler) throws org.apache.thrift.TException;public void getOrdersForCustomer(long customerId, long from_date, long to_date, List<OrderStatus> statuses, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException;public void createOrder(Order order, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createOrder_call> resultHandler) throws org.apache.thrift.TException;public void getOrder(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrder_call> resultHandler) throws org.apache.thrift.TException;public void getLineItemsForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLineItemsForOrder_call> resultHandler) throws org.apache.thrift.TException;public void getOrderList(List<Long> order_ids, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderList_call> resultHandler) throws org.apache.thrift.TException;public void getOrderListForVendor(List<Long> order_ids, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderListForVendor_call> resultHandler) throws org.apache.thrift.TException;public void getOrderForCustomer(long orderId, long customerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForCustomer_call> resultHandler) throws org.apache.thrift.TException;public void getAlerts(long type, long warehouseId, long status, long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAlerts_call> resultHandler) throws org.apache.thrift.TException;public void addAlert(long type, long warehouseId, String description, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addAlert_call> resultHandler) throws org.apache.thrift.TException;public void markAlertsAsSeen(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markAlertsAsSeen_call> resultHandler) throws org.apache.thrift.TException;public void getValidOrderCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getValidOrderCount_call> resultHandler) throws org.apache.thrift.TException;public void getNoOfCustomersWithSuccessfulTransaction(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNoOfCustomersWithSuccessfulTransaction_call> resultHandler) throws org.apache.thrift.TException;public void getValidOrdersAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getValidOrdersAmountRange_call> resultHandler) throws org.apache.thrift.TException;public void getValidOrders(long limit, boolean onlyStore, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getValidOrders_call> resultHandler) throws org.apache.thrift.TException;public void batchOrders(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.batchOrders_call> resultHandler) throws org.apache.thrift.TException;public void markOrderAsOutOfStock(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderAsOutOfStock_call> resultHandler) throws org.apache.thrift.TException;public void verifyOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.verifyOrder_call> resultHandler) throws org.apache.thrift.TException;public void acceptOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrder_call> resultHandler) throws org.apache.thrift.TException;public void addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addBillingDetails_call> resultHandler) throws org.apache.thrift.TException;public void addInvoiceNumber(long orderId, String invoiceNumber, String color, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException;public void markOrdersAsShippedFromWarehouse(long warehouseId, long providerId, boolean cod, List<Long> orderIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsShippedFromWarehouse_call> resultHandler) throws org.apache.thrift.TException;public void markOrdersAsReturnedFromStore(long providerId, List<Long> orderIds, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsReturnedFromStore_call> resultHandler) throws org.apache.thrift.TException;public void markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsPickedUp_call> resultHandler) throws org.apache.thrift.TException;public void getOrdersNotPickedUp(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersNotPickedUp_call> resultHandler) throws org.apache.thrift.TException;public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsDelivered_call> resultHandler) throws org.apache.thrift.TException;public void markAsRTOrders(long providerId, Map<String,String> returnedOrders, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markAsRTOrders_call> resultHandler) throws org.apache.thrift.TException;public void getRTOrders(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRTOrders_call> resultHandler) throws org.apache.thrift.TException;public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateNonDeliveryReason_call> resultHandler) throws org.apache.thrift.TException;public void getNonDeliveredOrdersbyCourier(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonDeliveredOrdersbyCourier_call> resultHandler) throws org.apache.thrift.TException;public void markOrdersAsLocalConnected(long providerId, Map<String,String> local_connected_orders, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsLocalConnected_call> resultHandler) throws org.apache.thrift.TException;public void getOrdersNotLocalConnected(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersNotLocalConnected_call> resultHandler) throws org.apache.thrift.TException;public void markOrdersAsDestinationCityReached(long providerId, Map<String,String> destination_city_reached_orders, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsDestinationCityReached_call> resultHandler) throws org.apache.thrift.TException;public void markOrdersAsFirstDeliveryAttempted(long providerId, Map<String,String> first_atdl_orders, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsFirstDeliveryAttempted_call> resultHandler) throws org.apache.thrift.TException;public void getUndeliveredOrders(long providerId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUndeliveredOrders_call> resultHandler) throws org.apache.thrift.TException;public void getUndeliveredOrdersExpectedDeliveryDateNotMet(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUndeliveredOrdersExpectedDeliveryDateNotMet_call> resultHandler) throws org.apache.thrift.TException;public void toggleDOAFlag(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.toggleDOAFlag_call> resultHandler) throws org.apache.thrift.TException;public void markOrderAsDelivered(long orderId, long deliveryTimestamp, String receiver, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderAsDelivered_call> resultHandler) throws org.apache.thrift.TException;public void markOrderAsReceivedAtStore(long orderId, long deliveryTimestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderAsReceivedAtStore_call> resultHandler) throws org.apache.thrift.TException;public void markOrderDoaRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderDoaRequestReceived_call> resultHandler) throws org.apache.thrift.TException;public void markOrderDoaRequestAuthorized(long orderId, boolean isAuthorized, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderDoaRequestAuthorized_call> resultHandler) throws org.apache.thrift.TException;public void markOrderReturnRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderReturnRequestReceived_call> resultHandler) throws org.apache.thrift.TException;public void markOrderReturnRequestAuthorized(long orderId, boolean isAuthorized, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderReturnRequestAuthorized_call> resultHandler) throws org.apache.thrift.TException;public void requestPickupNumber(long orderId, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.requestPickupNumber_call> resultHandler) throws org.apache.thrift.TException;public void authorizePickup(long orderId, String pickupNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authorizePickup_call> resultHandler) throws org.apache.thrift.TException;public void markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markDoasAsPickedUp_call> resultHandler) throws org.apache.thrift.TException;public void getDoasNotPickedUp(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDoasNotPickedUp_call> resultHandler) throws org.apache.thrift.TException;public void markReturnOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markReturnOrdersAsPickedUp_call> resultHandler) throws org.apache.thrift.TException;public void getReturnOrdersNotPickedUp(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrdersNotPickedUp_call> resultHandler) throws org.apache.thrift.TException;public void receiveReturn(long orderId, long receiveCondition, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.receiveReturn_call> resultHandler) throws org.apache.thrift.TException;public void validateDoa(long orderId, boolean isValid, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateDoa_call> resultHandler) throws org.apache.thrift.TException;public void validateReturnProduct(long orderId, boolean isUsable, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateReturnProduct_call> resultHandler) throws org.apache.thrift.TException;public void reshipOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reshipOrder_call> resultHandler) throws org.apache.thrift.TException;public void refundOrder(long orderId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refundOrder_call> resultHandler) throws org.apache.thrift.TException;public void getReturnOrders(long warehouseId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrders_call> resultHandler) throws org.apache.thrift.TException;public void getAllReturnOrders(boolean onlyNotProcessed, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllReturnOrders_call> resultHandler) throws org.apache.thrift.TException;public void getReturnOrder(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnOrder_call> resultHandler) throws org.apache.thrift.TException;public void processReturn(long returnOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.processReturn_call> resultHandler) throws org.apache.thrift.TException;public void updateWeight(long orderId, double weight, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateWeight_call> resultHandler) throws org.apache.thrift.TException;public void changeItem(long orderId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItem_call> resultHandler) throws org.apache.thrift.TException;public void shiftToWarehouse(long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shiftToWarehouse_call> resultHandler) throws org.apache.thrift.TException;public void addDelayReason(long orderId, DelayReason delayReason, long furtherDelay, String delayReasonText, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addDelayReason_call> resultHandler) throws org.apache.thrift.TException;public void reconcileCodCollection(Map<String,Double> collectedAmountMap, String xferBy, String xferTxnId, long xferDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reconcileCodCollection_call> resultHandler) throws org.apache.thrift.TException;public void getTransactionsRequiringExtraProcessing(ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransactionsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException;public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransactionAsProcessed_call> resultHandler) throws org.apache.thrift.TException;public void getItemWiseRiskyOrdersCount(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemWiseRiskyOrdersCount_call> resultHandler) throws org.apache.thrift.TException;public void getOrdersForItemIds(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersForItemIds_call> resultHandler) throws org.apache.thrift.TException;public void markOrderCancellationRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderCancellationRequestReceived_call> resultHandler) throws org.apache.thrift.TException;public void markOrderCancellationRequestConfirmed(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderCancellationRequestConfirmed_call> resultHandler) throws org.apache.thrift.TException;public void markOrderCancellationRequestDenied(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderCancellationRequestDenied_call> resultHandler) throws org.apache.thrift.TException;public void markTransactionAsPaymentFlagRemoved(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransactionAsPaymentFlagRemoved_call> resultHandler) throws org.apache.thrift.TException;public void refundTransaction(long transactionId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refundTransaction_call> resultHandler) throws org.apache.thrift.TException;public void updateShipmentAddress(long orderId, long addressId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateShipmentAddress_call> resultHandler) throws org.apache.thrift.TException;public void acceptOrdersForItemId(long itemId, long inventory, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrdersForItemId_call> resultHandler) throws org.apache.thrift.TException;public void markOrdersAsPORaised(long vendorId, long itemId, long quantity, long estimate, boolean isReminder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsPORaised_call> resultHandler) throws org.apache.thrift.TException;public void markOrdersAsReversalInitiated(long vendorId, long itemId, long quantity, long estimate, boolean isReminder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsReversalInitiated_call> resultHandler) throws org.apache.thrift.TException;public void markOrdersAsNotAvailabke(long vendorId, long itemId, long quantity, long estimate, boolean isReminder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsNotAvailabke_call> resultHandler) throws org.apache.thrift.TException;public void markOrdersAsTimeout(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrdersAsTimeout_call> resultHandler) throws org.apache.thrift.TException;public void markOrderAsLostInTransit(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markOrderAsLostInTransit_call> resultHandler) throws org.apache.thrift.TException;public void getOrderForAwb(String awb, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderForAwb_call> resultHandler) throws org.apache.thrift.TException;public void getOrdersForProviderForStatus(long logistics_provider_id, List<OrderStatus> order_status_list, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersForProviderForStatus_call> resultHandler) throws org.apache.thrift.TException;public void getBilledOrdersForVendor(long vendorId, long billingDateFrom, long billingDateTo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBilledOrdersForVendor_call> resultHandler) throws org.apache.thrift.TException;public void getSlippedSippingDateOrders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSlippedSippingDateOrders_call> resultHandler) throws org.apache.thrift.TException;public void getCancelledOrders(long cancelDateFrom, long cancelDateTo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCancelledOrders_call> resultHandler) throws org.apache.thrift.TException;public void saveBluedartSettlements(Map<Long,Double> mapAWBAndAmount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveBluedartSettlements_call> resultHandler) throws org.apache.thrift.TException;public void savePaymentSettlements(long settlementDate, long paymentGatewayId, long referenceId, double serviceTax, double otherCharges, double netCollection, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.savePaymentSettlements_call> resultHandler) throws org.apache.thrift.TException;public void saveEBSSettlementSummary(long settlementId, long settlementDate, long transactionDateFrom, long transactionDateTo, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveEBSSettlementSummary_call> resultHandler) throws org.apache.thrift.TException;public void getSettlementForPrepaid(long referenceId, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSettlementForPrepaid_call> resultHandler) throws org.apache.thrift.TException;public void getSettlementForCod(long orderId, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSettlementForCod_call> resultHandler) throws org.apache.thrift.TException;public void getEBSSettlementSummaries(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEBSSettlementSummaries_call> resultHandler) throws org.apache.thrift.TException;public void markEBSSettlementUploaded(long settlementId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEBSSettlementUploaded_call> resultHandler) throws org.apache.thrift.TException;public void getEBSSettlementDate(long settlementId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEBSSettlementDate_call> resultHandler) throws org.apache.thrift.TException;public void getSettlementsByDate(long settlementDateFrom, long settlementDateTo, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSettlementsByDate_call> resultHandler) throws org.apache.thrift.TException;public void getReshippedOrderIds(List<Long> orderIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReshippedOrderIds_call> resultHandler) throws org.apache.thrift.TException;public void getBilledOrders(long vendorId, boolean onlyVendorNotPaid, long billingDateFrom, long billingDateTo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBilledOrders_call> resultHandler) throws org.apache.thrift.TException;public void getStatusDistributionOfOrders(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStatusDistributionOfOrders_call> resultHandler) throws org.apache.thrift.TException;public void getOrderIdsForStatus(long status, long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderIdsForStatus_call> resultHandler) throws org.apache.thrift.TException;public void updateCODAgent(String agent, long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateCODAgent_call> resultHandler) throws org.apache.thrift.TException;public void updateOrderAsPaidToVendor(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateOrderAsPaidToVendor_call> resultHandler) throws org.apache.thrift.TException;public void updateOrderOnlyAsPaidToVendor(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateOrderOnlyAsPaidToVendor_call> resultHandler) throws org.apache.thrift.TException;public void getRefundedOrdersMarkedPaid(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRefundedOrdersMarkedPaid_call> resultHandler) throws org.apache.thrift.TException;public void getAllVerificationAgents(long minOrderId, long maxOrderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllVerificationAgents_call> resultHandler) throws org.apache.thrift.TException;public void getAllAttributesForOrderId(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAttributesForOrderId_call> resultHandler) throws org.apache.thrift.TException;public void setOrderAttributes(long orderId, List<Attribute> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setOrderAttributes_call> resultHandler) throws org.apache.thrift.TException;public void setOrderAttributeForTransaction(long transactionId, Attribute attribute, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setOrderAttributeForTransaction_call> resultHandler) throws org.apache.thrift.TException;public void getReceivePendingOrders(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReceivePendingOrders_call> resultHandler) throws org.apache.thrift.TException;public void getReceivedAtStoreOrders(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReceivedAtStoreOrders_call> resultHandler) throws org.apache.thrift.TException;public void getOrdersCollectionAtStore(long storeId, long fromDate, long toDate, boolean onlyCod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersCollectionAtStore_call> resultHandler) throws org.apache.thrift.TException;public void getOrderAttributeValue(long orderId, String attributeName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderAttributeValue_call> resultHandler) throws org.apache.thrift.TException;public void acceptOrderForItem(long itemId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrderForItem_call> resultHandler) throws org.apache.thrift.TException;public void createRechargeOrder(RechargeOrder rechargeOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRechargeOrder_call> resultHandler) throws org.apache.thrift.TException;public void updateRechargeOrderStatus(long rechargeOrderId, RechargeOrderStatus rechargeOrderStatus, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateRechargeOrderStatus_call> resultHandler) throws org.apache.thrift.TException;public void activateRechargeTxn(List<RechargeCoupon> rechargeCoupons, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.activateRechargeTxn_call> resultHandler) throws org.apache.thrift.TException;public void getRechargeOrders(long customerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeOrders_call> resultHandler) throws org.apache.thrift.TException;public void getRechargeCoupons(long customerId, RechargeCouponStatus rechargeCouponStatus, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRechargeCoupons_call> resultHandler) throws org.apache.thrift.TException;}public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {public Factory() {}public Client getClient(org.apache.thrift.protocol.TProtocol prot) {return new Client(prot);}public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {return new Client(iprot, oprot);}}public Client(org.apache.thrift.protocol.TProtocol prot){super(prot, prot);}public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {super(iprot, oprot);}public long createTransaction(Transaction transaction) throws TransactionServiceException, org.apache.thrift.TException{send_createTransaction(transaction);return recv_createTransaction();}public void send_createTransaction(Transaction transaction) throws org.apache.thrift.TException{createTransaction_args args = new createTransaction_args();args.setTransaction(transaction);sendBase("createTransaction", args);}public long recv_createTransaction() throws TransactionServiceException, org.apache.thrift.TException{createTransaction_result result = new createTransaction_result();receiveBase(result, "createTransaction");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createTransaction failed: unknown result");}public Transaction getTransaction(long id) throws TransactionServiceException, org.apache.thrift.TException{send_getTransaction(id);return recv_getTransaction();}public void send_getTransaction(long id) throws org.apache.thrift.TException{getTransaction_args args = new getTransaction_args();args.setId(id);sendBase("getTransaction", args);}public Transaction recv_getTransaction() throws TransactionServiceException, org.apache.thrift.TException{getTransaction_result result = new getTransaction_result();receiveBase(result, "getTransaction");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransaction failed: unknown result");}public List<Transaction> getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws TransactionServiceException, org.apache.thrift.TException{send_getTransactionsForCustomer(customerId, from_date, to_date, status);return recv_getTransactionsForCustomer();}public void send_getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws org.apache.thrift.TException{getTransactionsForCustomer_args args = new getTransactionsForCustomer_args();args.setCustomerId(customerId);args.setFrom_date(from_date);args.setTo_date(to_date);args.setStatus(status);sendBase("getTransactionsForCustomer", args);}public List<Transaction> recv_getTransactionsForCustomer() throws TransactionServiceException, org.apache.thrift.TException{getTransactionsForCustomer_result result = new getTransactionsForCustomer_result();receiveBase(result, "getTransactionsForCustomer");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionsForCustomer failed: unknown result");}public List<Transaction> getTransactionsForShoppingCartId(long shoppingCartId) throws TransactionServiceException, org.apache.thrift.TException{send_getTransactionsForShoppingCartId(shoppingCartId);return recv_getTransactionsForShoppingCartId();}public void send_getTransactionsForShoppingCartId(long shoppingCartId) throws org.apache.thrift.TException{getTransactionsForShoppingCartId_args args = new getTransactionsForShoppingCartId_args();args.setShoppingCartId(shoppingCartId);sendBase("getTransactionsForShoppingCartId", args);}public List<Transaction> recv_getTransactionsForShoppingCartId() throws TransactionServiceException, org.apache.thrift.TException{getTransactionsForShoppingCartId_result result = new getTransactionsForShoppingCartId_result();receiveBase(result, "getTransactionsForShoppingCartId");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionsForShoppingCartId failed: unknown result");}public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, org.apache.thrift.TException{send_getTransactionStatus(transactionId);return recv_getTransactionStatus();}public void send_getTransactionStatus(long transactionId) throws org.apache.thrift.TException{getTransactionStatus_args args = new getTransactionStatus_args();args.setTransactionId(transactionId);sendBase("getTransactionStatus", args);}public TransactionStatus recv_getTransactionStatus() throws TransactionServiceException, org.apache.thrift.TException{getTransactionStatus_result result = new getTransactionStatus_result();receiveBase(result, "getTransactionStatus");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");}public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType) throws TransactionServiceException, org.apache.thrift.TException{send_changeTransactionStatus(transactionId, status, description, pickUp, orderType);return recv_changeTransactionStatus();}public void send_changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType) throws org.apache.thrift.TException{changeTransactionStatus_args args = new changeTransactionStatus_args();args.setTransactionId(transactionId);args.setStatus(status);args.setDescription(description);args.setPickUp(pickUp);args.setOrderType(orderType);sendBase("changeTransactionStatus", args);}public boolean recv_changeTransactionStatus() throws TransactionServiceException, org.apache.thrift.TException{changeTransactionStatus_result result = new changeTransactionStatus_result();receiveBase(result, "changeTransactionStatus");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "changeTransactionStatus failed: unknown result");}public boolean enqueueTransactionInfoEmail(long transactionId) throws TransactionServiceException, org.apache.thrift.TException{send_enqueueTransactionInfoEmail(transactionId);return recv_enqueueTransactionInfoEmail();}public void send_enqueueTransactionInfoEmail(long transactionId) throws org.apache.thrift.TException{enqueueTransactionInfoEmail_args args = new enqueueTransactionInfoEmail_args();args.setTransactionId(transactionId);sendBase("enqueueTransactionInfoEmail", args);}public boolean recv_enqueueTransactionInfoEmail() throws TransactionServiceException, org.apache.thrift.TException{enqueueTransactionInfoEmail_result result = new enqueueTransactionInfoEmail_result();receiveBase(result, "enqueueTransactionInfoEmail");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enqueueTransactionInfoEmail failed: unknown result");}public List<Order> getAllOrders(List<OrderStatus> statuses, long from_date, long to_date, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException{send_getAllOrders(statuses, from_date, to_date, warehouse_id);return recv_getAllOrders();}public void send_getAllOrders(List<OrderStatus> statuses, long from_date, long to_date, long warehouse_id) throws org.apache.thrift.TException{getAllOrders_args args = new getAllOrders_args();args.setStatuses(statuses);args.setFrom_date(from_date);args.setTo_date(to_date);args.setWarehouse_id(warehouse_id);sendBase("getAllOrders", args);}public List<Order> recv_getAllOrders() throws TransactionServiceException, org.apache.thrift.TException{getAllOrders_result result = new getAllOrders_result();receiveBase(result, "getAllOrders");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllOrders failed: unknown result");}public List<Order> getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException{send_getOrdersInBatch(statuses, offset, limit, warehouse_id);return recv_getOrdersInBatch();}public void send_getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id) throws org.apache.thrift.TException{getOrdersInBatch_args args = new getOrdersInBatch_args();args.setStatuses(statuses);args.setOffset(offset);args.setLimit(limit);args.setWarehouse_id(warehouse_id);sendBase("getOrdersInBatch", args);}public List<Order> recv_getOrdersInBatch() throws TransactionServiceException, org.apache.thrift.TException{getOrdersInBatch_result result = new getOrdersInBatch_result();receiveBase(result, "getOrdersInBatch");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersInBatch failed: unknown result");}public int getOrderCount(List<OrderStatus> statuses, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException{send_getOrderCount(statuses, warehouseId);return recv_getOrderCount();}public void send_getOrderCount(List<OrderStatus> statuses, long warehouseId) throws org.apache.thrift.TException{getOrderCount_args args = new getOrderCount_args();args.setStatuses(statuses);args.setWarehouseId(warehouseId);sendBase("getOrderCount", args);}public int recv_getOrderCount() throws TransactionServiceException, org.apache.thrift.TException{getOrderCount_result result = new getOrderCount_result();receiveBase(result, "getOrderCount");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderCount failed: unknown result");}public List<Order> getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id) throws TransactionServiceException, org.apache.thrift.TException{send_getOrdersByBillingDate(status, start_billing_date, end_billing_date, warehouse_id);return recv_getOrdersByBillingDate();}public void send_getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id) throws org.apache.thrift.TException{getOrdersByBillingDate_args args = new getOrdersByBillingDate_args();args.setStatus(status);args.setStart_billing_date(start_billing_date);args.setEnd_billing_date(end_billing_date);args.setWarehouse_id(warehouse_id);sendBase("getOrdersByBillingDate", args);}public List<Order> recv_getOrdersByBillingDate() throws TransactionServiceException, org.apache.thrift.TException{getOrdersByBillingDate_result result = new getOrdersByBillingDate_result();receiveBase(result, "getOrdersByBillingDate");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersByBillingDate failed: unknown result");}public List<Order> getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId, boolean cod) throws TransactionServiceException, org.apache.thrift.TException{send_getOrdersByShippingDate(fromShippingDate, toShippingDate, providerId, warehouseId, cod);return recv_getOrdersByShippingDate();}public void send_getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId, boolean cod) throws org.apache.thrift.TException{getOrdersByShippingDate_args args = new getOrdersByShippingDate_args();args.setFromShippingDate(fromShippingDate);args.setToShippingDate(toShippingDate);args.setProviderId(providerId);args.setWarehouseId(warehouseId);args.setCod(cod);sendBase("getOrdersByShippingDate", args);}public List<Order> recv_getOrdersByShippingDate() throws TransactionServiceException, org.apache.thrift.TException{getOrdersByShippingDate_result result = new getOrdersByShippingDate_result();receiveBase(result, "getOrdersByShippingDate");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersByShippingDate failed: unknown result");}public List<Long> getReturnableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, org.apache.thrift.TException{send_getReturnableOrdersForCustomer(customer_id, limit);return recv_getReturnableOrdersForCustomer();}public void send_getReturnableOrdersForCustomer(long customer_id, long limit) throws org.apache.thrift.TException{getReturnableOrdersForCustomer_args args = new getReturnableOrdersForCustomer_args();args.setCustomer_id(customer_id);args.setLimit(limit);sendBase("getReturnableOrdersForCustomer", args);}public List<Long> recv_getReturnableOrdersForCustomer() throws TransactionServiceException, org.apache.thrift.TException{getReturnableOrdersForCustomer_result result = new getReturnableOrdersForCustomer_result();receiveBase(result, "getReturnableOrdersForCustomer");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReturnableOrdersForCustomer failed: unknown result");}public List<Long> getCancellableOrdersForCustomer(long customer_id, long limit) throws TransactionServiceException, org.apache.thrift.TException{send_getCancellableOrdersForCustomer(customer_id, limit);return recv_getCancellableOrdersForCustomer();}public void send_getCancellableOrdersForCustomer(long customer_id, long limit) throws org.apache.thrift.TException{getCancellableOrdersForCustomer_args args = new getCancellableOrdersForCustomer_args();args.setCustomer_id(customer_id);args.setLimit(limit);sendBase("getCancellableOrdersForCustomer", args);}public List<Long> recv_getCancellableOrdersForCustomer() throws TransactionServiceException, org.apache.thrift.TException{getCancellableOrdersForCustomer_result result = new getCancellableOrdersForCustomer_result();receiveBase(result, "getCancellableOrdersForCustomer");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCancellableOrdersForCustomer failed: unknown result");}public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, org.apache.thrift.TException{send_changeOrderStatus(orderId, status, description);return recv_changeOrderStatus();}public void send_changeOrderStatus(long orderId, OrderStatus status, String description) throws org.apache.thrift.TException{changeOrderStatus_args args = new changeOrderStatus_args();args.setOrderId(orderId);args.setStatus(status);args.setDescription(description);sendBase("changeOrderStatus", args);}public boolean recv_changeOrderStatus() throws TransactionServiceException, org.apache.thrift.TException{changeOrderStatus_result result = new changeOrderStatus_result();receiveBase(result, "changeOrderStatus");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "changeOrderStatus failed: unknown result");}public List<Order> getOrdersForTransaction(long transactionId, long customerId) throws TransactionServiceException, org.apache.thrift.TException{send_getOrdersForTransaction(transactionId, customerId);return recv_getOrdersForTransaction();}public void send_getOrdersForTransaction(long transactionId, long customerId) throws org.apache.thrift.TException{getOrdersForTransaction_args args = new getOrdersForTransaction_args();args.setTransactionId(transactionId);args.setCustomerId(customerId);sendBase("getOrdersForTransaction", args);}public List<Order> recv_getOrdersForTransaction() throws TransactionServiceException, org.apache.thrift.TException{getOrdersForTransaction_result result = new getOrdersForTransaction_result();receiveBase(result, "getOrdersForTransaction");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersForTransaction failed: unknown result");}public List<Order> getOrdersForCustomer(long customerId, long from_date, long to_date, List<OrderStatus> statuses) throws TransactionServiceException, org.apache.thrift.TException{send_getOrdersForCustomer(customerId, from_date, to_date, statuses);return recv_getOrdersForCustomer();}public void send_getOrdersForCustomer(long customerId, long from_date, long to_date, List<OrderStatus> statuses) throws org.apache.thrift.TException{getOrdersForCustomer_args args = new getOrdersForCustomer_args();args.setCustomerId(customerId);args.setFrom_date(from_date);args.setTo_date(to_date);args.setStatuses(statuses);sendBase("getOrdersForCustomer", args);}public List<Order> recv_getOrdersForCustomer() throws TransactionServiceException, org.apache.thrift.TException{getOrdersForCustomer_result result = new getOrdersForCustomer_result();receiveBase(result, "getOrdersForCustomer");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersForCustomer failed: unknown result");}public long createOrder(Order order) throws TransactionServiceException, org.apache.thrift.TException{send_createOrder(order);return recv_createOrder();}public void send_createOrder(Order order) throws org.apache.thrift.TException{createOrder_args args = new createOrder_args();args.setOrder(order);sendBase("createOrder", args);}public long recv_createOrder() throws TransactionServiceException, org.apache.thrift.TException{createOrder_result result = new createOrder_result();receiveBase(result, "createOrder");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createOrder failed: unknown result");}public Order getOrder(long id) throws TransactionServiceException, org.apache.thrift.TException{send_getOrder(id);return recv_getOrder();}public void send_getOrder(long id) throws org.apache.thrift.TException{getOrder_args args = new getOrder_args();args.setId(id);sendBase("getOrder", args);}public Order recv_getOrder() throws TransactionServiceException, org.apache.thrift.TException{getOrder_result result = new getOrder_result();receiveBase(result, "getOrder");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrder failed: unknown result");}public List<LineItem> getLineItemsForOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException{send_getLineItemsForOrder(orderId);return recv_getLineItemsForOrder();}public void send_getLineItemsForOrder(long orderId) throws org.apache.thrift.TException{getLineItemsForOrder_args args = new getLineItemsForOrder_args();args.setOrderId(orderId);sendBase("getLineItemsForOrder", args);}public List<LineItem> recv_getLineItemsForOrder() throws TransactionServiceException, org.apache.thrift.TException{getLineItemsForOrder_result result = new getLineItemsForOrder_result();receiveBase(result, "getLineItemsForOrder");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLineItemsForOrder failed: unknown result");}public List<Order> getOrderList(List<Long> order_ids) throws org.apache.thrift.TException{send_getOrderList(order_ids);return recv_getOrderList();}public void send_getOrderList(List<Long> order_ids) throws org.apache.thrift.TException{getOrderList_args args = new getOrderList_args();args.setOrder_ids(order_ids);sendBase("getOrderList", args);}public List<Order> recv_getOrderList() throws org.apache.thrift.TException{getOrderList_result result = new getOrderList_result();receiveBase(result, "getOrderList");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderList failed: unknown result");}public List<Order> getOrderListForVendor(List<Long> order_ids, long vendorId) throws org.apache.thrift.TException{send_getOrderListForVendor(order_ids, vendorId);return recv_getOrderListForVendor();}public void send_getOrderListForVendor(List<Long> order_ids, long vendorId) throws org.apache.thrift.TException{getOrderListForVendor_args args = new getOrderListForVendor_args();args.setOrder_ids(order_ids);args.setVendorId(vendorId);sendBase("getOrderListForVendor", args);}public List<Order> recv_getOrderListForVendor() throws org.apache.thrift.TException{getOrderListForVendor_result result = new getOrderListForVendor_result();receiveBase(result, "getOrderListForVendor");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderListForVendor failed: unknown result");}public Order getOrderForCustomer(long orderId, long customerId) throws TransactionServiceException, org.apache.thrift.TException{send_getOrderForCustomer(orderId, customerId);return recv_getOrderForCustomer();}public void send_getOrderForCustomer(long orderId, long customerId) throws org.apache.thrift.TException{getOrderForCustomer_args args = new getOrderForCustomer_args();args.setOrderId(orderId);args.setCustomerId(customerId);sendBase("getOrderForCustomer", args);}public Order recv_getOrderForCustomer() throws TransactionServiceException, org.apache.thrift.TException{getOrderForCustomer_result result = new getOrderForCustomer_result();receiveBase(result, "getOrderForCustomer");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderForCustomer failed: unknown result");}public List<Alert> getAlerts(long type, long warehouseId, long status, long timestamp) throws org.apache.thrift.TException{send_getAlerts(type, warehouseId, status, timestamp);return recv_getAlerts();}public void send_getAlerts(long type, long warehouseId, long status, long timestamp) throws org.apache.thrift.TException{getAlerts_args args = new getAlerts_args();args.setType(type);args.setWarehouseId(warehouseId);args.setStatus(status);args.setTimestamp(timestamp);sendBase("getAlerts", args);}public List<Alert> recv_getAlerts() throws org.apache.thrift.TException{getAlerts_result result = new getAlerts_result();receiveBase(result, "getAlerts");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");}public void addAlert(long type, long warehouseId, String description) throws org.apache.thrift.TException{send_addAlert(type, warehouseId, description);recv_addAlert();}public void send_addAlert(long type, long warehouseId, String description) throws org.apache.thrift.TException{addAlert_args args = new addAlert_args();args.setType(type);args.setWarehouseId(warehouseId);args.setDescription(description);sendBase("addAlert", args);}public void recv_addAlert() throws org.apache.thrift.TException{addAlert_result result = new addAlert_result();receiveBase(result, "addAlert");return;}public void markAlertsAsSeen(long warehouseId) throws org.apache.thrift.TException{send_markAlertsAsSeen(warehouseId);recv_markAlertsAsSeen();}public void send_markAlertsAsSeen(long warehouseId) throws org.apache.thrift.TException{markAlertsAsSeen_args args = new markAlertsAsSeen_args();args.setWarehouseId(warehouseId);sendBase("markAlertsAsSeen", args);}public void recv_markAlertsAsSeen() throws org.apache.thrift.TException{markAlertsAsSeen_result result = new markAlertsAsSeen_result();receiveBase(result, "markAlertsAsSeen");return;}public long getValidOrderCount() throws org.apache.thrift.TException{send_getValidOrderCount();return recv_getValidOrderCount();}public void send_getValidOrderCount() throws org.apache.thrift.TException{getValidOrderCount_args args = new getValidOrderCount_args();sendBase("getValidOrderCount", args);}public long recv_getValidOrderCount() throws org.apache.thrift.TException{getValidOrderCount_result result = new getValidOrderCount_result();receiveBase(result, "getValidOrderCount");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getValidOrderCount failed: unknown result");}public long getNoOfCustomersWithSuccessfulTransaction() throws org.apache.thrift.TException{send_getNoOfCustomersWithSuccessfulTransaction();return recv_getNoOfCustomersWithSuccessfulTransaction();}public void send_getNoOfCustomersWithSuccessfulTransaction() throws org.apache.thrift.TException{getNoOfCustomersWithSuccessfulTransaction_args args = new getNoOfCustomersWithSuccessfulTransaction_args();sendBase("getNoOfCustomersWithSuccessfulTransaction", args);}public long recv_getNoOfCustomersWithSuccessfulTransaction() throws org.apache.thrift.TException{getNoOfCustomersWithSuccessfulTransaction_result result = new getNoOfCustomersWithSuccessfulTransaction_result();receiveBase(result, "getNoOfCustomersWithSuccessfulTransaction");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNoOfCustomersWithSuccessfulTransaction failed: unknown result");}public List<Double> getValidOrdersAmountRange() throws org.apache.thrift.TException{send_getValidOrdersAmountRange();return recv_getValidOrdersAmountRange();}public void send_getValidOrdersAmountRange() throws org.apache.thrift.TException{getValidOrdersAmountRange_args args = new getValidOrdersAmountRange_args();sendBase("getValidOrdersAmountRange", args);}public List<Double> recv_getValidOrdersAmountRange() throws org.apache.thrift.TException{getValidOrdersAmountRange_result result = new getValidOrdersAmountRange_result();receiveBase(result, "getValidOrdersAmountRange");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getValidOrdersAmountRange failed: unknown result");}public List<Order> getValidOrders(long limit, boolean onlyStore) throws org.apache.thrift.TException{send_getValidOrders(limit, onlyStore);return recv_getValidOrders();}public void send_getValidOrders(long limit, boolean onlyStore) throws org.apache.thrift.TException{getValidOrders_args args = new getValidOrders_args();args.setLimit(limit);args.setOnlyStore(onlyStore);sendBase("getValidOrders", args);}public List<Order> recv_getValidOrders() throws org.apache.thrift.TException{getValidOrders_result result = new getValidOrders_result();receiveBase(result, "getValidOrders");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getValidOrders failed: unknown result");}public List<Order> batchOrders(long warehouseId) throws TransactionServiceException, org.apache.thrift.TException{send_batchOrders(warehouseId);return recv_batchOrders();}public void send_batchOrders(long warehouseId) throws org.apache.thrift.TException{batchOrders_args args = new batchOrders_args();args.setWarehouseId(warehouseId);sendBase("batchOrders", args);}public List<Order> recv_batchOrders() throws TransactionServiceException, org.apache.thrift.TException{batchOrders_result result = new batchOrders_result();receiveBase(result, "batchOrders");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "batchOrders failed: unknown result");}public boolean markOrderAsOutOfStock(long orderId) throws TransactionServiceException, org.apache.thrift.TException{send_markOrderAsOutOfStock(orderId);return recv_markOrderAsOutOfStock();}public void send_markOrderAsOutOfStock(long orderId) throws org.apache.thrift.TException{markOrderAsOutOfStock_args args = new markOrderAsOutOfStock_args();args.setOrderId(orderId);sendBase("markOrderAsOutOfStock", args);}public boolean recv_markOrderAsOutOfStock() throws TransactionServiceException, org.apache.thrift.TException{markOrderAsOutOfStock_result result = new markOrderAsOutOfStock_result();receiveBase(result, "markOrderAsOutOfStock");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrderAsOutOfStock failed: unknown result");}public boolean verifyOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException{send_verifyOrder(orderId);return recv_verifyOrder();}public void send_verifyOrder(long orderId) throws org.apache.thrift.TException{verifyOrder_args args = new verifyOrder_args();args.setOrderId(orderId);sendBase("verifyOrder", args);}public boolean recv_verifyOrder() throws TransactionServiceException, org.apache.thrift.TException{verifyOrder_result result = new verifyOrder_result();receiveBase(result, "verifyOrder");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "verifyOrder failed: unknown result");}public boolean acceptOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException{send_acceptOrder(orderId);return recv_acceptOrder();}public void send_acceptOrder(long orderId) throws org.apache.thrift.TException{acceptOrder_args args = new acceptOrder_args();args.setOrderId(orderId);sendBase("acceptOrder", args);}public boolean recv_acceptOrder() throws TransactionServiceException, org.apache.thrift.TException{acceptOrder_result result = new acceptOrder_result();receiveBase(result, "acceptOrder");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "acceptOrder failed: unknown result");}public boolean addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize) throws TransactionServiceException, org.apache.thrift.TException{send_addBillingDetails(orderId, invoice_number, serialNumber, itemNumber, billed_by, jacketNumber, billingType, fulfilmentWarehouseId, authorize);return recv_addBillingDetails();}public void send_addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize) throws org.apache.thrift.TException{addBillingDetails_args args = new addBillingDetails_args();args.setOrderId(orderId);args.setInvoice_number(invoice_number);args.setSerialNumber(serialNumber);args.setItemNumber(itemNumber);args.setBilled_by(billed_by);args.setJacketNumber(jacketNumber);args.setBillingType(billingType);args.setFulfilmentWarehouseId(fulfilmentWarehouseId);args.setAuthorize(authorize);sendBase("addBillingDetails", args);}public boolean recv_addBillingDetails() throws TransactionServiceException, org.apache.thrift.TException{addBillingDetails_result result = new addBillingDetails_result();receiveBase(result, "addBillingDetails");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addBillingDetails failed: unknown result");}public void addInvoiceNumber(long orderId, String invoiceNumber, String color) throws TransactionServiceException, org.apache.thrift.TException{send_addInvoiceNumber(orderId, invoiceNumber, color);recv_addInvoiceNumber();}public void send_addInvoiceNumber(long orderId, String invoiceNumber, String color) throws org.apache.thrift.TException{addInvoiceNumber_args args = new addInvoiceNumber_args();args.setOrderId(orderId);args.setInvoiceNumber(invoiceNumber);args.setColor(color);sendBase("addInvoiceNumber", args);}public void recv_addInvoiceNumber() throws TransactionServiceException, org.apache.thrift.TException{addInvoiceNumber_result result = new addInvoiceNumber_result();receiveBase(result, "addInvoiceNumber");if (result.ex != null) {throw result.ex;}return;}public boolean markOrdersAsShippedFromWarehouse(long warehouseId, long providerId, boolean cod, List<Long> orderIds) throws TransactionServiceException, org.apache.thrift.TException{send_markOrdersAsShippedFromWarehouse(warehouseId, providerId, cod, orderIds);return recv_markOrdersAsShippedFromWarehouse();}public void send_markOrdersAsShippedFromWarehouse(long warehouseId, long providerId, boolean cod, List<Long> orderIds) throws org.apache.thrift.TException{markOrdersAsShippedFromWarehouse_args args = new markOrdersAsShippedFromWarehouse_args();args.setWarehouseId(warehouseId);args.setProviderId(providerId);args.setCod(cod);args.setOrderIds(orderIds);sendBase("markOrdersAsShippedFromWarehouse", args);}public boolean recv_markOrdersAsShippedFromWarehouse() throws TransactionServiceException, org.apache.thrift.TException{markOrdersAsShippedFromWarehouse_result result = new markOrdersAsShippedFromWarehouse_result();receiveBase(result, "markOrdersAsShippedFromWarehouse");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrdersAsShippedFromWarehouse failed: unknown result");}public boolean markOrdersAsReturnedFromStore(long providerId, List<Long> orderIds, List<String> awbs) throws TransactionServiceException, org.apache.thrift.TException{send_markOrdersAsReturnedFromStore(providerId, orderIds, awbs);return recv_markOrdersAsReturnedFromStore();}public void send_markOrdersAsReturnedFromStore(long providerId, List<Long> orderIds, List<String> awbs) throws org.apache.thrift.TException{markOrdersAsReturnedFromStore_args args = new markOrdersAsReturnedFromStore_args();args.setProviderId(providerId);args.setOrderIds(orderIds);args.setAwbs(awbs);sendBase("markOrdersAsReturnedFromStore", args);}public boolean recv_markOrdersAsReturnedFromStore() throws TransactionServiceException, org.apache.thrift.TException{markOrdersAsReturnedFromStore_result result = new markOrdersAsReturnedFromStore_result();receiveBase(result, "markOrdersAsReturnedFromStore");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrdersAsReturnedFromStore failed: unknown result");}public void markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails) throws TransactionServiceException, org.apache.thrift.TException{send_markOrdersAsPickedUp(providerId, pickupDetails);recv_markOrdersAsPickedUp();}public void send_markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException{markOrdersAsPickedUp_args args = new markOrdersAsPickedUp_args();args.setProviderId(providerId);args.setPickupDetails(pickupDetails);sendBase("markOrdersAsPickedUp", args);}public void recv_markOrdersAsPickedUp() throws TransactionServiceException, org.apache.thrift.TException{markOrdersAsPickedUp_result result = new markOrdersAsPickedUp_result();receiveBase(result, "markOrdersAsPickedUp");if (result.ex != null) {throw result.ex;}return;}public List<Order> getOrdersNotPickedUp(long providerId) throws org.apache.thrift.TException{send_getOrdersNotPickedUp(providerId);return recv_getOrdersNotPickedUp();}public void send_getOrdersNotPickedUp(long providerId) throws org.apache.thrift.TException{getOrdersNotPickedUp_args args = new getOrdersNotPickedUp_args();args.setProviderId(providerId);sendBase("getOrdersNotPickedUp", args);}public List<Order> recv_getOrdersNotPickedUp() throws org.apache.thrift.TException{getOrdersNotPickedUp_result result = new getOrdersNotPickedUp_result();receiveBase(result, "getOrdersNotPickedUp");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersNotPickedUp failed: unknown result");}public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders) throws TransactionServiceException, org.apache.thrift.TException{send_markOrdersAsDelivered(providerId, deliveredOrders);recv_markOrdersAsDelivered();}public void send_markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders) throws org.apache.thrift.TException{markOrdersAsDelivered_args args = new markOrdersAsDelivered_args();args.setProviderId(providerId);args.setDeliveredOrders(deliveredOrders);sendBase("markOrdersAsDelivered", args);}public void recv_markOrdersAsDelivered() throws TransactionServiceException, org.apache.thrift.TException{markOrdersAsDelivered_result result = new markOrdersAsDelivered_result();receiveBase(result, "markOrdersAsDelivered");if (result.ex != null) {throw result.ex;}return;}public void markAsRTOrders(long providerId, Map<String,String> returnedOrders) throws TransactionServiceException, org.apache.thrift.TException{send_markAsRTOrders(providerId, returnedOrders);recv_markAsRTOrders();}public void send_markAsRTOrders(long providerId, Map<String,String> returnedOrders) throws org.apache.thrift.TException{markAsRTOrders_args args = new markAsRTOrders_args();args.setProviderId(providerId);args.setReturnedOrders(returnedOrders);sendBase("markAsRTOrders", args);}public void recv_markAsRTOrders() throws TransactionServiceException, org.apache.thrift.TException{markAsRTOrders_result result = new markAsRTOrders_result();receiveBase(result, "markAsRTOrders");if (result.ex != null) {throw result.ex;}return;}public List<Order> getRTOrders(long providerId) throws org.apache.thrift.TException{send_getRTOrders(providerId);return recv_getRTOrders();}public void send_getRTOrders(long providerId) throws org.apache.thrift.TException{getRTOrders_args args = new getRTOrders_args();args.setProviderId(providerId);sendBase("getRTOrders", args);}public List<Order> recv_getRTOrders() throws org.apache.thrift.TException{getRTOrders_result result = new getRTOrders_result();receiveBase(result, "getRTOrders");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRTOrders failed: unknown result");}public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws TransactionServiceException, org.apache.thrift.TException{send_updateNonDeliveryReason(providerId, undeliveredOrders);recv_updateNonDeliveryReason();}public void send_updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders) throws org.apache.thrift.TException{updateNonDeliveryReason_args args = new updateNonDeliveryReason_args();args.setProviderId(providerId);args.setUndeliveredOrders(undeliveredOrders);sendBase("updateNonDeliveryReason", args);}public void recv_updateNonDeliveryReason() throws TransactionServiceException, org.apache.thrift.TException{updateNonDeliveryReason_result result = new updateNonDeliveryReason_result();receiveBase(result, "updateNonDeliveryReason");if (result.ex != null) {throw result.ex;}return;}public List<Order> getNonDeliveredOrdersbyCourier(long providerId) throws org.apache.thrift.TException{send_getNonDeliveredOrdersbyCourier(providerId);return recv_getNonDeliveredOrdersbyCourier();}public void send_getNonDeliveredOrdersbyCourier(long providerId) throws org.apache.thrift.TException{getNonDeliveredOrdersbyCourier_args args = new getNonDeliveredOrdersbyCourier_args();args.setProviderId(providerId);sendBase("getNonDeliveredOrdersbyCourier", args);}public List<Order> recv_getNonDeliveredOrdersbyCourier() throws org.apache.thrift.TException{getNonDeliveredOrdersbyCourier_result result = new getNonDeliveredOrdersbyCourier_result();receiveBase(result, "getNonDeliveredOrdersbyCourier");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonDeliveredOrdersbyCourier failed: unknown result");}public void markOrdersAsLocalConnected(long providerId, Map<String,String> local_connected_orders) throws TransactionServiceException, org.apache.thrift.TException{send_markOrdersAsLocalConnected(providerId, local_connected_orders);recv_markOrdersAsLocalConnected();}public void send_markOrdersAsLocalConnected(long providerId, Map<String,String> local_connected_orders) throws org.apache.thrift.TException{markOrdersAsLocalConnected_args args = new markOrdersAsLocalConnected_args();args.setProviderId(providerId);args.setLocal_connected_orders(local_connected_orders);sendBase("markOrdersAsLocalConnected", args);}public void recv_markOrdersAsLocalConnected() throws TransactionServiceException, org.apache.thrift.TException{markOrdersAsLocalConnected_result result = new markOrdersAsLocalConnected_result();receiveBase(result, "markOrdersAsLocalConnected");if (result.ex != null) {throw result.ex;}return;}public List<Order> getOrdersNotLocalConnected(long providerId) throws org.apache.thrift.TException{send_getOrdersNotLocalConnected(providerId);return recv_getOrdersNotLocalConnected();}public void send_getOrdersNotLocalConnected(long providerId) throws org.apache.thrift.TException{getOrdersNotLocalConnected_args args = new getOrdersNotLocalConnected_args();args.setProviderId(providerId);sendBase("getOrdersNotLocalConnected", args);}public List<Order> recv_getOrdersNotLocalConnected() throws org.apache.thrift.TException{getOrdersNotLocalConnected_result result = new getOrdersNotLocalConnected_result();receiveBase(result, "getOrdersNotLocalConnected");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersNotLocalConnected failed: unknown result");}public void markOrdersAsDestinationCityReached(long providerId, Map<String,String> destination_city_reached_orders) throws TransactionServiceException, org.apache.thrift.TException{send_markOrdersAsDestinationCityReached(providerId, destination_city_reached_orders);recv_markOrdersAsDestinationCityReached();}public void send_markOrdersAsDestinationCityReached(long providerId, Map<String,String> destination_city_reached_orders) throws org.apache.thrift.TException{markOrdersAsDestinationCityReached_args args = new markOrdersAsDestinationCityReached_args();args.setProviderId(providerId);args.setDestination_city_reached_orders(destination_city_reached_orders);sendBase("markOrdersAsDestinationCityReached", args);}public void recv_markOrdersAsDestinationCityReached() throws TransactionServiceException, org.apache.thrift.TException{markOrdersAsDestinationCityReached_result result = new markOrdersAsDestinationCityReached_result();receiveBase(result, "markOrdersAsDestinationCityReached");if (result.ex != null) {throw result.ex;}return;}public void markOrdersAsFirstDeliveryAttempted(long providerId, Map<String,String> first_atdl_orders) throws TransactionServiceException, org.apache.thrift.TException{send_markOrdersAsFirstDeliveryAttempted(providerId, first_atdl_orders);recv_markOrdersAsFirstDeliveryAttempted();}public void send_markOrdersAsFirstDeliveryAttempted(long providerId, Map<String,String> first_atdl_orders) throws org.apache.thrift.TException{markOrdersAsFirstDeliveryAttempted_args args = new markOrdersAsFirstDeliveryAttempted_args();args.setProviderId(providerId);args.setFirst_atdl_orders(first_atdl_orders);sendBase("markOrdersAsFirstDeliveryAttempted", args);}public void recv_markOrdersAsFirstDeliveryAttempted() throws TransactionServiceException, org.apache.thrift.TException{markOrdersAsFirstDeliveryAttempted_result result = new markOrdersAsFirstDeliveryAttempted_result();receiveBase(result, "markOrdersAsFirstDeliveryAttempted");if (result.ex != null) {throw result.ex;}return;}public List<Order> getUndeliveredOrders(long providerId, long warehouseId) throws org.apache.thrift.TException{send_getUndeliveredOrders(providerId, warehouseId);return recv_getUndeliveredOrders();}public void send_getUndeliveredOrders(long providerId, long warehouseId) throws org.apache.thrift.TException{getUndeliveredOrders_args args = new getUndeliveredOrders_args();args.setProviderId(providerId);args.setWarehouseId(warehouseId);sendBase("getUndeliveredOrders", args);}public List<Order> recv_getUndeliveredOrders() throws org.apache.thrift.TException{getUndeliveredOrders_result result = new getUndeliveredOrders_result();receiveBase(result, "getUndeliveredOrders");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUndeliveredOrders failed: unknown result");}public List<Order> getUndeliveredOrdersExpectedDeliveryDateNotMet() throws org.apache.thrift.TException{send_getUndeliveredOrdersExpectedDeliveryDateNotMet();return recv_getUndeliveredOrdersExpectedDeliveryDateNotMet();}public void send_getUndeliveredOrdersExpectedDeliveryDateNotMet() throws org.apache.thrift.TException{getUndeliveredOrdersExpectedDeliveryDateNotMet_args args = new getUndeliveredOrdersExpectedDeliveryDateNotMet_args();sendBase("getUndeliveredOrdersExpectedDeliveryDateNotMet", args);}public List<Order> recv_getUndeliveredOrdersExpectedDeliveryDateNotMet() throws org.apache.thrift.TException{getUndeliveredOrdersExpectedDeliveryDateNotMet_result result = new getUndeliveredOrdersExpectedDeliveryDateNotMet_result();receiveBase(result, "getUndeliveredOrdersExpectedDeliveryDateNotMet");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUndeliveredOrdersExpectedDeliveryDateNotMet failed: unknown result");}public boolean toggleDOAFlag(long orderId) throws TransactionServiceException, org.apache.thrift.TException{send_toggleDOAFlag(orderId);return recv_toggleDOAFlag();}public void send_toggleDOAFlag(long orderId) throws org.apache.thrift.TException{toggleDOAFlag_args args = new toggleDOAFlag_args();args.setOrderId(orderId);sendBase("toggleDOAFlag", args);}public boolean recv_toggleDOAFlag() throws TransactionServiceException, org.apache.thrift.TException{toggleDOAFlag_result result = new toggleDOAFlag_result();receiveBase(result, "toggleDOAFlag");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "toggleDOAFlag failed: unknown result");}public void markOrderAsDelivered(long orderId, long deliveryTimestamp, String receiver) throws TransactionServiceException, org.apache.thrift.TException{send_markOrderAsDelivered(orderId, deliveryTimestamp, receiver);recv_markOrderAsDelivered();}public void send_markOrderAsDelivered(long orderId, long deliveryTimestamp, String receiver) throws org.apache.thrift.TException{markOrderAsDelivered_args args = new markOrderAsDelivered_args();args.setOrderId(orderId);args.setDeliveryTimestamp(deliveryTimestamp);args.setReceiver(receiver);sendBase("markOrderAsDelivered", args);}public void recv_markOrderAsDelivered() throws TransactionServiceException, org.apache.thrift.TException{markOrderAsDelivered_result result = new markOrderAsDelivered_result();receiveBase(result, "markOrderAsDelivered");if (result.ex != null) {throw result.ex;}return;}public void markOrderAsReceivedAtStore(long orderId, long deliveryTimestamp) throws TransactionServiceException, org.apache.thrift.TException{send_markOrderAsReceivedAtStore(orderId, deliveryTimestamp);recv_markOrderAsReceivedAtStore();}public void send_markOrderAsReceivedAtStore(long orderId, long deliveryTimestamp) throws org.apache.thrift.TException{markOrderAsReceivedAtStore_args args = new markOrderAsReceivedAtStore_args();args.setOrderId(orderId);args.setDeliveryTimestamp(deliveryTimestamp);sendBase("markOrderAsReceivedAtStore", args);}public void recv_markOrderAsReceivedAtStore() throws TransactionServiceException, org.apache.thrift.TException{markOrderAsReceivedAtStore_result result = new markOrderAsReceivedAtStore_result();receiveBase(result, "markOrderAsReceivedAtStore");if (result.ex != null) {throw result.ex;}return;}public boolean markOrderDoaRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException{send_markOrderDoaRequestReceived(orderId);return recv_markOrderDoaRequestReceived();}public void send_markOrderDoaRequestReceived(long orderId) throws org.apache.thrift.TException{markOrderDoaRequestReceived_args args = new markOrderDoaRequestReceived_args();args.setOrderId(orderId);sendBase("markOrderDoaRequestReceived", args);}public boolean recv_markOrderDoaRequestReceived() throws TransactionServiceException, org.apache.thrift.TException{markOrderDoaRequestReceived_result result = new markOrderDoaRequestReceived_result();receiveBase(result, "markOrderDoaRequestReceived");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrderDoaRequestReceived failed: unknown result");}public boolean markOrderDoaRequestAuthorized(long orderId, boolean isAuthorized) throws TransactionServiceException, org.apache.thrift.TException{send_markOrderDoaRequestAuthorized(orderId, isAuthorized);return recv_markOrderDoaRequestAuthorized();}public void send_markOrderDoaRequestAuthorized(long orderId, boolean isAuthorized) throws org.apache.thrift.TException{markOrderDoaRequestAuthorized_args args = new markOrderDoaRequestAuthorized_args();args.setOrderId(orderId);args.setIsAuthorized(isAuthorized);sendBase("markOrderDoaRequestAuthorized", args);}public boolean recv_markOrderDoaRequestAuthorized() throws TransactionServiceException, org.apache.thrift.TException{markOrderDoaRequestAuthorized_result result = new markOrderDoaRequestAuthorized_result();receiveBase(result, "markOrderDoaRequestAuthorized");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrderDoaRequestAuthorized failed: unknown result");}public boolean markOrderReturnRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException{send_markOrderReturnRequestReceived(orderId);return recv_markOrderReturnRequestReceived();}public void send_markOrderReturnRequestReceived(long orderId) throws org.apache.thrift.TException{markOrderReturnRequestReceived_args args = new markOrderReturnRequestReceived_args();args.setOrderId(orderId);sendBase("markOrderReturnRequestReceived", args);}public boolean recv_markOrderReturnRequestReceived() throws TransactionServiceException, org.apache.thrift.TException{markOrderReturnRequestReceived_result result = new markOrderReturnRequestReceived_result();receiveBase(result, "markOrderReturnRequestReceived");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrderReturnRequestReceived failed: unknown result");}public boolean markOrderReturnRequestAuthorized(long orderId, boolean isAuthorized) throws TransactionServiceException, org.apache.thrift.TException{send_markOrderReturnRequestAuthorized(orderId, isAuthorized);return recv_markOrderReturnRequestAuthorized();}public void send_markOrderReturnRequestAuthorized(long orderId, boolean isAuthorized) throws org.apache.thrift.TException{markOrderReturnRequestAuthorized_args args = new markOrderReturnRequestAuthorized_args();args.setOrderId(orderId);args.setIsAuthorized(isAuthorized);sendBase("markOrderReturnRequestAuthorized", args);}public boolean recv_markOrderReturnRequestAuthorized() throws TransactionServiceException, org.apache.thrift.TException{markOrderReturnRequestAuthorized_result result = new markOrderReturnRequestAuthorized_result();receiveBase(result, "markOrderReturnRequestAuthorized");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrderReturnRequestAuthorized failed: unknown result");}public boolean requestPickupNumber(long orderId, long providerId) throws TransactionServiceException, org.apache.thrift.TException{send_requestPickupNumber(orderId, providerId);return recv_requestPickupNumber();}public void send_requestPickupNumber(long orderId, long providerId) throws org.apache.thrift.TException{requestPickupNumber_args args = new requestPickupNumber_args();args.setOrderId(orderId);args.setProviderId(providerId);sendBase("requestPickupNumber", args);}public boolean recv_requestPickupNumber() throws TransactionServiceException, org.apache.thrift.TException{requestPickupNumber_result result = new requestPickupNumber_result();receiveBase(result, "requestPickupNumber");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "requestPickupNumber failed: unknown result");}public boolean authorizePickup(long orderId, String pickupNumber, long providerId) throws TransactionServiceException, org.apache.thrift.TException{send_authorizePickup(orderId, pickupNumber, providerId);return recv_authorizePickup();}public void send_authorizePickup(long orderId, String pickupNumber, long providerId) throws org.apache.thrift.TException{authorizePickup_args args = new authorizePickup_args();args.setOrderId(orderId);args.setPickupNumber(pickupNumber);args.setProviderId(providerId);sendBase("authorizePickup", args);}public boolean recv_authorizePickup() throws TransactionServiceException, org.apache.thrift.TException{authorizePickup_result result = new authorizePickup_result();receiveBase(result, "authorizePickup");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authorizePickup failed: unknown result");}public void markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException{send_markDoasAsPickedUp(providerId, pickupDetails);recv_markDoasAsPickedUp();}public void send_markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException{markDoasAsPickedUp_args args = new markDoasAsPickedUp_args();args.setProviderId(providerId);args.setPickupDetails(pickupDetails);sendBase("markDoasAsPickedUp", args);}public void recv_markDoasAsPickedUp() throws org.apache.thrift.TException{markDoasAsPickedUp_result result = new markDoasAsPickedUp_result();receiveBase(result, "markDoasAsPickedUp");return;}public List<Order> getDoasNotPickedUp(long providerId) throws org.apache.thrift.TException{send_getDoasNotPickedUp(providerId);return recv_getDoasNotPickedUp();}public void send_getDoasNotPickedUp(long providerId) throws org.apache.thrift.TException{getDoasNotPickedUp_args args = new getDoasNotPickedUp_args();args.setProviderId(providerId);sendBase("getDoasNotPickedUp", args);}public List<Order> recv_getDoasNotPickedUp() throws org.apache.thrift.TException{getDoasNotPickedUp_result result = new getDoasNotPickedUp_result();receiveBase(result, "getDoasNotPickedUp");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDoasNotPickedUp failed: unknown result");}public void markReturnOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException{send_markReturnOrdersAsPickedUp(providerId, pickupDetails);recv_markReturnOrdersAsPickedUp();}public void send_markReturnOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails) throws org.apache.thrift.TException{markReturnOrdersAsPickedUp_args args = new markReturnOrdersAsPickedUp_args();args.setProviderId(providerId);args.setPickupDetails(pickupDetails);sendBase("markReturnOrdersAsPickedUp", args);}public void recv_markReturnOrdersAsPickedUp() throws org.apache.thrift.TException{markReturnOrdersAsPickedUp_result result = new markReturnOrdersAsPickedUp_result();receiveBase(result, "markReturnOrdersAsPickedUp");return;}public List<Order> getReturnOrdersNotPickedUp(long providerId) throws org.apache.thrift.TException{send_getReturnOrdersNotPickedUp(providerId);return recv_getReturnOrdersNotPickedUp();}public void send_getReturnOrdersNotPickedUp(long providerId) throws org.apache.thrift.TException{getReturnOrdersNotPickedUp_args args = new getReturnOrdersNotPickedUp_args();args.setProviderId(providerId);sendBase("getReturnOrdersNotPickedUp", args);}public List<Order> recv_getReturnOrdersNotPickedUp() throws org.apache.thrift.TException{getReturnOrdersNotPickedUp_result result = new getReturnOrdersNotPickedUp_result();receiveBase(result, "getReturnOrdersNotPickedUp");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReturnOrdersNotPickedUp failed: unknown result");}public boolean receiveReturn(long orderId, long receiveCondition) throws TransactionServiceException, org.apache.thrift.TException{send_receiveReturn(orderId, receiveCondition);return recv_receiveReturn();}public void send_receiveReturn(long orderId, long receiveCondition) throws org.apache.thrift.TException{receiveReturn_args args = new receiveReturn_args();args.setOrderId(orderId);args.setReceiveCondition(receiveCondition);sendBase("receiveReturn", args);}public boolean recv_receiveReturn() throws TransactionServiceException, org.apache.thrift.TException{receiveReturn_result result = new receiveReturn_result();receiveBase(result, "receiveReturn");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "receiveReturn failed: unknown result");}public boolean validateDoa(long orderId, boolean isValid) throws TransactionServiceException, org.apache.thrift.TException{send_validateDoa(orderId, isValid);return recv_validateDoa();}public void send_validateDoa(long orderId, boolean isValid) throws org.apache.thrift.TException{validateDoa_args args = new validateDoa_args();args.setOrderId(orderId);args.setIsValid(isValid);sendBase("validateDoa", args);}public boolean recv_validateDoa() throws TransactionServiceException, org.apache.thrift.TException{validateDoa_result result = new validateDoa_result();receiveBase(result, "validateDoa");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateDoa failed: unknown result");}public boolean validateReturnProduct(long orderId, boolean isUsable) throws TransactionServiceException, org.apache.thrift.TException{send_validateReturnProduct(orderId, isUsable);return recv_validateReturnProduct();}public void send_validateReturnProduct(long orderId, boolean isUsable) throws org.apache.thrift.TException{validateReturnProduct_args args = new validateReturnProduct_args();args.setOrderId(orderId);args.setIsUsable(isUsable);sendBase("validateReturnProduct", args);}public boolean recv_validateReturnProduct() throws TransactionServiceException, org.apache.thrift.TException{validateReturnProduct_result result = new validateReturnProduct_result();receiveBase(result, "validateReturnProduct");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateReturnProduct failed: unknown result");}public long reshipOrder(long orderId) throws TransactionServiceException, org.apache.thrift.TException{send_reshipOrder(orderId);return recv_reshipOrder();}public void send_reshipOrder(long orderId) throws org.apache.thrift.TException{reshipOrder_args args = new reshipOrder_args();args.setOrderId(orderId);sendBase("reshipOrder", args);}public long recv_reshipOrder() throws TransactionServiceException, org.apache.thrift.TException{reshipOrder_result result = new reshipOrder_result();receiveBase(result, "reshipOrder");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reshipOrder failed: unknown result");}public boolean refundOrder(long orderId, String refundedBy, String reason) throws TransactionServiceException, org.apache.thrift.TException{send_refundOrder(orderId, refundedBy, reason);return recv_refundOrder();}public void send_refundOrder(long orderId, String refundedBy, String reason) throws org.apache.thrift.TException{refundOrder_args args = new refundOrder_args();args.setOrderId(orderId);args.setRefundedBy(refundedBy);args.setReason(reason);sendBase("refundOrder", args);}public boolean recv_refundOrder() throws TransactionServiceException, org.apache.thrift.TException{refundOrder_result result = new refundOrder_result();receiveBase(result, "refundOrder");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "refundOrder failed: unknown result");}public List<ReturnOrder> getReturnOrders(long warehouseId, long fromDate, long toDate) throws org.apache.thrift.TException{send_getReturnOrders(warehouseId, fromDate, toDate);return recv_getReturnOrders();}public void send_getReturnOrders(long warehouseId, long fromDate, long toDate) throws org.apache.thrift.TException{getReturnOrders_args args = new getReturnOrders_args();args.setWarehouseId(warehouseId);args.setFromDate(fromDate);args.setToDate(toDate);sendBase("getReturnOrders", args);}public List<ReturnOrder> recv_getReturnOrders() throws org.apache.thrift.TException{getReturnOrders_result result = new getReturnOrders_result();receiveBase(result, "getReturnOrders");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReturnOrders failed: unknown result");}public List<ReturnOrder> getAllReturnOrders(boolean onlyNotProcessed, long fromDate, long toDate) throws org.apache.thrift.TException{send_getAllReturnOrders(onlyNotProcessed, fromDate, toDate);return recv_getAllReturnOrders();}public void send_getAllReturnOrders(boolean onlyNotProcessed, long fromDate, long toDate) throws org.apache.thrift.TException{getAllReturnOrders_args args = new getAllReturnOrders_args();args.setOnlyNotProcessed(onlyNotProcessed);args.setFromDate(fromDate);args.setToDate(toDate);sendBase("getAllReturnOrders", args);}public List<ReturnOrder> recv_getAllReturnOrders() throws org.apache.thrift.TException{getAllReturnOrders_result result = new getAllReturnOrders_result();receiveBase(result, "getAllReturnOrders");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllReturnOrders failed: unknown result");}public ReturnOrder getReturnOrder(long id) throws TransactionServiceException, org.apache.thrift.TException{send_getReturnOrder(id);return recv_getReturnOrder();}public void send_getReturnOrder(long id) throws org.apache.thrift.TException{getReturnOrder_args args = new getReturnOrder_args();args.setId(id);sendBase("getReturnOrder", args);}public ReturnOrder recv_getReturnOrder() throws TransactionServiceException, org.apache.thrift.TException{getReturnOrder_result result = new getReturnOrder_result();receiveBase(result, "getReturnOrder");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReturnOrder failed: unknown result");}public void processReturn(long returnOrderId) throws TransactionServiceException, org.apache.thrift.TException{send_processReturn(returnOrderId);recv_processReturn();}public void send_processReturn(long returnOrderId) throws org.apache.thrift.TException{processReturn_args args = new processReturn_args();args.setReturnOrderId(returnOrderId);sendBase("processReturn", args);}public void recv_processReturn() throws TransactionServiceException, org.apache.thrift.TException{processReturn_result result = new processReturn_result();receiveBase(result, "processReturn");if (result.ex != null) {throw result.ex;}return;}public Order updateWeight(long orderId, double weight) throws TransactionServiceException, org.apache.thrift.TException{send_updateWeight(orderId, weight);return recv_updateWeight();}public void send_updateWeight(long orderId, double weight) throws org.apache.thrift.TException{updateWeight_args args = new updateWeight_args();args.setOrderId(orderId);args.setWeight(weight);sendBase("updateWeight", args);}public Order recv_updateWeight() throws TransactionServiceException, org.apache.thrift.TException{updateWeight_result result = new updateWeight_result();receiveBase(result, "updateWeight");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateWeight failed: unknown result");}public Order changeItem(long orderId, long itemId) throws TransactionServiceException, org.apache.thrift.TException{send_changeItem(orderId, itemId);return recv_changeItem();}public void send_changeItem(long orderId, long itemId) throws org.apache.thrift.TException{changeItem_args args = new changeItem_args();args.setOrderId(orderId);args.setItemId(itemId);sendBase("changeItem", args);}public Order recv_changeItem() throws TransactionServiceException, org.apache.thrift.TException{changeItem_result result = new changeItem_result();receiveBase(result, "changeItem");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "changeItem failed: unknown result");}public Order shiftToWarehouse(long orderId, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException{send_shiftToWarehouse(orderId, warehouseId);return recv_shiftToWarehouse();}public void send_shiftToWarehouse(long orderId, long warehouseId) throws org.apache.thrift.TException{shiftToWarehouse_args args = new shiftToWarehouse_args();args.setOrderId(orderId);args.setWarehouseId(warehouseId);sendBase("shiftToWarehouse", args);}public Order recv_shiftToWarehouse() throws TransactionServiceException, org.apache.thrift.TException{shiftToWarehouse_result result = new shiftToWarehouse_result();receiveBase(result, "shiftToWarehouse");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "shiftToWarehouse failed: unknown result");}public boolean addDelayReason(long orderId, DelayReason delayReason, long furtherDelay, String delayReasonText) throws TransactionServiceException, org.apache.thrift.TException{send_addDelayReason(orderId, delayReason, furtherDelay, delayReasonText);return recv_addDelayReason();}public void send_addDelayReason(long orderId, DelayReason delayReason, long furtherDelay, String delayReasonText) throws org.apache.thrift.TException{addDelayReason_args args = new addDelayReason_args();args.setOrderId(orderId);args.setDelayReason(delayReason);args.setFurtherDelay(furtherDelay);args.setDelayReasonText(delayReasonText);sendBase("addDelayReason", args);}public boolean recv_addDelayReason() throws TransactionServiceException, org.apache.thrift.TException{addDelayReason_result result = new addDelayReason_result();receiveBase(result, "addDelayReason");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addDelayReason failed: unknown result");}public Map<String,String> reconcileCodCollection(Map<String,Double> collectedAmountMap, String xferBy, String xferTxnId, long xferDate) throws TransactionServiceException, org.apache.thrift.TException{send_reconcileCodCollection(collectedAmountMap, xferBy, xferTxnId, xferDate);return recv_reconcileCodCollection();}public void send_reconcileCodCollection(Map<String,Double> collectedAmountMap, String xferBy, String xferTxnId, long xferDate) throws org.apache.thrift.TException{reconcileCodCollection_args args = new reconcileCodCollection_args();args.setCollectedAmountMap(collectedAmountMap);args.setXferBy(xferBy);args.setXferTxnId(xferTxnId);args.setXferDate(xferDate);sendBase("reconcileCodCollection", args);}public Map<String,String> recv_reconcileCodCollection() throws TransactionServiceException, org.apache.thrift.TException{reconcileCodCollection_result result = new reconcileCodCollection_result();receiveBase(result, "reconcileCodCollection");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reconcileCodCollection failed: unknown result");}public List<Long> getTransactionsRequiringExtraProcessing(ExtraTransactionProcessingType category) throws org.apache.thrift.TException{send_getTransactionsRequiringExtraProcessing(category);return recv_getTransactionsRequiringExtraProcessing();}public void send_getTransactionsRequiringExtraProcessing(ExtraTransactionProcessingType category) throws org.apache.thrift.TException{getTransactionsRequiringExtraProcessing_args args = new getTransactionsRequiringExtraProcessing_args();args.setCategory(category);sendBase("getTransactionsRequiringExtraProcessing", args);}public List<Long> recv_getTransactionsRequiringExtraProcessing() throws org.apache.thrift.TException{getTransactionsRequiringExtraProcessing_result result = new getTransactionsRequiringExtraProcessing_result();receiveBase(result, "getTransactionsRequiringExtraProcessing");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransactionsRequiringExtraProcessing failed: unknown result");}public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category) throws org.apache.thrift.TException{send_markTransactionAsProcessed(transactionId, category);recv_markTransactionAsProcessed();}public void send_markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category) throws org.apache.thrift.TException{markTransactionAsProcessed_args args = new markTransactionAsProcessed_args();args.setTransactionId(transactionId);args.setCategory(category);sendBase("markTransactionAsProcessed", args);}public void recv_markTransactionAsProcessed() throws org.apache.thrift.TException{markTransactionAsProcessed_result result = new markTransactionAsProcessed_result();receiveBase(result, "markTransactionAsProcessed");return;}public Map<Long,Long> getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException{send_getItemWiseRiskyOrdersCount();return recv_getItemWiseRiskyOrdersCount();}public void send_getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException{getItemWiseRiskyOrdersCount_args args = new getItemWiseRiskyOrdersCount_args();sendBase("getItemWiseRiskyOrdersCount", args);}public Map<Long,Long> recv_getItemWiseRiskyOrdersCount() throws org.apache.thrift.TException{getItemWiseRiskyOrdersCount_result result = new getItemWiseRiskyOrdersCount_result();receiveBase(result, "getItemWiseRiskyOrdersCount");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemWiseRiskyOrdersCount failed: unknown result");}public List<Order> getOrdersForItemIds(List<Long> itemIds) throws org.apache.thrift.TException{send_getOrdersForItemIds(itemIds);return recv_getOrdersForItemIds();}public void send_getOrdersForItemIds(List<Long> itemIds) throws org.apache.thrift.TException{getOrdersForItemIds_args args = new getOrdersForItemIds_args();args.setItemIds(itemIds);sendBase("getOrdersForItemIds", args);}public List<Order> recv_getOrdersForItemIds() throws org.apache.thrift.TException{getOrdersForItemIds_result result = new getOrdersForItemIds_result();receiveBase(result, "getOrdersForItemIds");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersForItemIds failed: unknown result");}public void markOrderCancellationRequestReceived(long orderId) throws TransactionServiceException, org.apache.thrift.TException{send_markOrderCancellationRequestReceived(orderId);recv_markOrderCancellationRequestReceived();}public void send_markOrderCancellationRequestReceived(long orderId) throws org.apache.thrift.TException{markOrderCancellationRequestReceived_args args = new markOrderCancellationRequestReceived_args();args.setOrderId(orderId);sendBase("markOrderCancellationRequestReceived", args);}public void recv_markOrderCancellationRequestReceived() throws TransactionServiceException, org.apache.thrift.TException{markOrderCancellationRequestReceived_result result = new markOrderCancellationRequestReceived_result();receiveBase(result, "markOrderCancellationRequestReceived");if (result.ex != null) {throw result.ex;}return;}public void markOrderCancellationRequestConfirmed(long orderId) throws TransactionServiceException, org.apache.thrift.TException{send_markOrderCancellationRequestConfirmed(orderId);recv_markOrderCancellationRequestConfirmed();}public void send_markOrderCancellationRequestConfirmed(long orderId) throws org.apache.thrift.TException{markOrderCancellationRequestConfirmed_args args = new markOrderCancellationRequestConfirmed_args();args.setOrderId(orderId);sendBase("markOrderCancellationRequestConfirmed", args);}public void recv_markOrderCancellationRequestConfirmed() throws TransactionServiceException, org.apache.thrift.TException{markOrderCancellationRequestConfirmed_result result = new markOrderCancellationRequestConfirmed_result();receiveBase(result, "markOrderCancellationRequestConfirmed");if (result.ex != null) {throw result.ex;}return;}public void markOrderCancellationRequestDenied(long orderId) throws TransactionServiceException, org.apache.thrift.TException{send_markOrderCancellationRequestDenied(orderId);recv_markOrderCancellationRequestDenied();}public void send_markOrderCancellationRequestDenied(long orderId) throws org.apache.thrift.TException{markOrderCancellationRequestDenied_args args = new markOrderCancellationRequestDenied_args();args.setOrderId(orderId);sendBase("markOrderCancellationRequestDenied", args);}public void recv_markOrderCancellationRequestDenied() throws TransactionServiceException, org.apache.thrift.TException{markOrderCancellationRequestDenied_result result = new markOrderCancellationRequestDenied_result();receiveBase(result, "markOrderCancellationRequestDenied");if (result.ex != null) {throw result.ex;}return;}public void markTransactionAsPaymentFlagRemoved(long transactionId) throws TransactionServiceException, org.apache.thrift.TException{send_markTransactionAsPaymentFlagRemoved(transactionId);recv_markTransactionAsPaymentFlagRemoved();}public void send_markTransactionAsPaymentFlagRemoved(long transactionId) throws org.apache.thrift.TException{markTransactionAsPaymentFlagRemoved_args args = new markTransactionAsPaymentFlagRemoved_args();args.setTransactionId(transactionId);sendBase("markTransactionAsPaymentFlagRemoved", args);}public void recv_markTransactionAsPaymentFlagRemoved() throws TransactionServiceException, org.apache.thrift.TException{markTransactionAsPaymentFlagRemoved_result result = new markTransactionAsPaymentFlagRemoved_result();receiveBase(result, "markTransactionAsPaymentFlagRemoved");if (result.ex != null) {throw result.ex;}return;}public void refundTransaction(long transactionId, String refundedBy, String reason) throws TransactionServiceException, org.apache.thrift.TException{send_refundTransaction(transactionId, refundedBy, reason);recv_refundTransaction();}public void send_refundTransaction(long transactionId, String refundedBy, String reason) throws org.apache.thrift.TException{refundTransaction_args args = new refundTransaction_args();args.setTransactionId(transactionId);args.setRefundedBy(refundedBy);args.setReason(reason);sendBase("refundTransaction", args);}public void recv_refundTransaction() throws TransactionServiceException, org.apache.thrift.TException{refundTransaction_result result = new refundTransaction_result();receiveBase(result, "refundTransaction");if (result.ex != null) {throw result.ex;}return;}public void updateShipmentAddress(long orderId, long addressId) throws TransactionServiceException, org.apache.thrift.TException{send_updateShipmentAddress(orderId, addressId);recv_updateShipmentAddress();}public void send_updateShipmentAddress(long orderId, long addressId) throws org.apache.thrift.TException{updateShipmentAddress_args args = new updateShipmentAddress_args();args.setOrderId(orderId);args.setAddressId(addressId);sendBase("updateShipmentAddress", args);}public void recv_updateShipmentAddress() throws TransactionServiceException, org.apache.thrift.TException{updateShipmentAddress_result result = new updateShipmentAddress_result();receiveBase(result, "updateShipmentAddress");if (result.ex != null) {throw result.ex;}return;}public boolean acceptOrdersForItemId(long itemId, long inventory) throws TransactionServiceException, org.apache.thrift.TException{send_acceptOrdersForItemId(itemId, inventory);return recv_acceptOrdersForItemId();}public void send_acceptOrdersForItemId(long itemId, long inventory) throws org.apache.thrift.TException{acceptOrdersForItemId_args args = new acceptOrdersForItemId_args();args.setItemId(itemId);args.setInventory(inventory);sendBase("acceptOrdersForItemId", args);}public boolean recv_acceptOrdersForItemId() throws TransactionServiceException, org.apache.thrift.TException{acceptOrdersForItemId_result result = new acceptOrdersForItemId_result();receiveBase(result, "acceptOrdersForItemId");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "acceptOrdersForItemId failed: unknown result");}public void markOrdersAsPORaised(long vendorId, long itemId, long quantity, long estimate, boolean isReminder) throws TransactionServiceException, org.apache.thrift.TException{send_markOrdersAsPORaised(vendorId, itemId, quantity, estimate, isReminder);recv_markOrdersAsPORaised();}public void send_markOrdersAsPORaised(long vendorId, long itemId, long quantity, long estimate, boolean isReminder) throws org.apache.thrift.TException{markOrdersAsPORaised_args args = new markOrdersAsPORaised_args();args.setVendorId(vendorId);args.setItemId(itemId);args.setQuantity(quantity);args.setEstimate(estimate);args.setIsReminder(isReminder);sendBase("markOrdersAsPORaised", args);}public void recv_markOrdersAsPORaised() throws TransactionServiceException, org.apache.thrift.TException{markOrdersAsPORaised_result result = new markOrdersAsPORaised_result();receiveBase(result, "markOrdersAsPORaised");if (result.ex != null) {throw result.ex;}return;}public void markOrdersAsReversalInitiated(long vendorId, long itemId, long quantity, long estimate, boolean isReminder) throws TransactionServiceException, org.apache.thrift.TException{send_markOrdersAsReversalInitiated(vendorId, itemId, quantity, estimate, isReminder);recv_markOrdersAsReversalInitiated();}public void send_markOrdersAsReversalInitiated(long vendorId, long itemId, long quantity, long estimate, boolean isReminder) throws org.apache.thrift.TException{markOrdersAsReversalInitiated_args args = new markOrdersAsReversalInitiated_args();args.setVendorId(vendorId);args.setItemId(itemId);args.setQuantity(quantity);args.setEstimate(estimate);args.setIsReminder(isReminder);sendBase("markOrdersAsReversalInitiated", args);}public void recv_markOrdersAsReversalInitiated() throws TransactionServiceException, org.apache.thrift.TException{markOrdersAsReversalInitiated_result result = new markOrdersAsReversalInitiated_result();receiveBase(result, "markOrdersAsReversalInitiated");if (result.ex != null) {throw result.ex;}return;}public void markOrdersAsNotAvailabke(long vendorId, long itemId, long quantity, long estimate, boolean isReminder) throws TransactionServiceException, org.apache.thrift.TException{send_markOrdersAsNotAvailabke(vendorId, itemId, quantity, estimate, isReminder);recv_markOrdersAsNotAvailabke();}public void send_markOrdersAsNotAvailabke(long vendorId, long itemId, long quantity, long estimate, boolean isReminder) throws org.apache.thrift.TException{markOrdersAsNotAvailabke_args args = new markOrdersAsNotAvailabke_args();args.setVendorId(vendorId);args.setItemId(itemId);args.setQuantity(quantity);args.setEstimate(estimate);args.setIsReminder(isReminder);sendBase("markOrdersAsNotAvailabke", args);}public void recv_markOrdersAsNotAvailabke() throws TransactionServiceException, org.apache.thrift.TException{markOrdersAsNotAvailabke_result result = new markOrdersAsNotAvailabke_result();receiveBase(result, "markOrdersAsNotAvailabke");if (result.ex != null) {throw result.ex;}return;}public Map<Integer,TimeoutSummary> markOrdersAsTimeout(long vendorId) throws TransactionServiceException, org.apache.thrift.TException{send_markOrdersAsTimeout(vendorId);return recv_markOrdersAsTimeout();}public void send_markOrdersAsTimeout(long vendorId) throws org.apache.thrift.TException{markOrdersAsTimeout_args args = new markOrdersAsTimeout_args();args.setVendorId(vendorId);sendBase("markOrdersAsTimeout", args);}public Map<Integer,TimeoutSummary> recv_markOrdersAsTimeout() throws TransactionServiceException, org.apache.thrift.TException{markOrdersAsTimeout_result result = new markOrdersAsTimeout_result();receiveBase(result, "markOrdersAsTimeout");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrdersAsTimeout failed: unknown result");}public boolean markOrderAsLostInTransit(long orderId) throws TransactionServiceException, org.apache.thrift.TException{send_markOrderAsLostInTransit(orderId);return recv_markOrderAsLostInTransit();}public void send_markOrderAsLostInTransit(long orderId) throws org.apache.thrift.TException{markOrderAsLostInTransit_args args = new markOrderAsLostInTransit_args();args.setOrderId(orderId);sendBase("markOrderAsLostInTransit", args);}public boolean recv_markOrderAsLostInTransit() throws TransactionServiceException, org.apache.thrift.TException{markOrderAsLostInTransit_result result = new markOrderAsLostInTransit_result();receiveBase(result, "markOrderAsLostInTransit");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markOrderAsLostInTransit failed: unknown result");}public Order getOrderForAwb(String awb) throws TransactionServiceException, org.apache.thrift.TException{send_getOrderForAwb(awb);return recv_getOrderForAwb();}public void send_getOrderForAwb(String awb) throws org.apache.thrift.TException{getOrderForAwb_args args = new getOrderForAwb_args();args.setAwb(awb);sendBase("getOrderForAwb", args);}public Order recv_getOrderForAwb() throws TransactionServiceException, org.apache.thrift.TException{getOrderForAwb_result result = new getOrderForAwb_result();receiveBase(result, "getOrderForAwb");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderForAwb failed: unknown result");}public List<Order> getOrdersForProviderForStatus(long logistics_provider_id, List<OrderStatus> order_status_list) throws TransactionServiceException, org.apache.thrift.TException{send_getOrdersForProviderForStatus(logistics_provider_id, order_status_list);return recv_getOrdersForProviderForStatus();}public void send_getOrdersForProviderForStatus(long logistics_provider_id, List<OrderStatus> order_status_list) throws org.apache.thrift.TException{getOrdersForProviderForStatus_args args = new getOrdersForProviderForStatus_args();args.setLogistics_provider_id(logistics_provider_id);args.setOrder_status_list(order_status_list);sendBase("getOrdersForProviderForStatus", args);}public List<Order> recv_getOrdersForProviderForStatus() throws TransactionServiceException, org.apache.thrift.TException{getOrdersForProviderForStatus_result result = new getOrdersForProviderForStatus_result();receiveBase(result, "getOrdersForProviderForStatus");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersForProviderForStatus failed: unknown result");}public List<Order> getBilledOrdersForVendor(long vendorId, long billingDateFrom, long billingDateTo) throws TransactionServiceException, org.apache.thrift.TException{send_getBilledOrdersForVendor(vendorId, billingDateFrom, billingDateTo);return recv_getBilledOrdersForVendor();}public void send_getBilledOrdersForVendor(long vendorId, long billingDateFrom, long billingDateTo) throws org.apache.thrift.TException{getBilledOrdersForVendor_args args = new getBilledOrdersForVendor_args();args.setVendorId(vendorId);args.setBillingDateFrom(billingDateFrom);args.setBillingDateTo(billingDateTo);sendBase("getBilledOrdersForVendor", args);}public List<Order> recv_getBilledOrdersForVendor() throws TransactionServiceException, org.apache.thrift.TException{getBilledOrdersForVendor_result result = new getBilledOrdersForVendor_result();receiveBase(result, "getBilledOrdersForVendor");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBilledOrdersForVendor failed: unknown result");}public List<Order> getSlippedSippingDateOrders() throws TransactionServiceException, org.apache.thrift.TException{send_getSlippedSippingDateOrders();return recv_getSlippedSippingDateOrders();}public void send_getSlippedSippingDateOrders() throws org.apache.thrift.TException{getSlippedSippingDateOrders_args args = new getSlippedSippingDateOrders_args();sendBase("getSlippedSippingDateOrders", args);}public List<Order> recv_getSlippedSippingDateOrders() throws TransactionServiceException, org.apache.thrift.TException{getSlippedSippingDateOrders_result result = new getSlippedSippingDateOrders_result();receiveBase(result, "getSlippedSippingDateOrders");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSlippedSippingDateOrders failed: unknown result");}public List<Order> getCancelledOrders(long cancelDateFrom, long cancelDateTo) throws TransactionServiceException, org.apache.thrift.TException{send_getCancelledOrders(cancelDateFrom, cancelDateTo);return recv_getCancelledOrders();}public void send_getCancelledOrders(long cancelDateFrom, long cancelDateTo) throws org.apache.thrift.TException{getCancelledOrders_args args = new getCancelledOrders_args();args.setCancelDateFrom(cancelDateFrom);args.setCancelDateTo(cancelDateTo);sendBase("getCancelledOrders", args);}public List<Order> recv_getCancelledOrders() throws TransactionServiceException, org.apache.thrift.TException{getCancelledOrders_result result = new getCancelledOrders_result();receiveBase(result, "getCancelledOrders");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCancelledOrders failed: unknown result");}public void saveBluedartSettlements(Map<Long,Double> mapAWBAndAmount) throws TransactionServiceException, org.apache.thrift.TException{send_saveBluedartSettlements(mapAWBAndAmount);recv_saveBluedartSettlements();}public void send_saveBluedartSettlements(Map<Long,Double> mapAWBAndAmount) throws org.apache.thrift.TException{saveBluedartSettlements_args args = new saveBluedartSettlements_args();args.setMapAWBAndAmount(mapAWBAndAmount);sendBase("saveBluedartSettlements", args);}public void recv_saveBluedartSettlements() throws TransactionServiceException, org.apache.thrift.TException{saveBluedartSettlements_result result = new saveBluedartSettlements_result();receiveBase(result, "saveBluedartSettlements");if (result.ex != null) {throw result.ex;}return;}public void savePaymentSettlements(long settlementDate, long paymentGatewayId, long referenceId, double serviceTax, double otherCharges, double netCollection) throws TransactionServiceException, org.apache.thrift.TException{send_savePaymentSettlements(settlementDate, paymentGatewayId, referenceId, serviceTax, otherCharges, netCollection);recv_savePaymentSettlements();}public void send_savePaymentSettlements(long settlementDate, long paymentGatewayId, long referenceId, double serviceTax, double otherCharges, double netCollection) throws org.apache.thrift.TException{savePaymentSettlements_args args = new savePaymentSettlements_args();args.setSettlementDate(settlementDate);args.setPaymentGatewayId(paymentGatewayId);args.setReferenceId(referenceId);args.setServiceTax(serviceTax);args.setOtherCharges(otherCharges);args.setNetCollection(netCollection);sendBase("savePaymentSettlements", args);}public void recv_savePaymentSettlements() throws TransactionServiceException, org.apache.thrift.TException{savePaymentSettlements_result result = new savePaymentSettlements_result();receiveBase(result, "savePaymentSettlements");if (result.ex != null) {throw result.ex;}return;}public void saveEBSSettlementSummary(long settlementId, long settlementDate, long transactionDateFrom, long transactionDateTo, double amount) throws TransactionServiceException, org.apache.thrift.TException{send_saveEBSSettlementSummary(settlementId, settlementDate, transactionDateFrom, transactionDateTo, amount);recv_saveEBSSettlementSummary();}public void send_saveEBSSettlementSummary(long settlementId, long settlementDate, long transactionDateFrom, long transactionDateTo, double amount) throws org.apache.thrift.TException{saveEBSSettlementSummary_args args = new saveEBSSettlementSummary_args();args.setSettlementId(settlementId);args.setSettlementDate(settlementDate);args.setTransactionDateFrom(transactionDateFrom);args.setTransactionDateTo(transactionDateTo);args.setAmount(amount);sendBase("saveEBSSettlementSummary", args);}public void recv_saveEBSSettlementSummary() throws TransactionServiceException, org.apache.thrift.TException{saveEBSSettlementSummary_result result = new saveEBSSettlementSummary_result();receiveBase(result, "saveEBSSettlementSummary");if (result.ex != null) {throw result.ex;}return;}public PaymentSettlement getSettlementForPrepaid(long referenceId, boolean isRefund) throws TransactionServiceException, org.apache.thrift.TException{send_getSettlementForPrepaid(referenceId, isRefund);return recv_getSettlementForPrepaid();}public void send_getSettlementForPrepaid(long referenceId, boolean isRefund) throws org.apache.thrift.TException{getSettlementForPrepaid_args args = new getSettlementForPrepaid_args();args.setReferenceId(referenceId);args.setIsRefund(isRefund);sendBase("getSettlementForPrepaid", args);}public PaymentSettlement recv_getSettlementForPrepaid() throws TransactionServiceException, org.apache.thrift.TException{getSettlementForPrepaid_result result = new getSettlementForPrepaid_result();receiveBase(result, "getSettlementForPrepaid");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSettlementForPrepaid failed: unknown result");}public PaymentSettlement getSettlementForCod(long orderId, boolean isRefund) throws TransactionServiceException, org.apache.thrift.TException{send_getSettlementForCod(orderId, isRefund);return recv_getSettlementForCod();}public void send_getSettlementForCod(long orderId, boolean isRefund) throws org.apache.thrift.TException{getSettlementForCod_args args = new getSettlementForCod_args();args.setOrderId(orderId);args.setIsRefund(isRefund);sendBase("getSettlementForCod", args);}public PaymentSettlement recv_getSettlementForCod() throws TransactionServiceException, org.apache.thrift.TException{getSettlementForCod_result result = new getSettlementForCod_result();receiveBase(result, "getSettlementForCod");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSettlementForCod failed: unknown result");}public Map<Long,String> getEBSSettlementSummaries() throws TransactionServiceException, org.apache.thrift.TException{send_getEBSSettlementSummaries();return recv_getEBSSettlementSummaries();}public void send_getEBSSettlementSummaries() throws org.apache.thrift.TException{getEBSSettlementSummaries_args args = new getEBSSettlementSummaries_args();sendBase("getEBSSettlementSummaries", args);}public Map<Long,String> recv_getEBSSettlementSummaries() throws TransactionServiceException, org.apache.thrift.TException{getEBSSettlementSummaries_result result = new getEBSSettlementSummaries_result();receiveBase(result, "getEBSSettlementSummaries");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEBSSettlementSummaries failed: unknown result");}public void markEBSSettlementUploaded(long settlementId) throws TransactionServiceException, org.apache.thrift.TException{send_markEBSSettlementUploaded(settlementId);recv_markEBSSettlementUploaded();}public void send_markEBSSettlementUploaded(long settlementId) throws org.apache.thrift.TException{markEBSSettlementUploaded_args args = new markEBSSettlementUploaded_args();args.setSettlementId(settlementId);sendBase("markEBSSettlementUploaded", args);}public void recv_markEBSSettlementUploaded() throws TransactionServiceException, org.apache.thrift.TException{markEBSSettlementUploaded_result result = new markEBSSettlementUploaded_result();receiveBase(result, "markEBSSettlementUploaded");if (result.ex != null) {throw result.ex;}return;}public long getEBSSettlementDate(long settlementId) throws TransactionServiceException, org.apache.thrift.TException{send_getEBSSettlementDate(settlementId);return recv_getEBSSettlementDate();}public void send_getEBSSettlementDate(long settlementId) throws org.apache.thrift.TException{getEBSSettlementDate_args args = new getEBSSettlementDate_args();args.setSettlementId(settlementId);sendBase("getEBSSettlementDate", args);}public long recv_getEBSSettlementDate() throws TransactionServiceException, org.apache.thrift.TException{getEBSSettlementDate_result result = new getEBSSettlementDate_result();receiveBase(result, "getEBSSettlementDate");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEBSSettlementDate failed: unknown result");}public List<PaymentSettlement> getSettlementsByDate(long settlementDateFrom, long settlementDateTo, boolean isRefund) throws TransactionServiceException, org.apache.thrift.TException{send_getSettlementsByDate(settlementDateFrom, settlementDateTo, isRefund);return recv_getSettlementsByDate();}public void send_getSettlementsByDate(long settlementDateFrom, long settlementDateTo, boolean isRefund) throws org.apache.thrift.TException{getSettlementsByDate_args args = new getSettlementsByDate_args();args.setSettlementDateFrom(settlementDateFrom);args.setSettlementDateTo(settlementDateTo);args.setIsRefund(isRefund);sendBase("getSettlementsByDate", args);}public List<PaymentSettlement> recv_getSettlementsByDate() throws TransactionServiceException, org.apache.thrift.TException{getSettlementsByDate_result result = new getSettlementsByDate_result();receiveBase(result, "getSettlementsByDate");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSettlementsByDate failed: unknown result");}public List<Long> getReshippedOrderIds(List<Long> orderIds) throws TransactionServiceException, org.apache.thrift.TException{send_getReshippedOrderIds(orderIds);return recv_getReshippedOrderIds();}public void send_getReshippedOrderIds(List<Long> orderIds) throws org.apache.thrift.TException{getReshippedOrderIds_args args = new getReshippedOrderIds_args();args.setOrderIds(orderIds);sendBase("getReshippedOrderIds", args);}public List<Long> recv_getReshippedOrderIds() throws TransactionServiceException, org.apache.thrift.TException{getReshippedOrderIds_result result = new getReshippedOrderIds_result();receiveBase(result, "getReshippedOrderIds");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReshippedOrderIds failed: unknown result");}public List<Order> getBilledOrders(long vendorId, boolean onlyVendorNotPaid, long billingDateFrom, long billingDateTo) throws TransactionServiceException, org.apache.thrift.TException{send_getBilledOrders(vendorId, onlyVendorNotPaid, billingDateFrom, billingDateTo);return recv_getBilledOrders();}public void send_getBilledOrders(long vendorId, boolean onlyVendorNotPaid, long billingDateFrom, long billingDateTo) throws org.apache.thrift.TException{getBilledOrders_args args = new getBilledOrders_args();args.setVendorId(vendorId);args.setOnlyVendorNotPaid(onlyVendorNotPaid);args.setBillingDateFrom(billingDateFrom);args.setBillingDateTo(billingDateTo);sendBase("getBilledOrders", args);}public List<Order> recv_getBilledOrders() throws TransactionServiceException, org.apache.thrift.TException{getBilledOrders_result result = new getBilledOrders_result();receiveBase(result, "getBilledOrders");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBilledOrders failed: unknown result");}public Map<Long,Long> getStatusDistributionOfOrders(long startDate, long endDate) throws TransactionServiceException, org.apache.thrift.TException{send_getStatusDistributionOfOrders(startDate, endDate);return recv_getStatusDistributionOfOrders();}public void send_getStatusDistributionOfOrders(long startDate, long endDate) throws org.apache.thrift.TException{getStatusDistributionOfOrders_args args = new getStatusDistributionOfOrders_args();args.setStartDate(startDate);args.setEndDate(endDate);sendBase("getStatusDistributionOfOrders", args);}public Map<Long,Long> recv_getStatusDistributionOfOrders() throws TransactionServiceException, org.apache.thrift.TException{getStatusDistributionOfOrders_result result = new getStatusDistributionOfOrders_result();receiveBase(result, "getStatusDistributionOfOrders");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStatusDistributionOfOrders failed: unknown result");}public List<Long> getOrderIdsForStatus(long status, long startDatetime, long endDatetime) throws TransactionServiceException, org.apache.thrift.TException{send_getOrderIdsForStatus(status, startDatetime, endDatetime);return recv_getOrderIdsForStatus();}public void send_getOrderIdsForStatus(long status, long startDatetime, long endDatetime) throws org.apache.thrift.TException{getOrderIdsForStatus_args args = new getOrderIdsForStatus_args();args.setStatus(status);args.setStartDatetime(startDatetime);args.setEndDatetime(endDatetime);sendBase("getOrderIdsForStatus", args);}public List<Long> recv_getOrderIdsForStatus() throws TransactionServiceException, org.apache.thrift.TException{getOrderIdsForStatus_result result = new getOrderIdsForStatus_result();receiveBase(result, "getOrderIdsForStatus");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderIdsForStatus failed: unknown result");}public void updateCODAgent(String agent, long orderId) throws TransactionServiceException, org.apache.thrift.TException{send_updateCODAgent(agent, orderId);recv_updateCODAgent();}public void send_updateCODAgent(String agent, long orderId) throws org.apache.thrift.TException{updateCODAgent_args args = new updateCODAgent_args();args.setAgent(agent);args.setOrderId(orderId);sendBase("updateCODAgent", args);}public void recv_updateCODAgent() throws TransactionServiceException, org.apache.thrift.TException{updateCODAgent_result result = new updateCODAgent_result();receiveBase(result, "updateCODAgent");if (result.ex != null) {throw result.ex;}return;}public void updateOrderAsPaidToVendor(long orderId) throws TransactionServiceException, org.apache.thrift.TException{send_updateOrderAsPaidToVendor(orderId);recv_updateOrderAsPaidToVendor();}public void send_updateOrderAsPaidToVendor(long orderId) throws org.apache.thrift.TException{updateOrderAsPaidToVendor_args args = new updateOrderAsPaidToVendor_args();args.setOrderId(orderId);sendBase("updateOrderAsPaidToVendor", args);}public void recv_updateOrderAsPaidToVendor() throws TransactionServiceException, org.apache.thrift.TException{updateOrderAsPaidToVendor_result result = new updateOrderAsPaidToVendor_result();receiveBase(result, "updateOrderAsPaidToVendor");if (result.ex != null) {throw result.ex;}return;}public void updateOrderOnlyAsPaidToVendor(long orderId) throws TransactionServiceException, org.apache.thrift.TException{send_updateOrderOnlyAsPaidToVendor(orderId);recv_updateOrderOnlyAsPaidToVendor();}public void send_updateOrderOnlyAsPaidToVendor(long orderId) throws org.apache.thrift.TException{updateOrderOnlyAsPaidToVendor_args args = new updateOrderOnlyAsPaidToVendor_args();args.setOrderId(orderId);sendBase("updateOrderOnlyAsPaidToVendor", args);}public void recv_updateOrderOnlyAsPaidToVendor() throws TransactionServiceException, org.apache.thrift.TException{updateOrderOnlyAsPaidToVendor_result result = new updateOrderOnlyAsPaidToVendor_result();receiveBase(result, "updateOrderOnlyAsPaidToVendor");if (result.ex != null) {throw result.ex;}return;}public List<Order> getRefundedOrdersMarkedPaid() throws TransactionServiceException, org.apache.thrift.TException{send_getRefundedOrdersMarkedPaid();return recv_getRefundedOrdersMarkedPaid();}public void send_getRefundedOrdersMarkedPaid() throws org.apache.thrift.TException{getRefundedOrdersMarkedPaid_args args = new getRefundedOrdersMarkedPaid_args();sendBase("getRefundedOrdersMarkedPaid", args);}public List<Order> recv_getRefundedOrdersMarkedPaid() throws TransactionServiceException, org.apache.thrift.TException{getRefundedOrdersMarkedPaid_result result = new getRefundedOrdersMarkedPaid_result();receiveBase(result, "getRefundedOrdersMarkedPaid");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRefundedOrdersMarkedPaid failed: unknown result");}public List<CODVerificationAgent> getAllVerificationAgents(long minOrderId, long maxOrderId) throws org.apache.thrift.TException{send_getAllVerificationAgents(minOrderId, maxOrderId);return recv_getAllVerificationAgents();}public void send_getAllVerificationAgents(long minOrderId, long maxOrderId) throws org.apache.thrift.TException{getAllVerificationAgents_args args = new getAllVerificationAgents_args();args.setMinOrderId(minOrderId);args.setMaxOrderId(maxOrderId);sendBase("getAllVerificationAgents", args);}public List<CODVerificationAgent> recv_getAllVerificationAgents() throws org.apache.thrift.TException{getAllVerificationAgents_result result = new getAllVerificationAgents_result();receiveBase(result, "getAllVerificationAgents");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllVerificationAgents failed: unknown result");}public List<Attribute> getAllAttributesForOrderId(long orderId) throws org.apache.thrift.TException{send_getAllAttributesForOrderId(orderId);return recv_getAllAttributesForOrderId();}public void send_getAllAttributesForOrderId(long orderId) throws org.apache.thrift.TException{getAllAttributesForOrderId_args args = new getAllAttributesForOrderId_args();args.setOrderId(orderId);sendBase("getAllAttributesForOrderId", args);}public List<Attribute> recv_getAllAttributesForOrderId() throws org.apache.thrift.TException{getAllAttributesForOrderId_result result = new getAllAttributesForOrderId_result();receiveBase(result, "getAllAttributesForOrderId");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAttributesForOrderId failed: unknown result");}public void setOrderAttributes(long orderId, List<Attribute> attributes) throws org.apache.thrift.TException{send_setOrderAttributes(orderId, attributes);recv_setOrderAttributes();}public void send_setOrderAttributes(long orderId, List<Attribute> attributes) throws org.apache.thrift.TException{setOrderAttributes_args args = new setOrderAttributes_args();args.setOrderId(orderId);args.setAttributes(attributes);sendBase("setOrderAttributes", args);}public void recv_setOrderAttributes() throws org.apache.thrift.TException{setOrderAttributes_result result = new setOrderAttributes_result();receiveBase(result, "setOrderAttributes");return;}public void setOrderAttributeForTransaction(long transactionId, Attribute attribute) throws org.apache.thrift.TException{send_setOrderAttributeForTransaction(transactionId, attribute);recv_setOrderAttributeForTransaction();}public void send_setOrderAttributeForTransaction(long transactionId, Attribute attribute) throws org.apache.thrift.TException{setOrderAttributeForTransaction_args args = new setOrderAttributeForTransaction_args();args.setTransactionId(transactionId);args.setAttribute(attribute);sendBase("setOrderAttributeForTransaction", args);}public void recv_setOrderAttributeForTransaction() throws org.apache.thrift.TException{setOrderAttributeForTransaction_result result = new setOrderAttributeForTransaction_result();receiveBase(result, "setOrderAttributeForTransaction");return;}public List<Order> getReceivePendingOrders(long storeId) throws org.apache.thrift.TException{send_getReceivePendingOrders(storeId);return recv_getReceivePendingOrders();}public void send_getReceivePendingOrders(long storeId) throws org.apache.thrift.TException{getReceivePendingOrders_args args = new getReceivePendingOrders_args();args.setStoreId(storeId);sendBase("getReceivePendingOrders", args);}public List<Order> recv_getReceivePendingOrders() throws org.apache.thrift.TException{getReceivePendingOrders_result result = new getReceivePendingOrders_result();receiveBase(result, "getReceivePendingOrders");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReceivePendingOrders failed: unknown result");}public List<Order> getReceivedAtStoreOrders(long storeId) throws org.apache.thrift.TException{send_getReceivedAtStoreOrders(storeId);return recv_getReceivedAtStoreOrders();}public void send_getReceivedAtStoreOrders(long storeId) throws org.apache.thrift.TException{getReceivedAtStoreOrders_args args = new getReceivedAtStoreOrders_args();args.setStoreId(storeId);sendBase("getReceivedAtStoreOrders", args);}public List<Order> recv_getReceivedAtStoreOrders() throws org.apache.thrift.TException{getReceivedAtStoreOrders_result result = new getReceivedAtStoreOrders_result();receiveBase(result, "getReceivedAtStoreOrders");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReceivedAtStoreOrders failed: unknown result");}public List<Order> getOrdersCollectionAtStore(long storeId, long fromDate, long toDate, boolean onlyCod) throws org.apache.thrift.TException{send_getOrdersCollectionAtStore(storeId, fromDate, toDate, onlyCod);return recv_getOrdersCollectionAtStore();}public void send_getOrdersCollectionAtStore(long storeId, long fromDate, long toDate, boolean onlyCod) throws org.apache.thrift.TException{getOrdersCollectionAtStore_args args = new getOrdersCollectionAtStore_args();args.setStoreId(storeId);args.setFromDate(fromDate);args.setToDate(toDate);args.setOnlyCod(onlyCod);sendBase("getOrdersCollectionAtStore", args);}public List<Order> recv_getOrdersCollectionAtStore() throws org.apache.thrift.TException{getOrdersCollectionAtStore_result result = new getOrdersCollectionAtStore_result();receiveBase(result, "getOrdersCollectionAtStore");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersCollectionAtStore failed: unknown result");}public String getOrderAttributeValue(long orderId, String attributeName) throws org.apache.thrift.TException{send_getOrderAttributeValue(orderId, attributeName);return recv_getOrderAttributeValue();}public void send_getOrderAttributeValue(long orderId, String attributeName) throws org.apache.thrift.TException{getOrderAttributeValue_args args = new getOrderAttributeValue_args();args.setOrderId(orderId);args.setAttributeName(attributeName);sendBase("getOrderAttributeValue", args);}public String recv_getOrderAttributeValue() throws org.apache.thrift.TException{getOrderAttributeValue_result result = new getOrderAttributeValue_result();receiveBase(result, "getOrderAttributeValue");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderAttributeValue failed: unknown result");}public void acceptOrderForItem(long itemId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException{send_acceptOrderForItem(itemId, quantity, fulfilmentWarehouseId, billingWarehouseId);recv_acceptOrderForItem();}public void send_acceptOrderForItem(long itemId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException{acceptOrderForItem_args args = new acceptOrderForItem_args();args.setItemId(itemId);args.setQuantity(quantity);args.setFulfilmentWarehouseId(fulfilmentWarehouseId);args.setBillingWarehouseId(billingWarehouseId);sendBase("acceptOrderForItem", args);}public void recv_acceptOrderForItem() throws org.apache.thrift.TException{acceptOrderForItem_result result = new acceptOrderForItem_result();receiveBase(result, "acceptOrderForItem");return;}public RechargeOrder createRechargeOrder(RechargeOrder rechargeOrder) throws TransactionServiceException, org.apache.thrift.TException{send_createRechargeOrder(rechargeOrder);return recv_createRechargeOrder();}public void send_createRechargeOrder(RechargeOrder rechargeOrder) throws org.apache.thrift.TException{createRechargeOrder_args args = new createRechargeOrder_args();args.setRechargeOrder(rechargeOrder);sendBase("createRechargeOrder", args);}public RechargeOrder recv_createRechargeOrder() throws TransactionServiceException, org.apache.thrift.TException{createRechargeOrder_result result = new createRechargeOrder_result();receiveBase(result, "createRechargeOrder");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createRechargeOrder failed: unknown result");}public void updateRechargeOrderStatus(long rechargeOrderId, RechargeOrderStatus rechargeOrderStatus) throws TransactionServiceException, org.apache.thrift.TException{send_updateRechargeOrderStatus(rechargeOrderId, rechargeOrderStatus);recv_updateRechargeOrderStatus();}public void send_updateRechargeOrderStatus(long rechargeOrderId, RechargeOrderStatus rechargeOrderStatus) throws org.apache.thrift.TException{updateRechargeOrderStatus_args args = new updateRechargeOrderStatus_args();args.setRechargeOrderId(rechargeOrderId);args.setRechargeOrderStatus(rechargeOrderStatus);sendBase("updateRechargeOrderStatus", args);}public void recv_updateRechargeOrderStatus() throws TransactionServiceException, org.apache.thrift.TException{updateRechargeOrderStatus_result result = new updateRechargeOrderStatus_result();receiveBase(result, "updateRechargeOrderStatus");if (result.ex != null) {throw result.ex;}return;}public RechargeResponse activateRechargeTxn(List<RechargeCoupon> rechargeCoupons) throws TransactionServiceException, org.apache.thrift.TException{send_activateRechargeTxn(rechargeCoupons);return recv_activateRechargeTxn();}public void send_activateRechargeTxn(List<RechargeCoupon> rechargeCoupons) throws org.apache.thrift.TException{activateRechargeTxn_args args = new activateRechargeTxn_args();args.setRechargeCoupons(rechargeCoupons);sendBase("activateRechargeTxn", args);}public RechargeResponse recv_activateRechargeTxn() throws TransactionServiceException, org.apache.thrift.TException{activateRechargeTxn_result result = new activateRechargeTxn_result();receiveBase(result, "activateRechargeTxn");if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "activateRechargeTxn failed: unknown result");}public List<RechargeOrder> getRechargeOrders(long customerId) throws org.apache.thrift.TException{send_getRechargeOrders(customerId);return recv_getRechargeOrders();}public void send_getRechargeOrders(long customerId) throws org.apache.thrift.TException{getRechargeOrders_args args = new getRechargeOrders_args();args.setCustomerId(customerId);sendBase("getRechargeOrders", args);}public List<RechargeOrder> recv_getRechargeOrders() throws org.apache.thrift.TException{getRechargeOrders_result result = new getRechargeOrders_result();receiveBase(result, "getRechargeOrders");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRechargeOrders failed: unknown result");}public List<RechargeCoupon> getRechargeCoupons(long customerId, RechargeCouponStatus rechargeCouponStatus) throws org.apache.thrift.TException{send_getRechargeCoupons(customerId, rechargeCouponStatus);return recv_getRechargeCoupons();}public void send_getRechargeCoupons(long customerId, RechargeCouponStatus rechargeCouponStatus) throws org.apache.thrift.TException{getRechargeCoupons_args args = new getRechargeCoupons_args();args.setCustomerId(customerId);args.setRechargeCouponStatus(rechargeCouponStatus);sendBase("getRechargeCoupons", args);}public List<RechargeCoupon> recv_getRechargeCoupons() throws org.apache.thrift.TException{getRechargeCoupons_result result = new getRechargeCoupons_result();receiveBase(result, "getRechargeCoupons");if (result.isSetSuccess()) {return result.success;}throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRechargeCoupons failed: unknown result");}}public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {private org.apache.thrift.async.TAsyncClientManager clientManager;private org.apache.thrift.protocol.TProtocolFactory protocolFactory;public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {this.clientManager = clientManager;this.protocolFactory = protocolFactory;}public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {return new AsyncClient(protocolFactory, clientManager, transport);}}public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {super(protocolFactory, clientManager, transport);}public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<createTransaction_call> resultHandler) throws org.apache.thrift.TException {checkReady();createTransaction_call method_call = new createTransaction_call(transaction, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class createTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {private Transaction transaction;public createTransaction_call(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<createTransaction_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.transaction = transaction;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));createTransaction_args args = new createTransaction_args();args.setTransaction(transaction);args.write(prot);prot.writeMessageEnd();}public long getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_createTransaction();}}public void getTransaction(long id, org.apache.thrift.async.AsyncMethodCallback<getTransaction_call> resultHandler) throws org.apache.thrift.TException {checkReady();getTransaction_call method_call = new getTransaction_call(id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {private long id;public getTransaction_call(long id, org.apache.thrift.async.AsyncMethodCallback<getTransaction_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.id = id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));getTransaction_args args = new getTransaction_args();args.setId(id);args.write(prot);prot.writeMessageEnd();}public Transaction getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getTransaction();}}public void getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status, org.apache.thrift.async.AsyncMethodCallback<getTransactionsForCustomer_call> resultHandler) throws org.apache.thrift.TException {checkReady();getTransactionsForCustomer_call method_call = new getTransactionsForCustomer_call(customerId, from_date, to_date, status, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getTransactionsForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {private long customerId;private long from_date;private long to_date;private TransactionStatus status;public getTransactionsForCustomer_call(long customerId, long from_date, long to_date, TransactionStatus status, org.apache.thrift.async.AsyncMethodCallback<getTransactionsForCustomer_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.customerId = customerId;this.from_date = from_date;this.to_date = to_date;this.status = status;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransactionsForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));getTransactionsForCustomer_args args = new getTransactionsForCustomer_args();args.setCustomerId(customerId);args.setFrom_date(from_date);args.setTo_date(to_date);args.setStatus(status);args.write(prot);prot.writeMessageEnd();}public List<Transaction> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getTransactionsForCustomer();}}public void getTransactionsForShoppingCartId(long shoppingCartId, org.apache.thrift.async.AsyncMethodCallback<getTransactionsForShoppingCartId_call> resultHandler) throws org.apache.thrift.TException {checkReady();getTransactionsForShoppingCartId_call method_call = new getTransactionsForShoppingCartId_call(shoppingCartId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getTransactionsForShoppingCartId_call extends org.apache.thrift.async.TAsyncMethodCall {private long shoppingCartId;public getTransactionsForShoppingCartId_call(long shoppingCartId, org.apache.thrift.async.AsyncMethodCallback<getTransactionsForShoppingCartId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.shoppingCartId = shoppingCartId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransactionsForShoppingCartId", org.apache.thrift.protocol.TMessageType.CALL, 0));getTransactionsForShoppingCartId_args args = new getTransactionsForShoppingCartId_args();args.setShoppingCartId(shoppingCartId);args.write(prot);prot.writeMessageEnd();}public List<Transaction> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getTransactionsForShoppingCartId();}}public void getTransactionStatus(long transactionId, org.apache.thrift.async.AsyncMethodCallback<getTransactionStatus_call> resultHandler) throws org.apache.thrift.TException {checkReady();getTransactionStatus_call method_call = new getTransactionStatus_call(transactionId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getTransactionStatus_call extends org.apache.thrift.async.TAsyncMethodCall {private long transactionId;public getTransactionStatus_call(long transactionId, org.apache.thrift.async.AsyncMethodCallback<getTransactionStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.transactionId = transactionId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransactionStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));getTransactionStatus_args args = new getTransactionStatus_args();args.setTransactionId(transactionId);args.write(prot);prot.writeMessageEnd();}public TransactionStatus getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getTransactionStatus();}}public void changeTransactionStatus(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType, org.apache.thrift.async.AsyncMethodCallback<changeTransactionStatus_call> resultHandler) throws org.apache.thrift.TException {checkReady();changeTransactionStatus_call method_call = new changeTransactionStatus_call(transactionId, status, description, pickUp, orderType, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class changeTransactionStatus_call extends org.apache.thrift.async.TAsyncMethodCall {private long transactionId;private TransactionStatus status;private String description;private long pickUp;private OrderType orderType;public changeTransactionStatus_call(long transactionId, TransactionStatus status, String description, long pickUp, OrderType orderType, org.apache.thrift.async.AsyncMethodCallback<changeTransactionStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.transactionId = transactionId;this.status = status;this.description = description;this.pickUp = pickUp;this.orderType = orderType;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeTransactionStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));changeTransactionStatus_args args = new changeTransactionStatus_args();args.setTransactionId(transactionId);args.setStatus(status);args.setDescription(description);args.setPickUp(pickUp);args.setOrderType(orderType);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_changeTransactionStatus();}}public void enqueueTransactionInfoEmail(long transactionId, org.apache.thrift.async.AsyncMethodCallback<enqueueTransactionInfoEmail_call> resultHandler) throws org.apache.thrift.TException {checkReady();enqueueTransactionInfoEmail_call method_call = new enqueueTransactionInfoEmail_call(transactionId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class enqueueTransactionInfoEmail_call extends org.apache.thrift.async.TAsyncMethodCall {private long transactionId;public enqueueTransactionInfoEmail_call(long transactionId, org.apache.thrift.async.AsyncMethodCallback<enqueueTransactionInfoEmail_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.transactionId = transactionId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enqueueTransactionInfoEmail", org.apache.thrift.protocol.TMessageType.CALL, 0));enqueueTransactionInfoEmail_args args = new enqueueTransactionInfoEmail_args();args.setTransactionId(transactionId);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_enqueueTransactionInfoEmail();}}public void getAllOrders(List<OrderStatus> statuses, long from_date, long to_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getAllOrders_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllOrders_call method_call = new getAllOrders_call(statuses, from_date, to_date, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllOrders_call extends org.apache.thrift.async.TAsyncMethodCall {private List<OrderStatus> statuses;private long from_date;private long to_date;private long warehouse_id;public getAllOrders_call(List<OrderStatus> statuses, long from_date, long to_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getAllOrders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.statuses = statuses;this.from_date = from_date;this.to_date = to_date;this.warehouse_id = warehouse_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllOrders_args args = new getAllOrders_args();args.setStatuses(statuses);args.setFrom_date(from_date);args.setTo_date(to_date);args.setWarehouse_id(warehouse_id);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllOrders();}}public void getOrdersInBatch(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getOrdersInBatch_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrdersInBatch_call method_call = new getOrdersInBatch_call(statuses, offset, limit, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrdersInBatch_call extends org.apache.thrift.async.TAsyncMethodCall {private List<OrderStatus> statuses;private long offset;private long limit;private long warehouse_id;public getOrdersInBatch_call(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getOrdersInBatch_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.statuses = statuses;this.offset = offset;this.limit = limit;this.warehouse_id = warehouse_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersInBatch", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrdersInBatch_args args = new getOrdersInBatch_args();args.setStatuses(statuses);args.setOffset(offset);args.setLimit(limit);args.setWarehouse_id(warehouse_id);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrdersInBatch();}}public void getOrderCount(List<OrderStatus> statuses, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getOrderCount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrderCount_call method_call = new getOrderCount_call(statuses, warehouseId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrderCount_call extends org.apache.thrift.async.TAsyncMethodCall {private List<OrderStatus> statuses;private long warehouseId;public getOrderCount_call(List<OrderStatus> statuses, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getOrderCount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.statuses = statuses;this.warehouseId = warehouseId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderCount", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrderCount_args args = new getOrderCount_args();args.setStatuses(statuses);args.setWarehouseId(warehouseId);args.write(prot);prot.writeMessageEnd();}public int getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrderCount();}}public void getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getOrdersByBillingDate_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrdersByBillingDate_call method_call = new getOrdersByBillingDate_call(status, start_billing_date, end_billing_date, warehouse_id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrdersByBillingDate_call extends org.apache.thrift.async.TAsyncMethodCall {private OrderStatus status;private long start_billing_date;private long end_billing_date;private long warehouse_id;public getOrdersByBillingDate_call(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getOrdersByBillingDate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.status = status;this.start_billing_date = start_billing_date;this.end_billing_date = end_billing_date;this.warehouse_id = warehouse_id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersByBillingDate", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrdersByBillingDate_args args = new getOrdersByBillingDate_args();args.setStatus(status);args.setStart_billing_date(start_billing_date);args.setEnd_billing_date(end_billing_date);args.setWarehouse_id(warehouse_id);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrdersByBillingDate();}}public void getOrdersByShippingDate(long fromShippingDate, long toShippingDate, long providerId, long warehouseId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<getOrdersByShippingDate_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrdersByShippingDate_call method_call = new getOrdersByShippingDate_call(fromShippingDate, toShippingDate, providerId, warehouseId, cod, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrdersByShippingDate_call extends org.apache.thrift.async.TAsyncMethodCall {private long fromShippingDate;private long toShippingDate;private long providerId;private long warehouseId;private boolean cod;public getOrdersByShippingDate_call(long fromShippingDate, long toShippingDate, long providerId, long warehouseId, boolean cod, org.apache.thrift.async.AsyncMethodCallback<getOrdersByShippingDate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.fromShippingDate = fromShippingDate;this.toShippingDate = toShippingDate;this.providerId = providerId;this.warehouseId = warehouseId;this.cod = cod;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersByShippingDate", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrdersByShippingDate_args args = new getOrdersByShippingDate_args();args.setFromShippingDate(fromShippingDate);args.setToShippingDate(toShippingDate);args.setProviderId(providerId);args.setWarehouseId(warehouseId);args.setCod(cod);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrdersByShippingDate();}}public void getReturnableOrdersForCustomer(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<getReturnableOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException {checkReady();getReturnableOrdersForCustomer_call method_call = new getReturnableOrdersForCustomer_call(customer_id, limit, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getReturnableOrdersForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {private long customer_id;private long limit;public getReturnableOrdersForCustomer_call(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<getReturnableOrdersForCustomer_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.customer_id = customer_id;this.limit = limit;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReturnableOrdersForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));getReturnableOrdersForCustomer_args args = new getReturnableOrdersForCustomer_args();args.setCustomer_id(customer_id);args.setLimit(limit);args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getReturnableOrdersForCustomer();}}public void getCancellableOrdersForCustomer(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<getCancellableOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException {checkReady();getCancellableOrdersForCustomer_call method_call = new getCancellableOrdersForCustomer_call(customer_id, limit, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getCancellableOrdersForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {private long customer_id;private long limit;public getCancellableOrdersForCustomer_call(long customer_id, long limit, org.apache.thrift.async.AsyncMethodCallback<getCancellableOrdersForCustomer_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.customer_id = customer_id;this.limit = limit;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCancellableOrdersForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));getCancellableOrdersForCustomer_args args = new getCancellableOrdersForCustomer_args();args.setCustomer_id(customer_id);args.setLimit(limit);args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getCancellableOrdersForCustomer();}}public void changeOrderStatus(long orderId, OrderStatus status, String description, org.apache.thrift.async.AsyncMethodCallback<changeOrderStatus_call> resultHandler) throws org.apache.thrift.TException {checkReady();changeOrderStatus_call method_call = new changeOrderStatus_call(orderId, status, description, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class changeOrderStatus_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private OrderStatus status;private String description;public changeOrderStatus_call(long orderId, OrderStatus status, String description, org.apache.thrift.async.AsyncMethodCallback<changeOrderStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.status = status;this.description = description;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeOrderStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));changeOrderStatus_args args = new changeOrderStatus_args();args.setOrderId(orderId);args.setStatus(status);args.setDescription(description);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_changeOrderStatus();}}public void getOrdersForTransaction(long transactionId, long customerId, org.apache.thrift.async.AsyncMethodCallback<getOrdersForTransaction_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrdersForTransaction_call method_call = new getOrdersForTransaction_call(transactionId, customerId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrdersForTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {private long transactionId;private long customerId;public getOrdersForTransaction_call(long transactionId, long customerId, org.apache.thrift.async.AsyncMethodCallback<getOrdersForTransaction_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.transactionId = transactionId;this.customerId = customerId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersForTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrdersForTransaction_args args = new getOrdersForTransaction_args();args.setTransactionId(transactionId);args.setCustomerId(customerId);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrdersForTransaction();}}public void getOrdersForCustomer(long customerId, long from_date, long to_date, List<OrderStatus> statuses, org.apache.thrift.async.AsyncMethodCallback<getOrdersForCustomer_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrdersForCustomer_call method_call = new getOrdersForCustomer_call(customerId, from_date, to_date, statuses, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrdersForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {private long customerId;private long from_date;private long to_date;private List<OrderStatus> statuses;public getOrdersForCustomer_call(long customerId, long from_date, long to_date, List<OrderStatus> statuses, org.apache.thrift.async.AsyncMethodCallback<getOrdersForCustomer_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.customerId = customerId;this.from_date = from_date;this.to_date = to_date;this.statuses = statuses;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrdersForCustomer_args args = new getOrdersForCustomer_args();args.setCustomerId(customerId);args.setFrom_date(from_date);args.setTo_date(to_date);args.setStatuses(statuses);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrdersForCustomer();}}public void createOrder(Order order, org.apache.thrift.async.AsyncMethodCallback<createOrder_call> resultHandler) throws org.apache.thrift.TException {checkReady();createOrder_call method_call = new createOrder_call(order, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class createOrder_call extends org.apache.thrift.async.TAsyncMethodCall {private Order order;public createOrder_call(Order order, org.apache.thrift.async.AsyncMethodCallback<createOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.order = order;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));createOrder_args args = new createOrder_args();args.setOrder(order);args.write(prot);prot.writeMessageEnd();}public long getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_createOrder();}}public void getOrder(long id, org.apache.thrift.async.AsyncMethodCallback<getOrder_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrder_call method_call = new getOrder_call(id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrder_call extends org.apache.thrift.async.TAsyncMethodCall {private long id;public getOrder_call(long id, org.apache.thrift.async.AsyncMethodCallback<getOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.id = id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrder_args args = new getOrder_args();args.setId(id);args.write(prot);prot.writeMessageEnd();}public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrder();}}public void getLineItemsForOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<getLineItemsForOrder_call> resultHandler) throws org.apache.thrift.TException {checkReady();getLineItemsForOrder_call method_call = new getLineItemsForOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getLineItemsForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;public getLineItemsForOrder_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getLineItemsForOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLineItemsForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));getLineItemsForOrder_args args = new getLineItemsForOrder_args();args.setOrderId(orderId);args.write(prot);prot.writeMessageEnd();}public List<LineItem> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getLineItemsForOrder();}}public void getOrderList(List<Long> order_ids, org.apache.thrift.async.AsyncMethodCallback<getOrderList_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrderList_call method_call = new getOrderList_call(order_ids, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrderList_call extends org.apache.thrift.async.TAsyncMethodCall {private List<Long> order_ids;public getOrderList_call(List<Long> order_ids, org.apache.thrift.async.AsyncMethodCallback<getOrderList_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.order_ids = order_ids;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderList", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrderList_args args = new getOrderList_args();args.setOrder_ids(order_ids);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrderList();}}public void getOrderListForVendor(List<Long> order_ids, long vendorId, org.apache.thrift.async.AsyncMethodCallback<getOrderListForVendor_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrderListForVendor_call method_call = new getOrderListForVendor_call(order_ids, vendorId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrderListForVendor_call extends org.apache.thrift.async.TAsyncMethodCall {private List<Long> order_ids;private long vendorId;public getOrderListForVendor_call(List<Long> order_ids, long vendorId, org.apache.thrift.async.AsyncMethodCallback<getOrderListForVendor_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.order_ids = order_ids;this.vendorId = vendorId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderListForVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrderListForVendor_args args = new getOrderListForVendor_args();args.setOrder_ids(order_ids);args.setVendorId(vendorId);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrderListForVendor();}}public void getOrderForCustomer(long orderId, long customerId, org.apache.thrift.async.AsyncMethodCallback<getOrderForCustomer_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrderForCustomer_call method_call = new getOrderForCustomer_call(orderId, customerId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrderForCustomer_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private long customerId;public getOrderForCustomer_call(long orderId, long customerId, org.apache.thrift.async.AsyncMethodCallback<getOrderForCustomer_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.customerId = customerId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderForCustomer", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrderForCustomer_args args = new getOrderForCustomer_args();args.setOrderId(orderId);args.setCustomerId(customerId);args.write(prot);prot.writeMessageEnd();}public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrderForCustomer();}}public void getAlerts(long type, long warehouseId, long status, long timestamp, org.apache.thrift.async.AsyncMethodCallback<getAlerts_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAlerts_call method_call = new getAlerts_call(type, warehouseId, status, timestamp, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAlerts_call extends org.apache.thrift.async.TAsyncMethodCall {private long type;private long warehouseId;private long status;private long timestamp;public getAlerts_call(long type, long warehouseId, long status, long timestamp, org.apache.thrift.async.AsyncMethodCallback<getAlerts_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.type = type;this.warehouseId = warehouseId;this.status = status;this.timestamp = timestamp;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAlerts", org.apache.thrift.protocol.TMessageType.CALL, 0));getAlerts_args args = new getAlerts_args();args.setType(type);args.setWarehouseId(warehouseId);args.setStatus(status);args.setTimestamp(timestamp);args.write(prot);prot.writeMessageEnd();}public List<Alert> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAlerts();}}public void addAlert(long type, long warehouseId, String description, org.apache.thrift.async.AsyncMethodCallback<addAlert_call> resultHandler) throws org.apache.thrift.TException {checkReady();addAlert_call method_call = new addAlert_call(type, warehouseId, description, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addAlert_call extends org.apache.thrift.async.TAsyncMethodCall {private long type;private long warehouseId;private String description;public addAlert_call(long type, long warehouseId, String description, org.apache.thrift.async.AsyncMethodCallback<addAlert_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.type = type;this.warehouseId = warehouseId;this.description = description;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addAlert", org.apache.thrift.protocol.TMessageType.CALL, 0));addAlert_args args = new addAlert_args();args.setType(type);args.setWarehouseId(warehouseId);args.setDescription(description);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_addAlert();}}public void markAlertsAsSeen(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<markAlertsAsSeen_call> resultHandler) throws org.apache.thrift.TException {checkReady();markAlertsAsSeen_call method_call = new markAlertsAsSeen_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markAlertsAsSeen_call extends org.apache.thrift.async.TAsyncMethodCall {private long warehouseId;public markAlertsAsSeen_call(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<markAlertsAsSeen_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.warehouseId = warehouseId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markAlertsAsSeen", org.apache.thrift.protocol.TMessageType.CALL, 0));markAlertsAsSeen_args args = new markAlertsAsSeen_args();args.setWarehouseId(warehouseId);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markAlertsAsSeen();}}public void getValidOrderCount(org.apache.thrift.async.AsyncMethodCallback<getValidOrderCount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getValidOrderCount_call method_call = new getValidOrderCount_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getValidOrderCount_call extends org.apache.thrift.async.TAsyncMethodCall {public getValidOrderCount_call(org.apache.thrift.async.AsyncMethodCallback<getValidOrderCount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getValidOrderCount", org.apache.thrift.protocol.TMessageType.CALL, 0));getValidOrderCount_args args = new getValidOrderCount_args();args.write(prot);prot.writeMessageEnd();}public long getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getValidOrderCount();}}public void getNoOfCustomersWithSuccessfulTransaction(org.apache.thrift.async.AsyncMethodCallback<getNoOfCustomersWithSuccessfulTransaction_call> resultHandler) throws org.apache.thrift.TException {checkReady();getNoOfCustomersWithSuccessfulTransaction_call method_call = new getNoOfCustomersWithSuccessfulTransaction_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getNoOfCustomersWithSuccessfulTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {public getNoOfCustomersWithSuccessfulTransaction_call(org.apache.thrift.async.AsyncMethodCallback<getNoOfCustomersWithSuccessfulTransaction_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNoOfCustomersWithSuccessfulTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));getNoOfCustomersWithSuccessfulTransaction_args args = new getNoOfCustomersWithSuccessfulTransaction_args();args.write(prot);prot.writeMessageEnd();}public long getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getNoOfCustomersWithSuccessfulTransaction();}}public void getValidOrdersAmountRange(org.apache.thrift.async.AsyncMethodCallback<getValidOrdersAmountRange_call> resultHandler) throws org.apache.thrift.TException {checkReady();getValidOrdersAmountRange_call method_call = new getValidOrdersAmountRange_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getValidOrdersAmountRange_call extends org.apache.thrift.async.TAsyncMethodCall {public getValidOrdersAmountRange_call(org.apache.thrift.async.AsyncMethodCallback<getValidOrdersAmountRange_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getValidOrdersAmountRange", org.apache.thrift.protocol.TMessageType.CALL, 0));getValidOrdersAmountRange_args args = new getValidOrdersAmountRange_args();args.write(prot);prot.writeMessageEnd();}public List<Double> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getValidOrdersAmountRange();}}public void getValidOrders(long limit, boolean onlyStore, org.apache.thrift.async.AsyncMethodCallback<getValidOrders_call> resultHandler) throws org.apache.thrift.TException {checkReady();getValidOrders_call method_call = new getValidOrders_call(limit, onlyStore, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getValidOrders_call extends org.apache.thrift.async.TAsyncMethodCall {private long limit;private boolean onlyStore;public getValidOrders_call(long limit, boolean onlyStore, org.apache.thrift.async.AsyncMethodCallback<getValidOrders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.limit = limit;this.onlyStore = onlyStore;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getValidOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));getValidOrders_args args = new getValidOrders_args();args.setLimit(limit);args.setOnlyStore(onlyStore);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getValidOrders();}}public void batchOrders(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<batchOrders_call> resultHandler) throws org.apache.thrift.TException {checkReady();batchOrders_call method_call = new batchOrders_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class batchOrders_call extends org.apache.thrift.async.TAsyncMethodCall {private long warehouseId;public batchOrders_call(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<batchOrders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.warehouseId = warehouseId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("batchOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));batchOrders_args args = new batchOrders_args();args.setWarehouseId(warehouseId);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_batchOrders();}}public void markOrderAsOutOfStock(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderAsOutOfStock_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrderAsOutOfStock_call method_call = new markOrderAsOutOfStock_call(orderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrderAsOutOfStock_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;public markOrderAsOutOfStock_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderAsOutOfStock_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderAsOutOfStock", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrderAsOutOfStock_args args = new markOrderAsOutOfStock_args();args.setOrderId(orderId);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_markOrderAsOutOfStock();}}public void verifyOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<verifyOrder_call> resultHandler) throws org.apache.thrift.TException {checkReady();verifyOrder_call method_call = new verifyOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class verifyOrder_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;public verifyOrder_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<verifyOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("verifyOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));verifyOrder_args args = new verifyOrder_args();args.setOrderId(orderId);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_verifyOrder();}}public void acceptOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<acceptOrder_call> resultHandler) throws org.apache.thrift.TException {checkReady();acceptOrder_call method_call = new acceptOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class acceptOrder_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;public acceptOrder_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<acceptOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("acceptOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));acceptOrder_args args = new acceptOrder_args();args.setOrderId(orderId);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_acceptOrder();}}public void addBillingDetails(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize, org.apache.thrift.async.AsyncMethodCallback<addBillingDetails_call> resultHandler) throws org.apache.thrift.TException {checkReady();addBillingDetails_call method_call = new addBillingDetails_call(orderId, invoice_number, serialNumber, itemNumber, billed_by, jacketNumber, billingType, fulfilmentWarehouseId, authorize, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addBillingDetails_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private String invoice_number;private List<String> serialNumber;private List<String> itemNumber;private String billed_by;private long jacketNumber;private long billingType;private long fulfilmentWarehouseId;private boolean authorize;public addBillingDetails_call(long orderId, String invoice_number, List<String> serialNumber, List<String> itemNumber, String billed_by, long jacketNumber, long billingType, long fulfilmentWarehouseId, boolean authorize, org.apache.thrift.async.AsyncMethodCallback<addBillingDetails_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.invoice_number = invoice_number;this.serialNumber = serialNumber;this.itemNumber = itemNumber;this.billed_by = billed_by;this.jacketNumber = jacketNumber;this.billingType = billingType;this.fulfilmentWarehouseId = fulfilmentWarehouseId;this.authorize = authorize;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addBillingDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));addBillingDetails_args args = new addBillingDetails_args();args.setOrderId(orderId);args.setInvoice_number(invoice_number);args.setSerialNumber(serialNumber);args.setItemNumber(itemNumber);args.setBilled_by(billed_by);args.setJacketNumber(jacketNumber);args.setBillingType(billingType);args.setFulfilmentWarehouseId(fulfilmentWarehouseId);args.setAuthorize(authorize);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addBillingDetails();}}public void addInvoiceNumber(long orderId, String invoiceNumber, String color, org.apache.thrift.async.AsyncMethodCallback<addInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException {checkReady();addInvoiceNumber_call method_call = new addInvoiceNumber_call(orderId, invoiceNumber, color, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addInvoiceNumber_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private String invoiceNumber;private String color;public addInvoiceNumber_call(long orderId, String invoiceNumber, String color, org.apache.thrift.async.AsyncMethodCallback<addInvoiceNumber_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.invoiceNumber = invoiceNumber;this.color = color;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addInvoiceNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));addInvoiceNumber_args args = new addInvoiceNumber_args();args.setOrderId(orderId);args.setInvoiceNumber(invoiceNumber);args.setColor(color);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_addInvoiceNumber();}}public void markOrdersAsShippedFromWarehouse(long warehouseId, long providerId, boolean cod, List<Long> orderIds, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsShippedFromWarehouse_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrdersAsShippedFromWarehouse_call method_call = new markOrdersAsShippedFromWarehouse_call(warehouseId, providerId, cod, orderIds, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrdersAsShippedFromWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {private long warehouseId;private long providerId;private boolean cod;private List<Long> orderIds;public markOrdersAsShippedFromWarehouse_call(long warehouseId, long providerId, boolean cod, List<Long> orderIds, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsShippedFromWarehouse_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.warehouseId = warehouseId;this.providerId = providerId;this.cod = cod;this.orderIds = orderIds;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsShippedFromWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrdersAsShippedFromWarehouse_args args = new markOrdersAsShippedFromWarehouse_args();args.setWarehouseId(warehouseId);args.setProviderId(providerId);args.setCod(cod);args.setOrderIds(orderIds);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_markOrdersAsShippedFromWarehouse();}}public void markOrdersAsReturnedFromStore(long providerId, List<Long> orderIds, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsReturnedFromStore_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrdersAsReturnedFromStore_call method_call = new markOrdersAsReturnedFromStore_call(providerId, orderIds, awbs, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrdersAsReturnedFromStore_call extends org.apache.thrift.async.TAsyncMethodCall {private long providerId;private List<Long> orderIds;private List<String> awbs;public markOrdersAsReturnedFromStore_call(long providerId, List<Long> orderIds, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsReturnedFromStore_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.providerId = providerId;this.orderIds = orderIds;this.awbs = awbs;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsReturnedFromStore", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrdersAsReturnedFromStore_args args = new markOrdersAsReturnedFromStore_args();args.setProviderId(providerId);args.setOrderIds(orderIds);args.setAwbs(awbs);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_markOrdersAsReturnedFromStore();}}public void markOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsPickedUp_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrdersAsPickedUp_call method_call = new markOrdersAsPickedUp_call(providerId, pickupDetails, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrdersAsPickedUp_call extends org.apache.thrift.async.TAsyncMethodCall {private long providerId;private Map<String,String> pickupDetails;public markOrdersAsPickedUp_call(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsPickedUp_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.providerId = providerId;this.pickupDetails = pickupDetails;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsPickedUp", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrdersAsPickedUp_args args = new markOrdersAsPickedUp_args();args.setProviderId(providerId);args.setPickupDetails(pickupDetails);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markOrdersAsPickedUp();}}public void getOrdersNotPickedUp(long providerId, org.apache.thrift.async.AsyncMethodCallback<getOrdersNotPickedUp_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrdersNotPickedUp_call method_call = new getOrdersNotPickedUp_call(providerId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrdersNotPickedUp_call extends org.apache.thrift.async.TAsyncMethodCall {private long providerId;public getOrdersNotPickedUp_call(long providerId, org.apache.thrift.async.AsyncMethodCallback<getOrdersNotPickedUp_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.providerId = providerId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersNotPickedUp", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrdersNotPickedUp_args args = new getOrdersNotPickedUp_args();args.setProviderId(providerId);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrdersNotPickedUp();}}public void markOrdersAsDelivered(long providerId, Map<String,String> deliveredOrders, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsDelivered_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrdersAsDelivered_call method_call = new markOrdersAsDelivered_call(providerId, deliveredOrders, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrdersAsDelivered_call extends org.apache.thrift.async.TAsyncMethodCall {private long providerId;private Map<String,String> deliveredOrders;public markOrdersAsDelivered_call(long providerId, Map<String,String> deliveredOrders, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsDelivered_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.providerId = providerId;this.deliveredOrders = deliveredOrders;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsDelivered", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrdersAsDelivered_args args = new markOrdersAsDelivered_args();args.setProviderId(providerId);args.setDeliveredOrders(deliveredOrders);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markOrdersAsDelivered();}}public void markAsRTOrders(long providerId, Map<String,String> returnedOrders, org.apache.thrift.async.AsyncMethodCallback<markAsRTOrders_call> resultHandler) throws org.apache.thrift.TException {checkReady();markAsRTOrders_call method_call = new markAsRTOrders_call(providerId, returnedOrders, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markAsRTOrders_call extends org.apache.thrift.async.TAsyncMethodCall {private long providerId;private Map<String,String> returnedOrders;public markAsRTOrders_call(long providerId, Map<String,String> returnedOrders, org.apache.thrift.async.AsyncMethodCallback<markAsRTOrders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.providerId = providerId;this.returnedOrders = returnedOrders;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markAsRTOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));markAsRTOrders_args args = new markAsRTOrders_args();args.setProviderId(providerId);args.setReturnedOrders(returnedOrders);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markAsRTOrders();}}public void getRTOrders(long providerId, org.apache.thrift.async.AsyncMethodCallback<getRTOrders_call> resultHandler) throws org.apache.thrift.TException {checkReady();getRTOrders_call method_call = new getRTOrders_call(providerId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getRTOrders_call extends org.apache.thrift.async.TAsyncMethodCall {private long providerId;public getRTOrders_call(long providerId, org.apache.thrift.async.AsyncMethodCallback<getRTOrders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.providerId = providerId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRTOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));getRTOrders_args args = new getRTOrders_args();args.setProviderId(providerId);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getRTOrders();}}public void updateNonDeliveryReason(long providerId, Map<String,String> undeliveredOrders, org.apache.thrift.async.AsyncMethodCallback<updateNonDeliveryReason_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateNonDeliveryReason_call method_call = new updateNonDeliveryReason_call(providerId, undeliveredOrders, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateNonDeliveryReason_call extends org.apache.thrift.async.TAsyncMethodCall {private long providerId;private Map<String,String> undeliveredOrders;public updateNonDeliveryReason_call(long providerId, Map<String,String> undeliveredOrders, org.apache.thrift.async.AsyncMethodCallback<updateNonDeliveryReason_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.providerId = providerId;this.undeliveredOrders = undeliveredOrders;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateNonDeliveryReason", org.apache.thrift.protocol.TMessageType.CALL, 0));updateNonDeliveryReason_args args = new updateNonDeliveryReason_args();args.setProviderId(providerId);args.setUndeliveredOrders(undeliveredOrders);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_updateNonDeliveryReason();}}public void getNonDeliveredOrdersbyCourier(long providerId, org.apache.thrift.async.AsyncMethodCallback<getNonDeliveredOrdersbyCourier_call> resultHandler) throws org.apache.thrift.TException {checkReady();getNonDeliveredOrdersbyCourier_call method_call = new getNonDeliveredOrdersbyCourier_call(providerId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getNonDeliveredOrdersbyCourier_call extends org.apache.thrift.async.TAsyncMethodCall {private long providerId;public getNonDeliveredOrdersbyCourier_call(long providerId, org.apache.thrift.async.AsyncMethodCallback<getNonDeliveredOrdersbyCourier_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.providerId = providerId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonDeliveredOrdersbyCourier", org.apache.thrift.protocol.TMessageType.CALL, 0));getNonDeliveredOrdersbyCourier_args args = new getNonDeliveredOrdersbyCourier_args();args.setProviderId(providerId);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getNonDeliveredOrdersbyCourier();}}public void markOrdersAsLocalConnected(long providerId, Map<String,String> local_connected_orders, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsLocalConnected_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrdersAsLocalConnected_call method_call = new markOrdersAsLocalConnected_call(providerId, local_connected_orders, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrdersAsLocalConnected_call extends org.apache.thrift.async.TAsyncMethodCall {private long providerId;private Map<String,String> local_connected_orders;public markOrdersAsLocalConnected_call(long providerId, Map<String,String> local_connected_orders, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsLocalConnected_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.providerId = providerId;this.local_connected_orders = local_connected_orders;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsLocalConnected", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrdersAsLocalConnected_args args = new markOrdersAsLocalConnected_args();args.setProviderId(providerId);args.setLocal_connected_orders(local_connected_orders);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markOrdersAsLocalConnected();}}public void getOrdersNotLocalConnected(long providerId, org.apache.thrift.async.AsyncMethodCallback<getOrdersNotLocalConnected_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrdersNotLocalConnected_call method_call = new getOrdersNotLocalConnected_call(providerId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrdersNotLocalConnected_call extends org.apache.thrift.async.TAsyncMethodCall {private long providerId;public getOrdersNotLocalConnected_call(long providerId, org.apache.thrift.async.AsyncMethodCallback<getOrdersNotLocalConnected_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.providerId = providerId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersNotLocalConnected", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrdersNotLocalConnected_args args = new getOrdersNotLocalConnected_args();args.setProviderId(providerId);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrdersNotLocalConnected();}}public void markOrdersAsDestinationCityReached(long providerId, Map<String,String> destination_city_reached_orders, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsDestinationCityReached_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrdersAsDestinationCityReached_call method_call = new markOrdersAsDestinationCityReached_call(providerId, destination_city_reached_orders, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrdersAsDestinationCityReached_call extends org.apache.thrift.async.TAsyncMethodCall {private long providerId;private Map<String,String> destination_city_reached_orders;public markOrdersAsDestinationCityReached_call(long providerId, Map<String,String> destination_city_reached_orders, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsDestinationCityReached_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.providerId = providerId;this.destination_city_reached_orders = destination_city_reached_orders;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsDestinationCityReached", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrdersAsDestinationCityReached_args args = new markOrdersAsDestinationCityReached_args();args.setProviderId(providerId);args.setDestination_city_reached_orders(destination_city_reached_orders);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markOrdersAsDestinationCityReached();}}public void markOrdersAsFirstDeliveryAttempted(long providerId, Map<String,String> first_atdl_orders, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsFirstDeliveryAttempted_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrdersAsFirstDeliveryAttempted_call method_call = new markOrdersAsFirstDeliveryAttempted_call(providerId, first_atdl_orders, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrdersAsFirstDeliveryAttempted_call extends org.apache.thrift.async.TAsyncMethodCall {private long providerId;private Map<String,String> first_atdl_orders;public markOrdersAsFirstDeliveryAttempted_call(long providerId, Map<String,String> first_atdl_orders, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsFirstDeliveryAttempted_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.providerId = providerId;this.first_atdl_orders = first_atdl_orders;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsFirstDeliveryAttempted", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrdersAsFirstDeliveryAttempted_args args = new markOrdersAsFirstDeliveryAttempted_args();args.setProviderId(providerId);args.setFirst_atdl_orders(first_atdl_orders);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markOrdersAsFirstDeliveryAttempted();}}public void getUndeliveredOrders(long providerId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getUndeliveredOrders_call> resultHandler) throws org.apache.thrift.TException {checkReady();getUndeliveredOrders_call method_call = new getUndeliveredOrders_call(providerId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getUndeliveredOrders_call extends org.apache.thrift.async.TAsyncMethodCall {private long providerId;private long warehouseId;public getUndeliveredOrders_call(long providerId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getUndeliveredOrders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.providerId = providerId;this.warehouseId = warehouseId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUndeliveredOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));getUndeliveredOrders_args args = new getUndeliveredOrders_args();args.setProviderId(providerId);args.setWarehouseId(warehouseId);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getUndeliveredOrders();}}public void getUndeliveredOrdersExpectedDeliveryDateNotMet(org.apache.thrift.async.AsyncMethodCallback<getUndeliveredOrdersExpectedDeliveryDateNotMet_call> resultHandler) throws org.apache.thrift.TException {checkReady();getUndeliveredOrdersExpectedDeliveryDateNotMet_call method_call = new getUndeliveredOrdersExpectedDeliveryDateNotMet_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getUndeliveredOrdersExpectedDeliveryDateNotMet_call extends org.apache.thrift.async.TAsyncMethodCall {public getUndeliveredOrdersExpectedDeliveryDateNotMet_call(org.apache.thrift.async.AsyncMethodCallback<getUndeliveredOrdersExpectedDeliveryDateNotMet_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUndeliveredOrdersExpectedDeliveryDateNotMet", org.apache.thrift.protocol.TMessageType.CALL, 0));getUndeliveredOrdersExpectedDeliveryDateNotMet_args args = new getUndeliveredOrdersExpectedDeliveryDateNotMet_args();args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getUndeliveredOrdersExpectedDeliveryDateNotMet();}}public void toggleDOAFlag(long orderId, org.apache.thrift.async.AsyncMethodCallback<toggleDOAFlag_call> resultHandler) throws org.apache.thrift.TException {checkReady();toggleDOAFlag_call method_call = new toggleDOAFlag_call(orderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class toggleDOAFlag_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;public toggleDOAFlag_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<toggleDOAFlag_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("toggleDOAFlag", org.apache.thrift.protocol.TMessageType.CALL, 0));toggleDOAFlag_args args = new toggleDOAFlag_args();args.setOrderId(orderId);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_toggleDOAFlag();}}public void markOrderAsDelivered(long orderId, long deliveryTimestamp, String receiver, org.apache.thrift.async.AsyncMethodCallback<markOrderAsDelivered_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrderAsDelivered_call method_call = new markOrderAsDelivered_call(orderId, deliveryTimestamp, receiver, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrderAsDelivered_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private long deliveryTimestamp;private String receiver;public markOrderAsDelivered_call(long orderId, long deliveryTimestamp, String receiver, org.apache.thrift.async.AsyncMethodCallback<markOrderAsDelivered_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.deliveryTimestamp = deliveryTimestamp;this.receiver = receiver;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderAsDelivered", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrderAsDelivered_args args = new markOrderAsDelivered_args();args.setOrderId(orderId);args.setDeliveryTimestamp(deliveryTimestamp);args.setReceiver(receiver);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markOrderAsDelivered();}}public void markOrderAsReceivedAtStore(long orderId, long deliveryTimestamp, org.apache.thrift.async.AsyncMethodCallback<markOrderAsReceivedAtStore_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrderAsReceivedAtStore_call method_call = new markOrderAsReceivedAtStore_call(orderId, deliveryTimestamp, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrderAsReceivedAtStore_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private long deliveryTimestamp;public markOrderAsReceivedAtStore_call(long orderId, long deliveryTimestamp, org.apache.thrift.async.AsyncMethodCallback<markOrderAsReceivedAtStore_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.deliveryTimestamp = deliveryTimestamp;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderAsReceivedAtStore", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrderAsReceivedAtStore_args args = new markOrderAsReceivedAtStore_args();args.setOrderId(orderId);args.setDeliveryTimestamp(deliveryTimestamp);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markOrderAsReceivedAtStore();}}public void markOrderDoaRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderDoaRequestReceived_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrderDoaRequestReceived_call method_call = new markOrderDoaRequestReceived_call(orderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrderDoaRequestReceived_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;public markOrderDoaRequestReceived_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderDoaRequestReceived_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderDoaRequestReceived", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrderDoaRequestReceived_args args = new markOrderDoaRequestReceived_args();args.setOrderId(orderId);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_markOrderDoaRequestReceived();}}public void markOrderDoaRequestAuthorized(long orderId, boolean isAuthorized, org.apache.thrift.async.AsyncMethodCallback<markOrderDoaRequestAuthorized_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrderDoaRequestAuthorized_call method_call = new markOrderDoaRequestAuthorized_call(orderId, isAuthorized, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrderDoaRequestAuthorized_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private boolean isAuthorized;public markOrderDoaRequestAuthorized_call(long orderId, boolean isAuthorized, org.apache.thrift.async.AsyncMethodCallback<markOrderDoaRequestAuthorized_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.isAuthorized = isAuthorized;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderDoaRequestAuthorized", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrderDoaRequestAuthorized_args args = new markOrderDoaRequestAuthorized_args();args.setOrderId(orderId);args.setIsAuthorized(isAuthorized);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_markOrderDoaRequestAuthorized();}}public void markOrderReturnRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderReturnRequestReceived_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrderReturnRequestReceived_call method_call = new markOrderReturnRequestReceived_call(orderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrderReturnRequestReceived_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;public markOrderReturnRequestReceived_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderReturnRequestReceived_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderReturnRequestReceived", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrderReturnRequestReceived_args args = new markOrderReturnRequestReceived_args();args.setOrderId(orderId);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_markOrderReturnRequestReceived();}}public void markOrderReturnRequestAuthorized(long orderId, boolean isAuthorized, org.apache.thrift.async.AsyncMethodCallback<markOrderReturnRequestAuthorized_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrderReturnRequestAuthorized_call method_call = new markOrderReturnRequestAuthorized_call(orderId, isAuthorized, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrderReturnRequestAuthorized_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private boolean isAuthorized;public markOrderReturnRequestAuthorized_call(long orderId, boolean isAuthorized, org.apache.thrift.async.AsyncMethodCallback<markOrderReturnRequestAuthorized_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.isAuthorized = isAuthorized;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderReturnRequestAuthorized", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrderReturnRequestAuthorized_args args = new markOrderReturnRequestAuthorized_args();args.setOrderId(orderId);args.setIsAuthorized(isAuthorized);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_markOrderReturnRequestAuthorized();}}public void requestPickupNumber(long orderId, long providerId, org.apache.thrift.async.AsyncMethodCallback<requestPickupNumber_call> resultHandler) throws org.apache.thrift.TException {checkReady();requestPickupNumber_call method_call = new requestPickupNumber_call(orderId, providerId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class requestPickupNumber_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private long providerId;public requestPickupNumber_call(long orderId, long providerId, org.apache.thrift.async.AsyncMethodCallback<requestPickupNumber_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.providerId = providerId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("requestPickupNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));requestPickupNumber_args args = new requestPickupNumber_args();args.setOrderId(orderId);args.setProviderId(providerId);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_requestPickupNumber();}}public void authorizePickup(long orderId, String pickupNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<authorizePickup_call> resultHandler) throws org.apache.thrift.TException {checkReady();authorizePickup_call method_call = new authorizePickup_call(orderId, pickupNumber, providerId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class authorizePickup_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private String pickupNumber;private long providerId;public authorizePickup_call(long orderId, String pickupNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<authorizePickup_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.pickupNumber = pickupNumber;this.providerId = providerId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authorizePickup", org.apache.thrift.protocol.TMessageType.CALL, 0));authorizePickup_args args = new authorizePickup_args();args.setOrderId(orderId);args.setPickupNumber(pickupNumber);args.setProviderId(providerId);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_authorizePickup();}}public void markDoasAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<markDoasAsPickedUp_call> resultHandler) throws org.apache.thrift.TException {checkReady();markDoasAsPickedUp_call method_call = new markDoasAsPickedUp_call(providerId, pickupDetails, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markDoasAsPickedUp_call extends org.apache.thrift.async.TAsyncMethodCall {private long providerId;private Map<String,String> pickupDetails;public markDoasAsPickedUp_call(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<markDoasAsPickedUp_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.providerId = providerId;this.pickupDetails = pickupDetails;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markDoasAsPickedUp", org.apache.thrift.protocol.TMessageType.CALL, 0));markDoasAsPickedUp_args args = new markDoasAsPickedUp_args();args.setProviderId(providerId);args.setPickupDetails(pickupDetails);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markDoasAsPickedUp();}}public void getDoasNotPickedUp(long providerId, org.apache.thrift.async.AsyncMethodCallback<getDoasNotPickedUp_call> resultHandler) throws org.apache.thrift.TException {checkReady();getDoasNotPickedUp_call method_call = new getDoasNotPickedUp_call(providerId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getDoasNotPickedUp_call extends org.apache.thrift.async.TAsyncMethodCall {private long providerId;public getDoasNotPickedUp_call(long providerId, org.apache.thrift.async.AsyncMethodCallback<getDoasNotPickedUp_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.providerId = providerId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDoasNotPickedUp", org.apache.thrift.protocol.TMessageType.CALL, 0));getDoasNotPickedUp_args args = new getDoasNotPickedUp_args();args.setProviderId(providerId);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getDoasNotPickedUp();}}public void markReturnOrdersAsPickedUp(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<markReturnOrdersAsPickedUp_call> resultHandler) throws org.apache.thrift.TException {checkReady();markReturnOrdersAsPickedUp_call method_call = new markReturnOrdersAsPickedUp_call(providerId, pickupDetails, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markReturnOrdersAsPickedUp_call extends org.apache.thrift.async.TAsyncMethodCall {private long providerId;private Map<String,String> pickupDetails;public markReturnOrdersAsPickedUp_call(long providerId, Map<String,String> pickupDetails, org.apache.thrift.async.AsyncMethodCallback<markReturnOrdersAsPickedUp_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.providerId = providerId;this.pickupDetails = pickupDetails;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markReturnOrdersAsPickedUp", org.apache.thrift.protocol.TMessageType.CALL, 0));markReturnOrdersAsPickedUp_args args = new markReturnOrdersAsPickedUp_args();args.setProviderId(providerId);args.setPickupDetails(pickupDetails);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markReturnOrdersAsPickedUp();}}public void getReturnOrdersNotPickedUp(long providerId, org.apache.thrift.async.AsyncMethodCallback<getReturnOrdersNotPickedUp_call> resultHandler) throws org.apache.thrift.TException {checkReady();getReturnOrdersNotPickedUp_call method_call = new getReturnOrdersNotPickedUp_call(providerId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getReturnOrdersNotPickedUp_call extends org.apache.thrift.async.TAsyncMethodCall {private long providerId;public getReturnOrdersNotPickedUp_call(long providerId, org.apache.thrift.async.AsyncMethodCallback<getReturnOrdersNotPickedUp_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.providerId = providerId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReturnOrdersNotPickedUp", org.apache.thrift.protocol.TMessageType.CALL, 0));getReturnOrdersNotPickedUp_args args = new getReturnOrdersNotPickedUp_args();args.setProviderId(providerId);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getReturnOrdersNotPickedUp();}}public void receiveReturn(long orderId, long receiveCondition, org.apache.thrift.async.AsyncMethodCallback<receiveReturn_call> resultHandler) throws org.apache.thrift.TException {checkReady();receiveReturn_call method_call = new receiveReturn_call(orderId, receiveCondition, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class receiveReturn_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private long receiveCondition;public receiveReturn_call(long orderId, long receiveCondition, org.apache.thrift.async.AsyncMethodCallback<receiveReturn_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.receiveCondition = receiveCondition;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("receiveReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));receiveReturn_args args = new receiveReturn_args();args.setOrderId(orderId);args.setReceiveCondition(receiveCondition);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_receiveReturn();}}public void validateDoa(long orderId, boolean isValid, org.apache.thrift.async.AsyncMethodCallback<validateDoa_call> resultHandler) throws org.apache.thrift.TException {checkReady();validateDoa_call method_call = new validateDoa_call(orderId, isValid, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class validateDoa_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private boolean isValid;public validateDoa_call(long orderId, boolean isValid, org.apache.thrift.async.AsyncMethodCallback<validateDoa_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.isValid = isValid;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateDoa", org.apache.thrift.protocol.TMessageType.CALL, 0));validateDoa_args args = new validateDoa_args();args.setOrderId(orderId);args.setIsValid(isValid);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_validateDoa();}}public void validateReturnProduct(long orderId, boolean isUsable, org.apache.thrift.async.AsyncMethodCallback<validateReturnProduct_call> resultHandler) throws org.apache.thrift.TException {checkReady();validateReturnProduct_call method_call = new validateReturnProduct_call(orderId, isUsable, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class validateReturnProduct_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private boolean isUsable;public validateReturnProduct_call(long orderId, boolean isUsable, org.apache.thrift.async.AsyncMethodCallback<validateReturnProduct_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.isUsable = isUsable;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateReturnProduct", org.apache.thrift.protocol.TMessageType.CALL, 0));validateReturnProduct_args args = new validateReturnProduct_args();args.setOrderId(orderId);args.setIsUsable(isUsable);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_validateReturnProduct();}}public void reshipOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<reshipOrder_call> resultHandler) throws org.apache.thrift.TException {checkReady();reshipOrder_call method_call = new reshipOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class reshipOrder_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;public reshipOrder_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<reshipOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reshipOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));reshipOrder_args args = new reshipOrder_args();args.setOrderId(orderId);args.write(prot);prot.writeMessageEnd();}public long getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_reshipOrder();}}public void refundOrder(long orderId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<refundOrder_call> resultHandler) throws org.apache.thrift.TException {checkReady();refundOrder_call method_call = new refundOrder_call(orderId, refundedBy, reason, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class refundOrder_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private String refundedBy;private String reason;public refundOrder_call(long orderId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<refundOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.refundedBy = refundedBy;this.reason = reason;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("refundOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));refundOrder_args args = new refundOrder_args();args.setOrderId(orderId);args.setRefundedBy(refundedBy);args.setReason(reason);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_refundOrder();}}public void getReturnOrders(long warehouseId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getReturnOrders_call> resultHandler) throws org.apache.thrift.TException {checkReady();getReturnOrders_call method_call = new getReturnOrders_call(warehouseId, fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getReturnOrders_call extends org.apache.thrift.async.TAsyncMethodCall {private long warehouseId;private long fromDate;private long toDate;public getReturnOrders_call(long warehouseId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getReturnOrders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.warehouseId = warehouseId;this.fromDate = fromDate;this.toDate = toDate;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReturnOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));getReturnOrders_args args = new getReturnOrders_args();args.setWarehouseId(warehouseId);args.setFromDate(fromDate);args.setToDate(toDate);args.write(prot);prot.writeMessageEnd();}public List<ReturnOrder> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getReturnOrders();}}public void getAllReturnOrders(boolean onlyNotProcessed, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getAllReturnOrders_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllReturnOrders_call method_call = new getAllReturnOrders_call(onlyNotProcessed, fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllReturnOrders_call extends org.apache.thrift.async.TAsyncMethodCall {private boolean onlyNotProcessed;private long fromDate;private long toDate;public getAllReturnOrders_call(boolean onlyNotProcessed, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getAllReturnOrders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.onlyNotProcessed = onlyNotProcessed;this.fromDate = fromDate;this.toDate = toDate;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllReturnOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllReturnOrders_args args = new getAllReturnOrders_args();args.setOnlyNotProcessed(onlyNotProcessed);args.setFromDate(fromDate);args.setToDate(toDate);args.write(prot);prot.writeMessageEnd();}public List<ReturnOrder> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllReturnOrders();}}public void getReturnOrder(long id, org.apache.thrift.async.AsyncMethodCallback<getReturnOrder_call> resultHandler) throws org.apache.thrift.TException {checkReady();getReturnOrder_call method_call = new getReturnOrder_call(id, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getReturnOrder_call extends org.apache.thrift.async.TAsyncMethodCall {private long id;public getReturnOrder_call(long id, org.apache.thrift.async.AsyncMethodCallback<getReturnOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.id = id;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReturnOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));getReturnOrder_args args = new getReturnOrder_args();args.setId(id);args.write(prot);prot.writeMessageEnd();}public ReturnOrder getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getReturnOrder();}}public void processReturn(long returnOrderId, org.apache.thrift.async.AsyncMethodCallback<processReturn_call> resultHandler) throws org.apache.thrift.TException {checkReady();processReturn_call method_call = new processReturn_call(returnOrderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class processReturn_call extends org.apache.thrift.async.TAsyncMethodCall {private long returnOrderId;public processReturn_call(long returnOrderId, org.apache.thrift.async.AsyncMethodCallback<processReturn_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.returnOrderId = returnOrderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("processReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));processReturn_args args = new processReturn_args();args.setReturnOrderId(returnOrderId);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_processReturn();}}public void updateWeight(long orderId, double weight, org.apache.thrift.async.AsyncMethodCallback<updateWeight_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateWeight_call method_call = new updateWeight_call(orderId, weight, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateWeight_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private double weight;public updateWeight_call(long orderId, double weight, org.apache.thrift.async.AsyncMethodCallback<updateWeight_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.weight = weight;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateWeight", org.apache.thrift.protocol.TMessageType.CALL, 0));updateWeight_args args = new updateWeight_args();args.setOrderId(orderId);args.setWeight(weight);args.write(prot);prot.writeMessageEnd();}public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_updateWeight();}}public void changeItem(long orderId, long itemId, org.apache.thrift.async.AsyncMethodCallback<changeItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();changeItem_call method_call = new changeItem_call(orderId, itemId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class changeItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private long itemId;public changeItem_call(long orderId, long itemId, org.apache.thrift.async.AsyncMethodCallback<changeItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.itemId = itemId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeItem", org.apache.thrift.protocol.TMessageType.CALL, 0));changeItem_args args = new changeItem_args();args.setOrderId(orderId);args.setItemId(itemId);args.write(prot);prot.writeMessageEnd();}public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_changeItem();}}public void shiftToWarehouse(long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<shiftToWarehouse_call> resultHandler) throws org.apache.thrift.TException {checkReady();shiftToWarehouse_call method_call = new shiftToWarehouse_call(orderId, warehouseId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class shiftToWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private long warehouseId;public shiftToWarehouse_call(long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<shiftToWarehouse_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.warehouseId = warehouseId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shiftToWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));shiftToWarehouse_args args = new shiftToWarehouse_args();args.setOrderId(orderId);args.setWarehouseId(warehouseId);args.write(prot);prot.writeMessageEnd();}public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_shiftToWarehouse();}}public void addDelayReason(long orderId, DelayReason delayReason, long furtherDelay, String delayReasonText, org.apache.thrift.async.AsyncMethodCallback<addDelayReason_call> resultHandler) throws org.apache.thrift.TException {checkReady();addDelayReason_call method_call = new addDelayReason_call(orderId, delayReason, furtherDelay, delayReasonText, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class addDelayReason_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private DelayReason delayReason;private long furtherDelay;private String delayReasonText;public addDelayReason_call(long orderId, DelayReason delayReason, long furtherDelay, String delayReasonText, org.apache.thrift.async.AsyncMethodCallback<addDelayReason_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.delayReason = delayReason;this.furtherDelay = furtherDelay;this.delayReasonText = delayReasonText;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addDelayReason", org.apache.thrift.protocol.TMessageType.CALL, 0));addDelayReason_args args = new addDelayReason_args();args.setOrderId(orderId);args.setDelayReason(delayReason);args.setFurtherDelay(furtherDelay);args.setDelayReasonText(delayReasonText);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_addDelayReason();}}public void reconcileCodCollection(Map<String,Double> collectedAmountMap, String xferBy, String xferTxnId, long xferDate, org.apache.thrift.async.AsyncMethodCallback<reconcileCodCollection_call> resultHandler) throws org.apache.thrift.TException {checkReady();reconcileCodCollection_call method_call = new reconcileCodCollection_call(collectedAmountMap, xferBy, xferTxnId, xferDate, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class reconcileCodCollection_call extends org.apache.thrift.async.TAsyncMethodCall {private Map<String,Double> collectedAmountMap;private String xferBy;private String xferTxnId;private long xferDate;public reconcileCodCollection_call(Map<String,Double> collectedAmountMap, String xferBy, String xferTxnId, long xferDate, org.apache.thrift.async.AsyncMethodCallback<reconcileCodCollection_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.collectedAmountMap = collectedAmountMap;this.xferBy = xferBy;this.xferTxnId = xferTxnId;this.xferDate = xferDate;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reconcileCodCollection", org.apache.thrift.protocol.TMessageType.CALL, 0));reconcileCodCollection_args args = new reconcileCodCollection_args();args.setCollectedAmountMap(collectedAmountMap);args.setXferBy(xferBy);args.setXferTxnId(xferTxnId);args.setXferDate(xferDate);args.write(prot);prot.writeMessageEnd();}public Map<String,String> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_reconcileCodCollection();}}public void getTransactionsRequiringExtraProcessing(ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<getTransactionsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException {checkReady();getTransactionsRequiringExtraProcessing_call method_call = new getTransactionsRequiringExtraProcessing_call(category, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getTransactionsRequiringExtraProcessing_call extends org.apache.thrift.async.TAsyncMethodCall {private ExtraTransactionProcessingType category;public getTransactionsRequiringExtraProcessing_call(ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<getTransactionsRequiringExtraProcessing_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.category = category;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransactionsRequiringExtraProcessing", org.apache.thrift.protocol.TMessageType.CALL, 0));getTransactionsRequiringExtraProcessing_args args = new getTransactionsRequiringExtraProcessing_args();args.setCategory(category);args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getTransactionsRequiringExtraProcessing();}}public void markTransactionAsProcessed(long transactionId, ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<markTransactionAsProcessed_call> resultHandler) throws org.apache.thrift.TException {checkReady();markTransactionAsProcessed_call method_call = new markTransactionAsProcessed_call(transactionId, category, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markTransactionAsProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {private long transactionId;private ExtraTransactionProcessingType category;public markTransactionAsProcessed_call(long transactionId, ExtraTransactionProcessingType category, org.apache.thrift.async.AsyncMethodCallback<markTransactionAsProcessed_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.transactionId = transactionId;this.category = category;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markTransactionAsProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));markTransactionAsProcessed_args args = new markTransactionAsProcessed_args();args.setTransactionId(transactionId);args.setCategory(category);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markTransactionAsProcessed();}}public void getItemWiseRiskyOrdersCount(org.apache.thrift.async.AsyncMethodCallback<getItemWiseRiskyOrdersCount_call> resultHandler) throws org.apache.thrift.TException {checkReady();getItemWiseRiskyOrdersCount_call method_call = new getItemWiseRiskyOrdersCount_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getItemWiseRiskyOrdersCount_call extends org.apache.thrift.async.TAsyncMethodCall {public getItemWiseRiskyOrdersCount_call(org.apache.thrift.async.AsyncMethodCallback<getItemWiseRiskyOrdersCount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemWiseRiskyOrdersCount", org.apache.thrift.protocol.TMessageType.CALL, 0));getItemWiseRiskyOrdersCount_args args = new getItemWiseRiskyOrdersCount_args();args.write(prot);prot.writeMessageEnd();}public Map<Long,Long> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getItemWiseRiskyOrdersCount();}}public void getOrdersForItemIds(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getOrdersForItemIds_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrdersForItemIds_call method_call = new getOrdersForItemIds_call(itemIds, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrdersForItemIds_call extends org.apache.thrift.async.TAsyncMethodCall {private List<Long> itemIds;public getOrdersForItemIds_call(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getOrdersForItemIds_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemIds = itemIds;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersForItemIds", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrdersForItemIds_args args = new getOrdersForItemIds_args();args.setItemIds(itemIds);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrdersForItemIds();}}public void markOrderCancellationRequestReceived(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderCancellationRequestReceived_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrderCancellationRequestReceived_call method_call = new markOrderCancellationRequestReceived_call(orderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrderCancellationRequestReceived_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;public markOrderCancellationRequestReceived_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderCancellationRequestReceived_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderCancellationRequestReceived", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrderCancellationRequestReceived_args args = new markOrderCancellationRequestReceived_args();args.setOrderId(orderId);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markOrderCancellationRequestReceived();}}public void markOrderCancellationRequestConfirmed(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderCancellationRequestConfirmed_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrderCancellationRequestConfirmed_call method_call = new markOrderCancellationRequestConfirmed_call(orderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrderCancellationRequestConfirmed_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;public markOrderCancellationRequestConfirmed_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderCancellationRequestConfirmed_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderCancellationRequestConfirmed", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrderCancellationRequestConfirmed_args args = new markOrderCancellationRequestConfirmed_args();args.setOrderId(orderId);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markOrderCancellationRequestConfirmed();}}public void markOrderCancellationRequestDenied(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderCancellationRequestDenied_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrderCancellationRequestDenied_call method_call = new markOrderCancellationRequestDenied_call(orderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrderCancellationRequestDenied_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;public markOrderCancellationRequestDenied_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderCancellationRequestDenied_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderCancellationRequestDenied", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrderCancellationRequestDenied_args args = new markOrderCancellationRequestDenied_args();args.setOrderId(orderId);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markOrderCancellationRequestDenied();}}public void markTransactionAsPaymentFlagRemoved(long transactionId, org.apache.thrift.async.AsyncMethodCallback<markTransactionAsPaymentFlagRemoved_call> resultHandler) throws org.apache.thrift.TException {checkReady();markTransactionAsPaymentFlagRemoved_call method_call = new markTransactionAsPaymentFlagRemoved_call(transactionId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markTransactionAsPaymentFlagRemoved_call extends org.apache.thrift.async.TAsyncMethodCall {private long transactionId;public markTransactionAsPaymentFlagRemoved_call(long transactionId, org.apache.thrift.async.AsyncMethodCallback<markTransactionAsPaymentFlagRemoved_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.transactionId = transactionId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markTransactionAsPaymentFlagRemoved", org.apache.thrift.protocol.TMessageType.CALL, 0));markTransactionAsPaymentFlagRemoved_args args = new markTransactionAsPaymentFlagRemoved_args();args.setTransactionId(transactionId);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markTransactionAsPaymentFlagRemoved();}}public void refundTransaction(long transactionId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<refundTransaction_call> resultHandler) throws org.apache.thrift.TException {checkReady();refundTransaction_call method_call = new refundTransaction_call(transactionId, refundedBy, reason, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class refundTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {private long transactionId;private String refundedBy;private String reason;public refundTransaction_call(long transactionId, String refundedBy, String reason, org.apache.thrift.async.AsyncMethodCallback<refundTransaction_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.transactionId = transactionId;this.refundedBy = refundedBy;this.reason = reason;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("refundTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));refundTransaction_args args = new refundTransaction_args();args.setTransactionId(transactionId);args.setRefundedBy(refundedBy);args.setReason(reason);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_refundTransaction();}}public void updateShipmentAddress(long orderId, long addressId, org.apache.thrift.async.AsyncMethodCallback<updateShipmentAddress_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateShipmentAddress_call method_call = new updateShipmentAddress_call(orderId, addressId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateShipmentAddress_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private long addressId;public updateShipmentAddress_call(long orderId, long addressId, org.apache.thrift.async.AsyncMethodCallback<updateShipmentAddress_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.addressId = addressId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateShipmentAddress", org.apache.thrift.protocol.TMessageType.CALL, 0));updateShipmentAddress_args args = new updateShipmentAddress_args();args.setOrderId(orderId);args.setAddressId(addressId);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_updateShipmentAddress();}}public void acceptOrdersForItemId(long itemId, long inventory, org.apache.thrift.async.AsyncMethodCallback<acceptOrdersForItemId_call> resultHandler) throws org.apache.thrift.TException {checkReady();acceptOrdersForItemId_call method_call = new acceptOrdersForItemId_call(itemId, inventory, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class acceptOrdersForItemId_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private long inventory;public acceptOrdersForItemId_call(long itemId, long inventory, org.apache.thrift.async.AsyncMethodCallback<acceptOrdersForItemId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.inventory = inventory;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("acceptOrdersForItemId", org.apache.thrift.protocol.TMessageType.CALL, 0));acceptOrdersForItemId_args args = new acceptOrdersForItemId_args();args.setItemId(itemId);args.setInventory(inventory);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_acceptOrdersForItemId();}}public void markOrdersAsPORaised(long vendorId, long itemId, long quantity, long estimate, boolean isReminder, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsPORaised_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrdersAsPORaised_call method_call = new markOrdersAsPORaised_call(vendorId, itemId, quantity, estimate, isReminder, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrdersAsPORaised_call extends org.apache.thrift.async.TAsyncMethodCall {private long vendorId;private long itemId;private long quantity;private long estimate;private boolean isReminder;public markOrdersAsPORaised_call(long vendorId, long itemId, long quantity, long estimate, boolean isReminder, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsPORaised_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.vendorId = vendorId;this.itemId = itemId;this.quantity = quantity;this.estimate = estimate;this.isReminder = isReminder;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsPORaised", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrdersAsPORaised_args args = new markOrdersAsPORaised_args();args.setVendorId(vendorId);args.setItemId(itemId);args.setQuantity(quantity);args.setEstimate(estimate);args.setIsReminder(isReminder);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markOrdersAsPORaised();}}public void markOrdersAsReversalInitiated(long vendorId, long itemId, long quantity, long estimate, boolean isReminder, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsReversalInitiated_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrdersAsReversalInitiated_call method_call = new markOrdersAsReversalInitiated_call(vendorId, itemId, quantity, estimate, isReminder, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrdersAsReversalInitiated_call extends org.apache.thrift.async.TAsyncMethodCall {private long vendorId;private long itemId;private long quantity;private long estimate;private boolean isReminder;public markOrdersAsReversalInitiated_call(long vendorId, long itemId, long quantity, long estimate, boolean isReminder, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsReversalInitiated_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.vendorId = vendorId;this.itemId = itemId;this.quantity = quantity;this.estimate = estimate;this.isReminder = isReminder;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsReversalInitiated", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrdersAsReversalInitiated_args args = new markOrdersAsReversalInitiated_args();args.setVendorId(vendorId);args.setItemId(itemId);args.setQuantity(quantity);args.setEstimate(estimate);args.setIsReminder(isReminder);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markOrdersAsReversalInitiated();}}public void markOrdersAsNotAvailabke(long vendorId, long itemId, long quantity, long estimate, boolean isReminder, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsNotAvailabke_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrdersAsNotAvailabke_call method_call = new markOrdersAsNotAvailabke_call(vendorId, itemId, quantity, estimate, isReminder, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrdersAsNotAvailabke_call extends org.apache.thrift.async.TAsyncMethodCall {private long vendorId;private long itemId;private long quantity;private long estimate;private boolean isReminder;public markOrdersAsNotAvailabke_call(long vendorId, long itemId, long quantity, long estimate, boolean isReminder, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsNotAvailabke_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.vendorId = vendorId;this.itemId = itemId;this.quantity = quantity;this.estimate = estimate;this.isReminder = isReminder;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsNotAvailabke", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrdersAsNotAvailabke_args args = new markOrdersAsNotAvailabke_args();args.setVendorId(vendorId);args.setItemId(itemId);args.setQuantity(quantity);args.setEstimate(estimate);args.setIsReminder(isReminder);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markOrdersAsNotAvailabke();}}public void markOrdersAsTimeout(long vendorId, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsTimeout_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrdersAsTimeout_call method_call = new markOrdersAsTimeout_call(vendorId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrdersAsTimeout_call extends org.apache.thrift.async.TAsyncMethodCall {private long vendorId;public markOrdersAsTimeout_call(long vendorId, org.apache.thrift.async.AsyncMethodCallback<markOrdersAsTimeout_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.vendorId = vendorId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrdersAsTimeout", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrdersAsTimeout_args args = new markOrdersAsTimeout_args();args.setVendorId(vendorId);args.write(prot);prot.writeMessageEnd();}public Map<Integer,TimeoutSummary> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_markOrdersAsTimeout();}}public void markOrderAsLostInTransit(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderAsLostInTransit_call> resultHandler) throws org.apache.thrift.TException {checkReady();markOrderAsLostInTransit_call method_call = new markOrderAsLostInTransit_call(orderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markOrderAsLostInTransit_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;public markOrderAsLostInTransit_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<markOrderAsLostInTransit_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markOrderAsLostInTransit", org.apache.thrift.protocol.TMessageType.CALL, 0));markOrderAsLostInTransit_args args = new markOrderAsLostInTransit_args();args.setOrderId(orderId);args.write(prot);prot.writeMessageEnd();}public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_markOrderAsLostInTransit();}}public void getOrderForAwb(String awb, org.apache.thrift.async.AsyncMethodCallback<getOrderForAwb_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrderForAwb_call method_call = new getOrderForAwb_call(awb, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrderForAwb_call extends org.apache.thrift.async.TAsyncMethodCall {private String awb;public getOrderForAwb_call(String awb, org.apache.thrift.async.AsyncMethodCallback<getOrderForAwb_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.awb = awb;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderForAwb", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrderForAwb_args args = new getOrderForAwb_args();args.setAwb(awb);args.write(prot);prot.writeMessageEnd();}public Order getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrderForAwb();}}public void getOrdersForProviderForStatus(long logistics_provider_id, List<OrderStatus> order_status_list, org.apache.thrift.async.AsyncMethodCallback<getOrdersForProviderForStatus_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrdersForProviderForStatus_call method_call = new getOrdersForProviderForStatus_call(logistics_provider_id, order_status_list, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrdersForProviderForStatus_call extends org.apache.thrift.async.TAsyncMethodCall {private long logistics_provider_id;private List<OrderStatus> order_status_list;public getOrdersForProviderForStatus_call(long logistics_provider_id, List<OrderStatus> order_status_list, org.apache.thrift.async.AsyncMethodCallback<getOrdersForProviderForStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.logistics_provider_id = logistics_provider_id;this.order_status_list = order_status_list;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersForProviderForStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrdersForProviderForStatus_args args = new getOrdersForProviderForStatus_args();args.setLogistics_provider_id(logistics_provider_id);args.setOrder_status_list(order_status_list);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrdersForProviderForStatus();}}public void getBilledOrdersForVendor(long vendorId, long billingDateFrom, long billingDateTo, org.apache.thrift.async.AsyncMethodCallback<getBilledOrdersForVendor_call> resultHandler) throws org.apache.thrift.TException {checkReady();getBilledOrdersForVendor_call method_call = new getBilledOrdersForVendor_call(vendorId, billingDateFrom, billingDateTo, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getBilledOrdersForVendor_call extends org.apache.thrift.async.TAsyncMethodCall {private long vendorId;private long billingDateFrom;private long billingDateTo;public getBilledOrdersForVendor_call(long vendorId, long billingDateFrom, long billingDateTo, org.apache.thrift.async.AsyncMethodCallback<getBilledOrdersForVendor_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.vendorId = vendorId;this.billingDateFrom = billingDateFrom;this.billingDateTo = billingDateTo;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBilledOrdersForVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));getBilledOrdersForVendor_args args = new getBilledOrdersForVendor_args();args.setVendorId(vendorId);args.setBillingDateFrom(billingDateFrom);args.setBillingDateTo(billingDateTo);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getBilledOrdersForVendor();}}public void getSlippedSippingDateOrders(org.apache.thrift.async.AsyncMethodCallback<getSlippedSippingDateOrders_call> resultHandler) throws org.apache.thrift.TException {checkReady();getSlippedSippingDateOrders_call method_call = new getSlippedSippingDateOrders_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getSlippedSippingDateOrders_call extends org.apache.thrift.async.TAsyncMethodCall {public getSlippedSippingDateOrders_call(org.apache.thrift.async.AsyncMethodCallback<getSlippedSippingDateOrders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSlippedSippingDateOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));getSlippedSippingDateOrders_args args = new getSlippedSippingDateOrders_args();args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getSlippedSippingDateOrders();}}public void getCancelledOrders(long cancelDateFrom, long cancelDateTo, org.apache.thrift.async.AsyncMethodCallback<getCancelledOrders_call> resultHandler) throws org.apache.thrift.TException {checkReady();getCancelledOrders_call method_call = new getCancelledOrders_call(cancelDateFrom, cancelDateTo, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getCancelledOrders_call extends org.apache.thrift.async.TAsyncMethodCall {private long cancelDateFrom;private long cancelDateTo;public getCancelledOrders_call(long cancelDateFrom, long cancelDateTo, org.apache.thrift.async.AsyncMethodCallback<getCancelledOrders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.cancelDateFrom = cancelDateFrom;this.cancelDateTo = cancelDateTo;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCancelledOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));getCancelledOrders_args args = new getCancelledOrders_args();args.setCancelDateFrom(cancelDateFrom);args.setCancelDateTo(cancelDateTo);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getCancelledOrders();}}public void saveBluedartSettlements(Map<Long,Double> mapAWBAndAmount, org.apache.thrift.async.AsyncMethodCallback<saveBluedartSettlements_call> resultHandler) throws org.apache.thrift.TException {checkReady();saveBluedartSettlements_call method_call = new saveBluedartSettlements_call(mapAWBAndAmount, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class saveBluedartSettlements_call extends org.apache.thrift.async.TAsyncMethodCall {private Map<Long,Double> mapAWBAndAmount;public saveBluedartSettlements_call(Map<Long,Double> mapAWBAndAmount, org.apache.thrift.async.AsyncMethodCallback<saveBluedartSettlements_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.mapAWBAndAmount = mapAWBAndAmount;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveBluedartSettlements", org.apache.thrift.protocol.TMessageType.CALL, 0));saveBluedartSettlements_args args = new saveBluedartSettlements_args();args.setMapAWBAndAmount(mapAWBAndAmount);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_saveBluedartSettlements();}}public void savePaymentSettlements(long settlementDate, long paymentGatewayId, long referenceId, double serviceTax, double otherCharges, double netCollection, org.apache.thrift.async.AsyncMethodCallback<savePaymentSettlements_call> resultHandler) throws org.apache.thrift.TException {checkReady();savePaymentSettlements_call method_call = new savePaymentSettlements_call(settlementDate, paymentGatewayId, referenceId, serviceTax, otherCharges, netCollection, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class savePaymentSettlements_call extends org.apache.thrift.async.TAsyncMethodCall {private long settlementDate;private long paymentGatewayId;private long referenceId;private double serviceTax;private double otherCharges;private double netCollection;public savePaymentSettlements_call(long settlementDate, long paymentGatewayId, long referenceId, double serviceTax, double otherCharges, double netCollection, org.apache.thrift.async.AsyncMethodCallback<savePaymentSettlements_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.settlementDate = settlementDate;this.paymentGatewayId = paymentGatewayId;this.referenceId = referenceId;this.serviceTax = serviceTax;this.otherCharges = otherCharges;this.netCollection = netCollection;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("savePaymentSettlements", org.apache.thrift.protocol.TMessageType.CALL, 0));savePaymentSettlements_args args = new savePaymentSettlements_args();args.setSettlementDate(settlementDate);args.setPaymentGatewayId(paymentGatewayId);args.setReferenceId(referenceId);args.setServiceTax(serviceTax);args.setOtherCharges(otherCharges);args.setNetCollection(netCollection);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_savePaymentSettlements();}}public void saveEBSSettlementSummary(long settlementId, long settlementDate, long transactionDateFrom, long transactionDateTo, double amount, org.apache.thrift.async.AsyncMethodCallback<saveEBSSettlementSummary_call> resultHandler) throws org.apache.thrift.TException {checkReady();saveEBSSettlementSummary_call method_call = new saveEBSSettlementSummary_call(settlementId, settlementDate, transactionDateFrom, transactionDateTo, amount, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class saveEBSSettlementSummary_call extends org.apache.thrift.async.TAsyncMethodCall {private long settlementId;private long settlementDate;private long transactionDateFrom;private long transactionDateTo;private double amount;public saveEBSSettlementSummary_call(long settlementId, long settlementDate, long transactionDateFrom, long transactionDateTo, double amount, org.apache.thrift.async.AsyncMethodCallback<saveEBSSettlementSummary_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.settlementId = settlementId;this.settlementDate = settlementDate;this.transactionDateFrom = transactionDateFrom;this.transactionDateTo = transactionDateTo;this.amount = amount;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveEBSSettlementSummary", org.apache.thrift.protocol.TMessageType.CALL, 0));saveEBSSettlementSummary_args args = new saveEBSSettlementSummary_args();args.setSettlementId(settlementId);args.setSettlementDate(settlementDate);args.setTransactionDateFrom(transactionDateFrom);args.setTransactionDateTo(transactionDateTo);args.setAmount(amount);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_saveEBSSettlementSummary();}}public void getSettlementForPrepaid(long referenceId, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<getSettlementForPrepaid_call> resultHandler) throws org.apache.thrift.TException {checkReady();getSettlementForPrepaid_call method_call = new getSettlementForPrepaid_call(referenceId, isRefund, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getSettlementForPrepaid_call extends org.apache.thrift.async.TAsyncMethodCall {private long referenceId;private boolean isRefund;public getSettlementForPrepaid_call(long referenceId, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<getSettlementForPrepaid_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.referenceId = referenceId;this.isRefund = isRefund;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSettlementForPrepaid", org.apache.thrift.protocol.TMessageType.CALL, 0));getSettlementForPrepaid_args args = new getSettlementForPrepaid_args();args.setReferenceId(referenceId);args.setIsRefund(isRefund);args.write(prot);prot.writeMessageEnd();}public PaymentSettlement getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getSettlementForPrepaid();}}public void getSettlementForCod(long orderId, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<getSettlementForCod_call> resultHandler) throws org.apache.thrift.TException {checkReady();getSettlementForCod_call method_call = new getSettlementForCod_call(orderId, isRefund, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getSettlementForCod_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private boolean isRefund;public getSettlementForCod_call(long orderId, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<getSettlementForCod_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.isRefund = isRefund;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSettlementForCod", org.apache.thrift.protocol.TMessageType.CALL, 0));getSettlementForCod_args args = new getSettlementForCod_args();args.setOrderId(orderId);args.setIsRefund(isRefund);args.write(prot);prot.writeMessageEnd();}public PaymentSettlement getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getSettlementForCod();}}public void getEBSSettlementSummaries(org.apache.thrift.async.AsyncMethodCallback<getEBSSettlementSummaries_call> resultHandler) throws org.apache.thrift.TException {checkReady();getEBSSettlementSummaries_call method_call = new getEBSSettlementSummaries_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getEBSSettlementSummaries_call extends org.apache.thrift.async.TAsyncMethodCall {public getEBSSettlementSummaries_call(org.apache.thrift.async.AsyncMethodCallback<getEBSSettlementSummaries_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEBSSettlementSummaries", org.apache.thrift.protocol.TMessageType.CALL, 0));getEBSSettlementSummaries_args args = new getEBSSettlementSummaries_args();args.write(prot);prot.writeMessageEnd();}public Map<Long,String> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getEBSSettlementSummaries();}}public void markEBSSettlementUploaded(long settlementId, org.apache.thrift.async.AsyncMethodCallback<markEBSSettlementUploaded_call> resultHandler) throws org.apache.thrift.TException {checkReady();markEBSSettlementUploaded_call method_call = new markEBSSettlementUploaded_call(settlementId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class markEBSSettlementUploaded_call extends org.apache.thrift.async.TAsyncMethodCall {private long settlementId;public markEBSSettlementUploaded_call(long settlementId, org.apache.thrift.async.AsyncMethodCallback<markEBSSettlementUploaded_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.settlementId = settlementId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markEBSSettlementUploaded", org.apache.thrift.protocol.TMessageType.CALL, 0));markEBSSettlementUploaded_args args = new markEBSSettlementUploaded_args();args.setSettlementId(settlementId);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_markEBSSettlementUploaded();}}public void getEBSSettlementDate(long settlementId, org.apache.thrift.async.AsyncMethodCallback<getEBSSettlementDate_call> resultHandler) throws org.apache.thrift.TException {checkReady();getEBSSettlementDate_call method_call = new getEBSSettlementDate_call(settlementId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getEBSSettlementDate_call extends org.apache.thrift.async.TAsyncMethodCall {private long settlementId;public getEBSSettlementDate_call(long settlementId, org.apache.thrift.async.AsyncMethodCallback<getEBSSettlementDate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.settlementId = settlementId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEBSSettlementDate", org.apache.thrift.protocol.TMessageType.CALL, 0));getEBSSettlementDate_args args = new getEBSSettlementDate_args();args.setSettlementId(settlementId);args.write(prot);prot.writeMessageEnd();}public long getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getEBSSettlementDate();}}public void getSettlementsByDate(long settlementDateFrom, long settlementDateTo, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<getSettlementsByDate_call> resultHandler) throws org.apache.thrift.TException {checkReady();getSettlementsByDate_call method_call = new getSettlementsByDate_call(settlementDateFrom, settlementDateTo, isRefund, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getSettlementsByDate_call extends org.apache.thrift.async.TAsyncMethodCall {private long settlementDateFrom;private long settlementDateTo;private boolean isRefund;public getSettlementsByDate_call(long settlementDateFrom, long settlementDateTo, boolean isRefund, org.apache.thrift.async.AsyncMethodCallback<getSettlementsByDate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.settlementDateFrom = settlementDateFrom;this.settlementDateTo = settlementDateTo;this.isRefund = isRefund;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSettlementsByDate", org.apache.thrift.protocol.TMessageType.CALL, 0));getSettlementsByDate_args args = new getSettlementsByDate_args();args.setSettlementDateFrom(settlementDateFrom);args.setSettlementDateTo(settlementDateTo);args.setIsRefund(isRefund);args.write(prot);prot.writeMessageEnd();}public List<PaymentSettlement> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getSettlementsByDate();}}public void getReshippedOrderIds(List<Long> orderIds, org.apache.thrift.async.AsyncMethodCallback<getReshippedOrderIds_call> resultHandler) throws org.apache.thrift.TException {checkReady();getReshippedOrderIds_call method_call = new getReshippedOrderIds_call(orderIds, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getReshippedOrderIds_call extends org.apache.thrift.async.TAsyncMethodCall {private List<Long> orderIds;public getReshippedOrderIds_call(List<Long> orderIds, org.apache.thrift.async.AsyncMethodCallback<getReshippedOrderIds_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderIds = orderIds;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReshippedOrderIds", org.apache.thrift.protocol.TMessageType.CALL, 0));getReshippedOrderIds_args args = new getReshippedOrderIds_args();args.setOrderIds(orderIds);args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getReshippedOrderIds();}}public void getBilledOrders(long vendorId, boolean onlyVendorNotPaid, long billingDateFrom, long billingDateTo, org.apache.thrift.async.AsyncMethodCallback<getBilledOrders_call> resultHandler) throws org.apache.thrift.TException {checkReady();getBilledOrders_call method_call = new getBilledOrders_call(vendorId, onlyVendorNotPaid, billingDateFrom, billingDateTo, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getBilledOrders_call extends org.apache.thrift.async.TAsyncMethodCall {private long vendorId;private boolean onlyVendorNotPaid;private long billingDateFrom;private long billingDateTo;public getBilledOrders_call(long vendorId, boolean onlyVendorNotPaid, long billingDateFrom, long billingDateTo, org.apache.thrift.async.AsyncMethodCallback<getBilledOrders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.vendorId = vendorId;this.onlyVendorNotPaid = onlyVendorNotPaid;this.billingDateFrom = billingDateFrom;this.billingDateTo = billingDateTo;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBilledOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));getBilledOrders_args args = new getBilledOrders_args();args.setVendorId(vendorId);args.setOnlyVendorNotPaid(onlyVendorNotPaid);args.setBillingDateFrom(billingDateFrom);args.setBillingDateTo(billingDateTo);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getBilledOrders();}}public void getStatusDistributionOfOrders(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getStatusDistributionOfOrders_call> resultHandler) throws org.apache.thrift.TException {checkReady();getStatusDistributionOfOrders_call method_call = new getStatusDistributionOfOrders_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getStatusDistributionOfOrders_call extends org.apache.thrift.async.TAsyncMethodCall {private long startDate;private long endDate;public getStatusDistributionOfOrders_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getStatusDistributionOfOrders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.startDate = startDate;this.endDate = endDate;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getStatusDistributionOfOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));getStatusDistributionOfOrders_args args = new getStatusDistributionOfOrders_args();args.setStartDate(startDate);args.setEndDate(endDate);args.write(prot);prot.writeMessageEnd();}public Map<Long,Long> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getStatusDistributionOfOrders();}}public void getOrderIdsForStatus(long status, long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getOrderIdsForStatus_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrderIdsForStatus_call method_call = new getOrderIdsForStatus_call(status, startDatetime, endDatetime, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrderIdsForStatus_call extends org.apache.thrift.async.TAsyncMethodCall {private long status;private long startDatetime;private long endDatetime;public getOrderIdsForStatus_call(long status, long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getOrderIdsForStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.status = status;this.startDatetime = startDatetime;this.endDatetime = endDatetime;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderIdsForStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrderIdsForStatus_args args = new getOrderIdsForStatus_args();args.setStatus(status);args.setStartDatetime(startDatetime);args.setEndDatetime(endDatetime);args.write(prot);prot.writeMessageEnd();}public List<Long> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrderIdsForStatus();}}public void updateCODAgent(String agent, long orderId, org.apache.thrift.async.AsyncMethodCallback<updateCODAgent_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateCODAgent_call method_call = new updateCODAgent_call(agent, orderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateCODAgent_call extends org.apache.thrift.async.TAsyncMethodCall {private String agent;private long orderId;public updateCODAgent_call(String agent, long orderId, org.apache.thrift.async.AsyncMethodCallback<updateCODAgent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.agent = agent;this.orderId = orderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateCODAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));updateCODAgent_args args = new updateCODAgent_args();args.setAgent(agent);args.setOrderId(orderId);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_updateCODAgent();}}public void updateOrderAsPaidToVendor(long orderId, org.apache.thrift.async.AsyncMethodCallback<updateOrderAsPaidToVendor_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateOrderAsPaidToVendor_call method_call = new updateOrderAsPaidToVendor_call(orderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateOrderAsPaidToVendor_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;public updateOrderAsPaidToVendor_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<updateOrderAsPaidToVendor_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateOrderAsPaidToVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));updateOrderAsPaidToVendor_args args = new updateOrderAsPaidToVendor_args();args.setOrderId(orderId);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_updateOrderAsPaidToVendor();}}public void updateOrderOnlyAsPaidToVendor(long orderId, org.apache.thrift.async.AsyncMethodCallback<updateOrderOnlyAsPaidToVendor_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateOrderOnlyAsPaidToVendor_call method_call = new updateOrderOnlyAsPaidToVendor_call(orderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateOrderOnlyAsPaidToVendor_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;public updateOrderOnlyAsPaidToVendor_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<updateOrderOnlyAsPaidToVendor_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateOrderOnlyAsPaidToVendor", org.apache.thrift.protocol.TMessageType.CALL, 0));updateOrderOnlyAsPaidToVendor_args args = new updateOrderOnlyAsPaidToVendor_args();args.setOrderId(orderId);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_updateOrderOnlyAsPaidToVendor();}}public void getRefundedOrdersMarkedPaid(org.apache.thrift.async.AsyncMethodCallback<getRefundedOrdersMarkedPaid_call> resultHandler) throws org.apache.thrift.TException {checkReady();getRefundedOrdersMarkedPaid_call method_call = new getRefundedOrdersMarkedPaid_call(resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getRefundedOrdersMarkedPaid_call extends org.apache.thrift.async.TAsyncMethodCall {public getRefundedOrdersMarkedPaid_call(org.apache.thrift.async.AsyncMethodCallback<getRefundedOrdersMarkedPaid_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRefundedOrdersMarkedPaid", org.apache.thrift.protocol.TMessageType.CALL, 0));getRefundedOrdersMarkedPaid_args args = new getRefundedOrdersMarkedPaid_args();args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getRefundedOrdersMarkedPaid();}}public void getAllVerificationAgents(long minOrderId, long maxOrderId, org.apache.thrift.async.AsyncMethodCallback<getAllVerificationAgents_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllVerificationAgents_call method_call = new getAllVerificationAgents_call(minOrderId, maxOrderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllVerificationAgents_call extends org.apache.thrift.async.TAsyncMethodCall {private long minOrderId;private long maxOrderId;public getAllVerificationAgents_call(long minOrderId, long maxOrderId, org.apache.thrift.async.AsyncMethodCallback<getAllVerificationAgents_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.minOrderId = minOrderId;this.maxOrderId = maxOrderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllVerificationAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllVerificationAgents_args args = new getAllVerificationAgents_args();args.setMinOrderId(minOrderId);args.setMaxOrderId(maxOrderId);args.write(prot);prot.writeMessageEnd();}public List<CODVerificationAgent> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllVerificationAgents();}}public void getAllAttributesForOrderId(long orderId, org.apache.thrift.async.AsyncMethodCallback<getAllAttributesForOrderId_call> resultHandler) throws org.apache.thrift.TException {checkReady();getAllAttributesForOrderId_call method_call = new getAllAttributesForOrderId_call(orderId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getAllAttributesForOrderId_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;public getAllAttributesForOrderId_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getAllAttributesForOrderId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllAttributesForOrderId", org.apache.thrift.protocol.TMessageType.CALL, 0));getAllAttributesForOrderId_args args = new getAllAttributesForOrderId_args();args.setOrderId(orderId);args.write(prot);prot.writeMessageEnd();}public List<Attribute> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getAllAttributesForOrderId();}}public void setOrderAttributes(long orderId, List<Attribute> attributes, org.apache.thrift.async.AsyncMethodCallback<setOrderAttributes_call> resultHandler) throws org.apache.thrift.TException {checkReady();setOrderAttributes_call method_call = new setOrderAttributes_call(orderId, attributes, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class setOrderAttributes_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private List<Attribute> attributes;public setOrderAttributes_call(long orderId, List<Attribute> attributes, org.apache.thrift.async.AsyncMethodCallback<setOrderAttributes_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.attributes = attributes;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setOrderAttributes", org.apache.thrift.protocol.TMessageType.CALL, 0));setOrderAttributes_args args = new setOrderAttributes_args();args.setOrderId(orderId);args.setAttributes(attributes);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_setOrderAttributes();}}public void setOrderAttributeForTransaction(long transactionId, Attribute attribute, org.apache.thrift.async.AsyncMethodCallback<setOrderAttributeForTransaction_call> resultHandler) throws org.apache.thrift.TException {checkReady();setOrderAttributeForTransaction_call method_call = new setOrderAttributeForTransaction_call(transactionId, attribute, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class setOrderAttributeForTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {private long transactionId;private Attribute attribute;public setOrderAttributeForTransaction_call(long transactionId, Attribute attribute, org.apache.thrift.async.AsyncMethodCallback<setOrderAttributeForTransaction_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.transactionId = transactionId;this.attribute = attribute;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setOrderAttributeForTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));setOrderAttributeForTransaction_args args = new setOrderAttributeForTransaction_args();args.setTransactionId(transactionId);args.setAttribute(attribute);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_setOrderAttributeForTransaction();}}public void getReceivePendingOrders(long storeId, org.apache.thrift.async.AsyncMethodCallback<getReceivePendingOrders_call> resultHandler) throws org.apache.thrift.TException {checkReady();getReceivePendingOrders_call method_call = new getReceivePendingOrders_call(storeId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getReceivePendingOrders_call extends org.apache.thrift.async.TAsyncMethodCall {private long storeId;public getReceivePendingOrders_call(long storeId, org.apache.thrift.async.AsyncMethodCallback<getReceivePendingOrders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.storeId = storeId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReceivePendingOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));getReceivePendingOrders_args args = new getReceivePendingOrders_args();args.setStoreId(storeId);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getReceivePendingOrders();}}public void getReceivedAtStoreOrders(long storeId, org.apache.thrift.async.AsyncMethodCallback<getReceivedAtStoreOrders_call> resultHandler) throws org.apache.thrift.TException {checkReady();getReceivedAtStoreOrders_call method_call = new getReceivedAtStoreOrders_call(storeId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getReceivedAtStoreOrders_call extends org.apache.thrift.async.TAsyncMethodCall {private long storeId;public getReceivedAtStoreOrders_call(long storeId, org.apache.thrift.async.AsyncMethodCallback<getReceivedAtStoreOrders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.storeId = storeId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReceivedAtStoreOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));getReceivedAtStoreOrders_args args = new getReceivedAtStoreOrders_args();args.setStoreId(storeId);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getReceivedAtStoreOrders();}}public void getOrdersCollectionAtStore(long storeId, long fromDate, long toDate, boolean onlyCod, org.apache.thrift.async.AsyncMethodCallback<getOrdersCollectionAtStore_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrdersCollectionAtStore_call method_call = new getOrdersCollectionAtStore_call(storeId, fromDate, toDate, onlyCod, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrdersCollectionAtStore_call extends org.apache.thrift.async.TAsyncMethodCall {private long storeId;private long fromDate;private long toDate;private boolean onlyCod;public getOrdersCollectionAtStore_call(long storeId, long fromDate, long toDate, boolean onlyCod, org.apache.thrift.async.AsyncMethodCallback<getOrdersCollectionAtStore_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.storeId = storeId;this.fromDate = fromDate;this.toDate = toDate;this.onlyCod = onlyCod;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrdersCollectionAtStore", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrdersCollectionAtStore_args args = new getOrdersCollectionAtStore_args();args.setStoreId(storeId);args.setFromDate(fromDate);args.setToDate(toDate);args.setOnlyCod(onlyCod);args.write(prot);prot.writeMessageEnd();}public List<Order> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrdersCollectionAtStore();}}public void getOrderAttributeValue(long orderId, String attributeName, org.apache.thrift.async.AsyncMethodCallback<getOrderAttributeValue_call> resultHandler) throws org.apache.thrift.TException {checkReady();getOrderAttributeValue_call method_call = new getOrderAttributeValue_call(orderId, attributeName, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getOrderAttributeValue_call extends org.apache.thrift.async.TAsyncMethodCall {private long orderId;private String attributeName;public getOrderAttributeValue_call(long orderId, String attributeName, org.apache.thrift.async.AsyncMethodCallback<getOrderAttributeValue_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.orderId = orderId;this.attributeName = attributeName;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderAttributeValue", org.apache.thrift.protocol.TMessageType.CALL, 0));getOrderAttributeValue_args args = new getOrderAttributeValue_args();args.setOrderId(orderId);args.setAttributeName(attributeName);args.write(prot);prot.writeMessageEnd();}public String getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getOrderAttributeValue();}}public void acceptOrderForItem(long itemId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<acceptOrderForItem_call> resultHandler) throws org.apache.thrift.TException {checkReady();acceptOrderForItem_call method_call = new acceptOrderForItem_call(itemId, quantity, fulfilmentWarehouseId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class acceptOrderForItem_call extends org.apache.thrift.async.TAsyncMethodCall {private long itemId;private long quantity;private long fulfilmentWarehouseId;private long billingWarehouseId;public acceptOrderForItem_call(long itemId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<acceptOrderForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.itemId = itemId;this.quantity = quantity;this.fulfilmentWarehouseId = fulfilmentWarehouseId;this.billingWarehouseId = billingWarehouseId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("acceptOrderForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));acceptOrderForItem_args args = new acceptOrderForItem_args();args.setItemId(itemId);args.setQuantity(quantity);args.setFulfilmentWarehouseId(fulfilmentWarehouseId);args.setBillingWarehouseId(billingWarehouseId);args.write(prot);prot.writeMessageEnd();}public void getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_acceptOrderForItem();}}public void createRechargeOrder(RechargeOrder rechargeOrder, org.apache.thrift.async.AsyncMethodCallback<createRechargeOrder_call> resultHandler) throws org.apache.thrift.TException {checkReady();createRechargeOrder_call method_call = new createRechargeOrder_call(rechargeOrder, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class createRechargeOrder_call extends org.apache.thrift.async.TAsyncMethodCall {private RechargeOrder rechargeOrder;public createRechargeOrder_call(RechargeOrder rechargeOrder, org.apache.thrift.async.AsyncMethodCallback<createRechargeOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.rechargeOrder = rechargeOrder;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createRechargeOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));createRechargeOrder_args args = new createRechargeOrder_args();args.setRechargeOrder(rechargeOrder);args.write(prot);prot.writeMessageEnd();}public RechargeOrder getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_createRechargeOrder();}}public void updateRechargeOrderStatus(long rechargeOrderId, RechargeOrderStatus rechargeOrderStatus, org.apache.thrift.async.AsyncMethodCallback<updateRechargeOrderStatus_call> resultHandler) throws org.apache.thrift.TException {checkReady();updateRechargeOrderStatus_call method_call = new updateRechargeOrderStatus_call(rechargeOrderId, rechargeOrderStatus, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class updateRechargeOrderStatus_call extends org.apache.thrift.async.TAsyncMethodCall {private long rechargeOrderId;private RechargeOrderStatus rechargeOrderStatus;public updateRechargeOrderStatus_call(long rechargeOrderId, RechargeOrderStatus rechargeOrderStatus, org.apache.thrift.async.AsyncMethodCallback<updateRechargeOrderStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.rechargeOrderId = rechargeOrderId;this.rechargeOrderStatus = rechargeOrderStatus;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateRechargeOrderStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));updateRechargeOrderStatus_args args = new updateRechargeOrderStatus_args();args.setRechargeOrderId(rechargeOrderId);args.setRechargeOrderStatus(rechargeOrderStatus);args.write(prot);prot.writeMessageEnd();}public void getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);(new Client(prot)).recv_updateRechargeOrderStatus();}}public void activateRechargeTxn(List<RechargeCoupon> rechargeCoupons, org.apache.thrift.async.AsyncMethodCallback<activateRechargeTxn_call> resultHandler) throws org.apache.thrift.TException {checkReady();activateRechargeTxn_call method_call = new activateRechargeTxn_call(rechargeCoupons, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class activateRechargeTxn_call extends org.apache.thrift.async.TAsyncMethodCall {private List<RechargeCoupon> rechargeCoupons;public activateRechargeTxn_call(List<RechargeCoupon> rechargeCoupons, org.apache.thrift.async.AsyncMethodCallback<activateRechargeTxn_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.rechargeCoupons = rechargeCoupons;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("activateRechargeTxn", org.apache.thrift.protocol.TMessageType.CALL, 0));activateRechargeTxn_args args = new activateRechargeTxn_args();args.setRechargeCoupons(rechargeCoupons);args.write(prot);prot.writeMessageEnd();}public RechargeResponse getResult() throws TransactionServiceException, org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_activateRechargeTxn();}}public void getRechargeOrders(long customerId, org.apache.thrift.async.AsyncMethodCallback<getRechargeOrders_call> resultHandler) throws org.apache.thrift.TException {checkReady();getRechargeOrders_call method_call = new getRechargeOrders_call(customerId, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getRechargeOrders_call extends org.apache.thrift.async.TAsyncMethodCall {private long customerId;public getRechargeOrders_call(long customerId, org.apache.thrift.async.AsyncMethodCallback<getRechargeOrders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.customerId = customerId;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRechargeOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));getRechargeOrders_args args = new getRechargeOrders_args();args.setCustomerId(customerId);args.write(prot);prot.writeMessageEnd();}public List<RechargeOrder> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getRechargeOrders();}}public void getRechargeCoupons(long customerId, RechargeCouponStatus rechargeCouponStatus, org.apache.thrift.async.AsyncMethodCallback<getRechargeCoupons_call> resultHandler) throws org.apache.thrift.TException {checkReady();getRechargeCoupons_call method_call = new getRechargeCoupons_call(customerId, rechargeCouponStatus, resultHandler, this, ___protocolFactory, ___transport);this.___currentMethod = method_call;___manager.call(method_call);}public static class getRechargeCoupons_call extends org.apache.thrift.async.TAsyncMethodCall {private long customerId;private RechargeCouponStatus rechargeCouponStatus;public getRechargeCoupons_call(long customerId, RechargeCouponStatus rechargeCouponStatus, org.apache.thrift.async.AsyncMethodCallback<getRechargeCoupons_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {super(client, protocolFactory, transport, resultHandler, false);this.customerId = customerId;this.rechargeCouponStatus = rechargeCouponStatus;}public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRechargeCoupons", org.apache.thrift.protocol.TMessageType.CALL, 0));getRechargeCoupons_args args = new getRechargeCoupons_args();args.setCustomerId(customerId);args.setRechargeCouponStatus(rechargeCouponStatus);args.write(prot);prot.writeMessageEnd();}public List<RechargeCoupon> getResult() throws org.apache.thrift.TException {if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {throw new IllegalStateException("Method call not finished!");}org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);return (new Client(prot)).recv_getRechargeCoupons();}}}public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());public Processor(I iface) {super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));}protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {super(iface, getProcessMap(processMap));}private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {processMap.put("createTransaction", new createTransaction());processMap.put("getTransaction", new getTransaction());processMap.put("getTransactionsForCustomer", new getTransactionsForCustomer());processMap.put("getTransactionsForShoppingCartId", new getTransactionsForShoppingCartId());processMap.put("getTransactionStatus", new getTransactionStatus());processMap.put("changeTransactionStatus", new changeTransactionStatus());processMap.put("enqueueTransactionInfoEmail", new enqueueTransactionInfoEmail());processMap.put("getAllOrders", new getAllOrders());processMap.put("getOrdersInBatch", new getOrdersInBatch());processMap.put("getOrderCount", new getOrderCount());processMap.put("getOrdersByBillingDate", new getOrdersByBillingDate());processMap.put("getOrdersByShippingDate", new getOrdersByShippingDate());processMap.put("getReturnableOrdersForCustomer", new getReturnableOrdersForCustomer());processMap.put("getCancellableOrdersForCustomer", new getCancellableOrdersForCustomer());processMap.put("changeOrderStatus", new changeOrderStatus());processMap.put("getOrdersForTransaction", new getOrdersForTransaction());processMap.put("getOrdersForCustomer", new getOrdersForCustomer());processMap.put("createOrder", new createOrder());processMap.put("getOrder", new getOrder());processMap.put("getLineItemsForOrder", new getLineItemsForOrder());processMap.put("getOrderList", new getOrderList());processMap.put("getOrderListForVendor", new getOrderListForVendor());processMap.put("getOrderForCustomer", new getOrderForCustomer());processMap.put("getAlerts", new getAlerts());processMap.put("addAlert", new addAlert());processMap.put("markAlertsAsSeen", new markAlertsAsSeen());processMap.put("getValidOrderCount", new getValidOrderCount());processMap.put("getNoOfCustomersWithSuccessfulTransaction", new getNoOfCustomersWithSuccessfulTransaction());processMap.put("getValidOrdersAmountRange", new getValidOrdersAmountRange());processMap.put("getValidOrders", new getValidOrders());processMap.put("batchOrders", new batchOrders());processMap.put("markOrderAsOutOfStock", new markOrderAsOutOfStock());processMap.put("verifyOrder", new verifyOrder());processMap.put("acceptOrder", new acceptOrder());processMap.put("addBillingDetails", new addBillingDetails());processMap.put("addInvoiceNumber", new addInvoiceNumber());processMap.put("markOrdersAsShippedFromWarehouse", new markOrdersAsShippedFromWarehouse());processMap.put("markOrdersAsReturnedFromStore", new markOrdersAsReturnedFromStore());processMap.put("markOrdersAsPickedUp", new markOrdersAsPickedUp());processMap.put("getOrdersNotPickedUp", new getOrdersNotPickedUp());processMap.put("markOrdersAsDelivered", new markOrdersAsDelivered());processMap.put("markAsRTOrders", new markAsRTOrders());processMap.put("getRTOrders", new getRTOrders());processMap.put("updateNonDeliveryReason", new updateNonDeliveryReason());processMap.put("getNonDeliveredOrdersbyCourier", new getNonDeliveredOrdersbyCourier());processMap.put("markOrdersAsLocalConnected", new markOrdersAsLocalConnected());processMap.put("getOrdersNotLocalConnected", new getOrdersNotLocalConnected());processMap.put("markOrdersAsDestinationCityReached", new markOrdersAsDestinationCityReached());processMap.put("markOrdersAsFirstDeliveryAttempted", new markOrdersAsFirstDeliveryAttempted());processMap.put("getUndeliveredOrders", new getUndeliveredOrders());processMap.put("getUndeliveredOrdersExpectedDeliveryDateNotMet", new getUndeliveredOrdersExpectedDeliveryDateNotMet());processMap.put("toggleDOAFlag", new toggleDOAFlag());processMap.put("markOrderAsDelivered", new markOrderAsDelivered());processMap.put("markOrderAsReceivedAtStore", new markOrderAsReceivedAtStore());processMap.put("markOrderDoaRequestReceived", new markOrderDoaRequestReceived());processMap.put("markOrderDoaRequestAuthorized", new markOrderDoaRequestAuthorized());processMap.put("markOrderReturnRequestReceived", new markOrderReturnRequestReceived());processMap.put("markOrderReturnRequestAuthorized", new markOrderReturnRequestAuthorized());processMap.put("requestPickupNumber", new requestPickupNumber());processMap.put("authorizePickup", new authorizePickup());processMap.put("markDoasAsPickedUp", new markDoasAsPickedUp());processMap.put("getDoasNotPickedUp", new getDoasNotPickedUp());processMap.put("markReturnOrdersAsPickedUp", new markReturnOrdersAsPickedUp());processMap.put("getReturnOrdersNotPickedUp", new getReturnOrdersNotPickedUp());processMap.put("receiveReturn", new receiveReturn());processMap.put("validateDoa", new validateDoa());processMap.put("validateReturnProduct", new validateReturnProduct());processMap.put("reshipOrder", new reshipOrder());processMap.put("refundOrder", new refundOrder());processMap.put("getReturnOrders", new getReturnOrders());processMap.put("getAllReturnOrders", new getAllReturnOrders());processMap.put("getReturnOrder", new getReturnOrder());processMap.put("processReturn", new processReturn());processMap.put("updateWeight", new updateWeight());processMap.put("changeItem", new changeItem());processMap.put("shiftToWarehouse", new shiftToWarehouse());processMap.put("addDelayReason", new addDelayReason());processMap.put("reconcileCodCollection", new reconcileCodCollection());processMap.put("getTransactionsRequiringExtraProcessing", new getTransactionsRequiringExtraProcessing());processMap.put("markTransactionAsProcessed", new markTransactionAsProcessed());processMap.put("getItemWiseRiskyOrdersCount", new getItemWiseRiskyOrdersCount());processMap.put("getOrdersForItemIds", new getOrdersForItemIds());processMap.put("markOrderCancellationRequestReceived", new markOrderCancellationRequestReceived());processMap.put("markOrderCancellationRequestConfirmed", new markOrderCancellationRequestConfirmed());processMap.put("markOrderCancellationRequestDenied", new markOrderCancellationRequestDenied());processMap.put("markTransactionAsPaymentFlagRemoved", new markTransactionAsPaymentFlagRemoved());processMap.put("refundTransaction", new refundTransaction());processMap.put("updateShipmentAddress", new updateShipmentAddress());processMap.put("acceptOrdersForItemId", new acceptOrdersForItemId());processMap.put("markOrdersAsPORaised", new markOrdersAsPORaised());processMap.put("markOrdersAsReversalInitiated", new markOrdersAsReversalInitiated());processMap.put("markOrdersAsNotAvailabke", new markOrdersAsNotAvailabke());processMap.put("markOrdersAsTimeout", new markOrdersAsTimeout());processMap.put("markOrderAsLostInTransit", new markOrderAsLostInTransit());processMap.put("getOrderForAwb", new getOrderForAwb());processMap.put("getOrdersForProviderForStatus", new getOrdersForProviderForStatus());processMap.put("getBilledOrdersForVendor", new getBilledOrdersForVendor());processMap.put("getSlippedSippingDateOrders", new getSlippedSippingDateOrders());processMap.put("getCancelledOrders", new getCancelledOrders());processMap.put("saveBluedartSettlements", new saveBluedartSettlements());processMap.put("savePaymentSettlements", new savePaymentSettlements());processMap.put("saveEBSSettlementSummary", new saveEBSSettlementSummary());processMap.put("getSettlementForPrepaid", new getSettlementForPrepaid());processMap.put("getSettlementForCod", new getSettlementForCod());processMap.put("getEBSSettlementSummaries", new getEBSSettlementSummaries());processMap.put("markEBSSettlementUploaded", new markEBSSettlementUploaded());processMap.put("getEBSSettlementDate", new getEBSSettlementDate());processMap.put("getSettlementsByDate", new getSettlementsByDate());processMap.put("getReshippedOrderIds", new getReshippedOrderIds());processMap.put("getBilledOrders", new getBilledOrders());processMap.put("getStatusDistributionOfOrders", new getStatusDistributionOfOrders());processMap.put("getOrderIdsForStatus", new getOrderIdsForStatus());processMap.put("updateCODAgent", new updateCODAgent());processMap.put("updateOrderAsPaidToVendor", new updateOrderAsPaidToVendor());processMap.put("updateOrderOnlyAsPaidToVendor", new updateOrderOnlyAsPaidToVendor());processMap.put("getRefundedOrdersMarkedPaid", new getRefundedOrdersMarkedPaid());processMap.put("getAllVerificationAgents", new getAllVerificationAgents());processMap.put("getAllAttributesForOrderId", new getAllAttributesForOrderId());processMap.put("setOrderAttributes", new setOrderAttributes());processMap.put("setOrderAttributeForTransaction", new setOrderAttributeForTransaction());processMap.put("getReceivePendingOrders", new getReceivePendingOrders());processMap.put("getReceivedAtStoreOrders", new getReceivedAtStoreOrders());processMap.put("getOrdersCollectionAtStore", new getOrdersCollectionAtStore());processMap.put("getOrderAttributeValue", new getOrderAttributeValue());processMap.put("acceptOrderForItem", new acceptOrderForItem());processMap.put("createRechargeOrder", new createRechargeOrder());processMap.put("updateRechargeOrderStatus", new updateRechargeOrderStatus());processMap.put("activateRechargeTxn", new activateRechargeTxn());processMap.put("getRechargeOrders", new getRechargeOrders());processMap.put("getRechargeCoupons", new getRechargeCoupons());return processMap;}private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {public createTransaction() {super("createTransaction");}protected createTransaction_args getEmptyArgsInstance() {return new createTransaction_args();}protected createTransaction_result getResult(I iface, createTransaction_args args) throws org.apache.thrift.TException {createTransaction_result result = new createTransaction_result();try {result.success = iface.createTransaction(args.transaction);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransaction_args> {public getTransaction() {super("getTransaction");}protected getTransaction_args getEmptyArgsInstance() {return new getTransaction_args();}protected getTransaction_result getResult(I iface, getTransaction_args args) throws org.apache.thrift.TException {getTransaction_result result = new getTransaction_result();try {result.success = iface.getTransaction(args.id);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getTransactionsForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransactionsForCustomer_args> {public getTransactionsForCustomer() {super("getTransactionsForCustomer");}protected getTransactionsForCustomer_args getEmptyArgsInstance() {return new getTransactionsForCustomer_args();}protected getTransactionsForCustomer_result getResult(I iface, getTransactionsForCustomer_args args) throws org.apache.thrift.TException {getTransactionsForCustomer_result result = new getTransactionsForCustomer_result();try {result.success = iface.getTransactionsForCustomer(args.customerId, args.from_date, args.to_date, args.status);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getTransactionsForShoppingCartId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransactionsForShoppingCartId_args> {public getTransactionsForShoppingCartId() {super("getTransactionsForShoppingCartId");}protected getTransactionsForShoppingCartId_args getEmptyArgsInstance() {return new getTransactionsForShoppingCartId_args();}protected getTransactionsForShoppingCartId_result getResult(I iface, getTransactionsForShoppingCartId_args args) throws org.apache.thrift.TException {getTransactionsForShoppingCartId_result result = new getTransactionsForShoppingCartId_result();try {result.success = iface.getTransactionsForShoppingCartId(args.shoppingCartId);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getTransactionStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransactionStatus_args> {public getTransactionStatus() {super("getTransactionStatus");}protected getTransactionStatus_args getEmptyArgsInstance() {return new getTransactionStatus_args();}protected getTransactionStatus_result getResult(I iface, getTransactionStatus_args args) throws org.apache.thrift.TException {getTransactionStatus_result result = new getTransactionStatus_result();try {result.success = iface.getTransactionStatus(args.transactionId);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class changeTransactionStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeTransactionStatus_args> {public changeTransactionStatus() {super("changeTransactionStatus");}protected changeTransactionStatus_args getEmptyArgsInstance() {return new changeTransactionStatus_args();}protected changeTransactionStatus_result getResult(I iface, changeTransactionStatus_args args) throws org.apache.thrift.TException {changeTransactionStatus_result result = new changeTransactionStatus_result();try {result.success = iface.changeTransactionStatus(args.transactionId, args.status, args.description, args.pickUp, args.orderType);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class enqueueTransactionInfoEmail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enqueueTransactionInfoEmail_args> {public enqueueTransactionInfoEmail() {super("enqueueTransactionInfoEmail");}protected enqueueTransactionInfoEmail_args getEmptyArgsInstance() {return new enqueueTransactionInfoEmail_args();}protected enqueueTransactionInfoEmail_result getResult(I iface, enqueueTransactionInfoEmail_args args) throws org.apache.thrift.TException {enqueueTransactionInfoEmail_result result = new enqueueTransactionInfoEmail_result();try {result.success = iface.enqueueTransactionInfoEmail(args.transactionId);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getAllOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllOrders_args> {public getAllOrders() {super("getAllOrders");}protected getAllOrders_args getEmptyArgsInstance() {return new getAllOrders_args();}protected getAllOrders_result getResult(I iface, getAllOrders_args args) throws org.apache.thrift.TException {getAllOrders_result result = new getAllOrders_result();try {result.success = iface.getAllOrders(args.statuses, args.from_date, args.to_date, args.warehouse_id);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getOrdersInBatch<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersInBatch_args> {public getOrdersInBatch() {super("getOrdersInBatch");}protected getOrdersInBatch_args getEmptyArgsInstance() {return new getOrdersInBatch_args();}protected getOrdersInBatch_result getResult(I iface, getOrdersInBatch_args args) throws org.apache.thrift.TException {getOrdersInBatch_result result = new getOrdersInBatch_result();try {result.success = iface.getOrdersInBatch(args.statuses, args.offset, args.limit, args.warehouse_id);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getOrderCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderCount_args> {public getOrderCount() {super("getOrderCount");}protected getOrderCount_args getEmptyArgsInstance() {return new getOrderCount_args();}protected getOrderCount_result getResult(I iface, getOrderCount_args args) throws org.apache.thrift.TException {getOrderCount_result result = new getOrderCount_result();try {result.success = iface.getOrderCount(args.statuses, args.warehouseId);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getOrdersByBillingDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersByBillingDate_args> {public getOrdersByBillingDate() {super("getOrdersByBillingDate");}protected getOrdersByBillingDate_args getEmptyArgsInstance() {return new getOrdersByBillingDate_args();}protected getOrdersByBillingDate_result getResult(I iface, getOrdersByBillingDate_args args) throws org.apache.thrift.TException {getOrdersByBillingDate_result result = new getOrdersByBillingDate_result();try {result.success = iface.getOrdersByBillingDate(args.status, args.start_billing_date, args.end_billing_date, args.warehouse_id);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getOrdersByShippingDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersByShippingDate_args> {public getOrdersByShippingDate() {super("getOrdersByShippingDate");}protected getOrdersByShippingDate_args getEmptyArgsInstance() {return new getOrdersByShippingDate_args();}protected getOrdersByShippingDate_result getResult(I iface, getOrdersByShippingDate_args args) throws org.apache.thrift.TException {getOrdersByShippingDate_result result = new getOrdersByShippingDate_result();try {result.success = iface.getOrdersByShippingDate(args.fromShippingDate, args.toShippingDate, args.providerId, args.warehouseId, args.cod);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getReturnableOrdersForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReturnableOrdersForCustomer_args> {public getReturnableOrdersForCustomer() {super("getReturnableOrdersForCustomer");}protected getReturnableOrdersForCustomer_args getEmptyArgsInstance() {return new getReturnableOrdersForCustomer_args();}protected getReturnableOrdersForCustomer_result getResult(I iface, getReturnableOrdersForCustomer_args args) throws org.apache.thrift.TException {getReturnableOrdersForCustomer_result result = new getReturnableOrdersForCustomer_result();try {result.success = iface.getReturnableOrdersForCustomer(args.customer_id, args.limit);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getCancellableOrdersForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCancellableOrdersForCustomer_args> {public getCancellableOrdersForCustomer() {super("getCancellableOrdersForCustomer");}protected getCancellableOrdersForCustomer_args getEmptyArgsInstance() {return new getCancellableOrdersForCustomer_args();}protected getCancellableOrdersForCustomer_result getResult(I iface, getCancellableOrdersForCustomer_args args) throws org.apache.thrift.TException {getCancellableOrdersForCustomer_result result = new getCancellableOrdersForCustomer_result();try {result.success = iface.getCancellableOrdersForCustomer(args.customer_id, args.limit);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class changeOrderStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeOrderStatus_args> {public changeOrderStatus() {super("changeOrderStatus");}protected changeOrderStatus_args getEmptyArgsInstance() {return new changeOrderStatus_args();}protected changeOrderStatus_result getResult(I iface, changeOrderStatus_args args) throws org.apache.thrift.TException {changeOrderStatus_result result = new changeOrderStatus_result();try {result.success = iface.changeOrderStatus(args.orderId, args.status, args.description);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getOrdersForTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersForTransaction_args> {public getOrdersForTransaction() {super("getOrdersForTransaction");}protected getOrdersForTransaction_args getEmptyArgsInstance() {return new getOrdersForTransaction_args();}protected getOrdersForTransaction_result getResult(I iface, getOrdersForTransaction_args args) throws org.apache.thrift.TException {getOrdersForTransaction_result result = new getOrdersForTransaction_result();try {result.success = iface.getOrdersForTransaction(args.transactionId, args.customerId);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getOrdersForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersForCustomer_args> {public getOrdersForCustomer() {super("getOrdersForCustomer");}protected getOrdersForCustomer_args getEmptyArgsInstance() {return new getOrdersForCustomer_args();}protected getOrdersForCustomer_result getResult(I iface, getOrdersForCustomer_args args) throws org.apache.thrift.TException {getOrdersForCustomer_result result = new getOrdersForCustomer_result();try {result.success = iface.getOrdersForCustomer(args.customerId, args.from_date, args.to_date, args.statuses);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class createOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createOrder_args> {public createOrder() {super("createOrder");}protected createOrder_args getEmptyArgsInstance() {return new createOrder_args();}protected createOrder_result getResult(I iface, createOrder_args args) throws org.apache.thrift.TException {createOrder_result result = new createOrder_result();try {result.success = iface.createOrder(args.order);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrder_args> {public getOrder() {super("getOrder");}protected getOrder_args getEmptyArgsInstance() {return new getOrder_args();}protected getOrder_result getResult(I iface, getOrder_args args) throws org.apache.thrift.TException {getOrder_result result = new getOrder_result();try {result.success = iface.getOrder(args.id);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getLineItemsForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLineItemsForOrder_args> {public getLineItemsForOrder() {super("getLineItemsForOrder");}protected getLineItemsForOrder_args getEmptyArgsInstance() {return new getLineItemsForOrder_args();}protected getLineItemsForOrder_result getResult(I iface, getLineItemsForOrder_args args) throws org.apache.thrift.TException {getLineItemsForOrder_result result = new getLineItemsForOrder_result();try {result.success = iface.getLineItemsForOrder(args.orderId);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getOrderList<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderList_args> {public getOrderList() {super("getOrderList");}protected getOrderList_args getEmptyArgsInstance() {return new getOrderList_args();}protected getOrderList_result getResult(I iface, getOrderList_args args) throws org.apache.thrift.TException {getOrderList_result result = new getOrderList_result();result.success = iface.getOrderList(args.order_ids);return result;}}private static class getOrderListForVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderListForVendor_args> {public getOrderListForVendor() {super("getOrderListForVendor");}protected getOrderListForVendor_args getEmptyArgsInstance() {return new getOrderListForVendor_args();}protected getOrderListForVendor_result getResult(I iface, getOrderListForVendor_args args) throws org.apache.thrift.TException {getOrderListForVendor_result result = new getOrderListForVendor_result();result.success = iface.getOrderListForVendor(args.order_ids, args.vendorId);return result;}}private static class getOrderForCustomer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderForCustomer_args> {public getOrderForCustomer() {super("getOrderForCustomer");}protected getOrderForCustomer_args getEmptyArgsInstance() {return new getOrderForCustomer_args();}protected getOrderForCustomer_result getResult(I iface, getOrderForCustomer_args args) throws org.apache.thrift.TException {getOrderForCustomer_result result = new getOrderForCustomer_result();try {result.success = iface.getOrderForCustomer(args.orderId, args.customerId);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getAlerts<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAlerts_args> {public getAlerts() {super("getAlerts");}protected getAlerts_args getEmptyArgsInstance() {return new getAlerts_args();}protected getAlerts_result getResult(I iface, getAlerts_args args) throws org.apache.thrift.TException {getAlerts_result result = new getAlerts_result();result.success = iface.getAlerts(args.type, args.warehouseId, args.status, args.timestamp);return result;}}private static class addAlert<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addAlert_args> {public addAlert() {super("addAlert");}protected addAlert_args getEmptyArgsInstance() {return new addAlert_args();}protected addAlert_result getResult(I iface, addAlert_args args) throws org.apache.thrift.TException {addAlert_result result = new addAlert_result();iface.addAlert(args.type, args.warehouseId, args.description);return result;}}private static class markAlertsAsSeen<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markAlertsAsSeen_args> {public markAlertsAsSeen() {super("markAlertsAsSeen");}protected markAlertsAsSeen_args getEmptyArgsInstance() {return new markAlertsAsSeen_args();}protected markAlertsAsSeen_result getResult(I iface, markAlertsAsSeen_args args) throws org.apache.thrift.TException {markAlertsAsSeen_result result = new markAlertsAsSeen_result();iface.markAlertsAsSeen(args.warehouseId);return result;}}private static class getValidOrderCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getValidOrderCount_args> {public getValidOrderCount() {super("getValidOrderCount");}protected getValidOrderCount_args getEmptyArgsInstance() {return new getValidOrderCount_args();}protected getValidOrderCount_result getResult(I iface, getValidOrderCount_args args) throws org.apache.thrift.TException {getValidOrderCount_result result = new getValidOrderCount_result();result.success = iface.getValidOrderCount();result.setSuccessIsSet(true);return result;}}private static class getNoOfCustomersWithSuccessfulTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNoOfCustomersWithSuccessfulTransaction_args> {public getNoOfCustomersWithSuccessfulTransaction() {super("getNoOfCustomersWithSuccessfulTransaction");}protected getNoOfCustomersWithSuccessfulTransaction_args getEmptyArgsInstance() {return new getNoOfCustomersWithSuccessfulTransaction_args();}protected getNoOfCustomersWithSuccessfulTransaction_result getResult(I iface, getNoOfCustomersWithSuccessfulTransaction_args args) throws org.apache.thrift.TException {getNoOfCustomersWithSuccessfulTransaction_result result = new getNoOfCustomersWithSuccessfulTransaction_result();result.success = iface.getNoOfCustomersWithSuccessfulTransaction();result.setSuccessIsSet(true);return result;}}private static class getValidOrdersAmountRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getValidOrdersAmountRange_args> {public getValidOrdersAmountRange() {super("getValidOrdersAmountRange");}protected getValidOrdersAmountRange_args getEmptyArgsInstance() {return new getValidOrdersAmountRange_args();}protected getValidOrdersAmountRange_result getResult(I iface, getValidOrdersAmountRange_args args) throws org.apache.thrift.TException {getValidOrdersAmountRange_result result = new getValidOrdersAmountRange_result();result.success = iface.getValidOrdersAmountRange();return result;}}private static class getValidOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getValidOrders_args> {public getValidOrders() {super("getValidOrders");}protected getValidOrders_args getEmptyArgsInstance() {return new getValidOrders_args();}protected getValidOrders_result getResult(I iface, getValidOrders_args args) throws org.apache.thrift.TException {getValidOrders_result result = new getValidOrders_result();result.success = iface.getValidOrders(args.limit, args.onlyStore);return result;}}private static class batchOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, batchOrders_args> {public batchOrders() {super("batchOrders");}protected batchOrders_args getEmptyArgsInstance() {return new batchOrders_args();}protected batchOrders_result getResult(I iface, batchOrders_args args) throws org.apache.thrift.TException {batchOrders_result result = new batchOrders_result();try {result.success = iface.batchOrders(args.warehouseId);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markOrderAsOutOfStock<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderAsOutOfStock_args> {public markOrderAsOutOfStock() {super("markOrderAsOutOfStock");}protected markOrderAsOutOfStock_args getEmptyArgsInstance() {return new markOrderAsOutOfStock_args();}protected markOrderAsOutOfStock_result getResult(I iface, markOrderAsOutOfStock_args args) throws org.apache.thrift.TException {markOrderAsOutOfStock_result result = new markOrderAsOutOfStock_result();try {result.success = iface.markOrderAsOutOfStock(args.orderId);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class verifyOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, verifyOrder_args> {public verifyOrder() {super("verifyOrder");}protected verifyOrder_args getEmptyArgsInstance() {return new verifyOrder_args();}protected verifyOrder_result getResult(I iface, verifyOrder_args args) throws org.apache.thrift.TException {verifyOrder_result result = new verifyOrder_result();try {result.success = iface.verifyOrder(args.orderId);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class acceptOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, acceptOrder_args> {public acceptOrder() {super("acceptOrder");}protected acceptOrder_args getEmptyArgsInstance() {return new acceptOrder_args();}protected acceptOrder_result getResult(I iface, acceptOrder_args args) throws org.apache.thrift.TException {acceptOrder_result result = new acceptOrder_result();try {result.success = iface.acceptOrder(args.orderId);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class addBillingDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addBillingDetails_args> {public addBillingDetails() {super("addBillingDetails");}protected addBillingDetails_args getEmptyArgsInstance() {return new addBillingDetails_args();}protected addBillingDetails_result getResult(I iface, addBillingDetails_args args) throws org.apache.thrift.TException {addBillingDetails_result result = new addBillingDetails_result();try {result.success = iface.addBillingDetails(args.orderId, args.invoice_number, args.serialNumber, args.itemNumber, args.billed_by, args.jacketNumber, args.billingType, args.fulfilmentWarehouseId, args.authorize);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class addInvoiceNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addInvoiceNumber_args> {public addInvoiceNumber() {super("addInvoiceNumber");}protected addInvoiceNumber_args getEmptyArgsInstance() {return new addInvoiceNumber_args();}protected addInvoiceNumber_result getResult(I iface, addInvoiceNumber_args args) throws org.apache.thrift.TException {addInvoiceNumber_result result = new addInvoiceNumber_result();try {iface.addInvoiceNumber(args.orderId, args.invoiceNumber, args.color);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markOrdersAsShippedFromWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsShippedFromWarehouse_args> {public markOrdersAsShippedFromWarehouse() {super("markOrdersAsShippedFromWarehouse");}protected markOrdersAsShippedFromWarehouse_args getEmptyArgsInstance() {return new markOrdersAsShippedFromWarehouse_args();}protected markOrdersAsShippedFromWarehouse_result getResult(I iface, markOrdersAsShippedFromWarehouse_args args) throws org.apache.thrift.TException {markOrdersAsShippedFromWarehouse_result result = new markOrdersAsShippedFromWarehouse_result();try {result.success = iface.markOrdersAsShippedFromWarehouse(args.warehouseId, args.providerId, args.cod, args.orderIds);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markOrdersAsReturnedFromStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsReturnedFromStore_args> {public markOrdersAsReturnedFromStore() {super("markOrdersAsReturnedFromStore");}protected markOrdersAsReturnedFromStore_args getEmptyArgsInstance() {return new markOrdersAsReturnedFromStore_args();}protected markOrdersAsReturnedFromStore_result getResult(I iface, markOrdersAsReturnedFromStore_args args) throws org.apache.thrift.TException {markOrdersAsReturnedFromStore_result result = new markOrdersAsReturnedFromStore_result();try {result.success = iface.markOrdersAsReturnedFromStore(args.providerId, args.orderIds, args.awbs);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markOrdersAsPickedUp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsPickedUp_args> {public markOrdersAsPickedUp() {super("markOrdersAsPickedUp");}protected markOrdersAsPickedUp_args getEmptyArgsInstance() {return new markOrdersAsPickedUp_args();}protected markOrdersAsPickedUp_result getResult(I iface, markOrdersAsPickedUp_args args) throws org.apache.thrift.TException {markOrdersAsPickedUp_result result = new markOrdersAsPickedUp_result();try {iface.markOrdersAsPickedUp(args.providerId, args.pickupDetails);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getOrdersNotPickedUp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersNotPickedUp_args> {public getOrdersNotPickedUp() {super("getOrdersNotPickedUp");}protected getOrdersNotPickedUp_args getEmptyArgsInstance() {return new getOrdersNotPickedUp_args();}protected getOrdersNotPickedUp_result getResult(I iface, getOrdersNotPickedUp_args args) throws org.apache.thrift.TException {getOrdersNotPickedUp_result result = new getOrdersNotPickedUp_result();result.success = iface.getOrdersNotPickedUp(args.providerId);return result;}}private static class markOrdersAsDelivered<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsDelivered_args> {public markOrdersAsDelivered() {super("markOrdersAsDelivered");}protected markOrdersAsDelivered_args getEmptyArgsInstance() {return new markOrdersAsDelivered_args();}protected markOrdersAsDelivered_result getResult(I iface, markOrdersAsDelivered_args args) throws org.apache.thrift.TException {markOrdersAsDelivered_result result = new markOrdersAsDelivered_result();try {iface.markOrdersAsDelivered(args.providerId, args.deliveredOrders);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markAsRTOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markAsRTOrders_args> {public markAsRTOrders() {super("markAsRTOrders");}protected markAsRTOrders_args getEmptyArgsInstance() {return new markAsRTOrders_args();}protected markAsRTOrders_result getResult(I iface, markAsRTOrders_args args) throws org.apache.thrift.TException {markAsRTOrders_result result = new markAsRTOrders_result();try {iface.markAsRTOrders(args.providerId, args.returnedOrders);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getRTOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRTOrders_args> {public getRTOrders() {super("getRTOrders");}protected getRTOrders_args getEmptyArgsInstance() {return new getRTOrders_args();}protected getRTOrders_result getResult(I iface, getRTOrders_args args) throws org.apache.thrift.TException {getRTOrders_result result = new getRTOrders_result();result.success = iface.getRTOrders(args.providerId);return result;}}private static class updateNonDeliveryReason<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateNonDeliveryReason_args> {public updateNonDeliveryReason() {super("updateNonDeliveryReason");}protected updateNonDeliveryReason_args getEmptyArgsInstance() {return new updateNonDeliveryReason_args();}protected updateNonDeliveryReason_result getResult(I iface, updateNonDeliveryReason_args args) throws org.apache.thrift.TException {updateNonDeliveryReason_result result = new updateNonDeliveryReason_result();try {iface.updateNonDeliveryReason(args.providerId, args.undeliveredOrders);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getNonDeliveredOrdersbyCourier<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNonDeliveredOrdersbyCourier_args> {public getNonDeliveredOrdersbyCourier() {super("getNonDeliveredOrdersbyCourier");}protected getNonDeliveredOrdersbyCourier_args getEmptyArgsInstance() {return new getNonDeliveredOrdersbyCourier_args();}protected getNonDeliveredOrdersbyCourier_result getResult(I iface, getNonDeliveredOrdersbyCourier_args args) throws org.apache.thrift.TException {getNonDeliveredOrdersbyCourier_result result = new getNonDeliveredOrdersbyCourier_result();result.success = iface.getNonDeliveredOrdersbyCourier(args.providerId);return result;}}private static class markOrdersAsLocalConnected<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsLocalConnected_args> {public markOrdersAsLocalConnected() {super("markOrdersAsLocalConnected");}protected markOrdersAsLocalConnected_args getEmptyArgsInstance() {return new markOrdersAsLocalConnected_args();}protected markOrdersAsLocalConnected_result getResult(I iface, markOrdersAsLocalConnected_args args) throws org.apache.thrift.TException {markOrdersAsLocalConnected_result result = new markOrdersAsLocalConnected_result();try {iface.markOrdersAsLocalConnected(args.providerId, args.local_connected_orders);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getOrdersNotLocalConnected<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersNotLocalConnected_args> {public getOrdersNotLocalConnected() {super("getOrdersNotLocalConnected");}protected getOrdersNotLocalConnected_args getEmptyArgsInstance() {return new getOrdersNotLocalConnected_args();}protected getOrdersNotLocalConnected_result getResult(I iface, getOrdersNotLocalConnected_args args) throws org.apache.thrift.TException {getOrdersNotLocalConnected_result result = new getOrdersNotLocalConnected_result();result.success = iface.getOrdersNotLocalConnected(args.providerId);return result;}}private static class markOrdersAsDestinationCityReached<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsDestinationCityReached_args> {public markOrdersAsDestinationCityReached() {super("markOrdersAsDestinationCityReached");}protected markOrdersAsDestinationCityReached_args getEmptyArgsInstance() {return new markOrdersAsDestinationCityReached_args();}protected markOrdersAsDestinationCityReached_result getResult(I iface, markOrdersAsDestinationCityReached_args args) throws org.apache.thrift.TException {markOrdersAsDestinationCityReached_result result = new markOrdersAsDestinationCityReached_result();try {iface.markOrdersAsDestinationCityReached(args.providerId, args.destination_city_reached_orders);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markOrdersAsFirstDeliveryAttempted<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsFirstDeliveryAttempted_args> {public markOrdersAsFirstDeliveryAttempted() {super("markOrdersAsFirstDeliveryAttempted");}protected markOrdersAsFirstDeliveryAttempted_args getEmptyArgsInstance() {return new markOrdersAsFirstDeliveryAttempted_args();}protected markOrdersAsFirstDeliveryAttempted_result getResult(I iface, markOrdersAsFirstDeliveryAttempted_args args) throws org.apache.thrift.TException {markOrdersAsFirstDeliveryAttempted_result result = new markOrdersAsFirstDeliveryAttempted_result();try {iface.markOrdersAsFirstDeliveryAttempted(args.providerId, args.first_atdl_orders);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getUndeliveredOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUndeliveredOrders_args> {public getUndeliveredOrders() {super("getUndeliveredOrders");}protected getUndeliveredOrders_args getEmptyArgsInstance() {return new getUndeliveredOrders_args();}protected getUndeliveredOrders_result getResult(I iface, getUndeliveredOrders_args args) throws org.apache.thrift.TException {getUndeliveredOrders_result result = new getUndeliveredOrders_result();result.success = iface.getUndeliveredOrders(args.providerId, args.warehouseId);return result;}}private static class getUndeliveredOrdersExpectedDeliveryDateNotMet<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUndeliveredOrdersExpectedDeliveryDateNotMet_args> {public getUndeliveredOrdersExpectedDeliveryDateNotMet() {super("getUndeliveredOrdersExpectedDeliveryDateNotMet");}protected getUndeliveredOrdersExpectedDeliveryDateNotMet_args getEmptyArgsInstance() {return new getUndeliveredOrdersExpectedDeliveryDateNotMet_args();}protected getUndeliveredOrdersExpectedDeliveryDateNotMet_result getResult(I iface, getUndeliveredOrdersExpectedDeliveryDateNotMet_args args) throws org.apache.thrift.TException {getUndeliveredOrdersExpectedDeliveryDateNotMet_result result = new getUndeliveredOrdersExpectedDeliveryDateNotMet_result();result.success = iface.getUndeliveredOrdersExpectedDeliveryDateNotMet();return result;}}private static class toggleDOAFlag<I extends Iface> extends org.apache.thrift.ProcessFunction<I, toggleDOAFlag_args> {public toggleDOAFlag() {super("toggleDOAFlag");}protected toggleDOAFlag_args getEmptyArgsInstance() {return new toggleDOAFlag_args();}protected toggleDOAFlag_result getResult(I iface, toggleDOAFlag_args args) throws org.apache.thrift.TException {toggleDOAFlag_result result = new toggleDOAFlag_result();try {result.success = iface.toggleDOAFlag(args.orderId);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markOrderAsDelivered<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderAsDelivered_args> {public markOrderAsDelivered() {super("markOrderAsDelivered");}protected markOrderAsDelivered_args getEmptyArgsInstance() {return new markOrderAsDelivered_args();}protected markOrderAsDelivered_result getResult(I iface, markOrderAsDelivered_args args) throws org.apache.thrift.TException {markOrderAsDelivered_result result = new markOrderAsDelivered_result();try {iface.markOrderAsDelivered(args.orderId, args.deliveryTimestamp, args.receiver);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markOrderAsReceivedAtStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderAsReceivedAtStore_args> {public markOrderAsReceivedAtStore() {super("markOrderAsReceivedAtStore");}protected markOrderAsReceivedAtStore_args getEmptyArgsInstance() {return new markOrderAsReceivedAtStore_args();}protected markOrderAsReceivedAtStore_result getResult(I iface, markOrderAsReceivedAtStore_args args) throws org.apache.thrift.TException {markOrderAsReceivedAtStore_result result = new markOrderAsReceivedAtStore_result();try {iface.markOrderAsReceivedAtStore(args.orderId, args.deliveryTimestamp);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markOrderDoaRequestReceived<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderDoaRequestReceived_args> {public markOrderDoaRequestReceived() {super("markOrderDoaRequestReceived");}protected markOrderDoaRequestReceived_args getEmptyArgsInstance() {return new markOrderDoaRequestReceived_args();}protected markOrderDoaRequestReceived_result getResult(I iface, markOrderDoaRequestReceived_args args) throws org.apache.thrift.TException {markOrderDoaRequestReceived_result result = new markOrderDoaRequestReceived_result();try {result.success = iface.markOrderDoaRequestReceived(args.orderId);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markOrderDoaRequestAuthorized<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderDoaRequestAuthorized_args> {public markOrderDoaRequestAuthorized() {super("markOrderDoaRequestAuthorized");}protected markOrderDoaRequestAuthorized_args getEmptyArgsInstance() {return new markOrderDoaRequestAuthorized_args();}protected markOrderDoaRequestAuthorized_result getResult(I iface, markOrderDoaRequestAuthorized_args args) throws org.apache.thrift.TException {markOrderDoaRequestAuthorized_result result = new markOrderDoaRequestAuthorized_result();try {result.success = iface.markOrderDoaRequestAuthorized(args.orderId, args.isAuthorized);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markOrderReturnRequestReceived<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderReturnRequestReceived_args> {public markOrderReturnRequestReceived() {super("markOrderReturnRequestReceived");}protected markOrderReturnRequestReceived_args getEmptyArgsInstance() {return new markOrderReturnRequestReceived_args();}protected markOrderReturnRequestReceived_result getResult(I iface, markOrderReturnRequestReceived_args args) throws org.apache.thrift.TException {markOrderReturnRequestReceived_result result = new markOrderReturnRequestReceived_result();try {result.success = iface.markOrderReturnRequestReceived(args.orderId);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markOrderReturnRequestAuthorized<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderReturnRequestAuthorized_args> {public markOrderReturnRequestAuthorized() {super("markOrderReturnRequestAuthorized");}protected markOrderReturnRequestAuthorized_args getEmptyArgsInstance() {return new markOrderReturnRequestAuthorized_args();}protected markOrderReturnRequestAuthorized_result getResult(I iface, markOrderReturnRequestAuthorized_args args) throws org.apache.thrift.TException {markOrderReturnRequestAuthorized_result result = new markOrderReturnRequestAuthorized_result();try {result.success = iface.markOrderReturnRequestAuthorized(args.orderId, args.isAuthorized);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class requestPickupNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, requestPickupNumber_args> {public requestPickupNumber() {super("requestPickupNumber");}protected requestPickupNumber_args getEmptyArgsInstance() {return new requestPickupNumber_args();}protected requestPickupNumber_result getResult(I iface, requestPickupNumber_args args) throws org.apache.thrift.TException {requestPickupNumber_result result = new requestPickupNumber_result();try {result.success = iface.requestPickupNumber(args.orderId, args.providerId);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class authorizePickup<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authorizePickup_args> {public authorizePickup() {super("authorizePickup");}protected authorizePickup_args getEmptyArgsInstance() {return new authorizePickup_args();}protected authorizePickup_result getResult(I iface, authorizePickup_args args) throws org.apache.thrift.TException {authorizePickup_result result = new authorizePickup_result();try {result.success = iface.authorizePickup(args.orderId, args.pickupNumber, args.providerId);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markDoasAsPickedUp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markDoasAsPickedUp_args> {public markDoasAsPickedUp() {super("markDoasAsPickedUp");}protected markDoasAsPickedUp_args getEmptyArgsInstance() {return new markDoasAsPickedUp_args();}protected markDoasAsPickedUp_result getResult(I iface, markDoasAsPickedUp_args args) throws org.apache.thrift.TException {markDoasAsPickedUp_result result = new markDoasAsPickedUp_result();iface.markDoasAsPickedUp(args.providerId, args.pickupDetails);return result;}}private static class getDoasNotPickedUp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDoasNotPickedUp_args> {public getDoasNotPickedUp() {super("getDoasNotPickedUp");}protected getDoasNotPickedUp_args getEmptyArgsInstance() {return new getDoasNotPickedUp_args();}protected getDoasNotPickedUp_result getResult(I iface, getDoasNotPickedUp_args args) throws org.apache.thrift.TException {getDoasNotPickedUp_result result = new getDoasNotPickedUp_result();result.success = iface.getDoasNotPickedUp(args.providerId);return result;}}private static class markReturnOrdersAsPickedUp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markReturnOrdersAsPickedUp_args> {public markReturnOrdersAsPickedUp() {super("markReturnOrdersAsPickedUp");}protected markReturnOrdersAsPickedUp_args getEmptyArgsInstance() {return new markReturnOrdersAsPickedUp_args();}protected markReturnOrdersAsPickedUp_result getResult(I iface, markReturnOrdersAsPickedUp_args args) throws org.apache.thrift.TException {markReturnOrdersAsPickedUp_result result = new markReturnOrdersAsPickedUp_result();iface.markReturnOrdersAsPickedUp(args.providerId, args.pickupDetails);return result;}}private static class getReturnOrdersNotPickedUp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReturnOrdersNotPickedUp_args> {public getReturnOrdersNotPickedUp() {super("getReturnOrdersNotPickedUp");}protected getReturnOrdersNotPickedUp_args getEmptyArgsInstance() {return new getReturnOrdersNotPickedUp_args();}protected getReturnOrdersNotPickedUp_result getResult(I iface, getReturnOrdersNotPickedUp_args args) throws org.apache.thrift.TException {getReturnOrdersNotPickedUp_result result = new getReturnOrdersNotPickedUp_result();result.success = iface.getReturnOrdersNotPickedUp(args.providerId);return result;}}private static class receiveReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, receiveReturn_args> {public receiveReturn() {super("receiveReturn");}protected receiveReturn_args getEmptyArgsInstance() {return new receiveReturn_args();}protected receiveReturn_result getResult(I iface, receiveReturn_args args) throws org.apache.thrift.TException {receiveReturn_result result = new receiveReturn_result();try {result.success = iface.receiveReturn(args.orderId, args.receiveCondition);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class validateDoa<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateDoa_args> {public validateDoa() {super("validateDoa");}protected validateDoa_args getEmptyArgsInstance() {return new validateDoa_args();}protected validateDoa_result getResult(I iface, validateDoa_args args) throws org.apache.thrift.TException {validateDoa_result result = new validateDoa_result();try {result.success = iface.validateDoa(args.orderId, args.isValid);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class validateReturnProduct<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateReturnProduct_args> {public validateReturnProduct() {super("validateReturnProduct");}protected validateReturnProduct_args getEmptyArgsInstance() {return new validateReturnProduct_args();}protected validateReturnProduct_result getResult(I iface, validateReturnProduct_args args) throws org.apache.thrift.TException {validateReturnProduct_result result = new validateReturnProduct_result();try {result.success = iface.validateReturnProduct(args.orderId, args.isUsable);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class reshipOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reshipOrder_args> {public reshipOrder() {super("reshipOrder");}protected reshipOrder_args getEmptyArgsInstance() {return new reshipOrder_args();}protected reshipOrder_result getResult(I iface, reshipOrder_args args) throws org.apache.thrift.TException {reshipOrder_result result = new reshipOrder_result();try {result.success = iface.reshipOrder(args.orderId);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class refundOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, refundOrder_args> {public refundOrder() {super("refundOrder");}protected refundOrder_args getEmptyArgsInstance() {return new refundOrder_args();}protected refundOrder_result getResult(I iface, refundOrder_args args) throws org.apache.thrift.TException {refundOrder_result result = new refundOrder_result();try {result.success = iface.refundOrder(args.orderId, args.refundedBy, args.reason);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getReturnOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReturnOrders_args> {public getReturnOrders() {super("getReturnOrders");}protected getReturnOrders_args getEmptyArgsInstance() {return new getReturnOrders_args();}protected getReturnOrders_result getResult(I iface, getReturnOrders_args args) throws org.apache.thrift.TException {getReturnOrders_result result = new getReturnOrders_result();result.success = iface.getReturnOrders(args.warehouseId, args.fromDate, args.toDate);return result;}}private static class getAllReturnOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllReturnOrders_args> {public getAllReturnOrders() {super("getAllReturnOrders");}protected getAllReturnOrders_args getEmptyArgsInstance() {return new getAllReturnOrders_args();}protected getAllReturnOrders_result getResult(I iface, getAllReturnOrders_args args) throws org.apache.thrift.TException {getAllReturnOrders_result result = new getAllReturnOrders_result();result.success = iface.getAllReturnOrders(args.onlyNotProcessed, args.fromDate, args.toDate);return result;}}private static class getReturnOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReturnOrder_args> {public getReturnOrder() {super("getReturnOrder");}protected getReturnOrder_args getEmptyArgsInstance() {return new getReturnOrder_args();}protected getReturnOrder_result getResult(I iface, getReturnOrder_args args) throws org.apache.thrift.TException {getReturnOrder_result result = new getReturnOrder_result();try {result.success = iface.getReturnOrder(args.id);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class processReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, processReturn_args> {public processReturn() {super("processReturn");}protected processReturn_args getEmptyArgsInstance() {return new processReturn_args();}protected processReturn_result getResult(I iface, processReturn_args args) throws org.apache.thrift.TException {processReturn_result result = new processReturn_result();try {iface.processReturn(args.returnOrderId);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class updateWeight<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateWeight_args> {public updateWeight() {super("updateWeight");}protected updateWeight_args getEmptyArgsInstance() {return new updateWeight_args();}protected updateWeight_result getResult(I iface, updateWeight_args args) throws org.apache.thrift.TException {updateWeight_result result = new updateWeight_result();try {result.success = iface.updateWeight(args.orderId, args.weight);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class changeItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeItem_args> {public changeItem() {super("changeItem");}protected changeItem_args getEmptyArgsInstance() {return new changeItem_args();}protected changeItem_result getResult(I iface, changeItem_args args) throws org.apache.thrift.TException {changeItem_result result = new changeItem_result();try {result.success = iface.changeItem(args.orderId, args.itemId);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class shiftToWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shiftToWarehouse_args> {public shiftToWarehouse() {super("shiftToWarehouse");}protected shiftToWarehouse_args getEmptyArgsInstance() {return new shiftToWarehouse_args();}protected shiftToWarehouse_result getResult(I iface, shiftToWarehouse_args args) throws org.apache.thrift.TException {shiftToWarehouse_result result = new shiftToWarehouse_result();try {result.success = iface.shiftToWarehouse(args.orderId, args.warehouseId);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class addDelayReason<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addDelayReason_args> {public addDelayReason() {super("addDelayReason");}protected addDelayReason_args getEmptyArgsInstance() {return new addDelayReason_args();}protected addDelayReason_result getResult(I iface, addDelayReason_args args) throws org.apache.thrift.TException {addDelayReason_result result = new addDelayReason_result();try {result.success = iface.addDelayReason(args.orderId, args.delayReason, args.furtherDelay, args.delayReasonText);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class reconcileCodCollection<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reconcileCodCollection_args> {public reconcileCodCollection() {super("reconcileCodCollection");}protected reconcileCodCollection_args getEmptyArgsInstance() {return new reconcileCodCollection_args();}protected reconcileCodCollection_result getResult(I iface, reconcileCodCollection_args args) throws org.apache.thrift.TException {reconcileCodCollection_result result = new reconcileCodCollection_result();try {result.success = iface.reconcileCodCollection(args.collectedAmountMap, args.xferBy, args.xferTxnId, args.xferDate);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getTransactionsRequiringExtraProcessing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransactionsRequiringExtraProcessing_args> {public getTransactionsRequiringExtraProcessing() {super("getTransactionsRequiringExtraProcessing");}protected getTransactionsRequiringExtraProcessing_args getEmptyArgsInstance() {return new getTransactionsRequiringExtraProcessing_args();}protected getTransactionsRequiringExtraProcessing_result getResult(I iface, getTransactionsRequiringExtraProcessing_args args) throws org.apache.thrift.TException {getTransactionsRequiringExtraProcessing_result result = new getTransactionsRequiringExtraProcessing_result();result.success = iface.getTransactionsRequiringExtraProcessing(args.category);return result;}}private static class markTransactionAsProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markTransactionAsProcessed_args> {public markTransactionAsProcessed() {super("markTransactionAsProcessed");}protected markTransactionAsProcessed_args getEmptyArgsInstance() {return new markTransactionAsProcessed_args();}protected markTransactionAsProcessed_result getResult(I iface, markTransactionAsProcessed_args args) throws org.apache.thrift.TException {markTransactionAsProcessed_result result = new markTransactionAsProcessed_result();iface.markTransactionAsProcessed(args.transactionId, args.category);return result;}}private static class getItemWiseRiskyOrdersCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemWiseRiskyOrdersCount_args> {public getItemWiseRiskyOrdersCount() {super("getItemWiseRiskyOrdersCount");}protected getItemWiseRiskyOrdersCount_args getEmptyArgsInstance() {return new getItemWiseRiskyOrdersCount_args();}protected getItemWiseRiskyOrdersCount_result getResult(I iface, getItemWiseRiskyOrdersCount_args args) throws org.apache.thrift.TException {getItemWiseRiskyOrdersCount_result result = new getItemWiseRiskyOrdersCount_result();result.success = iface.getItemWiseRiskyOrdersCount();return result;}}private static class getOrdersForItemIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersForItemIds_args> {public getOrdersForItemIds() {super("getOrdersForItemIds");}protected getOrdersForItemIds_args getEmptyArgsInstance() {return new getOrdersForItemIds_args();}protected getOrdersForItemIds_result getResult(I iface, getOrdersForItemIds_args args) throws org.apache.thrift.TException {getOrdersForItemIds_result result = new getOrdersForItemIds_result();result.success = iface.getOrdersForItemIds(args.itemIds);return result;}}private static class markOrderCancellationRequestReceived<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderCancellationRequestReceived_args> {public markOrderCancellationRequestReceived() {super("markOrderCancellationRequestReceived");}protected markOrderCancellationRequestReceived_args getEmptyArgsInstance() {return new markOrderCancellationRequestReceived_args();}protected markOrderCancellationRequestReceived_result getResult(I iface, markOrderCancellationRequestReceived_args args) throws org.apache.thrift.TException {markOrderCancellationRequestReceived_result result = new markOrderCancellationRequestReceived_result();try {iface.markOrderCancellationRequestReceived(args.orderId);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markOrderCancellationRequestConfirmed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderCancellationRequestConfirmed_args> {public markOrderCancellationRequestConfirmed() {super("markOrderCancellationRequestConfirmed");}protected markOrderCancellationRequestConfirmed_args getEmptyArgsInstance() {return new markOrderCancellationRequestConfirmed_args();}protected markOrderCancellationRequestConfirmed_result getResult(I iface, markOrderCancellationRequestConfirmed_args args) throws org.apache.thrift.TException {markOrderCancellationRequestConfirmed_result result = new markOrderCancellationRequestConfirmed_result();try {iface.markOrderCancellationRequestConfirmed(args.orderId);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markOrderCancellationRequestDenied<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderCancellationRequestDenied_args> {public markOrderCancellationRequestDenied() {super("markOrderCancellationRequestDenied");}protected markOrderCancellationRequestDenied_args getEmptyArgsInstance() {return new markOrderCancellationRequestDenied_args();}protected markOrderCancellationRequestDenied_result getResult(I iface, markOrderCancellationRequestDenied_args args) throws org.apache.thrift.TException {markOrderCancellationRequestDenied_result result = new markOrderCancellationRequestDenied_result();try {iface.markOrderCancellationRequestDenied(args.orderId);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markTransactionAsPaymentFlagRemoved<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markTransactionAsPaymentFlagRemoved_args> {public markTransactionAsPaymentFlagRemoved() {super("markTransactionAsPaymentFlagRemoved");}protected markTransactionAsPaymentFlagRemoved_args getEmptyArgsInstance() {return new markTransactionAsPaymentFlagRemoved_args();}protected markTransactionAsPaymentFlagRemoved_result getResult(I iface, markTransactionAsPaymentFlagRemoved_args args) throws org.apache.thrift.TException {markTransactionAsPaymentFlagRemoved_result result = new markTransactionAsPaymentFlagRemoved_result();try {iface.markTransactionAsPaymentFlagRemoved(args.transactionId);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class refundTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, refundTransaction_args> {public refundTransaction() {super("refundTransaction");}protected refundTransaction_args getEmptyArgsInstance() {return new refundTransaction_args();}protected refundTransaction_result getResult(I iface, refundTransaction_args args) throws org.apache.thrift.TException {refundTransaction_result result = new refundTransaction_result();try {iface.refundTransaction(args.transactionId, args.refundedBy, args.reason);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class updateShipmentAddress<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateShipmentAddress_args> {public updateShipmentAddress() {super("updateShipmentAddress");}protected updateShipmentAddress_args getEmptyArgsInstance() {return new updateShipmentAddress_args();}protected updateShipmentAddress_result getResult(I iface, updateShipmentAddress_args args) throws org.apache.thrift.TException {updateShipmentAddress_result result = new updateShipmentAddress_result();try {iface.updateShipmentAddress(args.orderId, args.addressId);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class acceptOrdersForItemId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, acceptOrdersForItemId_args> {public acceptOrdersForItemId() {super("acceptOrdersForItemId");}protected acceptOrdersForItemId_args getEmptyArgsInstance() {return new acceptOrdersForItemId_args();}protected acceptOrdersForItemId_result getResult(I iface, acceptOrdersForItemId_args args) throws org.apache.thrift.TException {acceptOrdersForItemId_result result = new acceptOrdersForItemId_result();try {result.success = iface.acceptOrdersForItemId(args.itemId, args.inventory);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markOrdersAsPORaised<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsPORaised_args> {public markOrdersAsPORaised() {super("markOrdersAsPORaised");}protected markOrdersAsPORaised_args getEmptyArgsInstance() {return new markOrdersAsPORaised_args();}protected markOrdersAsPORaised_result getResult(I iface, markOrdersAsPORaised_args args) throws org.apache.thrift.TException {markOrdersAsPORaised_result result = new markOrdersAsPORaised_result();try {iface.markOrdersAsPORaised(args.vendorId, args.itemId, args.quantity, args.estimate, args.isReminder);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markOrdersAsReversalInitiated<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsReversalInitiated_args> {public markOrdersAsReversalInitiated() {super("markOrdersAsReversalInitiated");}protected markOrdersAsReversalInitiated_args getEmptyArgsInstance() {return new markOrdersAsReversalInitiated_args();}protected markOrdersAsReversalInitiated_result getResult(I iface, markOrdersAsReversalInitiated_args args) throws org.apache.thrift.TException {markOrdersAsReversalInitiated_result result = new markOrdersAsReversalInitiated_result();try {iface.markOrdersAsReversalInitiated(args.vendorId, args.itemId, args.quantity, args.estimate, args.isReminder);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markOrdersAsNotAvailabke<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsNotAvailabke_args> {public markOrdersAsNotAvailabke() {super("markOrdersAsNotAvailabke");}protected markOrdersAsNotAvailabke_args getEmptyArgsInstance() {return new markOrdersAsNotAvailabke_args();}protected markOrdersAsNotAvailabke_result getResult(I iface, markOrdersAsNotAvailabke_args args) throws org.apache.thrift.TException {markOrdersAsNotAvailabke_result result = new markOrdersAsNotAvailabke_result();try {iface.markOrdersAsNotAvailabke(args.vendorId, args.itemId, args.quantity, args.estimate, args.isReminder);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markOrdersAsTimeout<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrdersAsTimeout_args> {public markOrdersAsTimeout() {super("markOrdersAsTimeout");}protected markOrdersAsTimeout_args getEmptyArgsInstance() {return new markOrdersAsTimeout_args();}protected markOrdersAsTimeout_result getResult(I iface, markOrdersAsTimeout_args args) throws org.apache.thrift.TException {markOrdersAsTimeout_result result = new markOrdersAsTimeout_result();try {result.success = iface.markOrdersAsTimeout(args.vendorId);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markOrderAsLostInTransit<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markOrderAsLostInTransit_args> {public markOrderAsLostInTransit() {super("markOrderAsLostInTransit");}protected markOrderAsLostInTransit_args getEmptyArgsInstance() {return new markOrderAsLostInTransit_args();}protected markOrderAsLostInTransit_result getResult(I iface, markOrderAsLostInTransit_args args) throws org.apache.thrift.TException {markOrderAsLostInTransit_result result = new markOrderAsLostInTransit_result();try {result.success = iface.markOrderAsLostInTransit(args.orderId);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getOrderForAwb<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderForAwb_args> {public getOrderForAwb() {super("getOrderForAwb");}protected getOrderForAwb_args getEmptyArgsInstance() {return new getOrderForAwb_args();}protected getOrderForAwb_result getResult(I iface, getOrderForAwb_args args) throws org.apache.thrift.TException {getOrderForAwb_result result = new getOrderForAwb_result();try {result.success = iface.getOrderForAwb(args.awb);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getOrdersForProviderForStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersForProviderForStatus_args> {public getOrdersForProviderForStatus() {super("getOrdersForProviderForStatus");}protected getOrdersForProviderForStatus_args getEmptyArgsInstance() {return new getOrdersForProviderForStatus_args();}protected getOrdersForProviderForStatus_result getResult(I iface, getOrdersForProviderForStatus_args args) throws org.apache.thrift.TException {getOrdersForProviderForStatus_result result = new getOrdersForProviderForStatus_result();try {result.success = iface.getOrdersForProviderForStatus(args.logistics_provider_id, args.order_status_list);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getBilledOrdersForVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBilledOrdersForVendor_args> {public getBilledOrdersForVendor() {super("getBilledOrdersForVendor");}protected getBilledOrdersForVendor_args getEmptyArgsInstance() {return new getBilledOrdersForVendor_args();}protected getBilledOrdersForVendor_result getResult(I iface, getBilledOrdersForVendor_args args) throws org.apache.thrift.TException {getBilledOrdersForVendor_result result = new getBilledOrdersForVendor_result();try {result.success = iface.getBilledOrdersForVendor(args.vendorId, args.billingDateFrom, args.billingDateTo);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getSlippedSippingDateOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSlippedSippingDateOrders_args> {public getSlippedSippingDateOrders() {super("getSlippedSippingDateOrders");}protected getSlippedSippingDateOrders_args getEmptyArgsInstance() {return new getSlippedSippingDateOrders_args();}protected getSlippedSippingDateOrders_result getResult(I iface, getSlippedSippingDateOrders_args args) throws org.apache.thrift.TException {getSlippedSippingDateOrders_result result = new getSlippedSippingDateOrders_result();try {result.success = iface.getSlippedSippingDateOrders();} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getCancelledOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCancelledOrders_args> {public getCancelledOrders() {super("getCancelledOrders");}protected getCancelledOrders_args getEmptyArgsInstance() {return new getCancelledOrders_args();}protected getCancelledOrders_result getResult(I iface, getCancelledOrders_args args) throws org.apache.thrift.TException {getCancelledOrders_result result = new getCancelledOrders_result();try {result.success = iface.getCancelledOrders(args.cancelDateFrom, args.cancelDateTo);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class saveBluedartSettlements<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveBluedartSettlements_args> {public saveBluedartSettlements() {super("saveBluedartSettlements");}protected saveBluedartSettlements_args getEmptyArgsInstance() {return new saveBluedartSettlements_args();}protected saveBluedartSettlements_result getResult(I iface, saveBluedartSettlements_args args) throws org.apache.thrift.TException {saveBluedartSettlements_result result = new saveBluedartSettlements_result();try {iface.saveBluedartSettlements(args.mapAWBAndAmount);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class savePaymentSettlements<I extends Iface> extends org.apache.thrift.ProcessFunction<I, savePaymentSettlements_args> {public savePaymentSettlements() {super("savePaymentSettlements");}protected savePaymentSettlements_args getEmptyArgsInstance() {return new savePaymentSettlements_args();}protected savePaymentSettlements_result getResult(I iface, savePaymentSettlements_args args) throws org.apache.thrift.TException {savePaymentSettlements_result result = new savePaymentSettlements_result();try {iface.savePaymentSettlements(args.settlementDate, args.paymentGatewayId, args.referenceId, args.serviceTax, args.otherCharges, args.netCollection);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class saveEBSSettlementSummary<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveEBSSettlementSummary_args> {public saveEBSSettlementSummary() {super("saveEBSSettlementSummary");}protected saveEBSSettlementSummary_args getEmptyArgsInstance() {return new saveEBSSettlementSummary_args();}protected saveEBSSettlementSummary_result getResult(I iface, saveEBSSettlementSummary_args args) throws org.apache.thrift.TException {saveEBSSettlementSummary_result result = new saveEBSSettlementSummary_result();try {iface.saveEBSSettlementSummary(args.settlementId, args.settlementDate, args.transactionDateFrom, args.transactionDateTo, args.amount);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getSettlementForPrepaid<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSettlementForPrepaid_args> {public getSettlementForPrepaid() {super("getSettlementForPrepaid");}protected getSettlementForPrepaid_args getEmptyArgsInstance() {return new getSettlementForPrepaid_args();}protected getSettlementForPrepaid_result getResult(I iface, getSettlementForPrepaid_args args) throws org.apache.thrift.TException {getSettlementForPrepaid_result result = new getSettlementForPrepaid_result();try {result.success = iface.getSettlementForPrepaid(args.referenceId, args.isRefund);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getSettlementForCod<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSettlementForCod_args> {public getSettlementForCod() {super("getSettlementForCod");}protected getSettlementForCod_args getEmptyArgsInstance() {return new getSettlementForCod_args();}protected getSettlementForCod_result getResult(I iface, getSettlementForCod_args args) throws org.apache.thrift.TException {getSettlementForCod_result result = new getSettlementForCod_result();try {result.success = iface.getSettlementForCod(args.orderId, args.isRefund);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getEBSSettlementSummaries<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEBSSettlementSummaries_args> {public getEBSSettlementSummaries() {super("getEBSSettlementSummaries");}protected getEBSSettlementSummaries_args getEmptyArgsInstance() {return new getEBSSettlementSummaries_args();}protected getEBSSettlementSummaries_result getResult(I iface, getEBSSettlementSummaries_args args) throws org.apache.thrift.TException {getEBSSettlementSummaries_result result = new getEBSSettlementSummaries_result();try {result.success = iface.getEBSSettlementSummaries();} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class markEBSSettlementUploaded<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markEBSSettlementUploaded_args> {public markEBSSettlementUploaded() {super("markEBSSettlementUploaded");}protected markEBSSettlementUploaded_args getEmptyArgsInstance() {return new markEBSSettlementUploaded_args();}protected markEBSSettlementUploaded_result getResult(I iface, markEBSSettlementUploaded_args args) throws org.apache.thrift.TException {markEBSSettlementUploaded_result result = new markEBSSettlementUploaded_result();try {iface.markEBSSettlementUploaded(args.settlementId);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getEBSSettlementDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEBSSettlementDate_args> {public getEBSSettlementDate() {super("getEBSSettlementDate");}protected getEBSSettlementDate_args getEmptyArgsInstance() {return new getEBSSettlementDate_args();}protected getEBSSettlementDate_result getResult(I iface, getEBSSettlementDate_args args) throws org.apache.thrift.TException {getEBSSettlementDate_result result = new getEBSSettlementDate_result();try {result.success = iface.getEBSSettlementDate(args.settlementId);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getSettlementsByDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSettlementsByDate_args> {public getSettlementsByDate() {super("getSettlementsByDate");}protected getSettlementsByDate_args getEmptyArgsInstance() {return new getSettlementsByDate_args();}protected getSettlementsByDate_result getResult(I iface, getSettlementsByDate_args args) throws org.apache.thrift.TException {getSettlementsByDate_result result = new getSettlementsByDate_result();try {result.success = iface.getSettlementsByDate(args.settlementDateFrom, args.settlementDateTo, args.isRefund);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getReshippedOrderIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReshippedOrderIds_args> {public getReshippedOrderIds() {super("getReshippedOrderIds");}protected getReshippedOrderIds_args getEmptyArgsInstance() {return new getReshippedOrderIds_args();}protected getReshippedOrderIds_result getResult(I iface, getReshippedOrderIds_args args) throws org.apache.thrift.TException {getReshippedOrderIds_result result = new getReshippedOrderIds_result();try {result.success = iface.getReshippedOrderIds(args.orderIds);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getBilledOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBilledOrders_args> {public getBilledOrders() {super("getBilledOrders");}protected getBilledOrders_args getEmptyArgsInstance() {return new getBilledOrders_args();}protected getBilledOrders_result getResult(I iface, getBilledOrders_args args) throws org.apache.thrift.TException {getBilledOrders_result result = new getBilledOrders_result();try {result.success = iface.getBilledOrders(args.vendorId, args.onlyVendorNotPaid, args.billingDateFrom, args.billingDateTo);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getStatusDistributionOfOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getStatusDistributionOfOrders_args> {public getStatusDistributionOfOrders() {super("getStatusDistributionOfOrders");}protected getStatusDistributionOfOrders_args getEmptyArgsInstance() {return new getStatusDistributionOfOrders_args();}protected getStatusDistributionOfOrders_result getResult(I iface, getStatusDistributionOfOrders_args args) throws org.apache.thrift.TException {getStatusDistributionOfOrders_result result = new getStatusDistributionOfOrders_result();try {result.success = iface.getStatusDistributionOfOrders(args.startDate, args.endDate);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getOrderIdsForStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderIdsForStatus_args> {public getOrderIdsForStatus() {super("getOrderIdsForStatus");}protected getOrderIdsForStatus_args getEmptyArgsInstance() {return new getOrderIdsForStatus_args();}protected getOrderIdsForStatus_result getResult(I iface, getOrderIdsForStatus_args args) throws org.apache.thrift.TException {getOrderIdsForStatus_result result = new getOrderIdsForStatus_result();try {result.success = iface.getOrderIdsForStatus(args.status, args.startDatetime, args.endDatetime);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class updateCODAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateCODAgent_args> {public updateCODAgent() {super("updateCODAgent");}protected updateCODAgent_args getEmptyArgsInstance() {return new updateCODAgent_args();}protected updateCODAgent_result getResult(I iface, updateCODAgent_args args) throws org.apache.thrift.TException {updateCODAgent_result result = new updateCODAgent_result();try {iface.updateCODAgent(args.agent, args.orderId);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class updateOrderAsPaidToVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateOrderAsPaidToVendor_args> {public updateOrderAsPaidToVendor() {super("updateOrderAsPaidToVendor");}protected updateOrderAsPaidToVendor_args getEmptyArgsInstance() {return new updateOrderAsPaidToVendor_args();}protected updateOrderAsPaidToVendor_result getResult(I iface, updateOrderAsPaidToVendor_args args) throws org.apache.thrift.TException {updateOrderAsPaidToVendor_result result = new updateOrderAsPaidToVendor_result();try {iface.updateOrderAsPaidToVendor(args.orderId);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class updateOrderOnlyAsPaidToVendor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateOrderOnlyAsPaidToVendor_args> {public updateOrderOnlyAsPaidToVendor() {super("updateOrderOnlyAsPaidToVendor");}protected updateOrderOnlyAsPaidToVendor_args getEmptyArgsInstance() {return new updateOrderOnlyAsPaidToVendor_args();}protected updateOrderOnlyAsPaidToVendor_result getResult(I iface, updateOrderOnlyAsPaidToVendor_args args) throws org.apache.thrift.TException {updateOrderOnlyAsPaidToVendor_result result = new updateOrderOnlyAsPaidToVendor_result();try {iface.updateOrderOnlyAsPaidToVendor(args.orderId);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getRefundedOrdersMarkedPaid<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRefundedOrdersMarkedPaid_args> {public getRefundedOrdersMarkedPaid() {super("getRefundedOrdersMarkedPaid");}protected getRefundedOrdersMarkedPaid_args getEmptyArgsInstance() {return new getRefundedOrdersMarkedPaid_args();}protected getRefundedOrdersMarkedPaid_result getResult(I iface, getRefundedOrdersMarkedPaid_args args) throws org.apache.thrift.TException {getRefundedOrdersMarkedPaid_result result = new getRefundedOrdersMarkedPaid_result();try {result.success = iface.getRefundedOrdersMarkedPaid();} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getAllVerificationAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllVerificationAgents_args> {public getAllVerificationAgents() {super("getAllVerificationAgents");}protected getAllVerificationAgents_args getEmptyArgsInstance() {return new getAllVerificationAgents_args();}protected getAllVerificationAgents_result getResult(I iface, getAllVerificationAgents_args args) throws org.apache.thrift.TException {getAllVerificationAgents_result result = new getAllVerificationAgents_result();result.success = iface.getAllVerificationAgents(args.minOrderId, args.maxOrderId);return result;}}private static class getAllAttributesForOrderId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllAttributesForOrderId_args> {public getAllAttributesForOrderId() {super("getAllAttributesForOrderId");}protected getAllAttributesForOrderId_args getEmptyArgsInstance() {return new getAllAttributesForOrderId_args();}protected getAllAttributesForOrderId_result getResult(I iface, getAllAttributesForOrderId_args args) throws org.apache.thrift.TException {getAllAttributesForOrderId_result result = new getAllAttributesForOrderId_result();result.success = iface.getAllAttributesForOrderId(args.orderId);return result;}}private static class setOrderAttributes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setOrderAttributes_args> {public setOrderAttributes() {super("setOrderAttributes");}protected setOrderAttributes_args getEmptyArgsInstance() {return new setOrderAttributes_args();}protected setOrderAttributes_result getResult(I iface, setOrderAttributes_args args) throws org.apache.thrift.TException {setOrderAttributes_result result = new setOrderAttributes_result();iface.setOrderAttributes(args.orderId, args.attributes);return result;}}private static class setOrderAttributeForTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setOrderAttributeForTransaction_args> {public setOrderAttributeForTransaction() {super("setOrderAttributeForTransaction");}protected setOrderAttributeForTransaction_args getEmptyArgsInstance() {return new setOrderAttributeForTransaction_args();}protected setOrderAttributeForTransaction_result getResult(I iface, setOrderAttributeForTransaction_args args) throws org.apache.thrift.TException {setOrderAttributeForTransaction_result result = new setOrderAttributeForTransaction_result();iface.setOrderAttributeForTransaction(args.transactionId, args.attribute);return result;}}private static class getReceivePendingOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReceivePendingOrders_args> {public getReceivePendingOrders() {super("getReceivePendingOrders");}protected getReceivePendingOrders_args getEmptyArgsInstance() {return new getReceivePendingOrders_args();}protected getReceivePendingOrders_result getResult(I iface, getReceivePendingOrders_args args) throws org.apache.thrift.TException {getReceivePendingOrders_result result = new getReceivePendingOrders_result();result.success = iface.getReceivePendingOrders(args.storeId);return result;}}private static class getReceivedAtStoreOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReceivedAtStoreOrders_args> {public getReceivedAtStoreOrders() {super("getReceivedAtStoreOrders");}protected getReceivedAtStoreOrders_args getEmptyArgsInstance() {return new getReceivedAtStoreOrders_args();}protected getReceivedAtStoreOrders_result getResult(I iface, getReceivedAtStoreOrders_args args) throws org.apache.thrift.TException {getReceivedAtStoreOrders_result result = new getReceivedAtStoreOrders_result();result.success = iface.getReceivedAtStoreOrders(args.storeId);return result;}}private static class getOrdersCollectionAtStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrdersCollectionAtStore_args> {public getOrdersCollectionAtStore() {super("getOrdersCollectionAtStore");}protected getOrdersCollectionAtStore_args getEmptyArgsInstance() {return new getOrdersCollectionAtStore_args();}protected getOrdersCollectionAtStore_result getResult(I iface, getOrdersCollectionAtStore_args args) throws org.apache.thrift.TException {getOrdersCollectionAtStore_result result = new getOrdersCollectionAtStore_result();result.success = iface.getOrdersCollectionAtStore(args.storeId, args.fromDate, args.toDate, args.onlyCod);return result;}}private static class getOrderAttributeValue<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderAttributeValue_args> {public getOrderAttributeValue() {super("getOrderAttributeValue");}protected getOrderAttributeValue_args getEmptyArgsInstance() {return new getOrderAttributeValue_args();}protected getOrderAttributeValue_result getResult(I iface, getOrderAttributeValue_args args) throws org.apache.thrift.TException {getOrderAttributeValue_result result = new getOrderAttributeValue_result();result.success = iface.getOrderAttributeValue(args.orderId, args.attributeName);return result;}}private static class acceptOrderForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, acceptOrderForItem_args> {public acceptOrderForItem() {super("acceptOrderForItem");}protected acceptOrderForItem_args getEmptyArgsInstance() {return new acceptOrderForItem_args();}protected acceptOrderForItem_result getResult(I iface, acceptOrderForItem_args args) throws org.apache.thrift.TException {acceptOrderForItem_result result = new acceptOrderForItem_result();iface.acceptOrderForItem(args.itemId, args.quantity, args.fulfilmentWarehouseId, args.billingWarehouseId);return result;}}private static class createRechargeOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createRechargeOrder_args> {public createRechargeOrder() {super("createRechargeOrder");}protected createRechargeOrder_args getEmptyArgsInstance() {return new createRechargeOrder_args();}protected createRechargeOrder_result getResult(I iface, createRechargeOrder_args args) throws org.apache.thrift.TException {createRechargeOrder_result result = new createRechargeOrder_result();try {result.success = iface.createRechargeOrder(args.rechargeOrder);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class updateRechargeOrderStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateRechargeOrderStatus_args> {public updateRechargeOrderStatus() {super("updateRechargeOrderStatus");}protected updateRechargeOrderStatus_args getEmptyArgsInstance() {return new updateRechargeOrderStatus_args();}protected updateRechargeOrderStatus_result getResult(I iface, updateRechargeOrderStatus_args args) throws org.apache.thrift.TException {updateRechargeOrderStatus_result result = new updateRechargeOrderStatus_result();try {iface.updateRechargeOrderStatus(args.rechargeOrderId, args.rechargeOrderStatus);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class activateRechargeTxn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, activateRechargeTxn_args> {public activateRechargeTxn() {super("activateRechargeTxn");}protected activateRechargeTxn_args getEmptyArgsInstance() {return new activateRechargeTxn_args();}protected activateRechargeTxn_result getResult(I iface, activateRechargeTxn_args args) throws org.apache.thrift.TException {activateRechargeTxn_result result = new activateRechargeTxn_result();try {result.success = iface.activateRechargeTxn(args.rechargeCoupons);} catch (TransactionServiceException ex) {result.ex = ex;}return result;}}private static class getRechargeOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRechargeOrders_args> {public getRechargeOrders() {super("getRechargeOrders");}protected getRechargeOrders_args getEmptyArgsInstance() {return new getRechargeOrders_args();}protected getRechargeOrders_result getResult(I iface, getRechargeOrders_args args) throws org.apache.thrift.TException {getRechargeOrders_result result = new getRechargeOrders_result();result.success = iface.getRechargeOrders(args.customerId);return result;}}private static class getRechargeCoupons<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRechargeCoupons_args> {public getRechargeCoupons() {super("getRechargeCoupons");}protected getRechargeCoupons_args getEmptyArgsInstance() {return new getRechargeCoupons_args();}protected getRechargeCoupons_result getResult(I iface, getRechargeCoupons_args args) throws org.apache.thrift.TException {getRechargeCoupons_result result = new getRechargeCoupons_result();result.success = iface.getRechargeCoupons(args.customerId, args.rechargeCouponStatus);return result;}}}public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");private static final org.apache.thrift.protocol.TField TRANSACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("transaction", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Transaction transaction; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {TRANSACTION((short)1, "transaction");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // TRANSACTIONreturn TRANSACTION;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.TRANSACTION, new org.apache.thrift.meta_data.FieldMetaData("transaction", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Transaction.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTransaction_args.class, metaDataMap);}public createTransaction_args() {}public createTransaction_args(Transaction transaction){this();this.transaction = transaction;}/*** Performs a deep copy on <i>other</i>.*/public createTransaction_args(createTransaction_args other) {if (other.isSetTransaction()) {this.transaction = new Transaction(other.transaction);}}public createTransaction_args deepCopy() {return new createTransaction_args(this);}@Overridepublic void clear() {this.transaction = null;}public Transaction getTransaction() {return this.transaction;}public void setTransaction(Transaction transaction) {this.transaction = transaction;}public void unsetTransaction() {this.transaction = null;}/** Returns true if field transaction is set (has been assigned a value) and false otherwise */public boolean isSetTransaction() {return this.transaction != null;}public void setTransactionIsSet(boolean value) {if (!value) {this.transaction = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION:if (value == null) {unsetTransaction();} else {setTransaction((Transaction)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION:return getTransaction();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case TRANSACTION:return isSetTransaction();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof createTransaction_args)return this.equals((createTransaction_args)that);return false;}public boolean equals(createTransaction_args that) {if (that == null)return false;boolean this_present_transaction = true && this.isSetTransaction();boolean that_present_transaction = true && that.isSetTransaction();if (this_present_transaction || that_present_transaction) {if (!(this_present_transaction && that_present_transaction))return false;if (!this.transaction.equals(that.transaction))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(createTransaction_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;createTransaction_args typedOther = (createTransaction_args)other;lastComparison = Boolean.valueOf(isSetTransaction()).compareTo(typedOther.isSetTransaction());if (lastComparison != 0) {return lastComparison;}if (isSetTransaction()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transaction, typedOther.transaction);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // TRANSACTIONif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.transaction = new Transaction();this.transaction.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.transaction != null) {oprot.writeFieldBegin(TRANSACTION_FIELD_DESC);this.transaction.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("createTransaction_args(");boolean first = true;sb.append("transaction:");if (this.transaction == null) {sb.append("null");} else {sb.append(this.transaction);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class createTransaction_result implements org.apache.thrift.TBase<createTransaction_result, createTransaction_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private long success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTransaction_result.class, metaDataMap);}public createTransaction_result() {}public createTransaction_result(long success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public createTransaction_result(createTransaction_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public createTransaction_result deepCopy() {return new createTransaction_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;this.ex = null;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof createTransaction_result)return this.equals((createTransaction_result)that);return false;}public boolean equals(createTransaction_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(createTransaction_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;createTransaction_result typedOther = (createTransaction_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("createTransaction_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getTransaction_args implements org.apache.thrift.TBase<getTransaction_args, getTransaction_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransaction_args");private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);private long id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ID((short)1, "id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // IDreturn ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransaction_args.class, metaDataMap);}public getTransaction_args() {}public getTransaction_args(long id){this();this.id = id;setIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getTransaction_args(getTransaction_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;}public getTransaction_args deepCopy() {return new getTransaction_args(this);}@Overridepublic void clear() {setIdIsSet(false);this.id = 0;}public long getId() {return this.id;}public void setId(long id) {this.id = id;setIdIsSet(true);}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been assigned a value) and false otherwise */public boolean isSetId() {return __isset_bit_vector.get(__ID_ISSET_ID);}public void setIdIsSet(boolean value) {__isset_bit_vector.set(__ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ID:return Long.valueOf(getId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ID:return isSetId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransaction_args)return this.equals((getTransaction_args)that);return false;}public boolean equals(getTransaction_args that) {if (that == null)return false;boolean this_present_id = true;boolean that_present_id = true;if (this_present_id || that_present_id) {if (!(this_present_id && that_present_id))return false;if (this.id != that.id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTransaction_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTransaction_args typedOther = (getTransaction_args)other;lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());if (lastComparison != 0) {return lastComparison;}if (isSetId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransaction_args(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getTransaction_result implements org.apache.thrift.TBase<getTransaction_result, getTransaction_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransaction_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Transaction success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Transaction.class)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransaction_result.class, metaDataMap);}public getTransaction_result() {}public getTransaction_result(Transaction success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getTransaction_result(getTransaction_result other) {if (other.isSetSuccess()) {this.success = new Transaction(other.success);}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getTransaction_result deepCopy() {return new getTransaction_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public Transaction getSuccess() {return this.success;}public void setSuccess(Transaction success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Transaction)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransaction_result)return this.equals((getTransaction_result)that);return false;}public boolean equals(getTransaction_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTransaction_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTransaction_result typedOther = (getTransaction_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Transaction();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransaction_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getTransactionsForCustomer_args implements org.apache.thrift.TBase<getTransactionsForCustomer_args, getTransactionsForCustomer_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsForCustomer_args");private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField FROM_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("from_date", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField TO_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("to_date", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)4);private long customerId; // requiredprivate long from_date; // requiredprivate long to_date; // requiredprivate TransactionStatus status; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CUSTOMER_ID((short)1, "customerId"),FROM_DATE((short)2, "from_date"),TO_DATE((short)3, "to_date"),/**** @see TransactionStatus*/STATUS((short)4, "status");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CUSTOMER_IDreturn CUSTOMER_ID;case 2: // FROM_DATEreturn FROM_DATE;case 3: // TO_DATEreturn TO_DATE;case 4: // STATUSreturn STATUS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CUSTOMERID_ISSET_ID = 0;private static final int __FROM_DATE_ISSET_ID = 1;private static final int __TO_DATE_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("from_date", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("to_date", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransactionStatus.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsForCustomer_args.class, metaDataMap);}public getTransactionsForCustomer_args() {}public getTransactionsForCustomer_args(long customerId,long from_date,long to_date,TransactionStatus status){this();this.customerId = customerId;setCustomerIdIsSet(true);this.from_date = from_date;setFrom_dateIsSet(true);this.to_date = to_date;setTo_dateIsSet(true);this.status = status;}/*** Performs a deep copy on <i>other</i>.*/public getTransactionsForCustomer_args(getTransactionsForCustomer_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.customerId = other.customerId;this.from_date = other.from_date;this.to_date = other.to_date;if (other.isSetStatus()) {this.status = other.status;}}public getTransactionsForCustomer_args deepCopy() {return new getTransactionsForCustomer_args(this);}@Overridepublic void clear() {setCustomerIdIsSet(false);this.customerId = 0;setFrom_dateIsSet(false);this.from_date = 0;setTo_dateIsSet(false);this.to_date = 0;this.status = null;}public long getCustomerId() {return this.customerId;}public void setCustomerId(long customerId) {this.customerId = customerId;setCustomerIdIsSet(true);}public void unsetCustomerId() {__isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);}/** Returns true if field customerId is set (has been assigned a value) and false otherwise */public boolean isSetCustomerId() {return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);}public void setCustomerIdIsSet(boolean value) {__isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);}public long getFrom_date() {return this.from_date;}public void setFrom_date(long from_date) {this.from_date = from_date;setFrom_dateIsSet(true);}public void unsetFrom_date() {__isset_bit_vector.clear(__FROM_DATE_ISSET_ID);}/** Returns true if field from_date is set (has been assigned a value) and false otherwise */public boolean isSetFrom_date() {return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);}public void setFrom_dateIsSet(boolean value) {__isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);}public long getTo_date() {return this.to_date;}public void setTo_date(long to_date) {this.to_date = to_date;setTo_dateIsSet(true);}public void unsetTo_date() {__isset_bit_vector.clear(__TO_DATE_ISSET_ID);}/** Returns true if field to_date is set (has been assigned a value) and false otherwise */public boolean isSetTo_date() {return __isset_bit_vector.get(__TO_DATE_ISSET_ID);}public void setTo_dateIsSet(boolean value) {__isset_bit_vector.set(__TO_DATE_ISSET_ID, value);}/**** @see TransactionStatus*/public TransactionStatus getStatus() {return this.status;}/**** @see TransactionStatus*/public void setStatus(TransactionStatus status) {this.status = status;}public void unsetStatus() {this.status = null;}/** Returns true if field status is set (has been assigned a value) and false otherwise */public boolean isSetStatus() {return this.status != null;}public void setStatusIsSet(boolean value) {if (!value) {this.status = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CUSTOMER_ID:if (value == null) {unsetCustomerId();} else {setCustomerId((Long)value);}break;case FROM_DATE:if (value == null) {unsetFrom_date();} else {setFrom_date((Long)value);}break;case TO_DATE:if (value == null) {unsetTo_date();} else {setTo_date((Long)value);}break;case STATUS:if (value == null) {unsetStatus();} else {setStatus((TransactionStatus)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CUSTOMER_ID:return Long.valueOf(getCustomerId());case FROM_DATE:return Long.valueOf(getFrom_date());case TO_DATE:return Long.valueOf(getTo_date());case STATUS:return getStatus();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CUSTOMER_ID:return isSetCustomerId();case FROM_DATE:return isSetFrom_date();case TO_DATE:return isSetTo_date();case STATUS:return isSetStatus();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransactionsForCustomer_args)return this.equals((getTransactionsForCustomer_args)that);return false;}public boolean equals(getTransactionsForCustomer_args that) {if (that == null)return false;boolean this_present_customerId = true;boolean that_present_customerId = true;if (this_present_customerId || that_present_customerId) {if (!(this_present_customerId && that_present_customerId))return false;if (this.customerId != that.customerId)return false;}boolean this_present_from_date = true;boolean that_present_from_date = true;if (this_present_from_date || that_present_from_date) {if (!(this_present_from_date && that_present_from_date))return false;if (this.from_date != that.from_date)return false;}boolean this_present_to_date = true;boolean that_present_to_date = true;if (this_present_to_date || that_present_to_date) {if (!(this_present_to_date && that_present_to_date))return false;if (this.to_date != that.to_date)return false;}boolean this_present_status = true && this.isSetStatus();boolean that_present_status = true && that.isSetStatus();if (this_present_status || that_present_status) {if (!(this_present_status && that_present_status))return false;if (!this.status.equals(that.status))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTransactionsForCustomer_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTransactionsForCustomer_args typedOther = (getTransactionsForCustomer_args)other;lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());if (lastComparison != 0) {return lastComparison;}if (isSetCustomerId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(typedOther.isSetFrom_date());if (lastComparison != 0) {return lastComparison;}if (isSetFrom_date()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from_date, typedOther.from_date);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(typedOther.isSetTo_date());if (lastComparison != 0) {return lastComparison;}if (isSetTo_date()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to_date, typedOther.to_date);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());if (lastComparison != 0) {return lastComparison;}if (isSetStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CUSTOMER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.customerId = iprot.readI64();setCustomerIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // FROM_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.from_date = iprot.readI64();setFrom_dateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // TO_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.to_date = iprot.readI64();setTo_dateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // STATUSif (field.type == org.apache.thrift.protocol.TType.I32) {this.status = TransactionStatus.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);oprot.writeI64(this.customerId);oprot.writeFieldEnd();oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);oprot.writeI64(this.from_date);oprot.writeFieldEnd();oprot.writeFieldBegin(TO_DATE_FIELD_DESC);oprot.writeI64(this.to_date);oprot.writeFieldEnd();if (this.status != null) {oprot.writeFieldBegin(STATUS_FIELD_DESC);oprot.writeI32(this.status.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransactionsForCustomer_args(");boolean first = true;sb.append("customerId:");sb.append(this.customerId);first = false;if (!first) sb.append(", ");sb.append("from_date:");sb.append(this.from_date);first = false;if (!first) sb.append(", ");sb.append("to_date:");sb.append(this.to_date);first = false;if (!first) sb.append(", ");sb.append("status:");if (this.status == null) {sb.append("null");} else {sb.append(this.status);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getTransactionsForCustomer_result implements org.apache.thrift.TBase<getTransactionsForCustomer_result, getTransactionsForCustomer_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsForCustomer_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Transaction> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Transaction.class))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsForCustomer_result.class, metaDataMap);}public getTransactionsForCustomer_result() {}public getTransactionsForCustomer_result(List<Transaction> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getTransactionsForCustomer_result(getTransactionsForCustomer_result other) {if (other.isSetSuccess()) {List<Transaction> __this__success = new ArrayList<Transaction>();for (Transaction other_element : other.success) {__this__success.add(new Transaction(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getTransactionsForCustomer_result deepCopy() {return new getTransactionsForCustomer_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Transaction> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Transaction elem) {if (this.success == null) {this.success = new ArrayList<Transaction>();}this.success.add(elem);}public List<Transaction> getSuccess() {return this.success;}public void setSuccess(List<Transaction> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Transaction>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransactionsForCustomer_result)return this.equals((getTransactionsForCustomer_result)that);return false;}public boolean equals(getTransactionsForCustomer_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTransactionsForCustomer_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTransactionsForCustomer_result typedOther = (getTransactionsForCustomer_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();this.success = new ArrayList<Transaction>(_list40.size);for (int _i41 = 0; _i41 < _list40.size; ++_i41){Transaction _elem42; // required_elem42 = new Transaction();_elem42.read(iprot);this.success.add(_elem42);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Transaction _iter43 : this.success){_iter43.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransactionsForCustomer_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getTransactionsForShoppingCartId_args implements org.apache.thrift.TBase<getTransactionsForShoppingCartId_args, getTransactionsForShoppingCartId_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsForShoppingCartId_args");private static final org.apache.thrift.protocol.TField SHOPPING_CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("shoppingCartId", org.apache.thrift.protocol.TType.I64, (short)1);private long shoppingCartId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SHOPPING_CART_ID((short)1, "shoppingCartId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SHOPPING_CART_IDreturn SHOPPING_CART_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SHOPPINGCARTID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SHOPPING_CART_ID, new org.apache.thrift.meta_data.FieldMetaData("shoppingCartId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsForShoppingCartId_args.class, metaDataMap);}public getTransactionsForShoppingCartId_args() {}public getTransactionsForShoppingCartId_args(long shoppingCartId){this();this.shoppingCartId = shoppingCartId;setShoppingCartIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getTransactionsForShoppingCartId_args(getTransactionsForShoppingCartId_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.shoppingCartId = other.shoppingCartId;}public getTransactionsForShoppingCartId_args deepCopy() {return new getTransactionsForShoppingCartId_args(this);}@Overridepublic void clear() {setShoppingCartIdIsSet(false);this.shoppingCartId = 0;}public long getShoppingCartId() {return this.shoppingCartId;}public void setShoppingCartId(long shoppingCartId) {this.shoppingCartId = shoppingCartId;setShoppingCartIdIsSet(true);}public void unsetShoppingCartId() {__isset_bit_vector.clear(__SHOPPINGCARTID_ISSET_ID);}/** Returns true if field shoppingCartId is set (has been assigned a value) and false otherwise */public boolean isSetShoppingCartId() {return __isset_bit_vector.get(__SHOPPINGCARTID_ISSET_ID);}public void setShoppingCartIdIsSet(boolean value) {__isset_bit_vector.set(__SHOPPINGCARTID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SHOPPING_CART_ID:if (value == null) {unsetShoppingCartId();} else {setShoppingCartId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SHOPPING_CART_ID:return Long.valueOf(getShoppingCartId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SHOPPING_CART_ID:return isSetShoppingCartId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransactionsForShoppingCartId_args)return this.equals((getTransactionsForShoppingCartId_args)that);return false;}public boolean equals(getTransactionsForShoppingCartId_args that) {if (that == null)return false;boolean this_present_shoppingCartId = true;boolean that_present_shoppingCartId = true;if (this_present_shoppingCartId || that_present_shoppingCartId) {if (!(this_present_shoppingCartId && that_present_shoppingCartId))return false;if (this.shoppingCartId != that.shoppingCartId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTransactionsForShoppingCartId_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTransactionsForShoppingCartId_args typedOther = (getTransactionsForShoppingCartId_args)other;lastComparison = Boolean.valueOf(isSetShoppingCartId()).compareTo(typedOther.isSetShoppingCartId());if (lastComparison != 0) {return lastComparison;}if (isSetShoppingCartId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shoppingCartId, typedOther.shoppingCartId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SHOPPING_CART_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.shoppingCartId = iprot.readI64();setShoppingCartIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(SHOPPING_CART_ID_FIELD_DESC);oprot.writeI64(this.shoppingCartId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransactionsForShoppingCartId_args(");boolean first = true;sb.append("shoppingCartId:");sb.append(this.shoppingCartId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getTransactionsForShoppingCartId_result implements org.apache.thrift.TBase<getTransactionsForShoppingCartId_result, getTransactionsForShoppingCartId_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsForShoppingCartId_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Transaction> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Transaction.class))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsForShoppingCartId_result.class, metaDataMap);}public getTransactionsForShoppingCartId_result() {}public getTransactionsForShoppingCartId_result(List<Transaction> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getTransactionsForShoppingCartId_result(getTransactionsForShoppingCartId_result other) {if (other.isSetSuccess()) {List<Transaction> __this__success = new ArrayList<Transaction>();for (Transaction other_element : other.success) {__this__success.add(new Transaction(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getTransactionsForShoppingCartId_result deepCopy() {return new getTransactionsForShoppingCartId_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Transaction> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Transaction elem) {if (this.success == null) {this.success = new ArrayList<Transaction>();}this.success.add(elem);}public List<Transaction> getSuccess() {return this.success;}public void setSuccess(List<Transaction> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Transaction>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransactionsForShoppingCartId_result)return this.equals((getTransactionsForShoppingCartId_result)that);return false;}public boolean equals(getTransactionsForShoppingCartId_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTransactionsForShoppingCartId_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTransactionsForShoppingCartId_result typedOther = (getTransactionsForShoppingCartId_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();this.success = new ArrayList<Transaction>(_list44.size);for (int _i45 = 0; _i45 < _list44.size; ++_i45){Transaction _elem46; // required_elem46 = new Transaction();_elem46.read(iprot);this.success.add(_elem46);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Transaction _iter47 : this.success){_iter47.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransactionsForShoppingCartId_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getTransactionStatus_args implements org.apache.thrift.TBase<getTransactionStatus_args, getTransactionStatus_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionStatus_args");private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)1);private long transactionId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {TRANSACTION_ID((short)1, "transactionId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // TRANSACTION_IDreturn TRANSACTION_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TRANSACTIONID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionStatus_args.class, metaDataMap);}public getTransactionStatus_args() {}public getTransactionStatus_args(long transactionId){this();this.transactionId = transactionId;setTransactionIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getTransactionStatus_args(getTransactionStatus_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.transactionId = other.transactionId;}public getTransactionStatus_args deepCopy() {return new getTransactionStatus_args(this);}@Overridepublic void clear() {setTransactionIdIsSet(false);this.transactionId = 0;}public long getTransactionId() {return this.transactionId;}public void setTransactionId(long transactionId) {this.transactionId = transactionId;setTransactionIdIsSet(true);}public void unsetTransactionId() {__isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);}/** Returns true if field transactionId is set (has been assigned a value) and false otherwise */public boolean isSetTransactionId() {return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);}public void setTransactionIdIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION_ID:if (value == null) {unsetTransactionId();} else {setTransactionId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION_ID:return Long.valueOf(getTransactionId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case TRANSACTION_ID:return isSetTransactionId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransactionStatus_args)return this.equals((getTransactionStatus_args)that);return false;}public boolean equals(getTransactionStatus_args that) {if (that == null)return false;boolean this_present_transactionId = true;boolean that_present_transactionId = true;if (this_present_transactionId || that_present_transactionId) {if (!(this_present_transactionId && that_present_transactionId))return false;if (this.transactionId != that.transactionId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTransactionStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTransactionStatus_args typedOther = (getTransactionStatus_args)other;lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());if (lastComparison != 0) {return lastComparison;}if (isSetTransactionId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // TRANSACTION_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.transactionId = iprot.readI64();setTransactionIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);oprot.writeI64(this.transactionId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransactionStatus_args(");boolean first = true;sb.append("transactionId:");sb.append(this.transactionId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getTransactionStatus_result implements org.apache.thrift.TBase<getTransactionStatus_result, getTransactionStatus_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionStatus_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionStatus success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {/**** @see TransactionStatus*/SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransactionStatus.class)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionStatus_result.class, metaDataMap);}public getTransactionStatus_result() {}public getTransactionStatus_result(TransactionStatus success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getTransactionStatus_result(getTransactionStatus_result other) {if (other.isSetSuccess()) {this.success = other.success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getTransactionStatus_result deepCopy() {return new getTransactionStatus_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}/**** @see TransactionStatus*/public TransactionStatus getSuccess() {return this.success;}/**** @see TransactionStatus*/public void setSuccess(TransactionStatus success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((TransactionStatus)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransactionStatus_result)return this.equals((getTransactionStatus_result)that);return false;}public boolean equals(getTransactionStatus_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTransactionStatus_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTransactionStatus_result typedOther = (getTransactionStatus_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I32) {this.success = TransactionStatus.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI32(this.success.getValue());oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransactionStatus_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class changeTransactionStatus_args implements org.apache.thrift.TBase<changeTransactionStatus_args, changeTransactionStatus_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeTransactionStatus_args");private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)2);private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField PICK_UP_FIELD_DESC = new org.apache.thrift.protocol.TField("pickUp", org.apache.thrift.protocol.TType.I64, (short)4);private static final org.apache.thrift.protocol.TField ORDER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("orderType", org.apache.thrift.protocol.TType.I32, (short)5);private long transactionId; // requiredprivate TransactionStatus status; // requiredprivate String description; // requiredprivate long pickUp; // requiredprivate OrderType orderType; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {TRANSACTION_ID((short)1, "transactionId"),/**** @see TransactionStatus*/STATUS((short)2, "status"),DESCRIPTION((short)3, "description"),PICK_UP((short)4, "pickUp"),/**** @see OrderType*/ORDER_TYPE((short)5, "orderType");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // TRANSACTION_IDreturn TRANSACTION_ID;case 2: // STATUSreturn STATUS;case 3: // DESCRIPTIONreturn DESCRIPTION;case 4: // PICK_UPreturn PICK_UP;case 5: // ORDER_TYPEreturn ORDER_TYPE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TRANSACTIONID_ISSET_ID = 0;private static final int __PICKUP_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransactionStatus.class)));tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ORDER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("orderType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderType.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeTransactionStatus_args.class, metaDataMap);}public changeTransactionStatus_args() {}public changeTransactionStatus_args(long transactionId,TransactionStatus status,String description,long pickUp,OrderType orderType){this();this.transactionId = transactionId;setTransactionIdIsSet(true);this.status = status;this.description = description;this.pickUp = pickUp;setPickUpIsSet(true);this.orderType = orderType;}/*** Performs a deep copy on <i>other</i>.*/public changeTransactionStatus_args(changeTransactionStatus_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.transactionId = other.transactionId;if (other.isSetStatus()) {this.status = other.status;}if (other.isSetDescription()) {this.description = other.description;}this.pickUp = other.pickUp;if (other.isSetOrderType()) {this.orderType = other.orderType;}}public changeTransactionStatus_args deepCopy() {return new changeTransactionStatus_args(this);}@Overridepublic void clear() {setTransactionIdIsSet(false);this.transactionId = 0;this.status = null;this.description = null;setPickUpIsSet(false);this.pickUp = 0;this.orderType = null;}public long getTransactionId() {return this.transactionId;}public void setTransactionId(long transactionId) {this.transactionId = transactionId;setTransactionIdIsSet(true);}public void unsetTransactionId() {__isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);}/** Returns true if field transactionId is set (has been assigned a value) and false otherwise */public boolean isSetTransactionId() {return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);}public void setTransactionIdIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);}/**** @see TransactionStatus*/public TransactionStatus getStatus() {return this.status;}/**** @see TransactionStatus*/public void setStatus(TransactionStatus status) {this.status = status;}public void unsetStatus() {this.status = null;}/** Returns true if field status is set (has been assigned a value) and false otherwise */public boolean isSetStatus() {return this.status != null;}public void setStatusIsSet(boolean value) {if (!value) {this.status = null;}}public String getDescription() {return this.description;}public void setDescription(String description) {this.description = description;}public void unsetDescription() {this.description = null;}/** Returns true if field description is set (has been assigned a value) and false otherwise */public boolean isSetDescription() {return this.description != null;}public void setDescriptionIsSet(boolean value) {if (!value) {this.description = null;}}public long getPickUp() {return this.pickUp;}public void setPickUp(long pickUp) {this.pickUp = pickUp;setPickUpIsSet(true);}public void unsetPickUp() {__isset_bit_vector.clear(__PICKUP_ISSET_ID);}/** Returns true if field pickUp is set (has been assigned a value) and false otherwise */public boolean isSetPickUp() {return __isset_bit_vector.get(__PICKUP_ISSET_ID);}public void setPickUpIsSet(boolean value) {__isset_bit_vector.set(__PICKUP_ISSET_ID, value);}/**** @see OrderType*/public OrderType getOrderType() {return this.orderType;}/**** @see OrderType*/public void setOrderType(OrderType orderType) {this.orderType = orderType;}public void unsetOrderType() {this.orderType = null;}/** Returns true if field orderType is set (has been assigned a value) and false otherwise */public boolean isSetOrderType() {return this.orderType != null;}public void setOrderTypeIsSet(boolean value) {if (!value) {this.orderType = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION_ID:if (value == null) {unsetTransactionId();} else {setTransactionId((Long)value);}break;case STATUS:if (value == null) {unsetStatus();} else {setStatus((TransactionStatus)value);}break;case DESCRIPTION:if (value == null) {unsetDescription();} else {setDescription((String)value);}break;case PICK_UP:if (value == null) {unsetPickUp();} else {setPickUp((Long)value);}break;case ORDER_TYPE:if (value == null) {unsetOrderType();} else {setOrderType((OrderType)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION_ID:return Long.valueOf(getTransactionId());case STATUS:return getStatus();case DESCRIPTION:return getDescription();case PICK_UP:return Long.valueOf(getPickUp());case ORDER_TYPE:return getOrderType();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case TRANSACTION_ID:return isSetTransactionId();case STATUS:return isSetStatus();case DESCRIPTION:return isSetDescription();case PICK_UP:return isSetPickUp();case ORDER_TYPE:return isSetOrderType();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof changeTransactionStatus_args)return this.equals((changeTransactionStatus_args)that);return false;}public boolean equals(changeTransactionStatus_args that) {if (that == null)return false;boolean this_present_transactionId = true;boolean that_present_transactionId = true;if (this_present_transactionId || that_present_transactionId) {if (!(this_present_transactionId && that_present_transactionId))return false;if (this.transactionId != that.transactionId)return false;}boolean this_present_status = true && this.isSetStatus();boolean that_present_status = true && that.isSetStatus();if (this_present_status || that_present_status) {if (!(this_present_status && that_present_status))return false;if (!this.status.equals(that.status))return false;}boolean this_present_description = true && this.isSetDescription();boolean that_present_description = true && that.isSetDescription();if (this_present_description || that_present_description) {if (!(this_present_description && that_present_description))return false;if (!this.description.equals(that.description))return false;}boolean this_present_pickUp = true;boolean that_present_pickUp = true;if (this_present_pickUp || that_present_pickUp) {if (!(this_present_pickUp && that_present_pickUp))return false;if (this.pickUp != that.pickUp)return false;}boolean this_present_orderType = true && this.isSetOrderType();boolean that_present_orderType = true && that.isSetOrderType();if (this_present_orderType || that_present_orderType) {if (!(this_present_orderType && that_present_orderType))return false;if (!this.orderType.equals(that.orderType))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(changeTransactionStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;changeTransactionStatus_args typedOther = (changeTransactionStatus_args)other;lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());if (lastComparison != 0) {return lastComparison;}if (isSetTransactionId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());if (lastComparison != 0) {return lastComparison;}if (isSetStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());if (lastComparison != 0) {return lastComparison;}if (isSetDescription()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());if (lastComparison != 0) {return lastComparison;}if (isSetPickUp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOrderType()).compareTo(typedOther.isSetOrderType());if (lastComparison != 0) {return lastComparison;}if (isSetOrderType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderType, typedOther.orderType);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // TRANSACTION_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.transactionId = iprot.readI64();setTransactionIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // STATUSif (field.type == org.apache.thrift.protocol.TType.I32) {this.status = TransactionStatus.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // DESCRIPTIONif (field.type == org.apache.thrift.protocol.TType.STRING) {this.description = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // PICK_UPif (field.type == org.apache.thrift.protocol.TType.I64) {this.pickUp = iprot.readI64();setPickUpIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // ORDER_TYPEif (field.type == org.apache.thrift.protocol.TType.I32) {this.orderType = OrderType.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);oprot.writeI64(this.transactionId);oprot.writeFieldEnd();if (this.status != null) {oprot.writeFieldBegin(STATUS_FIELD_DESC);oprot.writeI32(this.status.getValue());oprot.writeFieldEnd();}if (this.description != null) {oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);oprot.writeString(this.description);oprot.writeFieldEnd();}oprot.writeFieldBegin(PICK_UP_FIELD_DESC);oprot.writeI64(this.pickUp);oprot.writeFieldEnd();if (this.orderType != null) {oprot.writeFieldBegin(ORDER_TYPE_FIELD_DESC);oprot.writeI32(this.orderType.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("changeTransactionStatus_args(");boolean first = true;sb.append("transactionId:");sb.append(this.transactionId);first = false;if (!first) sb.append(", ");sb.append("status:");if (this.status == null) {sb.append("null");} else {sb.append(this.status);}first = false;if (!first) sb.append(", ");sb.append("description:");if (this.description == null) {sb.append("null");} else {sb.append(this.description);}first = false;if (!first) sb.append(", ");sb.append("pickUp:");sb.append(this.pickUp);first = false;if (!first) sb.append(", ");sb.append("orderType:");if (this.orderType == null) {sb.append("null");} else {sb.append(this.orderType);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class changeTransactionStatus_result implements org.apache.thrift.TBase<changeTransactionStatus_result, changeTransactionStatus_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeTransactionStatus_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeTransactionStatus_result.class, metaDataMap);}public changeTransactionStatus_result() {}public changeTransactionStatus_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public changeTransactionStatus_result(changeTransactionStatus_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public changeTransactionStatus_result deepCopy() {return new changeTransactionStatus_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof changeTransactionStatus_result)return this.equals((changeTransactionStatus_result)that);return false;}public boolean equals(changeTransactionStatus_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(changeTransactionStatus_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;changeTransactionStatus_result typedOther = (changeTransactionStatus_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("changeTransactionStatus_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class enqueueTransactionInfoEmail_args implements org.apache.thrift.TBase<enqueueTransactionInfoEmail_args, enqueueTransactionInfoEmail_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enqueueTransactionInfoEmail_args");private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)1);private long transactionId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {TRANSACTION_ID((short)1, "transactionId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // TRANSACTION_IDreturn TRANSACTION_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TRANSACTIONID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enqueueTransactionInfoEmail_args.class, metaDataMap);}public enqueueTransactionInfoEmail_args() {}public enqueueTransactionInfoEmail_args(long transactionId){this();this.transactionId = transactionId;setTransactionIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public enqueueTransactionInfoEmail_args(enqueueTransactionInfoEmail_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.transactionId = other.transactionId;}public enqueueTransactionInfoEmail_args deepCopy() {return new enqueueTransactionInfoEmail_args(this);}@Overridepublic void clear() {setTransactionIdIsSet(false);this.transactionId = 0;}public long getTransactionId() {return this.transactionId;}public void setTransactionId(long transactionId) {this.transactionId = transactionId;setTransactionIdIsSet(true);}public void unsetTransactionId() {__isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);}/** Returns true if field transactionId is set (has been assigned a value) and false otherwise */public boolean isSetTransactionId() {return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);}public void setTransactionIdIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION_ID:if (value == null) {unsetTransactionId();} else {setTransactionId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION_ID:return Long.valueOf(getTransactionId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case TRANSACTION_ID:return isSetTransactionId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof enqueueTransactionInfoEmail_args)return this.equals((enqueueTransactionInfoEmail_args)that);return false;}public boolean equals(enqueueTransactionInfoEmail_args that) {if (that == null)return false;boolean this_present_transactionId = true;boolean that_present_transactionId = true;if (this_present_transactionId || that_present_transactionId) {if (!(this_present_transactionId && that_present_transactionId))return false;if (this.transactionId != that.transactionId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(enqueueTransactionInfoEmail_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;enqueueTransactionInfoEmail_args typedOther = (enqueueTransactionInfoEmail_args)other;lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());if (lastComparison != 0) {return lastComparison;}if (isSetTransactionId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // TRANSACTION_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.transactionId = iprot.readI64();setTransactionIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);oprot.writeI64(this.transactionId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("enqueueTransactionInfoEmail_args(");boolean first = true;sb.append("transactionId:");sb.append(this.transactionId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class enqueueTransactionInfoEmail_result implements org.apache.thrift.TBase<enqueueTransactionInfoEmail_result, enqueueTransactionInfoEmail_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enqueueTransactionInfoEmail_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enqueueTransactionInfoEmail_result.class, metaDataMap);}public enqueueTransactionInfoEmail_result() {}public enqueueTransactionInfoEmail_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public enqueueTransactionInfoEmail_result(enqueueTransactionInfoEmail_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public enqueueTransactionInfoEmail_result deepCopy() {return new enqueueTransactionInfoEmail_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof enqueueTransactionInfoEmail_result)return this.equals((enqueueTransactionInfoEmail_result)that);return false;}public boolean equals(enqueueTransactionInfoEmail_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(enqueueTransactionInfoEmail_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;enqueueTransactionInfoEmail_result typedOther = (enqueueTransactionInfoEmail_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("enqueueTransactionInfoEmail_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllOrders_args implements org.apache.thrift.TBase<getAllOrders_args, getAllOrders_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOrders_args");private static final org.apache.thrift.protocol.TField STATUSES_FIELD_DESC = new org.apache.thrift.protocol.TField("statuses", org.apache.thrift.protocol.TType.LIST, (short)1);private static final org.apache.thrift.protocol.TField FROM_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("from_date", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField TO_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("to_date", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)4);private List<OrderStatus> statuses; // requiredprivate long from_date; // requiredprivate long to_date; // requiredprivate long warehouse_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {STATUSES((short)1, "statuses"),FROM_DATE((short)2, "from_date"),TO_DATE((short)3, "to_date"),WAREHOUSE_ID((short)4, "warehouse_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // STATUSESreturn STATUSES;case 2: // FROM_DATEreturn FROM_DATE;case 3: // TO_DATEreturn TO_DATE;case 4: // WAREHOUSE_IDreturn WAREHOUSE_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __FROM_DATE_ISSET_ID = 0;private static final int __TO_DATE_ISSET_ID = 1;private static final int __WAREHOUSE_ID_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("from_date", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("to_date", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrders_args.class, metaDataMap);}public getAllOrders_args() {}public getAllOrders_args(List<OrderStatus> statuses,long from_date,long to_date,long warehouse_id){this();this.statuses = statuses;this.from_date = from_date;setFrom_dateIsSet(true);this.to_date = to_date;setTo_dateIsSet(true);this.warehouse_id = warehouse_id;setWarehouse_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllOrders_args(getAllOrders_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetStatuses()) {List<OrderStatus> __this__statuses = new ArrayList<OrderStatus>();for (OrderStatus other_element : other.statuses) {__this__statuses.add(other_element);}this.statuses = __this__statuses;}this.from_date = other.from_date;this.to_date = other.to_date;this.warehouse_id = other.warehouse_id;}public getAllOrders_args deepCopy() {return new getAllOrders_args(this);}@Overridepublic void clear() {this.statuses = null;setFrom_dateIsSet(false);this.from_date = 0;setTo_dateIsSet(false);this.to_date = 0;setWarehouse_idIsSet(false);this.warehouse_id = 0;}public int getStatusesSize() {return (this.statuses == null) ? 0 : this.statuses.size();}public java.util.Iterator<OrderStatus> getStatusesIterator() {return (this.statuses == null) ? null : this.statuses.iterator();}public void addToStatuses(OrderStatus elem) {if (this.statuses == null) {this.statuses = new ArrayList<OrderStatus>();}this.statuses.add(elem);}public List<OrderStatus> getStatuses() {return this.statuses;}public void setStatuses(List<OrderStatus> statuses) {this.statuses = statuses;}public void unsetStatuses() {this.statuses = null;}/** Returns true if field statuses is set (has been assigned a value) and false otherwise */public boolean isSetStatuses() {return this.statuses != null;}public void setStatusesIsSet(boolean value) {if (!value) {this.statuses = null;}}public long getFrom_date() {return this.from_date;}public void setFrom_date(long from_date) {this.from_date = from_date;setFrom_dateIsSet(true);}public void unsetFrom_date() {__isset_bit_vector.clear(__FROM_DATE_ISSET_ID);}/** Returns true if field from_date is set (has been assigned a value) and false otherwise */public boolean isSetFrom_date() {return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);}public void setFrom_dateIsSet(boolean value) {__isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);}public long getTo_date() {return this.to_date;}public void setTo_date(long to_date) {this.to_date = to_date;setTo_dateIsSet(true);}public void unsetTo_date() {__isset_bit_vector.clear(__TO_DATE_ISSET_ID);}/** Returns true if field to_date is set (has been assigned a value) and false otherwise */public boolean isSetTo_date() {return __isset_bit_vector.get(__TO_DATE_ISSET_ID);}public void setTo_dateIsSet(boolean value) {__isset_bit_vector.set(__TO_DATE_ISSET_ID, value);}public long getWarehouse_id() {return this.warehouse_id;}public void setWarehouse_id(long warehouse_id) {this.warehouse_id = warehouse_id;setWarehouse_idIsSet(true);}public void unsetWarehouse_id() {__isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);}/** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */public boolean isSetWarehouse_id() {return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);}public void setWarehouse_idIsSet(boolean value) {__isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case STATUSES:if (value == null) {unsetStatuses();} else {setStatuses((List<OrderStatus>)value);}break;case FROM_DATE:if (value == null) {unsetFrom_date();} else {setFrom_date((Long)value);}break;case TO_DATE:if (value == null) {unsetTo_date();} else {setTo_date((Long)value);}break;case WAREHOUSE_ID:if (value == null) {unsetWarehouse_id();} else {setWarehouse_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case STATUSES:return getStatuses();case FROM_DATE:return Long.valueOf(getFrom_date());case TO_DATE:return Long.valueOf(getTo_date());case WAREHOUSE_ID:return Long.valueOf(getWarehouse_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case STATUSES:return isSetStatuses();case FROM_DATE:return isSetFrom_date();case TO_DATE:return isSetTo_date();case WAREHOUSE_ID:return isSetWarehouse_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllOrders_args)return this.equals((getAllOrders_args)that);return false;}public boolean equals(getAllOrders_args that) {if (that == null)return false;boolean this_present_statuses = true && this.isSetStatuses();boolean that_present_statuses = true && that.isSetStatuses();if (this_present_statuses || that_present_statuses) {if (!(this_present_statuses && that_present_statuses))return false;if (!this.statuses.equals(that.statuses))return false;}boolean this_present_from_date = true;boolean that_present_from_date = true;if (this_present_from_date || that_present_from_date) {if (!(this_present_from_date && that_present_from_date))return false;if (this.from_date != that.from_date)return false;}boolean this_present_to_date = true;boolean that_present_to_date = true;if (this_present_to_date || that_present_to_date) {if (!(this_present_to_date && that_present_to_date))return false;if (this.to_date != that.to_date)return false;}boolean this_present_warehouse_id = true;boolean that_present_warehouse_id = true;if (this_present_warehouse_id || that_present_warehouse_id) {if (!(this_present_warehouse_id && that_present_warehouse_id))return false;if (this.warehouse_id != that.warehouse_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllOrders_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllOrders_args typedOther = (getAllOrders_args)other;lastComparison = Boolean.valueOf(isSetStatuses()).compareTo(typedOther.isSetStatuses());if (lastComparison != 0) {return lastComparison;}if (isSetStatuses()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statuses, typedOther.statuses);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(typedOther.isSetFrom_date());if (lastComparison != 0) {return lastComparison;}if (isSetFrom_date()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from_date, typedOther.from_date);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(typedOther.isSetTo_date());if (lastComparison != 0) {return lastComparison;}if (isSetTo_date()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to_date, typedOther.to_date);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());if (lastComparison != 0) {return lastComparison;}if (isSetWarehouse_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // STATUSESif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();this.statuses = new ArrayList<OrderStatus>(_list48.size);for (int _i49 = 0; _i49 < _list48.size; ++_i49){OrderStatus _elem50; // required_elem50 = OrderStatus.findByValue(iprot.readI32());this.statuses.add(_elem50);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // FROM_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.from_date = iprot.readI64();setFrom_dateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // TO_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.to_date = iprot.readI64();setTo_dateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.warehouse_id = iprot.readI64();setWarehouse_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.statuses != null) {oprot.writeFieldBegin(STATUSES_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statuses.size()));for (OrderStatus _iter51 : this.statuses){oprot.writeI32(_iter51.getValue());}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);oprot.writeI64(this.from_date);oprot.writeFieldEnd();oprot.writeFieldBegin(TO_DATE_FIELD_DESC);oprot.writeI64(this.to_date);oprot.writeFieldEnd();oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.warehouse_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllOrders_args(");boolean first = true;sb.append("statuses:");if (this.statuses == null) {sb.append("null");} else {sb.append(this.statuses);}first = false;if (!first) sb.append(", ");sb.append("from_date:");sb.append(this.from_date);first = false;if (!first) sb.append(", ");sb.append("to_date:");sb.append(this.to_date);first = false;if (!first) sb.append(", ");sb.append("warehouse_id:");sb.append(this.warehouse_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllOrders_result implements org.apache.thrift.TBase<getAllOrders_result, getAllOrders_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllOrders_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Order> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllOrders_result.class, metaDataMap);}public getAllOrders_result() {}public getAllOrders_result(List<Order> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getAllOrders_result(getAllOrders_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getAllOrders_result deepCopy() {return new getAllOrders_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllOrders_result)return this.equals((getAllOrders_result)that);return false;}public boolean equals(getAllOrders_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllOrders_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllOrders_result typedOther = (getAllOrders_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();this.success = new ArrayList<Order>(_list52.size);for (int _i53 = 0; _i53 < _list52.size; ++_i53){Order _elem54; // required_elem54 = new Order();_elem54.read(iprot);this.success.add(_elem54);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter55 : this.success){_iter55.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllOrders_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersInBatch_args implements org.apache.thrift.TBase<getOrdersInBatch_args, getOrdersInBatch_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersInBatch_args");private static final org.apache.thrift.protocol.TField STATUSES_FIELD_DESC = new org.apache.thrift.protocol.TField("statuses", org.apache.thrift.protocol.TType.LIST, (short)1);private static final org.apache.thrift.protocol.TField OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("offset", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)4);private List<OrderStatus> statuses; // requiredprivate long offset; // requiredprivate long limit; // requiredprivate long warehouse_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {STATUSES((short)1, "statuses"),OFFSET((short)2, "offset"),LIMIT((short)3, "limit"),WAREHOUSE_ID((short)4, "warehouse_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // STATUSESreturn STATUSES;case 2: // OFFSETreturn OFFSET;case 3: // LIMITreturn LIMIT;case 4: // WAREHOUSE_IDreturn WAREHOUSE_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __OFFSET_ISSET_ID = 0;private static final int __LIMIT_ISSET_ID = 1;private static final int __WAREHOUSE_ID_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));tmpMap.put(_Fields.OFFSET, new org.apache.thrift.meta_data.FieldMetaData("offset", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersInBatch_args.class, metaDataMap);}public getOrdersInBatch_args() {}public getOrdersInBatch_args(List<OrderStatus> statuses,long offset,long limit,long warehouse_id){this();this.statuses = statuses;this.offset = offset;setOffsetIsSet(true);this.limit = limit;setLimitIsSet(true);this.warehouse_id = warehouse_id;setWarehouse_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getOrdersInBatch_args(getOrdersInBatch_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetStatuses()) {List<OrderStatus> __this__statuses = new ArrayList<OrderStatus>();for (OrderStatus other_element : other.statuses) {__this__statuses.add(other_element);}this.statuses = __this__statuses;}this.offset = other.offset;this.limit = other.limit;this.warehouse_id = other.warehouse_id;}public getOrdersInBatch_args deepCopy() {return new getOrdersInBatch_args(this);}@Overridepublic void clear() {this.statuses = null;setOffsetIsSet(false);this.offset = 0;setLimitIsSet(false);this.limit = 0;setWarehouse_idIsSet(false);this.warehouse_id = 0;}public int getStatusesSize() {return (this.statuses == null) ? 0 : this.statuses.size();}public java.util.Iterator<OrderStatus> getStatusesIterator() {return (this.statuses == null) ? null : this.statuses.iterator();}public void addToStatuses(OrderStatus elem) {if (this.statuses == null) {this.statuses = new ArrayList<OrderStatus>();}this.statuses.add(elem);}public List<OrderStatus> getStatuses() {return this.statuses;}public void setStatuses(List<OrderStatus> statuses) {this.statuses = statuses;}public void unsetStatuses() {this.statuses = null;}/** Returns true if field statuses is set (has been assigned a value) and false otherwise */public boolean isSetStatuses() {return this.statuses != null;}public void setStatusesIsSet(boolean value) {if (!value) {this.statuses = null;}}public long getOffset() {return this.offset;}public void setOffset(long offset) {this.offset = offset;setOffsetIsSet(true);}public void unsetOffset() {__isset_bit_vector.clear(__OFFSET_ISSET_ID);}/** Returns true if field offset is set (has been assigned a value) and false otherwise */public boolean isSetOffset() {return __isset_bit_vector.get(__OFFSET_ISSET_ID);}public void setOffsetIsSet(boolean value) {__isset_bit_vector.set(__OFFSET_ISSET_ID, value);}public long getLimit() {return this.limit;}public void setLimit(long limit) {this.limit = limit;setLimitIsSet(true);}public void unsetLimit() {__isset_bit_vector.clear(__LIMIT_ISSET_ID);}/** Returns true if field limit is set (has been assigned a value) and false otherwise */public boolean isSetLimit() {return __isset_bit_vector.get(__LIMIT_ISSET_ID);}public void setLimitIsSet(boolean value) {__isset_bit_vector.set(__LIMIT_ISSET_ID, value);}public long getWarehouse_id() {return this.warehouse_id;}public void setWarehouse_id(long warehouse_id) {this.warehouse_id = warehouse_id;setWarehouse_idIsSet(true);}public void unsetWarehouse_id() {__isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);}/** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */public boolean isSetWarehouse_id() {return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);}public void setWarehouse_idIsSet(boolean value) {__isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case STATUSES:if (value == null) {unsetStatuses();} else {setStatuses((List<OrderStatus>)value);}break;case OFFSET:if (value == null) {unsetOffset();} else {setOffset((Long)value);}break;case LIMIT:if (value == null) {unsetLimit();} else {setLimit((Long)value);}break;case WAREHOUSE_ID:if (value == null) {unsetWarehouse_id();} else {setWarehouse_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case STATUSES:return getStatuses();case OFFSET:return Long.valueOf(getOffset());case LIMIT:return Long.valueOf(getLimit());case WAREHOUSE_ID:return Long.valueOf(getWarehouse_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case STATUSES:return isSetStatuses();case OFFSET:return isSetOffset();case LIMIT:return isSetLimit();case WAREHOUSE_ID:return isSetWarehouse_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersInBatch_args)return this.equals((getOrdersInBatch_args)that);return false;}public boolean equals(getOrdersInBatch_args that) {if (that == null)return false;boolean this_present_statuses = true && this.isSetStatuses();boolean that_present_statuses = true && that.isSetStatuses();if (this_present_statuses || that_present_statuses) {if (!(this_present_statuses && that_present_statuses))return false;if (!this.statuses.equals(that.statuses))return false;}boolean this_present_offset = true;boolean that_present_offset = true;if (this_present_offset || that_present_offset) {if (!(this_present_offset && that_present_offset))return false;if (this.offset != that.offset)return false;}boolean this_present_limit = true;boolean that_present_limit = true;if (this_present_limit || that_present_limit) {if (!(this_present_limit && that_present_limit))return false;if (this.limit != that.limit)return false;}boolean this_present_warehouse_id = true;boolean that_present_warehouse_id = true;if (this_present_warehouse_id || that_present_warehouse_id) {if (!(this_present_warehouse_id && that_present_warehouse_id))return false;if (this.warehouse_id != that.warehouse_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersInBatch_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersInBatch_args typedOther = (getOrdersInBatch_args)other;lastComparison = Boolean.valueOf(isSetStatuses()).compareTo(typedOther.isSetStatuses());if (lastComparison != 0) {return lastComparison;}if (isSetStatuses()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statuses, typedOther.statuses);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOffset()).compareTo(typedOther.isSetOffset());if (lastComparison != 0) {return lastComparison;}if (isSetOffset()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.offset, typedOther.offset);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());if (lastComparison != 0) {return lastComparison;}if (isSetLimit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());if (lastComparison != 0) {return lastComparison;}if (isSetWarehouse_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // STATUSESif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();this.statuses = new ArrayList<OrderStatus>(_list56.size);for (int _i57 = 0; _i57 < _list56.size; ++_i57){OrderStatus _elem58; // required_elem58 = OrderStatus.findByValue(iprot.readI32());this.statuses.add(_elem58);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // OFFSETif (field.type == org.apache.thrift.protocol.TType.I64) {this.offset = iprot.readI64();setOffsetIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // LIMITif (field.type == org.apache.thrift.protocol.TType.I64) {this.limit = iprot.readI64();setLimitIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.warehouse_id = iprot.readI64();setWarehouse_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.statuses != null) {oprot.writeFieldBegin(STATUSES_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statuses.size()));for (OrderStatus _iter59 : this.statuses){oprot.writeI32(_iter59.getValue());}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldBegin(OFFSET_FIELD_DESC);oprot.writeI64(this.offset);oprot.writeFieldEnd();oprot.writeFieldBegin(LIMIT_FIELD_DESC);oprot.writeI64(this.limit);oprot.writeFieldEnd();oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.warehouse_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersInBatch_args(");boolean first = true;sb.append("statuses:");if (this.statuses == null) {sb.append("null");} else {sb.append(this.statuses);}first = false;if (!first) sb.append(", ");sb.append("offset:");sb.append(this.offset);first = false;if (!first) sb.append(", ");sb.append("limit:");sb.append(this.limit);first = false;if (!first) sb.append(", ");sb.append("warehouse_id:");sb.append(this.warehouse_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersInBatch_result implements org.apache.thrift.TBase<getOrdersInBatch_result, getOrdersInBatch_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersInBatch_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Order> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersInBatch_result.class, metaDataMap);}public getOrdersInBatch_result() {}public getOrdersInBatch_result(List<Order> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getOrdersInBatch_result(getOrdersInBatch_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getOrdersInBatch_result deepCopy() {return new getOrdersInBatch_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersInBatch_result)return this.equals((getOrdersInBatch_result)that);return false;}public boolean equals(getOrdersInBatch_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersInBatch_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersInBatch_result typedOther = (getOrdersInBatch_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();this.success = new ArrayList<Order>(_list60.size);for (int _i61 = 0; _i61 < _list60.size; ++_i61){Order _elem62; // required_elem62 = new Order();_elem62.read(iprot);this.success.add(_elem62);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter63 : this.success){_iter63.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersInBatch_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrderCount_args implements org.apache.thrift.TBase<getOrderCount_args, getOrderCount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderCount_args");private static final org.apache.thrift.protocol.TField STATUSES_FIELD_DESC = new org.apache.thrift.protocol.TField("statuses", org.apache.thrift.protocol.TType.LIST, (short)1);private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);private List<OrderStatus> statuses; // requiredprivate long warehouseId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {STATUSES((short)1, "statuses"),WAREHOUSE_ID((short)2, "warehouseId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // STATUSESreturn STATUSES;case 2: // WAREHOUSE_IDreturn WAREHOUSE_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __WAREHOUSEID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderCount_args.class, metaDataMap);}public getOrderCount_args() {}public getOrderCount_args(List<OrderStatus> statuses,long warehouseId){this();this.statuses = statuses;this.warehouseId = warehouseId;setWarehouseIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getOrderCount_args(getOrderCount_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetStatuses()) {List<OrderStatus> __this__statuses = new ArrayList<OrderStatus>();for (OrderStatus other_element : other.statuses) {__this__statuses.add(other_element);}this.statuses = __this__statuses;}this.warehouseId = other.warehouseId;}public getOrderCount_args deepCopy() {return new getOrderCount_args(this);}@Overridepublic void clear() {this.statuses = null;setWarehouseIdIsSet(false);this.warehouseId = 0;}public int getStatusesSize() {return (this.statuses == null) ? 0 : this.statuses.size();}public java.util.Iterator<OrderStatus> getStatusesIterator() {return (this.statuses == null) ? null : this.statuses.iterator();}public void addToStatuses(OrderStatus elem) {if (this.statuses == null) {this.statuses = new ArrayList<OrderStatus>();}this.statuses.add(elem);}public List<OrderStatus> getStatuses() {return this.statuses;}public void setStatuses(List<OrderStatus> statuses) {this.statuses = statuses;}public void unsetStatuses() {this.statuses = null;}/** Returns true if field statuses is set (has been assigned a value) and false otherwise */public boolean isSetStatuses() {return this.statuses != null;}public void setStatusesIsSet(boolean value) {if (!value) {this.statuses = null;}}public long getWarehouseId() {return this.warehouseId;}public void setWarehouseId(long warehouseId) {this.warehouseId = warehouseId;setWarehouseIdIsSet(true);}public void unsetWarehouseId() {__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);}/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */public boolean isSetWarehouseId() {return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);}public void setWarehouseIdIsSet(boolean value) {__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case STATUSES:if (value == null) {unsetStatuses();} else {setStatuses((List<OrderStatus>)value);}break;case WAREHOUSE_ID:if (value == null) {unsetWarehouseId();} else {setWarehouseId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case STATUSES:return getStatuses();case WAREHOUSE_ID:return Long.valueOf(getWarehouseId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case STATUSES:return isSetStatuses();case WAREHOUSE_ID:return isSetWarehouseId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderCount_args)return this.equals((getOrderCount_args)that);return false;}public boolean equals(getOrderCount_args that) {if (that == null)return false;boolean this_present_statuses = true && this.isSetStatuses();boolean that_present_statuses = true && that.isSetStatuses();if (this_present_statuses || that_present_statuses) {if (!(this_present_statuses && that_present_statuses))return false;if (!this.statuses.equals(that.statuses))return false;}boolean this_present_warehouseId = true;boolean that_present_warehouseId = true;if (this_present_warehouseId || that_present_warehouseId) {if (!(this_present_warehouseId && that_present_warehouseId))return false;if (this.warehouseId != that.warehouseId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrderCount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrderCount_args typedOther = (getOrderCount_args)other;lastComparison = Boolean.valueOf(isSetStatuses()).compareTo(typedOther.isSetStatuses());if (lastComparison != 0) {return lastComparison;}if (isSetStatuses()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statuses, typedOther.statuses);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());if (lastComparison != 0) {return lastComparison;}if (isSetWarehouseId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // STATUSESif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();this.statuses = new ArrayList<OrderStatus>(_list64.size);for (int _i65 = 0; _i65 < _list64.size; ++_i65){OrderStatus _elem66; // required_elem66 = OrderStatus.findByValue(iprot.readI32());this.statuses.add(_elem66);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.warehouseId = iprot.readI64();setWarehouseIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.statuses != null) {oprot.writeFieldBegin(STATUSES_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statuses.size()));for (OrderStatus _iter67 : this.statuses){oprot.writeI32(_iter67.getValue());}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.warehouseId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderCount_args(");boolean first = true;sb.append("statuses:");if (this.statuses == null) {sb.append("null");} else {sb.append(this.statuses);}first = false;if (!first) sb.append(", ");sb.append("warehouseId:");sb.append(this.warehouseId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrderCount_result implements org.apache.thrift.TBase<getOrderCount_result, getOrderCount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderCount_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private int success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderCount_result.class, metaDataMap);}public getOrderCount_result() {}public getOrderCount_result(int success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getOrderCount_result(getOrderCount_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getOrderCount_result deepCopy() {return new getOrderCount_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;this.ex = null;}public int getSuccess() {return this.success;}public void setSuccess(int success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Integer)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Integer.valueOf(getSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderCount_result)return this.equals((getOrderCount_result)that);return false;}public boolean equals(getOrderCount_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrderCount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrderCount_result typedOther = (getOrderCount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I32) {this.success = iprot.readI32();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI32(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderCount_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersByBillingDate_args implements org.apache.thrift.TBase<getOrdersByBillingDate_args, getOrdersByBillingDate_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByBillingDate_args");private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)1);private static final org.apache.thrift.protocol.TField START_BILLING_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("start_billing_date", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField END_BILLING_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("end_billing_date", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)4);private OrderStatus status; // requiredprivate long start_billing_date; // requiredprivate long end_billing_date; // requiredprivate long warehouse_id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {/**** @see OrderStatus*/STATUS((short)1, "status"),START_BILLING_DATE((short)2, "start_billing_date"),END_BILLING_DATE((short)3, "end_billing_date"),WAREHOUSE_ID((short)4, "warehouse_id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // STATUSreturn STATUS;case 2: // START_BILLING_DATEreturn START_BILLING_DATE;case 3: // END_BILLING_DATEreturn END_BILLING_DATE;case 4: // WAREHOUSE_IDreturn WAREHOUSE_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __START_BILLING_DATE_ISSET_ID = 0;private static final int __END_BILLING_DATE_ISSET_ID = 1;private static final int __WAREHOUSE_ID_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class)));tmpMap.put(_Fields.START_BILLING_DATE, new org.apache.thrift.meta_data.FieldMetaData("start_billing_date", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.END_BILLING_DATE, new org.apache.thrift.meta_data.FieldMetaData("end_billing_date", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByBillingDate_args.class, metaDataMap);}public getOrdersByBillingDate_args() {}public getOrdersByBillingDate_args(OrderStatus status,long start_billing_date,long end_billing_date,long warehouse_id){this();this.status = status;this.start_billing_date = start_billing_date;setStart_billing_dateIsSet(true);this.end_billing_date = end_billing_date;setEnd_billing_dateIsSet(true);this.warehouse_id = warehouse_id;setWarehouse_idIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getOrdersByBillingDate_args(getOrdersByBillingDate_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetStatus()) {this.status = other.status;}this.start_billing_date = other.start_billing_date;this.end_billing_date = other.end_billing_date;this.warehouse_id = other.warehouse_id;}public getOrdersByBillingDate_args deepCopy() {return new getOrdersByBillingDate_args(this);}@Overridepublic void clear() {this.status = null;setStart_billing_dateIsSet(false);this.start_billing_date = 0;setEnd_billing_dateIsSet(false);this.end_billing_date = 0;setWarehouse_idIsSet(false);this.warehouse_id = 0;}/**** @see OrderStatus*/public OrderStatus getStatus() {return this.status;}/**** @see OrderStatus*/public void setStatus(OrderStatus status) {this.status = status;}public void unsetStatus() {this.status = null;}/** Returns true if field status is set (has been assigned a value) and false otherwise */public boolean isSetStatus() {return this.status != null;}public void setStatusIsSet(boolean value) {if (!value) {this.status = null;}}public long getStart_billing_date() {return this.start_billing_date;}public void setStart_billing_date(long start_billing_date) {this.start_billing_date = start_billing_date;setStart_billing_dateIsSet(true);}public void unsetStart_billing_date() {__isset_bit_vector.clear(__START_BILLING_DATE_ISSET_ID);}/** Returns true if field start_billing_date is set (has been assigned a value) and false otherwise */public boolean isSetStart_billing_date() {return __isset_bit_vector.get(__START_BILLING_DATE_ISSET_ID);}public void setStart_billing_dateIsSet(boolean value) {__isset_bit_vector.set(__START_BILLING_DATE_ISSET_ID, value);}public long getEnd_billing_date() {return this.end_billing_date;}public void setEnd_billing_date(long end_billing_date) {this.end_billing_date = end_billing_date;setEnd_billing_dateIsSet(true);}public void unsetEnd_billing_date() {__isset_bit_vector.clear(__END_BILLING_DATE_ISSET_ID);}/** Returns true if field end_billing_date is set (has been assigned a value) and false otherwise */public boolean isSetEnd_billing_date() {return __isset_bit_vector.get(__END_BILLING_DATE_ISSET_ID);}public void setEnd_billing_dateIsSet(boolean value) {__isset_bit_vector.set(__END_BILLING_DATE_ISSET_ID, value);}public long getWarehouse_id() {return this.warehouse_id;}public void setWarehouse_id(long warehouse_id) {this.warehouse_id = warehouse_id;setWarehouse_idIsSet(true);}public void unsetWarehouse_id() {__isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);}/** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */public boolean isSetWarehouse_id() {return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);}public void setWarehouse_idIsSet(boolean value) {__isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case STATUS:if (value == null) {unsetStatus();} else {setStatus((OrderStatus)value);}break;case START_BILLING_DATE:if (value == null) {unsetStart_billing_date();} else {setStart_billing_date((Long)value);}break;case END_BILLING_DATE:if (value == null) {unsetEnd_billing_date();} else {setEnd_billing_date((Long)value);}break;case WAREHOUSE_ID:if (value == null) {unsetWarehouse_id();} else {setWarehouse_id((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case STATUS:return getStatus();case START_BILLING_DATE:return Long.valueOf(getStart_billing_date());case END_BILLING_DATE:return Long.valueOf(getEnd_billing_date());case WAREHOUSE_ID:return Long.valueOf(getWarehouse_id());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case STATUS:return isSetStatus();case START_BILLING_DATE:return isSetStart_billing_date();case END_BILLING_DATE:return isSetEnd_billing_date();case WAREHOUSE_ID:return isSetWarehouse_id();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersByBillingDate_args)return this.equals((getOrdersByBillingDate_args)that);return false;}public boolean equals(getOrdersByBillingDate_args that) {if (that == null)return false;boolean this_present_status = true && this.isSetStatus();boolean that_present_status = true && that.isSetStatus();if (this_present_status || that_present_status) {if (!(this_present_status && that_present_status))return false;if (!this.status.equals(that.status))return false;}boolean this_present_start_billing_date = true;boolean that_present_start_billing_date = true;if (this_present_start_billing_date || that_present_start_billing_date) {if (!(this_present_start_billing_date && that_present_start_billing_date))return false;if (this.start_billing_date != that.start_billing_date)return false;}boolean this_present_end_billing_date = true;boolean that_present_end_billing_date = true;if (this_present_end_billing_date || that_present_end_billing_date) {if (!(this_present_end_billing_date && that_present_end_billing_date))return false;if (this.end_billing_date != that.end_billing_date)return false;}boolean this_present_warehouse_id = true;boolean that_present_warehouse_id = true;if (this_present_warehouse_id || that_present_warehouse_id) {if (!(this_present_warehouse_id && that_present_warehouse_id))return false;if (this.warehouse_id != that.warehouse_id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersByBillingDate_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersByBillingDate_args typedOther = (getOrdersByBillingDate_args)other;lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());if (lastComparison != 0) {return lastComparison;}if (isSetStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetStart_billing_date()).compareTo(typedOther.isSetStart_billing_date());if (lastComparison != 0) {return lastComparison;}if (isSetStart_billing_date()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.start_billing_date, typedOther.start_billing_date);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEnd_billing_date()).compareTo(typedOther.isSetEnd_billing_date());if (lastComparison != 0) {return lastComparison;}if (isSetEnd_billing_date()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.end_billing_date, typedOther.end_billing_date);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());if (lastComparison != 0) {return lastComparison;}if (isSetWarehouse_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // STATUSif (field.type == org.apache.thrift.protocol.TType.I32) {this.status = OrderStatus.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // START_BILLING_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.start_billing_date = iprot.readI64();setStart_billing_dateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // END_BILLING_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.end_billing_date = iprot.readI64();setEnd_billing_dateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.warehouse_id = iprot.readI64();setWarehouse_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.status != null) {oprot.writeFieldBegin(STATUS_FIELD_DESC);oprot.writeI32(this.status.getValue());oprot.writeFieldEnd();}oprot.writeFieldBegin(START_BILLING_DATE_FIELD_DESC);oprot.writeI64(this.start_billing_date);oprot.writeFieldEnd();oprot.writeFieldBegin(END_BILLING_DATE_FIELD_DESC);oprot.writeI64(this.end_billing_date);oprot.writeFieldEnd();oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.warehouse_id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersByBillingDate_args(");boolean first = true;sb.append("status:");if (this.status == null) {sb.append("null");} else {sb.append(this.status);}first = false;if (!first) sb.append(", ");sb.append("start_billing_date:");sb.append(this.start_billing_date);first = false;if (!first) sb.append(", ");sb.append("end_billing_date:");sb.append(this.end_billing_date);first = false;if (!first) sb.append(", ");sb.append("warehouse_id:");sb.append(this.warehouse_id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersByBillingDate_result implements org.apache.thrift.TBase<getOrdersByBillingDate_result, getOrdersByBillingDate_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByBillingDate_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Order> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByBillingDate_result.class, metaDataMap);}public getOrdersByBillingDate_result() {}public getOrdersByBillingDate_result(List<Order> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getOrdersByBillingDate_result(getOrdersByBillingDate_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getOrdersByBillingDate_result deepCopy() {return new getOrdersByBillingDate_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersByBillingDate_result)return this.equals((getOrdersByBillingDate_result)that);return false;}public boolean equals(getOrdersByBillingDate_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersByBillingDate_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersByBillingDate_result typedOther = (getOrdersByBillingDate_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list68 = iprot.readListBegin();this.success = new ArrayList<Order>(_list68.size);for (int _i69 = 0; _i69 < _list68.size; ++_i69){Order _elem70; // required_elem70 = new Order();_elem70.read(iprot);this.success.add(_elem70);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter71 : this.success){_iter71.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersByBillingDate_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersByShippingDate_args implements org.apache.thrift.TBase<getOrdersByShippingDate_args, getOrdersByShippingDate_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByShippingDate_args");private static final org.apache.thrift.protocol.TField FROM_SHIPPING_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("fromShippingDate", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField TO_SHIPPING_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("toShippingDate", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)4);private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)5);private long fromShippingDate; // requiredprivate long toShippingDate; // requiredprivate long providerId; // requiredprivate long warehouseId; // requiredprivate boolean cod; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {FROM_SHIPPING_DATE((short)1, "fromShippingDate"),TO_SHIPPING_DATE((short)2, "toShippingDate"),PROVIDER_ID((short)3, "providerId"),WAREHOUSE_ID((short)4, "warehouseId"),COD((short)5, "cod");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // FROM_SHIPPING_DATEreturn FROM_SHIPPING_DATE;case 2: // TO_SHIPPING_DATEreturn TO_SHIPPING_DATE;case 3: // PROVIDER_IDreturn PROVIDER_ID;case 4: // WAREHOUSE_IDreturn WAREHOUSE_ID;case 5: // CODreturn COD;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __FROMSHIPPINGDATE_ISSET_ID = 0;private static final int __TOSHIPPINGDATE_ISSET_ID = 1;private static final int __PROVIDERID_ISSET_ID = 2;private static final int __WAREHOUSEID_ISSET_ID = 3;private static final int __COD_ISSET_ID = 4;private BitSet __isset_bit_vector = new BitSet(5);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.FROM_SHIPPING_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromShippingDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TO_SHIPPING_DATE, new org.apache.thrift.meta_data.FieldMetaData("toShippingDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByShippingDate_args.class, metaDataMap);}public getOrdersByShippingDate_args() {}public getOrdersByShippingDate_args(long fromShippingDate,long toShippingDate,long providerId,long warehouseId,boolean cod){this();this.fromShippingDate = fromShippingDate;setFromShippingDateIsSet(true);this.toShippingDate = toShippingDate;setToShippingDateIsSet(true);this.providerId = providerId;setProviderIdIsSet(true);this.warehouseId = warehouseId;setWarehouseIdIsSet(true);this.cod = cod;setCodIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getOrdersByShippingDate_args(getOrdersByShippingDate_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.fromShippingDate = other.fromShippingDate;this.toShippingDate = other.toShippingDate;this.providerId = other.providerId;this.warehouseId = other.warehouseId;this.cod = other.cod;}public getOrdersByShippingDate_args deepCopy() {return new getOrdersByShippingDate_args(this);}@Overridepublic void clear() {setFromShippingDateIsSet(false);this.fromShippingDate = 0;setToShippingDateIsSet(false);this.toShippingDate = 0;setProviderIdIsSet(false);this.providerId = 0;setWarehouseIdIsSet(false);this.warehouseId = 0;setCodIsSet(false);this.cod = false;}public long getFromShippingDate() {return this.fromShippingDate;}public void setFromShippingDate(long fromShippingDate) {this.fromShippingDate = fromShippingDate;setFromShippingDateIsSet(true);}public void unsetFromShippingDate() {__isset_bit_vector.clear(__FROMSHIPPINGDATE_ISSET_ID);}/** Returns true if field fromShippingDate is set (has been assigned a value) and false otherwise */public boolean isSetFromShippingDate() {return __isset_bit_vector.get(__FROMSHIPPINGDATE_ISSET_ID);}public void setFromShippingDateIsSet(boolean value) {__isset_bit_vector.set(__FROMSHIPPINGDATE_ISSET_ID, value);}public long getToShippingDate() {return this.toShippingDate;}public void setToShippingDate(long toShippingDate) {this.toShippingDate = toShippingDate;setToShippingDateIsSet(true);}public void unsetToShippingDate() {__isset_bit_vector.clear(__TOSHIPPINGDATE_ISSET_ID);}/** Returns true if field toShippingDate is set (has been assigned a value) and false otherwise */public boolean isSetToShippingDate() {return __isset_bit_vector.get(__TOSHIPPINGDATE_ISSET_ID);}public void setToShippingDateIsSet(boolean value) {__isset_bit_vector.set(__TOSHIPPINGDATE_ISSET_ID, value);}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public long getWarehouseId() {return this.warehouseId;}public void setWarehouseId(long warehouseId) {this.warehouseId = warehouseId;setWarehouseIdIsSet(true);}public void unsetWarehouseId() {__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);}/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */public boolean isSetWarehouseId() {return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);}public void setWarehouseIdIsSet(boolean value) {__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);}public boolean isCod() {return this.cod;}public void setCod(boolean cod) {this.cod = cod;setCodIsSet(true);}public void unsetCod() {__isset_bit_vector.clear(__COD_ISSET_ID);}/** Returns true if field cod is set (has been assigned a value) and false otherwise */public boolean isSetCod() {return __isset_bit_vector.get(__COD_ISSET_ID);}public void setCodIsSet(boolean value) {__isset_bit_vector.set(__COD_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case FROM_SHIPPING_DATE:if (value == null) {unsetFromShippingDate();} else {setFromShippingDate((Long)value);}break;case TO_SHIPPING_DATE:if (value == null) {unsetToShippingDate();} else {setToShippingDate((Long)value);}break;case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;case WAREHOUSE_ID:if (value == null) {unsetWarehouseId();} else {setWarehouseId((Long)value);}break;case COD:if (value == null) {unsetCod();} else {setCod((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case FROM_SHIPPING_DATE:return Long.valueOf(getFromShippingDate());case TO_SHIPPING_DATE:return Long.valueOf(getToShippingDate());case PROVIDER_ID:return Long.valueOf(getProviderId());case WAREHOUSE_ID:return Long.valueOf(getWarehouseId());case COD:return Boolean.valueOf(isCod());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case FROM_SHIPPING_DATE:return isSetFromShippingDate();case TO_SHIPPING_DATE:return isSetToShippingDate();case PROVIDER_ID:return isSetProviderId();case WAREHOUSE_ID:return isSetWarehouseId();case COD:return isSetCod();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersByShippingDate_args)return this.equals((getOrdersByShippingDate_args)that);return false;}public boolean equals(getOrdersByShippingDate_args that) {if (that == null)return false;boolean this_present_fromShippingDate = true;boolean that_present_fromShippingDate = true;if (this_present_fromShippingDate || that_present_fromShippingDate) {if (!(this_present_fromShippingDate && that_present_fromShippingDate))return false;if (this.fromShippingDate != that.fromShippingDate)return false;}boolean this_present_toShippingDate = true;boolean that_present_toShippingDate = true;if (this_present_toShippingDate || that_present_toShippingDate) {if (!(this_present_toShippingDate && that_present_toShippingDate))return false;if (this.toShippingDate != that.toShippingDate)return false;}boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}boolean this_present_warehouseId = true;boolean that_present_warehouseId = true;if (this_present_warehouseId || that_present_warehouseId) {if (!(this_present_warehouseId && that_present_warehouseId))return false;if (this.warehouseId != that.warehouseId)return false;}boolean this_present_cod = true;boolean that_present_cod = true;if (this_present_cod || that_present_cod) {if (!(this_present_cod && that_present_cod))return false;if (this.cod != that.cod)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersByShippingDate_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersByShippingDate_args typedOther = (getOrdersByShippingDate_args)other;lastComparison = Boolean.valueOf(isSetFromShippingDate()).compareTo(typedOther.isSetFromShippingDate());if (lastComparison != 0) {return lastComparison;}if (isSetFromShippingDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromShippingDate, typedOther.fromShippingDate);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetToShippingDate()).compareTo(typedOther.isSetToShippingDate());if (lastComparison != 0) {return lastComparison;}if (isSetToShippingDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toShippingDate, typedOther.toShippingDate);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());if (lastComparison != 0) {return lastComparison;}if (isSetWarehouseId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());if (lastComparison != 0) {return lastComparison;}if (isSetCod()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // FROM_SHIPPING_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.fromShippingDate = iprot.readI64();setFromShippingDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // TO_SHIPPING_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.toShippingDate = iprot.readI64();setToShippingDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.warehouseId = iprot.readI64();setWarehouseIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // CODif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.cod = iprot.readBool();setCodIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(FROM_SHIPPING_DATE_FIELD_DESC);oprot.writeI64(this.fromShippingDate);oprot.writeFieldEnd();oprot.writeFieldBegin(TO_SHIPPING_DATE_FIELD_DESC);oprot.writeI64(this.toShippingDate);oprot.writeFieldEnd();oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.warehouseId);oprot.writeFieldEnd();oprot.writeFieldBegin(COD_FIELD_DESC);oprot.writeBool(this.cod);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersByShippingDate_args(");boolean first = true;sb.append("fromShippingDate:");sb.append(this.fromShippingDate);first = false;if (!first) sb.append(", ");sb.append("toShippingDate:");sb.append(this.toShippingDate);first = false;if (!first) sb.append(", ");sb.append("providerId:");sb.append(this.providerId);first = false;if (!first) sb.append(", ");sb.append("warehouseId:");sb.append(this.warehouseId);first = false;if (!first) sb.append(", ");sb.append("cod:");sb.append(this.cod);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersByShippingDate_result implements org.apache.thrift.TBase<getOrdersByShippingDate_result, getOrdersByShippingDate_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersByShippingDate_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Order> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersByShippingDate_result.class, metaDataMap);}public getOrdersByShippingDate_result() {}public getOrdersByShippingDate_result(List<Order> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getOrdersByShippingDate_result(getOrdersByShippingDate_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getOrdersByShippingDate_result deepCopy() {return new getOrdersByShippingDate_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersByShippingDate_result)return this.equals((getOrdersByShippingDate_result)that);return false;}public boolean equals(getOrdersByShippingDate_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersByShippingDate_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersByShippingDate_result typedOther = (getOrdersByShippingDate_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list72 = iprot.readListBegin();this.success = new ArrayList<Order>(_list72.size);for (int _i73 = 0; _i73 < _list72.size; ++_i73){Order _elem74; // required_elem74 = new Order();_elem74.read(iprot);this.success.add(_elem74);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter75 : this.success){_iter75.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersByShippingDate_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getReturnableOrdersForCustomer_args implements org.apache.thrift.TBase<getReturnableOrdersForCustomer_args, getReturnableOrdersForCustomer_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnableOrdersForCustomer_args");private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customer_id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)2);private long customer_id; // requiredprivate long limit; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CUSTOMER_ID((short)1, "customer_id"),LIMIT((short)2, "limit");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CUSTOMER_IDreturn CUSTOMER_ID;case 2: // LIMITreturn LIMIT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CUSTOMER_ID_ISSET_ID = 0;private static final int __LIMIT_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customer_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnableOrdersForCustomer_args.class, metaDataMap);}public getReturnableOrdersForCustomer_args() {}public getReturnableOrdersForCustomer_args(long customer_id,long limit){this();this.customer_id = customer_id;setCustomer_idIsSet(true);this.limit = limit;setLimitIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getReturnableOrdersForCustomer_args(getReturnableOrdersForCustomer_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.customer_id = other.customer_id;this.limit = other.limit;}public getReturnableOrdersForCustomer_args deepCopy() {return new getReturnableOrdersForCustomer_args(this);}@Overridepublic void clear() {setCustomer_idIsSet(false);this.customer_id = 0;setLimitIsSet(false);this.limit = 0;}public long getCustomer_id() {return this.customer_id;}public void setCustomer_id(long customer_id) {this.customer_id = customer_id;setCustomer_idIsSet(true);}public void unsetCustomer_id() {__isset_bit_vector.clear(__CUSTOMER_ID_ISSET_ID);}/** Returns true if field customer_id is set (has been assigned a value) and false otherwise */public boolean isSetCustomer_id() {return __isset_bit_vector.get(__CUSTOMER_ID_ISSET_ID);}public void setCustomer_idIsSet(boolean value) {__isset_bit_vector.set(__CUSTOMER_ID_ISSET_ID, value);}public long getLimit() {return this.limit;}public void setLimit(long limit) {this.limit = limit;setLimitIsSet(true);}public void unsetLimit() {__isset_bit_vector.clear(__LIMIT_ISSET_ID);}/** Returns true if field limit is set (has been assigned a value) and false otherwise */public boolean isSetLimit() {return __isset_bit_vector.get(__LIMIT_ISSET_ID);}public void setLimitIsSet(boolean value) {__isset_bit_vector.set(__LIMIT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CUSTOMER_ID:if (value == null) {unsetCustomer_id();} else {setCustomer_id((Long)value);}break;case LIMIT:if (value == null) {unsetLimit();} else {setLimit((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CUSTOMER_ID:return Long.valueOf(getCustomer_id());case LIMIT:return Long.valueOf(getLimit());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CUSTOMER_ID:return isSetCustomer_id();case LIMIT:return isSetLimit();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getReturnableOrdersForCustomer_args)return this.equals((getReturnableOrdersForCustomer_args)that);return false;}public boolean equals(getReturnableOrdersForCustomer_args that) {if (that == null)return false;boolean this_present_customer_id = true;boolean that_present_customer_id = true;if (this_present_customer_id || that_present_customer_id) {if (!(this_present_customer_id && that_present_customer_id))return false;if (this.customer_id != that.customer_id)return false;}boolean this_present_limit = true;boolean that_present_limit = true;if (this_present_limit || that_present_limit) {if (!(this_present_limit && that_present_limit))return false;if (this.limit != that.limit)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getReturnableOrdersForCustomer_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getReturnableOrdersForCustomer_args typedOther = (getReturnableOrdersForCustomer_args)other;lastComparison = Boolean.valueOf(isSetCustomer_id()).compareTo(typedOther.isSetCustomer_id());if (lastComparison != 0) {return lastComparison;}if (isSetCustomer_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_id, typedOther.customer_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());if (lastComparison != 0) {return lastComparison;}if (isSetLimit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CUSTOMER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.customer_id = iprot.readI64();setCustomer_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // LIMITif (field.type == org.apache.thrift.protocol.TType.I64) {this.limit = iprot.readI64();setLimitIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);oprot.writeI64(this.customer_id);oprot.writeFieldEnd();oprot.writeFieldBegin(LIMIT_FIELD_DESC);oprot.writeI64(this.limit);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getReturnableOrdersForCustomer_args(");boolean first = true;sb.append("customer_id:");sb.append(this.customer_id);first = false;if (!first) sb.append(", ");sb.append("limit:");sb.append(this.limit);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getReturnableOrdersForCustomer_result implements org.apache.thrift.TBase<getReturnableOrdersForCustomer_result, getReturnableOrdersForCustomer_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnableOrdersForCustomer_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Long> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnableOrdersForCustomer_result.class, metaDataMap);}public getReturnableOrdersForCustomer_result() {}public getReturnableOrdersForCustomer_result(List<Long> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getReturnableOrdersForCustomer_result(getReturnableOrdersForCustomer_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getReturnableOrdersForCustomer_result deepCopy() {return new getReturnableOrdersForCustomer_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Long>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getReturnableOrdersForCustomer_result)return this.equals((getReturnableOrdersForCustomer_result)that);return false;}public boolean equals(getReturnableOrdersForCustomer_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getReturnableOrdersForCustomer_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getReturnableOrdersForCustomer_result typedOther = (getReturnableOrdersForCustomer_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list76 = iprot.readListBegin();this.success = new ArrayList<Long>(_list76.size);for (int _i77 = 0; _i77 < _list76.size; ++_i77){long _elem78; // required_elem78 = iprot.readI64();this.success.add(_elem78);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter79 : this.success){oprot.writeI64(_iter79);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getReturnableOrdersForCustomer_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCancellableOrdersForCustomer_args implements org.apache.thrift.TBase<getCancellableOrdersForCustomer_args, getCancellableOrdersForCustomer_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCancellableOrdersForCustomer_args");private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customer_id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)2);private long customer_id; // requiredprivate long limit; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CUSTOMER_ID((short)1, "customer_id"),LIMIT((short)2, "limit");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CUSTOMER_IDreturn CUSTOMER_ID;case 2: // LIMITreturn LIMIT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CUSTOMER_ID_ISSET_ID = 0;private static final int __LIMIT_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customer_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCancellableOrdersForCustomer_args.class, metaDataMap);}public getCancellableOrdersForCustomer_args() {}public getCancellableOrdersForCustomer_args(long customer_id,long limit){this();this.customer_id = customer_id;setCustomer_idIsSet(true);this.limit = limit;setLimitIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getCancellableOrdersForCustomer_args(getCancellableOrdersForCustomer_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.customer_id = other.customer_id;this.limit = other.limit;}public getCancellableOrdersForCustomer_args deepCopy() {return new getCancellableOrdersForCustomer_args(this);}@Overridepublic void clear() {setCustomer_idIsSet(false);this.customer_id = 0;setLimitIsSet(false);this.limit = 0;}public long getCustomer_id() {return this.customer_id;}public void setCustomer_id(long customer_id) {this.customer_id = customer_id;setCustomer_idIsSet(true);}public void unsetCustomer_id() {__isset_bit_vector.clear(__CUSTOMER_ID_ISSET_ID);}/** Returns true if field customer_id is set (has been assigned a value) and false otherwise */public boolean isSetCustomer_id() {return __isset_bit_vector.get(__CUSTOMER_ID_ISSET_ID);}public void setCustomer_idIsSet(boolean value) {__isset_bit_vector.set(__CUSTOMER_ID_ISSET_ID, value);}public long getLimit() {return this.limit;}public void setLimit(long limit) {this.limit = limit;setLimitIsSet(true);}public void unsetLimit() {__isset_bit_vector.clear(__LIMIT_ISSET_ID);}/** Returns true if field limit is set (has been assigned a value) and false otherwise */public boolean isSetLimit() {return __isset_bit_vector.get(__LIMIT_ISSET_ID);}public void setLimitIsSet(boolean value) {__isset_bit_vector.set(__LIMIT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CUSTOMER_ID:if (value == null) {unsetCustomer_id();} else {setCustomer_id((Long)value);}break;case LIMIT:if (value == null) {unsetLimit();} else {setLimit((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CUSTOMER_ID:return Long.valueOf(getCustomer_id());case LIMIT:return Long.valueOf(getLimit());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CUSTOMER_ID:return isSetCustomer_id();case LIMIT:return isSetLimit();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCancellableOrdersForCustomer_args)return this.equals((getCancellableOrdersForCustomer_args)that);return false;}public boolean equals(getCancellableOrdersForCustomer_args that) {if (that == null)return false;boolean this_present_customer_id = true;boolean that_present_customer_id = true;if (this_present_customer_id || that_present_customer_id) {if (!(this_present_customer_id && that_present_customer_id))return false;if (this.customer_id != that.customer_id)return false;}boolean this_present_limit = true;boolean that_present_limit = true;if (this_present_limit || that_present_limit) {if (!(this_present_limit && that_present_limit))return false;if (this.limit != that.limit)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCancellableOrdersForCustomer_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCancellableOrdersForCustomer_args typedOther = (getCancellableOrdersForCustomer_args)other;lastComparison = Boolean.valueOf(isSetCustomer_id()).compareTo(typedOther.isSetCustomer_id());if (lastComparison != 0) {return lastComparison;}if (isSetCustomer_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_id, typedOther.customer_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());if (lastComparison != 0) {return lastComparison;}if (isSetLimit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CUSTOMER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.customer_id = iprot.readI64();setCustomer_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // LIMITif (field.type == org.apache.thrift.protocol.TType.I64) {this.limit = iprot.readI64();setLimitIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);oprot.writeI64(this.customer_id);oprot.writeFieldEnd();oprot.writeFieldBegin(LIMIT_FIELD_DESC);oprot.writeI64(this.limit);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCancellableOrdersForCustomer_args(");boolean first = true;sb.append("customer_id:");sb.append(this.customer_id);first = false;if (!first) sb.append(", ");sb.append("limit:");sb.append(this.limit);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCancellableOrdersForCustomer_result implements org.apache.thrift.TBase<getCancellableOrdersForCustomer_result, getCancellableOrdersForCustomer_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCancellableOrdersForCustomer_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Long> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCancellableOrdersForCustomer_result.class, metaDataMap);}public getCancellableOrdersForCustomer_result() {}public getCancellableOrdersForCustomer_result(List<Long> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getCancellableOrdersForCustomer_result(getCancellableOrdersForCustomer_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getCancellableOrdersForCustomer_result deepCopy() {return new getCancellableOrdersForCustomer_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Long>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCancellableOrdersForCustomer_result)return this.equals((getCancellableOrdersForCustomer_result)that);return false;}public boolean equals(getCancellableOrdersForCustomer_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCancellableOrdersForCustomer_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCancellableOrdersForCustomer_result typedOther = (getCancellableOrdersForCustomer_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list80 = iprot.readListBegin();this.success = new ArrayList<Long>(_list80.size);for (int _i81 = 0; _i81 < _list80.size; ++_i81){long _elem82; // required_elem82 = iprot.readI64();this.success.add(_elem82);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter83 : this.success){oprot.writeI64(_iter83);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCancellableOrdersForCustomer_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class changeOrderStatus_args implements org.apache.thrift.TBase<changeOrderStatus_args, changeOrderStatus_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeOrderStatus_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)2);private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)3);private long orderId; // requiredprivate OrderStatus status; // requiredprivate String description; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),/**** @see OrderStatus*/STATUS((short)2, "status"),DESCRIPTION((short)3, "description");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // STATUSreturn STATUS;case 3: // DESCRIPTIONreturn DESCRIPTION;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class)));tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeOrderStatus_args.class, metaDataMap);}public changeOrderStatus_args() {}public changeOrderStatus_args(long orderId,OrderStatus status,String description){this();this.orderId = orderId;setOrderIdIsSet(true);this.status = status;this.description = description;}/*** Performs a deep copy on <i>other</i>.*/public changeOrderStatus_args(changeOrderStatus_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;if (other.isSetStatus()) {this.status = other.status;}if (other.isSetDescription()) {this.description = other.description;}}public changeOrderStatus_args deepCopy() {return new changeOrderStatus_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;this.status = null;this.description = null;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}/**** @see OrderStatus*/public OrderStatus getStatus() {return this.status;}/**** @see OrderStatus*/public void setStatus(OrderStatus status) {this.status = status;}public void unsetStatus() {this.status = null;}/** Returns true if field status is set (has been assigned a value) and false otherwise */public boolean isSetStatus() {return this.status != null;}public void setStatusIsSet(boolean value) {if (!value) {this.status = null;}}public String getDescription() {return this.description;}public void setDescription(String description) {this.description = description;}public void unsetDescription() {this.description = null;}/** Returns true if field description is set (has been assigned a value) and false otherwise */public boolean isSetDescription() {return this.description != null;}public void setDescriptionIsSet(boolean value) {if (!value) {this.description = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case STATUS:if (value == null) {unsetStatus();} else {setStatus((OrderStatus)value);}break;case DESCRIPTION:if (value == null) {unsetDescription();} else {setDescription((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case STATUS:return getStatus();case DESCRIPTION:return getDescription();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case STATUS:return isSetStatus();case DESCRIPTION:return isSetDescription();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof changeOrderStatus_args)return this.equals((changeOrderStatus_args)that);return false;}public boolean equals(changeOrderStatus_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_status = true && this.isSetStatus();boolean that_present_status = true && that.isSetStatus();if (this_present_status || that_present_status) {if (!(this_present_status && that_present_status))return false;if (!this.status.equals(that.status))return false;}boolean this_present_description = true && this.isSetDescription();boolean that_present_description = true && that.isSetDescription();if (this_present_description || that_present_description) {if (!(this_present_description && that_present_description))return false;if (!this.description.equals(that.description))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(changeOrderStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;changeOrderStatus_args typedOther = (changeOrderStatus_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());if (lastComparison != 0) {return lastComparison;}if (isSetStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());if (lastComparison != 0) {return lastComparison;}if (isSetDescription()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // STATUSif (field.type == org.apache.thrift.protocol.TType.I32) {this.status = OrderStatus.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // DESCRIPTIONif (field.type == org.apache.thrift.protocol.TType.STRING) {this.description = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();if (this.status != null) {oprot.writeFieldBegin(STATUS_FIELD_DESC);oprot.writeI32(this.status.getValue());oprot.writeFieldEnd();}if (this.description != null) {oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);oprot.writeString(this.description);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("changeOrderStatus_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("status:");if (this.status == null) {sb.append("null");} else {sb.append(this.status);}first = false;if (!first) sb.append(", ");sb.append("description:");if (this.description == null) {sb.append("null");} else {sb.append(this.description);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class changeOrderStatus_result implements org.apache.thrift.TBase<changeOrderStatus_result, changeOrderStatus_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeOrderStatus_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeOrderStatus_result.class, metaDataMap);}public changeOrderStatus_result() {}public changeOrderStatus_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public changeOrderStatus_result(changeOrderStatus_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public changeOrderStatus_result deepCopy() {return new changeOrderStatus_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof changeOrderStatus_result)return this.equals((changeOrderStatus_result)that);return false;}public boolean equals(changeOrderStatus_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(changeOrderStatus_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;changeOrderStatus_result typedOther = (changeOrderStatus_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("changeOrderStatus_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersForTransaction_args implements org.apache.thrift.TBase<getOrdersForTransaction_args, getOrdersForTransaction_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForTransaction_args");private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerId", org.apache.thrift.protocol.TType.I64, (short)2);private long transactionId; // requiredprivate long customerId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {TRANSACTION_ID((short)1, "transactionId"),CUSTOMER_ID((short)2, "customerId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // TRANSACTION_IDreturn TRANSACTION_ID;case 2: // CUSTOMER_IDreturn CUSTOMER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TRANSACTIONID_ISSET_ID = 0;private static final int __CUSTOMERID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForTransaction_args.class, metaDataMap);}public getOrdersForTransaction_args() {}public getOrdersForTransaction_args(long transactionId,long customerId){this();this.transactionId = transactionId;setTransactionIdIsSet(true);this.customerId = customerId;setCustomerIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getOrdersForTransaction_args(getOrdersForTransaction_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.transactionId = other.transactionId;this.customerId = other.customerId;}public getOrdersForTransaction_args deepCopy() {return new getOrdersForTransaction_args(this);}@Overridepublic void clear() {setTransactionIdIsSet(false);this.transactionId = 0;setCustomerIdIsSet(false);this.customerId = 0;}public long getTransactionId() {return this.transactionId;}public void setTransactionId(long transactionId) {this.transactionId = transactionId;setTransactionIdIsSet(true);}public void unsetTransactionId() {__isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);}/** Returns true if field transactionId is set (has been assigned a value) and false otherwise */public boolean isSetTransactionId() {return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);}public void setTransactionIdIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);}public long getCustomerId() {return this.customerId;}public void setCustomerId(long customerId) {this.customerId = customerId;setCustomerIdIsSet(true);}public void unsetCustomerId() {__isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);}/** Returns true if field customerId is set (has been assigned a value) and false otherwise */public boolean isSetCustomerId() {return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);}public void setCustomerIdIsSet(boolean value) {__isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION_ID:if (value == null) {unsetTransactionId();} else {setTransactionId((Long)value);}break;case CUSTOMER_ID:if (value == null) {unsetCustomerId();} else {setCustomerId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION_ID:return Long.valueOf(getTransactionId());case CUSTOMER_ID:return Long.valueOf(getCustomerId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case TRANSACTION_ID:return isSetTransactionId();case CUSTOMER_ID:return isSetCustomerId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersForTransaction_args)return this.equals((getOrdersForTransaction_args)that);return false;}public boolean equals(getOrdersForTransaction_args that) {if (that == null)return false;boolean this_present_transactionId = true;boolean that_present_transactionId = true;if (this_present_transactionId || that_present_transactionId) {if (!(this_present_transactionId && that_present_transactionId))return false;if (this.transactionId != that.transactionId)return false;}boolean this_present_customerId = true;boolean that_present_customerId = true;if (this_present_customerId || that_present_customerId) {if (!(this_present_customerId && that_present_customerId))return false;if (this.customerId != that.customerId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersForTransaction_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersForTransaction_args typedOther = (getOrdersForTransaction_args)other;lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());if (lastComparison != 0) {return lastComparison;}if (isSetTransactionId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());if (lastComparison != 0) {return lastComparison;}if (isSetCustomerId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // TRANSACTION_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.transactionId = iprot.readI64();setTransactionIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // CUSTOMER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.customerId = iprot.readI64();setCustomerIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);oprot.writeI64(this.transactionId);oprot.writeFieldEnd();oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);oprot.writeI64(this.customerId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersForTransaction_args(");boolean first = true;sb.append("transactionId:");sb.append(this.transactionId);first = false;if (!first) sb.append(", ");sb.append("customerId:");sb.append(this.customerId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersForTransaction_result implements org.apache.thrift.TBase<getOrdersForTransaction_result, getOrdersForTransaction_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForTransaction_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Order> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForTransaction_result.class, metaDataMap);}public getOrdersForTransaction_result() {}public getOrdersForTransaction_result(List<Order> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getOrdersForTransaction_result(getOrdersForTransaction_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getOrdersForTransaction_result deepCopy() {return new getOrdersForTransaction_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersForTransaction_result)return this.equals((getOrdersForTransaction_result)that);return false;}public boolean equals(getOrdersForTransaction_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersForTransaction_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersForTransaction_result typedOther = (getOrdersForTransaction_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list84 = iprot.readListBegin();this.success = new ArrayList<Order>(_list84.size);for (int _i85 = 0; _i85 < _list84.size; ++_i85){Order _elem86; // required_elem86 = new Order();_elem86.read(iprot);this.success.add(_elem86);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter87 : this.success){_iter87.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersForTransaction_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersForCustomer_args implements org.apache.thrift.TBase<getOrdersForCustomer_args, getOrdersForCustomer_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForCustomer_args");private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField FROM_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("from_date", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField TO_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("to_date", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField STATUSES_FIELD_DESC = new org.apache.thrift.protocol.TField("statuses", org.apache.thrift.protocol.TType.LIST, (short)4);private long customerId; // requiredprivate long from_date; // requiredprivate long to_date; // requiredprivate List<OrderStatus> statuses; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CUSTOMER_ID((short)1, "customerId"),FROM_DATE((short)2, "from_date"),TO_DATE((short)3, "to_date"),STATUSES((short)4, "statuses");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CUSTOMER_IDreturn CUSTOMER_ID;case 2: // FROM_DATEreturn FROM_DATE;case 3: // TO_DATEreturn TO_DATE;case 4: // STATUSESreturn STATUSES;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CUSTOMERID_ISSET_ID = 0;private static final int __FROM_DATE_ISSET_ID = 1;private static final int __TO_DATE_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("from_date", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("to_date", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.STATUSES, new org.apache.thrift.meta_data.FieldMetaData("statuses", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForCustomer_args.class, metaDataMap);}public getOrdersForCustomer_args() {}public getOrdersForCustomer_args(long customerId,long from_date,long to_date,List<OrderStatus> statuses){this();this.customerId = customerId;setCustomerIdIsSet(true);this.from_date = from_date;setFrom_dateIsSet(true);this.to_date = to_date;setTo_dateIsSet(true);this.statuses = statuses;}/*** Performs a deep copy on <i>other</i>.*/public getOrdersForCustomer_args(getOrdersForCustomer_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.customerId = other.customerId;this.from_date = other.from_date;this.to_date = other.to_date;if (other.isSetStatuses()) {List<OrderStatus> __this__statuses = new ArrayList<OrderStatus>();for (OrderStatus other_element : other.statuses) {__this__statuses.add(other_element);}this.statuses = __this__statuses;}}public getOrdersForCustomer_args deepCopy() {return new getOrdersForCustomer_args(this);}@Overridepublic void clear() {setCustomerIdIsSet(false);this.customerId = 0;setFrom_dateIsSet(false);this.from_date = 0;setTo_dateIsSet(false);this.to_date = 0;this.statuses = null;}public long getCustomerId() {return this.customerId;}public void setCustomerId(long customerId) {this.customerId = customerId;setCustomerIdIsSet(true);}public void unsetCustomerId() {__isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);}/** Returns true if field customerId is set (has been assigned a value) and false otherwise */public boolean isSetCustomerId() {return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);}public void setCustomerIdIsSet(boolean value) {__isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);}public long getFrom_date() {return this.from_date;}public void setFrom_date(long from_date) {this.from_date = from_date;setFrom_dateIsSet(true);}public void unsetFrom_date() {__isset_bit_vector.clear(__FROM_DATE_ISSET_ID);}/** Returns true if field from_date is set (has been assigned a value) and false otherwise */public boolean isSetFrom_date() {return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);}public void setFrom_dateIsSet(boolean value) {__isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);}public long getTo_date() {return this.to_date;}public void setTo_date(long to_date) {this.to_date = to_date;setTo_dateIsSet(true);}public void unsetTo_date() {__isset_bit_vector.clear(__TO_DATE_ISSET_ID);}/** Returns true if field to_date is set (has been assigned a value) and false otherwise */public boolean isSetTo_date() {return __isset_bit_vector.get(__TO_DATE_ISSET_ID);}public void setTo_dateIsSet(boolean value) {__isset_bit_vector.set(__TO_DATE_ISSET_ID, value);}public int getStatusesSize() {return (this.statuses == null) ? 0 : this.statuses.size();}public java.util.Iterator<OrderStatus> getStatusesIterator() {return (this.statuses == null) ? null : this.statuses.iterator();}public void addToStatuses(OrderStatus elem) {if (this.statuses == null) {this.statuses = new ArrayList<OrderStatus>();}this.statuses.add(elem);}public List<OrderStatus> getStatuses() {return this.statuses;}public void setStatuses(List<OrderStatus> statuses) {this.statuses = statuses;}public void unsetStatuses() {this.statuses = null;}/** Returns true if field statuses is set (has been assigned a value) and false otherwise */public boolean isSetStatuses() {return this.statuses != null;}public void setStatusesIsSet(boolean value) {if (!value) {this.statuses = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CUSTOMER_ID:if (value == null) {unsetCustomerId();} else {setCustomerId((Long)value);}break;case FROM_DATE:if (value == null) {unsetFrom_date();} else {setFrom_date((Long)value);}break;case TO_DATE:if (value == null) {unsetTo_date();} else {setTo_date((Long)value);}break;case STATUSES:if (value == null) {unsetStatuses();} else {setStatuses((List<OrderStatus>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CUSTOMER_ID:return Long.valueOf(getCustomerId());case FROM_DATE:return Long.valueOf(getFrom_date());case TO_DATE:return Long.valueOf(getTo_date());case STATUSES:return getStatuses();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CUSTOMER_ID:return isSetCustomerId();case FROM_DATE:return isSetFrom_date();case TO_DATE:return isSetTo_date();case STATUSES:return isSetStatuses();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersForCustomer_args)return this.equals((getOrdersForCustomer_args)that);return false;}public boolean equals(getOrdersForCustomer_args that) {if (that == null)return false;boolean this_present_customerId = true;boolean that_present_customerId = true;if (this_present_customerId || that_present_customerId) {if (!(this_present_customerId && that_present_customerId))return false;if (this.customerId != that.customerId)return false;}boolean this_present_from_date = true;boolean that_present_from_date = true;if (this_present_from_date || that_present_from_date) {if (!(this_present_from_date && that_present_from_date))return false;if (this.from_date != that.from_date)return false;}boolean this_present_to_date = true;boolean that_present_to_date = true;if (this_present_to_date || that_present_to_date) {if (!(this_present_to_date && that_present_to_date))return false;if (this.to_date != that.to_date)return false;}boolean this_present_statuses = true && this.isSetStatuses();boolean that_present_statuses = true && that.isSetStatuses();if (this_present_statuses || that_present_statuses) {if (!(this_present_statuses && that_present_statuses))return false;if (!this.statuses.equals(that.statuses))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersForCustomer_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersForCustomer_args typedOther = (getOrdersForCustomer_args)other;lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());if (lastComparison != 0) {return lastComparison;}if (isSetCustomerId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(typedOther.isSetFrom_date());if (lastComparison != 0) {return lastComparison;}if (isSetFrom_date()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.from_date, typedOther.from_date);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(typedOther.isSetTo_date());if (lastComparison != 0) {return lastComparison;}if (isSetTo_date()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.to_date, typedOther.to_date);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetStatuses()).compareTo(typedOther.isSetStatuses());if (lastComparison != 0) {return lastComparison;}if (isSetStatuses()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statuses, typedOther.statuses);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CUSTOMER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.customerId = iprot.readI64();setCustomerIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // FROM_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.from_date = iprot.readI64();setFrom_dateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // TO_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.to_date = iprot.readI64();setTo_dateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // STATUSESif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list88 = iprot.readListBegin();this.statuses = new ArrayList<OrderStatus>(_list88.size);for (int _i89 = 0; _i89 < _list88.size; ++_i89){OrderStatus _elem90; // required_elem90 = OrderStatus.findByValue(iprot.readI32());this.statuses.add(_elem90);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);oprot.writeI64(this.customerId);oprot.writeFieldEnd();oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);oprot.writeI64(this.from_date);oprot.writeFieldEnd();oprot.writeFieldBegin(TO_DATE_FIELD_DESC);oprot.writeI64(this.to_date);oprot.writeFieldEnd();if (this.statuses != null) {oprot.writeFieldBegin(STATUSES_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.statuses.size()));for (OrderStatus _iter91 : this.statuses){oprot.writeI32(_iter91.getValue());}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersForCustomer_args(");boolean first = true;sb.append("customerId:");sb.append(this.customerId);first = false;if (!first) sb.append(", ");sb.append("from_date:");sb.append(this.from_date);first = false;if (!first) sb.append(", ");sb.append("to_date:");sb.append(this.to_date);first = false;if (!first) sb.append(", ");sb.append("statuses:");if (this.statuses == null) {sb.append("null");} else {sb.append(this.statuses);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersForCustomer_result implements org.apache.thrift.TBase<getOrdersForCustomer_result, getOrdersForCustomer_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForCustomer_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Order> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForCustomer_result.class, metaDataMap);}public getOrdersForCustomer_result() {}public getOrdersForCustomer_result(List<Order> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getOrdersForCustomer_result(getOrdersForCustomer_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getOrdersForCustomer_result deepCopy() {return new getOrdersForCustomer_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersForCustomer_result)return this.equals((getOrdersForCustomer_result)that);return false;}public boolean equals(getOrdersForCustomer_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersForCustomer_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersForCustomer_result typedOther = (getOrdersForCustomer_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list92 = iprot.readListBegin();this.success = new ArrayList<Order>(_list92.size);for (int _i93 = 0; _i93 < _list92.size; ++_i93){Order _elem94; // required_elem94 = new Order();_elem94.read(iprot);this.success.add(_elem94);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter95 : this.success){_iter95.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersForCustomer_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class createOrder_args implements org.apache.thrift.TBase<createOrder_args, createOrder_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createOrder_args");private static final org.apache.thrift.protocol.TField ORDER_FIELD_DESC = new org.apache.thrift.protocol.TField("order", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Order order; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER((short)1, "order");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDERreturn ORDER;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER, new org.apache.thrift.meta_data.FieldMetaData("order", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrder_args.class, metaDataMap);}public createOrder_args() {}public createOrder_args(Order order){this();this.order = order;}/*** Performs a deep copy on <i>other</i>.*/public createOrder_args(createOrder_args other) {if (other.isSetOrder()) {this.order = new Order(other.order);}}public createOrder_args deepCopy() {return new createOrder_args(this);}@Overridepublic void clear() {this.order = null;}public Order getOrder() {return this.order;}public void setOrder(Order order) {this.order = order;}public void unsetOrder() {this.order = null;}/** Returns true if field order is set (has been assigned a value) and false otherwise */public boolean isSetOrder() {return this.order != null;}public void setOrderIsSet(boolean value) {if (!value) {this.order = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER:if (value == null) {unsetOrder();} else {setOrder((Order)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER:return getOrder();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER:return isSetOrder();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof createOrder_args)return this.equals((createOrder_args)that);return false;}public boolean equals(createOrder_args that) {if (that == null)return false;boolean this_present_order = true && this.isSetOrder();boolean that_present_order = true && that.isSetOrder();if (this_present_order || that_present_order) {if (!(this_present_order && that_present_order))return false;if (!this.order.equals(that.order))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(createOrder_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;createOrder_args typedOther = (createOrder_args)other;lastComparison = Boolean.valueOf(isSetOrder()).compareTo(typedOther.isSetOrder());if (lastComparison != 0) {return lastComparison;}if (isSetOrder()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order, typedOther.order);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDERif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.order = new Order();this.order.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.order != null) {oprot.writeFieldBegin(ORDER_FIELD_DESC);this.order.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("createOrder_args(");boolean first = true;sb.append("order:");if (this.order == null) {sb.append("null");} else {sb.append(this.order);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class createOrder_result implements org.apache.thrift.TBase<createOrder_result, createOrder_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createOrder_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private long success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createOrder_result.class, metaDataMap);}public createOrder_result() {}public createOrder_result(long success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public createOrder_result(createOrder_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public createOrder_result deepCopy() {return new createOrder_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;this.ex = null;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof createOrder_result)return this.equals((createOrder_result)that);return false;}public boolean equals(createOrder_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(createOrder_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;createOrder_result typedOther = (createOrder_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("createOrder_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrder_args implements org.apache.thrift.TBase<getOrder_args, getOrder_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrder_args");private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);private long id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ID((short)1, "id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // IDreturn ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrder_args.class, metaDataMap);}public getOrder_args() {}public getOrder_args(long id){this();this.id = id;setIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getOrder_args(getOrder_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;}public getOrder_args deepCopy() {return new getOrder_args(this);}@Overridepublic void clear() {setIdIsSet(false);this.id = 0;}public long getId() {return this.id;}public void setId(long id) {this.id = id;setIdIsSet(true);}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been assigned a value) and false otherwise */public boolean isSetId() {return __isset_bit_vector.get(__ID_ISSET_ID);}public void setIdIsSet(boolean value) {__isset_bit_vector.set(__ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ID:return Long.valueOf(getId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ID:return isSetId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrder_args)return this.equals((getOrder_args)that);return false;}public boolean equals(getOrder_args that) {if (that == null)return false;boolean this_present_id = true;boolean that_present_id = true;if (this_present_id || that_present_id) {if (!(this_present_id && that_present_id))return false;if (this.id != that.id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrder_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrder_args typedOther = (getOrder_args)other;lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());if (lastComparison != 0) {return lastComparison;}if (isSetId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrder_args(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrder_result implements org.apache.thrift.TBase<getOrder_result, getOrder_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrder_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Order success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrder_result.class, metaDataMap);}public getOrder_result() {}public getOrder_result(Order success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getOrder_result(getOrder_result other) {if (other.isSetSuccess()) {this.success = new Order(other.success);}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getOrder_result deepCopy() {return new getOrder_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public Order getSuccess() {return this.success;}public void setSuccess(Order success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Order)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrder_result)return this.equals((getOrder_result)that);return false;}public boolean equals(getOrder_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrder_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrder_result typedOther = (getOrder_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Order();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrder_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getLineItemsForOrder_args implements org.apache.thrift.TBase<getLineItemsForOrder_args, getLineItemsForOrder_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLineItemsForOrder_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private long orderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLineItemsForOrder_args.class, metaDataMap);}public getLineItemsForOrder_args() {}public getLineItemsForOrder_args(long orderId){this();this.orderId = orderId;setOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getLineItemsForOrder_args(getLineItemsForOrder_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;}public getLineItemsForOrder_args deepCopy() {return new getLineItemsForOrder_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLineItemsForOrder_args)return this.equals((getLineItemsForOrder_args)that);return false;}public boolean equals(getLineItemsForOrder_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLineItemsForOrder_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLineItemsForOrder_args typedOther = (getLineItemsForOrder_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLineItemsForOrder_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getLineItemsForOrder_result implements org.apache.thrift.TBase<getLineItemsForOrder_result, getLineItemsForOrder_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLineItemsForOrder_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<LineItem> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LineItem.class))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLineItemsForOrder_result.class, metaDataMap);}public getLineItemsForOrder_result() {}public getLineItemsForOrder_result(List<LineItem> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getLineItemsForOrder_result(getLineItemsForOrder_result other) {if (other.isSetSuccess()) {List<LineItem> __this__success = new ArrayList<LineItem>();for (LineItem other_element : other.success) {__this__success.add(new LineItem(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getLineItemsForOrder_result deepCopy() {return new getLineItemsForOrder_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<LineItem> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(LineItem elem) {if (this.success == null) {this.success = new ArrayList<LineItem>();}this.success.add(elem);}public List<LineItem> getSuccess() {return this.success;}public void setSuccess(List<LineItem> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<LineItem>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getLineItemsForOrder_result)return this.equals((getLineItemsForOrder_result)that);return false;}public boolean equals(getLineItemsForOrder_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getLineItemsForOrder_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getLineItemsForOrder_result typedOther = (getLineItemsForOrder_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list96 = iprot.readListBegin();this.success = new ArrayList<LineItem>(_list96.size);for (int _i97 = 0; _i97 < _list96.size; ++_i97){LineItem _elem98; // required_elem98 = new LineItem();_elem98.read(iprot);this.success.add(_elem98);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (LineItem _iter99 : this.success){_iter99.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getLineItemsForOrder_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrderList_args implements org.apache.thrift.TBase<getOrderList_args, getOrderList_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderList_args");private static final org.apache.thrift.protocol.TField ORDER_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("order_ids", org.apache.thrift.protocol.TType.LIST, (short)1);private List<Long> order_ids; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_IDS((short)1, "order_ids");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDSreturn ORDER_IDS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_IDS, new org.apache.thrift.meta_data.FieldMetaData("order_ids", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderList_args.class, metaDataMap);}public getOrderList_args() {}public getOrderList_args(List<Long> order_ids){this();this.order_ids = order_ids;}/*** Performs a deep copy on <i>other</i>.*/public getOrderList_args(getOrderList_args other) {if (other.isSetOrder_ids()) {List<Long> __this__order_ids = new ArrayList<Long>();for (Long other_element : other.order_ids) {__this__order_ids.add(other_element);}this.order_ids = __this__order_ids;}}public getOrderList_args deepCopy() {return new getOrderList_args(this);}@Overridepublic void clear() {this.order_ids = null;}public int getOrder_idsSize() {return (this.order_ids == null) ? 0 : this.order_ids.size();}public java.util.Iterator<Long> getOrder_idsIterator() {return (this.order_ids == null) ? null : this.order_ids.iterator();}public void addToOrder_ids(long elem) {if (this.order_ids == null) {this.order_ids = new ArrayList<Long>();}this.order_ids.add(elem);}public List<Long> getOrder_ids() {return this.order_ids;}public void setOrder_ids(List<Long> order_ids) {this.order_ids = order_ids;}public void unsetOrder_ids() {this.order_ids = null;}/** Returns true if field order_ids is set (has been assigned a value) and false otherwise */public boolean isSetOrder_ids() {return this.order_ids != null;}public void setOrder_idsIsSet(boolean value) {if (!value) {this.order_ids = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_IDS:if (value == null) {unsetOrder_ids();} else {setOrder_ids((List<Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_IDS:return getOrder_ids();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_IDS:return isSetOrder_ids();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderList_args)return this.equals((getOrderList_args)that);return false;}public boolean equals(getOrderList_args that) {if (that == null)return false;boolean this_present_order_ids = true && this.isSetOrder_ids();boolean that_present_order_ids = true && that.isSetOrder_ids();if (this_present_order_ids || that_present_order_ids) {if (!(this_present_order_ids && that_present_order_ids))return false;if (!this.order_ids.equals(that.order_ids))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrderList_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrderList_args typedOther = (getOrderList_args)other;lastComparison = Boolean.valueOf(isSetOrder_ids()).compareTo(typedOther.isSetOrder_ids());if (lastComparison != 0) {return lastComparison;}if (isSetOrder_ids()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order_ids, typedOther.order_ids);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list100 = iprot.readListBegin();this.order_ids = new ArrayList<Long>(_list100.size);for (int _i101 = 0; _i101 < _list100.size; ++_i101){long _elem102; // required_elem102 = iprot.readI64();this.order_ids.add(_elem102);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.order_ids != null) {oprot.writeFieldBegin(ORDER_IDS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.order_ids.size()));for (long _iter103 : this.order_ids){oprot.writeI64(_iter103);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderList_args(");boolean first = true;sb.append("order_ids:");if (this.order_ids == null) {sb.append("null");} else {sb.append(this.order_ids);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrderList_result implements org.apache.thrift.TBase<getOrderList_result, getOrderList_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderList_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Order> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderList_result.class, metaDataMap);}public getOrderList_result() {}public getOrderList_result(List<Order> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getOrderList_result(getOrderList_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}}public getOrderList_result deepCopy() {return new getOrderList_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderList_result)return this.equals((getOrderList_result)that);return false;}public boolean equals(getOrderList_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrderList_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrderList_result typedOther = (getOrderList_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list104 = iprot.readListBegin();this.success = new ArrayList<Order>(_list104.size);for (int _i105 = 0; _i105 < _list104.size; ++_i105){Order _elem106; // required_elem106 = new Order();_elem106.read(iprot);this.success.add(_elem106);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter107 : this.success){_iter107.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderList_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrderListForVendor_args implements org.apache.thrift.TBase<getOrderListForVendor_args, getOrderListForVendor_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderListForVendor_args");private static final org.apache.thrift.protocol.TField ORDER_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("order_ids", org.apache.thrift.protocol.TType.LIST, (short)1);private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)2);private List<Long> order_ids; // requiredprivate long vendorId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_IDS((short)1, "order_ids"),VENDOR_ID((short)2, "vendorId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDSreturn ORDER_IDS;case 2: // VENDOR_IDreturn VENDOR_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __VENDORID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_IDS, new org.apache.thrift.meta_data.FieldMetaData("order_ids", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderListForVendor_args.class, metaDataMap);}public getOrderListForVendor_args() {}public getOrderListForVendor_args(List<Long> order_ids,long vendorId){this();this.order_ids = order_ids;this.vendorId = vendorId;setVendorIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getOrderListForVendor_args(getOrderListForVendor_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetOrder_ids()) {List<Long> __this__order_ids = new ArrayList<Long>();for (Long other_element : other.order_ids) {__this__order_ids.add(other_element);}this.order_ids = __this__order_ids;}this.vendorId = other.vendorId;}public getOrderListForVendor_args deepCopy() {return new getOrderListForVendor_args(this);}@Overridepublic void clear() {this.order_ids = null;setVendorIdIsSet(false);this.vendorId = 0;}public int getOrder_idsSize() {return (this.order_ids == null) ? 0 : this.order_ids.size();}public java.util.Iterator<Long> getOrder_idsIterator() {return (this.order_ids == null) ? null : this.order_ids.iterator();}public void addToOrder_ids(long elem) {if (this.order_ids == null) {this.order_ids = new ArrayList<Long>();}this.order_ids.add(elem);}public List<Long> getOrder_ids() {return this.order_ids;}public void setOrder_ids(List<Long> order_ids) {this.order_ids = order_ids;}public void unsetOrder_ids() {this.order_ids = null;}/** Returns true if field order_ids is set (has been assigned a value) and false otherwise */public boolean isSetOrder_ids() {return this.order_ids != null;}public void setOrder_idsIsSet(boolean value) {if (!value) {this.order_ids = null;}}public long getVendorId() {return this.vendorId;}public void setVendorId(long vendorId) {this.vendorId = vendorId;setVendorIdIsSet(true);}public void unsetVendorId() {__isset_bit_vector.clear(__VENDORID_ISSET_ID);}/** Returns true if field vendorId is set (has been assigned a value) and false otherwise */public boolean isSetVendorId() {return __isset_bit_vector.get(__VENDORID_ISSET_ID);}public void setVendorIdIsSet(boolean value) {__isset_bit_vector.set(__VENDORID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_IDS:if (value == null) {unsetOrder_ids();} else {setOrder_ids((List<Long>)value);}break;case VENDOR_ID:if (value == null) {unsetVendorId();} else {setVendorId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_IDS:return getOrder_ids();case VENDOR_ID:return Long.valueOf(getVendorId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_IDS:return isSetOrder_ids();case VENDOR_ID:return isSetVendorId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderListForVendor_args)return this.equals((getOrderListForVendor_args)that);return false;}public boolean equals(getOrderListForVendor_args that) {if (that == null)return false;boolean this_present_order_ids = true && this.isSetOrder_ids();boolean that_present_order_ids = true && that.isSetOrder_ids();if (this_present_order_ids || that_present_order_ids) {if (!(this_present_order_ids && that_present_order_ids))return false;if (!this.order_ids.equals(that.order_ids))return false;}boolean this_present_vendorId = true;boolean that_present_vendorId = true;if (this_present_vendorId || that_present_vendorId) {if (!(this_present_vendorId && that_present_vendorId))return false;if (this.vendorId != that.vendorId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrderListForVendor_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrderListForVendor_args typedOther = (getOrderListForVendor_args)other;lastComparison = Boolean.valueOf(isSetOrder_ids()).compareTo(typedOther.isSetOrder_ids());if (lastComparison != 0) {return lastComparison;}if (isSetOrder_ids()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order_ids, typedOther.order_ids);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());if (lastComparison != 0) {return lastComparison;}if (isSetVendorId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list108 = iprot.readListBegin();this.order_ids = new ArrayList<Long>(_list108.size);for (int _i109 = 0; _i109 < _list108.size; ++_i109){long _elem110; // required_elem110 = iprot.readI64();this.order_ids.add(_elem110);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // VENDOR_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.vendorId = iprot.readI64();setVendorIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.order_ids != null) {oprot.writeFieldBegin(ORDER_IDS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.order_ids.size()));for (long _iter111 : this.order_ids){oprot.writeI64(_iter111);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);oprot.writeI64(this.vendorId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderListForVendor_args(");boolean first = true;sb.append("order_ids:");if (this.order_ids == null) {sb.append("null");} else {sb.append(this.order_ids);}first = false;if (!first) sb.append(", ");sb.append("vendorId:");sb.append(this.vendorId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrderListForVendor_result implements org.apache.thrift.TBase<getOrderListForVendor_result, getOrderListForVendor_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderListForVendor_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Order> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderListForVendor_result.class, metaDataMap);}public getOrderListForVendor_result() {}public getOrderListForVendor_result(List<Order> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getOrderListForVendor_result(getOrderListForVendor_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}}public getOrderListForVendor_result deepCopy() {return new getOrderListForVendor_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderListForVendor_result)return this.equals((getOrderListForVendor_result)that);return false;}public boolean equals(getOrderListForVendor_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrderListForVendor_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrderListForVendor_result typedOther = (getOrderListForVendor_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list112 = iprot.readListBegin();this.success = new ArrayList<Order>(_list112.size);for (int _i113 = 0; _i113 < _list112.size; ++_i113){Order _elem114; // required_elem114 = new Order();_elem114.read(iprot);this.success.add(_elem114);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter115 : this.success){_iter115.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderListForVendor_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrderForCustomer_args implements org.apache.thrift.TBase<getOrderForCustomer_args, getOrderForCustomer_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderForCustomer_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerId", org.apache.thrift.protocol.TType.I64, (short)2);private long orderId; // requiredprivate long customerId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),CUSTOMER_ID((short)2, "customerId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // CUSTOMER_IDreturn CUSTOMER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private static final int __CUSTOMERID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderForCustomer_args.class, metaDataMap);}public getOrderForCustomer_args() {}public getOrderForCustomer_args(long orderId,long customerId){this();this.orderId = orderId;setOrderIdIsSet(true);this.customerId = customerId;setCustomerIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getOrderForCustomer_args(getOrderForCustomer_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;this.customerId = other.customerId;}public getOrderForCustomer_args deepCopy() {return new getOrderForCustomer_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;setCustomerIdIsSet(false);this.customerId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public long getCustomerId() {return this.customerId;}public void setCustomerId(long customerId) {this.customerId = customerId;setCustomerIdIsSet(true);}public void unsetCustomerId() {__isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);}/** Returns true if field customerId is set (has been assigned a value) and false otherwise */public boolean isSetCustomerId() {return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);}public void setCustomerIdIsSet(boolean value) {__isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case CUSTOMER_ID:if (value == null) {unsetCustomerId();} else {setCustomerId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case CUSTOMER_ID:return Long.valueOf(getCustomerId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case CUSTOMER_ID:return isSetCustomerId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderForCustomer_args)return this.equals((getOrderForCustomer_args)that);return false;}public boolean equals(getOrderForCustomer_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_customerId = true;boolean that_present_customerId = true;if (this_present_customerId || that_present_customerId) {if (!(this_present_customerId && that_present_customerId))return false;if (this.customerId != that.customerId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrderForCustomer_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrderForCustomer_args typedOther = (getOrderForCustomer_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());if (lastComparison != 0) {return lastComparison;}if (isSetCustomerId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // CUSTOMER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.customerId = iprot.readI64();setCustomerIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);oprot.writeI64(this.customerId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderForCustomer_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("customerId:");sb.append(this.customerId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrderForCustomer_result implements org.apache.thrift.TBase<getOrderForCustomer_result, getOrderForCustomer_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderForCustomer_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Order success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderForCustomer_result.class, metaDataMap);}public getOrderForCustomer_result() {}public getOrderForCustomer_result(Order success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getOrderForCustomer_result(getOrderForCustomer_result other) {if (other.isSetSuccess()) {this.success = new Order(other.success);}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getOrderForCustomer_result deepCopy() {return new getOrderForCustomer_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public Order getSuccess() {return this.success;}public void setSuccess(Order success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Order)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderForCustomer_result)return this.equals((getOrderForCustomer_result)that);return false;}public boolean equals(getOrderForCustomer_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrderForCustomer_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrderForCustomer_result typedOther = (getOrderForCustomer_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Order();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderForCustomer_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAlerts_args implements org.apache.thrift.TBase<getAlerts_args, getAlerts_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAlerts_args");private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)4);private long type; // requiredprivate long warehouseId; // requiredprivate long status; // requiredprivate long timestamp; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {TYPE((short)1, "type"),WAREHOUSE_ID((short)2, "warehouseId"),STATUS((short)3, "status"),TIMESTAMP((short)4, "timestamp");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // TYPEreturn TYPE;case 2: // WAREHOUSE_IDreturn WAREHOUSE_ID;case 3: // STATUSreturn STATUS;case 4: // TIMESTAMPreturn TIMESTAMP;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TYPE_ISSET_ID = 0;private static final int __WAREHOUSEID_ISSET_ID = 1;private static final int __STATUS_ISSET_ID = 2;private static final int __TIMESTAMP_ISSET_ID = 3;private BitSet __isset_bit_vector = new BitSet(4);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAlerts_args.class, metaDataMap);}public getAlerts_args() {}public getAlerts_args(long type,long warehouseId,long status,long timestamp){this();this.type = type;setTypeIsSet(true);this.warehouseId = warehouseId;setWarehouseIdIsSet(true);this.status = status;setStatusIsSet(true);this.timestamp = timestamp;setTimestampIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAlerts_args(getAlerts_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.type = other.type;this.warehouseId = other.warehouseId;this.status = other.status;this.timestamp = other.timestamp;}public getAlerts_args deepCopy() {return new getAlerts_args(this);}@Overridepublic void clear() {setTypeIsSet(false);this.type = 0;setWarehouseIdIsSet(false);this.warehouseId = 0;setStatusIsSet(false);this.status = 0;setTimestampIsSet(false);this.timestamp = 0;}public long getType() {return this.type;}public void setType(long type) {this.type = type;setTypeIsSet(true);}public void unsetType() {__isset_bit_vector.clear(__TYPE_ISSET_ID);}/** Returns true if field type is set (has been assigned a value) and false otherwise */public boolean isSetType() {return __isset_bit_vector.get(__TYPE_ISSET_ID);}public void setTypeIsSet(boolean value) {__isset_bit_vector.set(__TYPE_ISSET_ID, value);}public long getWarehouseId() {return this.warehouseId;}public void setWarehouseId(long warehouseId) {this.warehouseId = warehouseId;setWarehouseIdIsSet(true);}public void unsetWarehouseId() {__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);}/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */public boolean isSetWarehouseId() {return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);}public void setWarehouseIdIsSet(boolean value) {__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);}public long getStatus() {return this.status;}public void setStatus(long status) {this.status = status;setStatusIsSet(true);}public void unsetStatus() {__isset_bit_vector.clear(__STATUS_ISSET_ID);}/** Returns true if field status is set (has been assigned a value) and false otherwise */public boolean isSetStatus() {return __isset_bit_vector.get(__STATUS_ISSET_ID);}public void setStatusIsSet(boolean value) {__isset_bit_vector.set(__STATUS_ISSET_ID, value);}public long getTimestamp() {return this.timestamp;}public void setTimestamp(long timestamp) {this.timestamp = timestamp;setTimestampIsSet(true);}public void unsetTimestamp() {__isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);}/** Returns true if field timestamp is set (has been assigned a value) and false otherwise */public boolean isSetTimestamp() {return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);}public void setTimestampIsSet(boolean value) {__isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TYPE:if (value == null) {unsetType();} else {setType((Long)value);}break;case WAREHOUSE_ID:if (value == null) {unsetWarehouseId();} else {setWarehouseId((Long)value);}break;case STATUS:if (value == null) {unsetStatus();} else {setStatus((Long)value);}break;case TIMESTAMP:if (value == null) {unsetTimestamp();} else {setTimestamp((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case TYPE:return Long.valueOf(getType());case WAREHOUSE_ID:return Long.valueOf(getWarehouseId());case STATUS:return Long.valueOf(getStatus());case TIMESTAMP:return Long.valueOf(getTimestamp());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case TYPE:return isSetType();case WAREHOUSE_ID:return isSetWarehouseId();case STATUS:return isSetStatus();case TIMESTAMP:return isSetTimestamp();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAlerts_args)return this.equals((getAlerts_args)that);return false;}public boolean equals(getAlerts_args that) {if (that == null)return false;boolean this_present_type = true;boolean that_present_type = true;if (this_present_type || that_present_type) {if (!(this_present_type && that_present_type))return false;if (this.type != that.type)return false;}boolean this_present_warehouseId = true;boolean that_present_warehouseId = true;if (this_present_warehouseId || that_present_warehouseId) {if (!(this_present_warehouseId && that_present_warehouseId))return false;if (this.warehouseId != that.warehouseId)return false;}boolean this_present_status = true;boolean that_present_status = true;if (this_present_status || that_present_status) {if (!(this_present_status && that_present_status))return false;if (this.status != that.status)return false;}boolean this_present_timestamp = true;boolean that_present_timestamp = true;if (this_present_timestamp || that_present_timestamp) {if (!(this_present_timestamp && that_present_timestamp))return false;if (this.timestamp != that.timestamp)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAlerts_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAlerts_args typedOther = (getAlerts_args)other;lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());if (lastComparison != 0) {return lastComparison;}if (isSetType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());if (lastComparison != 0) {return lastComparison;}if (isSetWarehouseId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());if (lastComparison != 0) {return lastComparison;}if (isSetStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());if (lastComparison != 0) {return lastComparison;}if (isSetTimestamp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // TYPEif (field.type == org.apache.thrift.protocol.TType.I64) {this.type = iprot.readI64();setTypeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.warehouseId = iprot.readI64();setWarehouseIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // STATUSif (field.type == org.apache.thrift.protocol.TType.I64) {this.status = iprot.readI64();setStatusIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // TIMESTAMPif (field.type == org.apache.thrift.protocol.TType.I64) {this.timestamp = iprot.readI64();setTimestampIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TYPE_FIELD_DESC);oprot.writeI64(this.type);oprot.writeFieldEnd();oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.warehouseId);oprot.writeFieldEnd();oprot.writeFieldBegin(STATUS_FIELD_DESC);oprot.writeI64(this.status);oprot.writeFieldEnd();oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);oprot.writeI64(this.timestamp);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAlerts_args(");boolean first = true;sb.append("type:");sb.append(this.type);first = false;if (!first) sb.append(", ");sb.append("warehouseId:");sb.append(this.warehouseId);first = false;if (!first) sb.append(", ");sb.append("status:");sb.append(this.status);first = false;if (!first) sb.append(", ");sb.append("timestamp:");sb.append(this.timestamp);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAlerts_result implements org.apache.thrift.TBase<getAlerts_result, getAlerts_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAlerts_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Alert> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Alert.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAlerts_result.class, metaDataMap);}public getAlerts_result() {}public getAlerts_result(List<Alert> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAlerts_result(getAlerts_result other) {if (other.isSetSuccess()) {List<Alert> __this__success = new ArrayList<Alert>();for (Alert other_element : other.success) {__this__success.add(new Alert(other_element));}this.success = __this__success;}}public getAlerts_result deepCopy() {return new getAlerts_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Alert> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Alert elem) {if (this.success == null) {this.success = new ArrayList<Alert>();}this.success.add(elem);}public List<Alert> getSuccess() {return this.success;}public void setSuccess(List<Alert> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Alert>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAlerts_result)return this.equals((getAlerts_result)that);return false;}public boolean equals(getAlerts_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAlerts_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAlerts_result typedOther = (getAlerts_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list116 = iprot.readListBegin();this.success = new ArrayList<Alert>(_list116.size);for (int _i117 = 0; _i117 < _list116.size; ++_i117){Alert _elem118; // required_elem118 = new Alert();_elem118.read(iprot);this.success.add(_elem118);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Alert _iter119 : this.success){_iter119.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAlerts_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addAlert_args implements org.apache.thrift.TBase<addAlert_args, addAlert_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAlert_args");private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)3);private long type; // requiredprivate long warehouseId; // requiredprivate String description; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {TYPE((short)1, "type"),WAREHOUSE_ID((short)2, "warehouseId"),DESCRIPTION((short)3, "description");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // TYPEreturn TYPE;case 2: // WAREHOUSE_IDreturn WAREHOUSE_ID;case 3: // DESCRIPTIONreturn DESCRIPTION;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TYPE_ISSET_ID = 0;private static final int __WAREHOUSEID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAlert_args.class, metaDataMap);}public addAlert_args() {}public addAlert_args(long type,long warehouseId,String description){this();this.type = type;setTypeIsSet(true);this.warehouseId = warehouseId;setWarehouseIdIsSet(true);this.description = description;}/*** Performs a deep copy on <i>other</i>.*/public addAlert_args(addAlert_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.type = other.type;this.warehouseId = other.warehouseId;if (other.isSetDescription()) {this.description = other.description;}}public addAlert_args deepCopy() {return new addAlert_args(this);}@Overridepublic void clear() {setTypeIsSet(false);this.type = 0;setWarehouseIdIsSet(false);this.warehouseId = 0;this.description = null;}public long getType() {return this.type;}public void setType(long type) {this.type = type;setTypeIsSet(true);}public void unsetType() {__isset_bit_vector.clear(__TYPE_ISSET_ID);}/** Returns true if field type is set (has been assigned a value) and false otherwise */public boolean isSetType() {return __isset_bit_vector.get(__TYPE_ISSET_ID);}public void setTypeIsSet(boolean value) {__isset_bit_vector.set(__TYPE_ISSET_ID, value);}public long getWarehouseId() {return this.warehouseId;}public void setWarehouseId(long warehouseId) {this.warehouseId = warehouseId;setWarehouseIdIsSet(true);}public void unsetWarehouseId() {__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);}/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */public boolean isSetWarehouseId() {return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);}public void setWarehouseIdIsSet(boolean value) {__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);}public String getDescription() {return this.description;}public void setDescription(String description) {this.description = description;}public void unsetDescription() {this.description = null;}/** Returns true if field description is set (has been assigned a value) and false otherwise */public boolean isSetDescription() {return this.description != null;}public void setDescriptionIsSet(boolean value) {if (!value) {this.description = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case TYPE:if (value == null) {unsetType();} else {setType((Long)value);}break;case WAREHOUSE_ID:if (value == null) {unsetWarehouseId();} else {setWarehouseId((Long)value);}break;case DESCRIPTION:if (value == null) {unsetDescription();} else {setDescription((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case TYPE:return Long.valueOf(getType());case WAREHOUSE_ID:return Long.valueOf(getWarehouseId());case DESCRIPTION:return getDescription();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case TYPE:return isSetType();case WAREHOUSE_ID:return isSetWarehouseId();case DESCRIPTION:return isSetDescription();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addAlert_args)return this.equals((addAlert_args)that);return false;}public boolean equals(addAlert_args that) {if (that == null)return false;boolean this_present_type = true;boolean that_present_type = true;if (this_present_type || that_present_type) {if (!(this_present_type && that_present_type))return false;if (this.type != that.type)return false;}boolean this_present_warehouseId = true;boolean that_present_warehouseId = true;if (this_present_warehouseId || that_present_warehouseId) {if (!(this_present_warehouseId && that_present_warehouseId))return false;if (this.warehouseId != that.warehouseId)return false;}boolean this_present_description = true && this.isSetDescription();boolean that_present_description = true && that.isSetDescription();if (this_present_description || that_present_description) {if (!(this_present_description && that_present_description))return false;if (!this.description.equals(that.description))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addAlert_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addAlert_args typedOther = (addAlert_args)other;lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());if (lastComparison != 0) {return lastComparison;}if (isSetType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());if (lastComparison != 0) {return lastComparison;}if (isSetWarehouseId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());if (lastComparison != 0) {return lastComparison;}if (isSetDescription()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // TYPEif (field.type == org.apache.thrift.protocol.TType.I64) {this.type = iprot.readI64();setTypeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.warehouseId = iprot.readI64();setWarehouseIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // DESCRIPTIONif (field.type == org.apache.thrift.protocol.TType.STRING) {this.description = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TYPE_FIELD_DESC);oprot.writeI64(this.type);oprot.writeFieldEnd();oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.warehouseId);oprot.writeFieldEnd();if (this.description != null) {oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);oprot.writeString(this.description);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addAlert_args(");boolean first = true;sb.append("type:");sb.append(this.type);first = false;if (!first) sb.append(", ");sb.append("warehouseId:");sb.append(this.warehouseId);first = false;if (!first) sb.append(", ");sb.append("description:");if (this.description == null) {sb.append("null");} else {sb.append(this.description);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addAlert_result implements org.apache.thrift.TBase<addAlert_result, addAlert_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addAlert_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addAlert_result.class, metaDataMap);}public addAlert_result() {}/*** Performs a deep copy on <i>other</i>.*/public addAlert_result(addAlert_result other) {}public addAlert_result deepCopy() {return new addAlert_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addAlert_result)return this.equals((addAlert_result)that);return false;}public boolean equals(addAlert_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addAlert_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addAlert_result typedOther = (addAlert_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addAlert_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markAlertsAsSeen_args implements org.apache.thrift.TBase<markAlertsAsSeen_args, markAlertsAsSeen_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markAlertsAsSeen_args");private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)1);private long warehouseId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {WAREHOUSE_ID((short)1, "warehouseId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // WAREHOUSE_IDreturn WAREHOUSE_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __WAREHOUSEID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markAlertsAsSeen_args.class, metaDataMap);}public markAlertsAsSeen_args() {}public markAlertsAsSeen_args(long warehouseId){this();this.warehouseId = warehouseId;setWarehouseIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markAlertsAsSeen_args(markAlertsAsSeen_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.warehouseId = other.warehouseId;}public markAlertsAsSeen_args deepCopy() {return new markAlertsAsSeen_args(this);}@Overridepublic void clear() {setWarehouseIdIsSet(false);this.warehouseId = 0;}public long getWarehouseId() {return this.warehouseId;}public void setWarehouseId(long warehouseId) {this.warehouseId = warehouseId;setWarehouseIdIsSet(true);}public void unsetWarehouseId() {__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);}/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */public boolean isSetWarehouseId() {return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);}public void setWarehouseIdIsSet(boolean value) {__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case WAREHOUSE_ID:if (value == null) {unsetWarehouseId();} else {setWarehouseId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case WAREHOUSE_ID:return Long.valueOf(getWarehouseId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case WAREHOUSE_ID:return isSetWarehouseId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markAlertsAsSeen_args)return this.equals((markAlertsAsSeen_args)that);return false;}public boolean equals(markAlertsAsSeen_args that) {if (that == null)return false;boolean this_present_warehouseId = true;boolean that_present_warehouseId = true;if (this_present_warehouseId || that_present_warehouseId) {if (!(this_present_warehouseId && that_present_warehouseId))return false;if (this.warehouseId != that.warehouseId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markAlertsAsSeen_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markAlertsAsSeen_args typedOther = (markAlertsAsSeen_args)other;lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());if (lastComparison != 0) {return lastComparison;}if (isSetWarehouseId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.warehouseId = iprot.readI64();setWarehouseIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.warehouseId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markAlertsAsSeen_args(");boolean first = true;sb.append("warehouseId:");sb.append(this.warehouseId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markAlertsAsSeen_result implements org.apache.thrift.TBase<markAlertsAsSeen_result, markAlertsAsSeen_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markAlertsAsSeen_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markAlertsAsSeen_result.class, metaDataMap);}public markAlertsAsSeen_result() {}/*** Performs a deep copy on <i>other</i>.*/public markAlertsAsSeen_result(markAlertsAsSeen_result other) {}public markAlertsAsSeen_result deepCopy() {return new markAlertsAsSeen_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markAlertsAsSeen_result)return this.equals((markAlertsAsSeen_result)that);return false;}public boolean equals(markAlertsAsSeen_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markAlertsAsSeen_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markAlertsAsSeen_result typedOther = (markAlertsAsSeen_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markAlertsAsSeen_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getValidOrderCount_args implements org.apache.thrift.TBase<getValidOrderCount_args, getValidOrderCount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrderCount_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrderCount_args.class, metaDataMap);}public getValidOrderCount_args() {}/*** Performs a deep copy on <i>other</i>.*/public getValidOrderCount_args(getValidOrderCount_args other) {}public getValidOrderCount_args deepCopy() {return new getValidOrderCount_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getValidOrderCount_args)return this.equals((getValidOrderCount_args)that);return false;}public boolean equals(getValidOrderCount_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getValidOrderCount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getValidOrderCount_args typedOther = (getValidOrderCount_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getValidOrderCount_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getValidOrderCount_result implements org.apache.thrift.TBase<getValidOrderCount_result, getValidOrderCount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrderCount_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private long success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrderCount_result.class, metaDataMap);}public getValidOrderCount_result() {}public getValidOrderCount_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getValidOrderCount_result(getValidOrderCount_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getValidOrderCount_result deepCopy() {return new getValidOrderCount_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getValidOrderCount_result)return this.equals((getValidOrderCount_result)that);return false;}public boolean equals(getValidOrderCount_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getValidOrderCount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getValidOrderCount_result typedOther = (getValidOrderCount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getValidOrderCount_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getNoOfCustomersWithSuccessfulTransaction_args implements org.apache.thrift.TBase<getNoOfCustomersWithSuccessfulTransaction_args, getNoOfCustomersWithSuccessfulTransaction_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNoOfCustomersWithSuccessfulTransaction_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNoOfCustomersWithSuccessfulTransaction_args.class, metaDataMap);}public getNoOfCustomersWithSuccessfulTransaction_args() {}/*** Performs a deep copy on <i>other</i>.*/public getNoOfCustomersWithSuccessfulTransaction_args(getNoOfCustomersWithSuccessfulTransaction_args other) {}public getNoOfCustomersWithSuccessfulTransaction_args deepCopy() {return new getNoOfCustomersWithSuccessfulTransaction_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getNoOfCustomersWithSuccessfulTransaction_args)return this.equals((getNoOfCustomersWithSuccessfulTransaction_args)that);return false;}public boolean equals(getNoOfCustomersWithSuccessfulTransaction_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getNoOfCustomersWithSuccessfulTransaction_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getNoOfCustomersWithSuccessfulTransaction_args typedOther = (getNoOfCustomersWithSuccessfulTransaction_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getNoOfCustomersWithSuccessfulTransaction_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getNoOfCustomersWithSuccessfulTransaction_result implements org.apache.thrift.TBase<getNoOfCustomersWithSuccessfulTransaction_result, getNoOfCustomersWithSuccessfulTransaction_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNoOfCustomersWithSuccessfulTransaction_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private long success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNoOfCustomersWithSuccessfulTransaction_result.class, metaDataMap);}public getNoOfCustomersWithSuccessfulTransaction_result() {}public getNoOfCustomersWithSuccessfulTransaction_result(long success){this();this.success = success;setSuccessIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getNoOfCustomersWithSuccessfulTransaction_result(getNoOfCustomersWithSuccessfulTransaction_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;}public getNoOfCustomersWithSuccessfulTransaction_result deepCopy() {return new getNoOfCustomersWithSuccessfulTransaction_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getNoOfCustomersWithSuccessfulTransaction_result)return this.equals((getNoOfCustomersWithSuccessfulTransaction_result)that);return false;}public boolean equals(getNoOfCustomersWithSuccessfulTransaction_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getNoOfCustomersWithSuccessfulTransaction_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getNoOfCustomersWithSuccessfulTransaction_result typedOther = (getNoOfCustomersWithSuccessfulTransaction_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getNoOfCustomersWithSuccessfulTransaction_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getValidOrdersAmountRange_args implements org.apache.thrift.TBase<getValidOrdersAmountRange_args, getValidOrdersAmountRange_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrdersAmountRange_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrdersAmountRange_args.class, metaDataMap);}public getValidOrdersAmountRange_args() {}/*** Performs a deep copy on <i>other</i>.*/public getValidOrdersAmountRange_args(getValidOrdersAmountRange_args other) {}public getValidOrdersAmountRange_args deepCopy() {return new getValidOrdersAmountRange_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getValidOrdersAmountRange_args)return this.equals((getValidOrdersAmountRange_args)that);return false;}public boolean equals(getValidOrdersAmountRange_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getValidOrdersAmountRange_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getValidOrdersAmountRange_args typedOther = (getValidOrdersAmountRange_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getValidOrdersAmountRange_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getValidOrdersAmountRange_result implements org.apache.thrift.TBase<getValidOrdersAmountRange_result, getValidOrdersAmountRange_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrdersAmountRange_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Double> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrdersAmountRange_result.class, metaDataMap);}public getValidOrdersAmountRange_result() {}public getValidOrdersAmountRange_result(List<Double> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getValidOrdersAmountRange_result(getValidOrdersAmountRange_result other) {if (other.isSetSuccess()) {List<Double> __this__success = new ArrayList<Double>();for (Double other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}}public getValidOrdersAmountRange_result deepCopy() {return new getValidOrdersAmountRange_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Double> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(double elem) {if (this.success == null) {this.success = new ArrayList<Double>();}this.success.add(elem);}public List<Double> getSuccess() {return this.success;}public void setSuccess(List<Double> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Double>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getValidOrdersAmountRange_result)return this.equals((getValidOrdersAmountRange_result)that);return false;}public boolean equals(getValidOrdersAmountRange_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getValidOrdersAmountRange_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getValidOrdersAmountRange_result typedOther = (getValidOrdersAmountRange_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list120 = iprot.readListBegin();this.success = new ArrayList<Double>(_list120.size);for (int _i121 = 0; _i121 < _list120.size; ++_i121){double _elem122; // required_elem122 = iprot.readDouble();this.success.add(_elem122);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));for (double _iter123 : this.success){oprot.writeDouble(_iter123);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getValidOrdersAmountRange_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getValidOrders_args implements org.apache.thrift.TBase<getValidOrders_args, getValidOrders_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrders_args");private static final org.apache.thrift.protocol.TField LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("limit", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField ONLY_STORE_FIELD_DESC = new org.apache.thrift.protocol.TField("onlyStore", org.apache.thrift.protocol.TType.BOOL, (short)2);private long limit; // requiredprivate boolean onlyStore; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {LIMIT((short)1, "limit"),ONLY_STORE((short)2, "onlyStore");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // LIMITreturn LIMIT;case 2: // ONLY_STOREreturn ONLY_STORE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __LIMIT_ISSET_ID = 0;private static final int __ONLYSTORE_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.LIMIT, new org.apache.thrift.meta_data.FieldMetaData("limit", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ONLY_STORE, new org.apache.thrift.meta_data.FieldMetaData("onlyStore", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrders_args.class, metaDataMap);}public getValidOrders_args() {}public getValidOrders_args(long limit,boolean onlyStore){this();this.limit = limit;setLimitIsSet(true);this.onlyStore = onlyStore;setOnlyStoreIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getValidOrders_args(getValidOrders_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.limit = other.limit;this.onlyStore = other.onlyStore;}public getValidOrders_args deepCopy() {return new getValidOrders_args(this);}@Overridepublic void clear() {setLimitIsSet(false);this.limit = 0;setOnlyStoreIsSet(false);this.onlyStore = false;}public long getLimit() {return this.limit;}public void setLimit(long limit) {this.limit = limit;setLimitIsSet(true);}public void unsetLimit() {__isset_bit_vector.clear(__LIMIT_ISSET_ID);}/** Returns true if field limit is set (has been assigned a value) and false otherwise */public boolean isSetLimit() {return __isset_bit_vector.get(__LIMIT_ISSET_ID);}public void setLimitIsSet(boolean value) {__isset_bit_vector.set(__LIMIT_ISSET_ID, value);}public boolean isOnlyStore() {return this.onlyStore;}public void setOnlyStore(boolean onlyStore) {this.onlyStore = onlyStore;setOnlyStoreIsSet(true);}public void unsetOnlyStore() {__isset_bit_vector.clear(__ONLYSTORE_ISSET_ID);}/** Returns true if field onlyStore is set (has been assigned a value) and false otherwise */public boolean isSetOnlyStore() {return __isset_bit_vector.get(__ONLYSTORE_ISSET_ID);}public void setOnlyStoreIsSet(boolean value) {__isset_bit_vector.set(__ONLYSTORE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case LIMIT:if (value == null) {unsetLimit();} else {setLimit((Long)value);}break;case ONLY_STORE:if (value == null) {unsetOnlyStore();} else {setOnlyStore((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case LIMIT:return Long.valueOf(getLimit());case ONLY_STORE:return Boolean.valueOf(isOnlyStore());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case LIMIT:return isSetLimit();case ONLY_STORE:return isSetOnlyStore();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getValidOrders_args)return this.equals((getValidOrders_args)that);return false;}public boolean equals(getValidOrders_args that) {if (that == null)return false;boolean this_present_limit = true;boolean that_present_limit = true;if (this_present_limit || that_present_limit) {if (!(this_present_limit && that_present_limit))return false;if (this.limit != that.limit)return false;}boolean this_present_onlyStore = true;boolean that_present_onlyStore = true;if (this_present_onlyStore || that_present_onlyStore) {if (!(this_present_onlyStore && that_present_onlyStore))return false;if (this.onlyStore != that.onlyStore)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getValidOrders_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getValidOrders_args typedOther = (getValidOrders_args)other;lastComparison = Boolean.valueOf(isSetLimit()).compareTo(typedOther.isSetLimit());if (lastComparison != 0) {return lastComparison;}if (isSetLimit()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.limit, typedOther.limit);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOnlyStore()).compareTo(typedOther.isSetOnlyStore());if (lastComparison != 0) {return lastComparison;}if (isSetOnlyStore()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.onlyStore, typedOther.onlyStore);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // LIMITif (field.type == org.apache.thrift.protocol.TType.I64) {this.limit = iprot.readI64();setLimitIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ONLY_STOREif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.onlyStore = iprot.readBool();setOnlyStoreIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(LIMIT_FIELD_DESC);oprot.writeI64(this.limit);oprot.writeFieldEnd();oprot.writeFieldBegin(ONLY_STORE_FIELD_DESC);oprot.writeBool(this.onlyStore);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getValidOrders_args(");boolean first = true;sb.append("limit:");sb.append(this.limit);first = false;if (!first) sb.append(", ");sb.append("onlyStore:");sb.append(this.onlyStore);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getValidOrders_result implements org.apache.thrift.TBase<getValidOrders_result, getValidOrders_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getValidOrders_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Order> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getValidOrders_result.class, metaDataMap);}public getValidOrders_result() {}public getValidOrders_result(List<Order> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getValidOrders_result(getValidOrders_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}}public getValidOrders_result deepCopy() {return new getValidOrders_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getValidOrders_result)return this.equals((getValidOrders_result)that);return false;}public boolean equals(getValidOrders_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getValidOrders_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getValidOrders_result typedOther = (getValidOrders_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list124 = iprot.readListBegin();this.success = new ArrayList<Order>(_list124.size);for (int _i125 = 0; _i125 < _list124.size; ++_i125){Order _elem126; // required_elem126 = new Order();_elem126.read(iprot);this.success.add(_elem126);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter127 : this.success){_iter127.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getValidOrders_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class batchOrders_args implements org.apache.thrift.TBase<batchOrders_args, batchOrders_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("batchOrders_args");private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)1);private long warehouseId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {WAREHOUSE_ID((short)1, "warehouseId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // WAREHOUSE_IDreturn WAREHOUSE_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __WAREHOUSEID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(batchOrders_args.class, metaDataMap);}public batchOrders_args() {}public batchOrders_args(long warehouseId){this();this.warehouseId = warehouseId;setWarehouseIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public batchOrders_args(batchOrders_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.warehouseId = other.warehouseId;}public batchOrders_args deepCopy() {return new batchOrders_args(this);}@Overridepublic void clear() {setWarehouseIdIsSet(false);this.warehouseId = 0;}public long getWarehouseId() {return this.warehouseId;}public void setWarehouseId(long warehouseId) {this.warehouseId = warehouseId;setWarehouseIdIsSet(true);}public void unsetWarehouseId() {__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);}/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */public boolean isSetWarehouseId() {return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);}public void setWarehouseIdIsSet(boolean value) {__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case WAREHOUSE_ID:if (value == null) {unsetWarehouseId();} else {setWarehouseId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case WAREHOUSE_ID:return Long.valueOf(getWarehouseId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case WAREHOUSE_ID:return isSetWarehouseId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof batchOrders_args)return this.equals((batchOrders_args)that);return false;}public boolean equals(batchOrders_args that) {if (that == null)return false;boolean this_present_warehouseId = true;boolean that_present_warehouseId = true;if (this_present_warehouseId || that_present_warehouseId) {if (!(this_present_warehouseId && that_present_warehouseId))return false;if (this.warehouseId != that.warehouseId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(batchOrders_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;batchOrders_args typedOther = (batchOrders_args)other;lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());if (lastComparison != 0) {return lastComparison;}if (isSetWarehouseId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.warehouseId = iprot.readI64();setWarehouseIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.warehouseId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("batchOrders_args(");boolean first = true;sb.append("warehouseId:");sb.append(this.warehouseId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class batchOrders_result implements org.apache.thrift.TBase<batchOrders_result, batchOrders_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("batchOrders_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Order> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(batchOrders_result.class, metaDataMap);}public batchOrders_result() {}public batchOrders_result(List<Order> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public batchOrders_result(batchOrders_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public batchOrders_result deepCopy() {return new batchOrders_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof batchOrders_result)return this.equals((batchOrders_result)that);return false;}public boolean equals(batchOrders_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(batchOrders_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;batchOrders_result typedOther = (batchOrders_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list128 = iprot.readListBegin();this.success = new ArrayList<Order>(_list128.size);for (int _i129 = 0; _i129 < _list128.size; ++_i129){Order _elem130; // required_elem130 = new Order();_elem130.read(iprot);this.success.add(_elem130);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter131 : this.success){_iter131.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("batchOrders_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderAsOutOfStock_args implements org.apache.thrift.TBase<markOrderAsOutOfStock_args, markOrderAsOutOfStock_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsOutOfStock_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private long orderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsOutOfStock_args.class, metaDataMap);}public markOrderAsOutOfStock_args() {}public markOrderAsOutOfStock_args(long orderId){this();this.orderId = orderId;setOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markOrderAsOutOfStock_args(markOrderAsOutOfStock_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;}public markOrderAsOutOfStock_args deepCopy() {return new markOrderAsOutOfStock_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderAsOutOfStock_args)return this.equals((markOrderAsOutOfStock_args)that);return false;}public boolean equals(markOrderAsOutOfStock_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderAsOutOfStock_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderAsOutOfStock_args typedOther = (markOrderAsOutOfStock_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderAsOutOfStock_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderAsOutOfStock_result implements org.apache.thrift.TBase<markOrderAsOutOfStock_result, markOrderAsOutOfStock_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsOutOfStock_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsOutOfStock_result.class, metaDataMap);}public markOrderAsOutOfStock_result() {}public markOrderAsOutOfStock_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrderAsOutOfStock_result(markOrderAsOutOfStock_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrderAsOutOfStock_result deepCopy() {return new markOrderAsOutOfStock_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderAsOutOfStock_result)return this.equals((markOrderAsOutOfStock_result)that);return false;}public boolean equals(markOrderAsOutOfStock_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderAsOutOfStock_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderAsOutOfStock_result typedOther = (markOrderAsOutOfStock_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderAsOutOfStock_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class verifyOrder_args implements org.apache.thrift.TBase<verifyOrder_args, verifyOrder_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("verifyOrder_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private long orderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(verifyOrder_args.class, metaDataMap);}public verifyOrder_args() {}public verifyOrder_args(long orderId){this();this.orderId = orderId;setOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public verifyOrder_args(verifyOrder_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;}public verifyOrder_args deepCopy() {return new verifyOrder_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof verifyOrder_args)return this.equals((verifyOrder_args)that);return false;}public boolean equals(verifyOrder_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(verifyOrder_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;verifyOrder_args typedOther = (verifyOrder_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("verifyOrder_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class verifyOrder_result implements org.apache.thrift.TBase<verifyOrder_result, verifyOrder_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("verifyOrder_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(verifyOrder_result.class, metaDataMap);}public verifyOrder_result() {}public verifyOrder_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public verifyOrder_result(verifyOrder_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public verifyOrder_result deepCopy() {return new verifyOrder_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof verifyOrder_result)return this.equals((verifyOrder_result)that);return false;}public boolean equals(verifyOrder_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(verifyOrder_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;verifyOrder_result typedOther = (verifyOrder_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("verifyOrder_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class acceptOrder_args implements org.apache.thrift.TBase<acceptOrder_args, acceptOrder_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("acceptOrder_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private long orderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(acceptOrder_args.class, metaDataMap);}public acceptOrder_args() {}public acceptOrder_args(long orderId){this();this.orderId = orderId;setOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public acceptOrder_args(acceptOrder_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;}public acceptOrder_args deepCopy() {return new acceptOrder_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof acceptOrder_args)return this.equals((acceptOrder_args)that);return false;}public boolean equals(acceptOrder_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(acceptOrder_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;acceptOrder_args typedOther = (acceptOrder_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("acceptOrder_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class acceptOrder_result implements org.apache.thrift.TBase<acceptOrder_result, acceptOrder_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("acceptOrder_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(acceptOrder_result.class, metaDataMap);}public acceptOrder_result() {}public acceptOrder_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public acceptOrder_result(acceptOrder_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public acceptOrder_result deepCopy() {return new acceptOrder_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof acceptOrder_result)return this.equals((acceptOrder_result)that);return false;}public boolean equals(acceptOrder_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(acceptOrder_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;acceptOrder_result typedOther = (acceptOrder_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("acceptOrder_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addBillingDetails_args implements org.apache.thrift.TBase<addBillingDetails_args, addBillingDetails_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBillingDetails_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoice_number", org.apache.thrift.protocol.TType.STRING, (short)2);private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.LIST, (short)3);private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.LIST, (short)4);private static final org.apache.thrift.protocol.TField BILLED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("billed_by", org.apache.thrift.protocol.TType.STRING, (short)5);private static final org.apache.thrift.protocol.TField JACKET_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("jacketNumber", org.apache.thrift.protocol.TType.I64, (short)6);private static final org.apache.thrift.protocol.TField BILLING_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("billingType", org.apache.thrift.protocol.TType.I64, (short)7);private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)8);private static final org.apache.thrift.protocol.TField AUTHORIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("authorize", org.apache.thrift.protocol.TType.BOOL, (short)9);private long orderId; // requiredprivate String invoice_number; // requiredprivate List<String> serialNumber; // requiredprivate List<String> itemNumber; // requiredprivate String billed_by; // requiredprivate long jacketNumber; // requiredprivate long billingType; // requiredprivate long fulfilmentWarehouseId; // requiredprivate boolean authorize; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),INVOICE_NUMBER((short)2, "invoice_number"),SERIAL_NUMBER((short)3, "serialNumber"),ITEM_NUMBER((short)4, "itemNumber"),BILLED_BY((short)5, "billed_by"),JACKET_NUMBER((short)6, "jacketNumber"),BILLING_TYPE((short)7, "billingType"),FULFILMENT_WAREHOUSE_ID((short)8, "fulfilmentWarehouseId"),AUTHORIZE((short)9, "authorize");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // INVOICE_NUMBERreturn INVOICE_NUMBER;case 3: // SERIAL_NUMBERreturn SERIAL_NUMBER;case 4: // ITEM_NUMBERreturn ITEM_NUMBER;case 5: // BILLED_BYreturn BILLED_BY;case 6: // JACKET_NUMBERreturn JACKET_NUMBER;case 7: // BILLING_TYPEreturn BILLING_TYPE;case 8: // FULFILMENT_WAREHOUSE_IDreturn FULFILMENT_WAREHOUSE_ID;case 9: // AUTHORIZEreturn AUTHORIZE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private static final int __JACKETNUMBER_ISSET_ID = 1;private static final int __BILLINGTYPE_ISSET_ID = 2;private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 3;private static final int __AUTHORIZE_ISSET_ID = 4;private BitSet __isset_bit_vector = new BitSet(5);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoice_number", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));tmpMap.put(_Fields.BILLED_BY, new org.apache.thrift.meta_data.FieldMetaData("billed_by", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.JACKET_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("jacketNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.BILLING_TYPE, new org.apache.thrift.meta_data.FieldMetaData("billingType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.AUTHORIZE, new org.apache.thrift.meta_data.FieldMetaData("authorize", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBillingDetails_args.class, metaDataMap);}public addBillingDetails_args() {}public addBillingDetails_args(long orderId,String invoice_number,List<String> serialNumber,List<String> itemNumber,String billed_by,long jacketNumber,long billingType,long fulfilmentWarehouseId,boolean authorize){this();this.orderId = orderId;setOrderIdIsSet(true);this.invoice_number = invoice_number;this.serialNumber = serialNumber;this.itemNumber = itemNumber;this.billed_by = billed_by;this.jacketNumber = jacketNumber;setJacketNumberIsSet(true);this.billingType = billingType;setBillingTypeIsSet(true);this.fulfilmentWarehouseId = fulfilmentWarehouseId;setFulfilmentWarehouseIdIsSet(true);this.authorize = authorize;setAuthorizeIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public addBillingDetails_args(addBillingDetails_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;if (other.isSetInvoice_number()) {this.invoice_number = other.invoice_number;}if (other.isSetSerialNumber()) {List<String> __this__serialNumber = new ArrayList<String>();for (String other_element : other.serialNumber) {__this__serialNumber.add(other_element);}this.serialNumber = __this__serialNumber;}if (other.isSetItemNumber()) {List<String> __this__itemNumber = new ArrayList<String>();for (String other_element : other.itemNumber) {__this__itemNumber.add(other_element);}this.itemNumber = __this__itemNumber;}if (other.isSetBilled_by()) {this.billed_by = other.billed_by;}this.jacketNumber = other.jacketNumber;this.billingType = other.billingType;this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;this.authorize = other.authorize;}public addBillingDetails_args deepCopy() {return new addBillingDetails_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;this.invoice_number = null;this.serialNumber = null;this.itemNumber = null;this.billed_by = null;setJacketNumberIsSet(false);this.jacketNumber = 0;setBillingTypeIsSet(false);this.billingType = 0;setFulfilmentWarehouseIdIsSet(false);this.fulfilmentWarehouseId = 0;setAuthorizeIsSet(false);this.authorize = false;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public String getInvoice_number() {return this.invoice_number;}public void setInvoice_number(String invoice_number) {this.invoice_number = invoice_number;}public void unsetInvoice_number() {this.invoice_number = null;}/** Returns true if field invoice_number is set (has been assigned a value) and false otherwise */public boolean isSetInvoice_number() {return this.invoice_number != null;}public void setInvoice_numberIsSet(boolean value) {if (!value) {this.invoice_number = null;}}public int getSerialNumberSize() {return (this.serialNumber == null) ? 0 : this.serialNumber.size();}public java.util.Iterator<String> getSerialNumberIterator() {return (this.serialNumber == null) ? null : this.serialNumber.iterator();}public void addToSerialNumber(String elem) {if (this.serialNumber == null) {this.serialNumber = new ArrayList<String>();}this.serialNumber.add(elem);}public List<String> getSerialNumber() {return this.serialNumber;}public void setSerialNumber(List<String> serialNumber) {this.serialNumber = serialNumber;}public void unsetSerialNumber() {this.serialNumber = null;}/** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */public boolean isSetSerialNumber() {return this.serialNumber != null;}public void setSerialNumberIsSet(boolean value) {if (!value) {this.serialNumber = null;}}public int getItemNumberSize() {return (this.itemNumber == null) ? 0 : this.itemNumber.size();}public java.util.Iterator<String> getItemNumberIterator() {return (this.itemNumber == null) ? null : this.itemNumber.iterator();}public void addToItemNumber(String elem) {if (this.itemNumber == null) {this.itemNumber = new ArrayList<String>();}this.itemNumber.add(elem);}public List<String> getItemNumber() {return this.itemNumber;}public void setItemNumber(List<String> itemNumber) {this.itemNumber = itemNumber;}public void unsetItemNumber() {this.itemNumber = null;}/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */public boolean isSetItemNumber() {return this.itemNumber != null;}public void setItemNumberIsSet(boolean value) {if (!value) {this.itemNumber = null;}}public String getBilled_by() {return this.billed_by;}public void setBilled_by(String billed_by) {this.billed_by = billed_by;}public void unsetBilled_by() {this.billed_by = null;}/** Returns true if field billed_by is set (has been assigned a value) and false otherwise */public boolean isSetBilled_by() {return this.billed_by != null;}public void setBilled_byIsSet(boolean value) {if (!value) {this.billed_by = null;}}public long getJacketNumber() {return this.jacketNumber;}public void setJacketNumber(long jacketNumber) {this.jacketNumber = jacketNumber;setJacketNumberIsSet(true);}public void unsetJacketNumber() {__isset_bit_vector.clear(__JACKETNUMBER_ISSET_ID);}/** Returns true if field jacketNumber is set (has been assigned a value) and false otherwise */public boolean isSetJacketNumber() {return __isset_bit_vector.get(__JACKETNUMBER_ISSET_ID);}public void setJacketNumberIsSet(boolean value) {__isset_bit_vector.set(__JACKETNUMBER_ISSET_ID, value);}public long getBillingType() {return this.billingType;}public void setBillingType(long billingType) {this.billingType = billingType;setBillingTypeIsSet(true);}public void unsetBillingType() {__isset_bit_vector.clear(__BILLINGTYPE_ISSET_ID);}/** Returns true if field billingType is set (has been assigned a value) and false otherwise */public boolean isSetBillingType() {return __isset_bit_vector.get(__BILLINGTYPE_ISSET_ID);}public void setBillingTypeIsSet(boolean value) {__isset_bit_vector.set(__BILLINGTYPE_ISSET_ID, value);}public long getFulfilmentWarehouseId() {return this.fulfilmentWarehouseId;}public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {this.fulfilmentWarehouseId = fulfilmentWarehouseId;setFulfilmentWarehouseIdIsSet(true);}public void unsetFulfilmentWarehouseId() {__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);}/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */public boolean isSetFulfilmentWarehouseId() {return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);}public void setFulfilmentWarehouseIdIsSet(boolean value) {__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);}public boolean isAuthorize() {return this.authorize;}public void setAuthorize(boolean authorize) {this.authorize = authorize;setAuthorizeIsSet(true);}public void unsetAuthorize() {__isset_bit_vector.clear(__AUTHORIZE_ISSET_ID);}/** Returns true if field authorize is set (has been assigned a value) and false otherwise */public boolean isSetAuthorize() {return __isset_bit_vector.get(__AUTHORIZE_ISSET_ID);}public void setAuthorizeIsSet(boolean value) {__isset_bit_vector.set(__AUTHORIZE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case INVOICE_NUMBER:if (value == null) {unsetInvoice_number();} else {setInvoice_number((String)value);}break;case SERIAL_NUMBER:if (value == null) {unsetSerialNumber();} else {setSerialNumber((List<String>)value);}break;case ITEM_NUMBER:if (value == null) {unsetItemNumber();} else {setItemNumber((List<String>)value);}break;case BILLED_BY:if (value == null) {unsetBilled_by();} else {setBilled_by((String)value);}break;case JACKET_NUMBER:if (value == null) {unsetJacketNumber();} else {setJacketNumber((Long)value);}break;case BILLING_TYPE:if (value == null) {unsetBillingType();} else {setBillingType((Long)value);}break;case FULFILMENT_WAREHOUSE_ID:if (value == null) {unsetFulfilmentWarehouseId();} else {setFulfilmentWarehouseId((Long)value);}break;case AUTHORIZE:if (value == null) {unsetAuthorize();} else {setAuthorize((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case INVOICE_NUMBER:return getInvoice_number();case SERIAL_NUMBER:return getSerialNumber();case ITEM_NUMBER:return getItemNumber();case BILLED_BY:return getBilled_by();case JACKET_NUMBER:return Long.valueOf(getJacketNumber());case BILLING_TYPE:return Long.valueOf(getBillingType());case FULFILMENT_WAREHOUSE_ID:return Long.valueOf(getFulfilmentWarehouseId());case AUTHORIZE:return Boolean.valueOf(isAuthorize());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case INVOICE_NUMBER:return isSetInvoice_number();case SERIAL_NUMBER:return isSetSerialNumber();case ITEM_NUMBER:return isSetItemNumber();case BILLED_BY:return isSetBilled_by();case JACKET_NUMBER:return isSetJacketNumber();case BILLING_TYPE:return isSetBillingType();case FULFILMENT_WAREHOUSE_ID:return isSetFulfilmentWarehouseId();case AUTHORIZE:return isSetAuthorize();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addBillingDetails_args)return this.equals((addBillingDetails_args)that);return false;}public boolean equals(addBillingDetails_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_invoice_number = true && this.isSetInvoice_number();boolean that_present_invoice_number = true && that.isSetInvoice_number();if (this_present_invoice_number || that_present_invoice_number) {if (!(this_present_invoice_number && that_present_invoice_number))return false;if (!this.invoice_number.equals(that.invoice_number))return false;}boolean this_present_serialNumber = true && this.isSetSerialNumber();boolean that_present_serialNumber = true && that.isSetSerialNumber();if (this_present_serialNumber || that_present_serialNumber) {if (!(this_present_serialNumber && that_present_serialNumber))return false;if (!this.serialNumber.equals(that.serialNumber))return false;}boolean this_present_itemNumber = true && this.isSetItemNumber();boolean that_present_itemNumber = true && that.isSetItemNumber();if (this_present_itemNumber || that_present_itemNumber) {if (!(this_present_itemNumber && that_present_itemNumber))return false;if (!this.itemNumber.equals(that.itemNumber))return false;}boolean this_present_billed_by = true && this.isSetBilled_by();boolean that_present_billed_by = true && that.isSetBilled_by();if (this_present_billed_by || that_present_billed_by) {if (!(this_present_billed_by && that_present_billed_by))return false;if (!this.billed_by.equals(that.billed_by))return false;}boolean this_present_jacketNumber = true;boolean that_present_jacketNumber = true;if (this_present_jacketNumber || that_present_jacketNumber) {if (!(this_present_jacketNumber && that_present_jacketNumber))return false;if (this.jacketNumber != that.jacketNumber)return false;}boolean this_present_billingType = true;boolean that_present_billingType = true;if (this_present_billingType || that_present_billingType) {if (!(this_present_billingType && that_present_billingType))return false;if (this.billingType != that.billingType)return false;}boolean this_present_fulfilmentWarehouseId = true;boolean that_present_fulfilmentWarehouseId = true;if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))return false;if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)return false;}boolean this_present_authorize = true;boolean that_present_authorize = true;if (this_present_authorize || that_present_authorize) {if (!(this_present_authorize && that_present_authorize))return false;if (this.authorize != that.authorize)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addBillingDetails_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addBillingDetails_args typedOther = (addBillingDetails_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetInvoice_number()).compareTo(typedOther.isSetInvoice_number());if (lastComparison != 0) {return lastComparison;}if (isSetInvoice_number()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoice_number, typedOther.invoice_number);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());if (lastComparison != 0) {return lastComparison;}if (isSetSerialNumber()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());if (lastComparison != 0) {return lastComparison;}if (isSetItemNumber()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBilled_by()).compareTo(typedOther.isSetBilled_by());if (lastComparison != 0) {return lastComparison;}if (isSetBilled_by()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billed_by, typedOther.billed_by);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetJacketNumber()).compareTo(typedOther.isSetJacketNumber());if (lastComparison != 0) {return lastComparison;}if (isSetJacketNumber()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jacketNumber, typedOther.jacketNumber);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBillingType()).compareTo(typedOther.isSetBillingType());if (lastComparison != 0) {return lastComparison;}if (isSetBillingType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingType, typedOther.billingType);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());if (lastComparison != 0) {return lastComparison;}if (isSetFulfilmentWarehouseId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetAuthorize()).compareTo(typedOther.isSetAuthorize());if (lastComparison != 0) {return lastComparison;}if (isSetAuthorize()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authorize, typedOther.authorize);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // INVOICE_NUMBERif (field.type == org.apache.thrift.protocol.TType.STRING) {this.invoice_number = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // SERIAL_NUMBERif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list132 = iprot.readListBegin();this.serialNumber = new ArrayList<String>(_list132.size);for (int _i133 = 0; _i133 < _list132.size; ++_i133){String _elem134; // required_elem134 = iprot.readString();this.serialNumber.add(_elem134);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // ITEM_NUMBERif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list135 = iprot.readListBegin();this.itemNumber = new ArrayList<String>(_list135.size);for (int _i136 = 0; _i136 < _list135.size; ++_i136){String _elem137; // required_elem137 = iprot.readString();this.itemNumber.add(_elem137);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // BILLED_BYif (field.type == org.apache.thrift.protocol.TType.STRING) {this.billed_by = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 6: // JACKET_NUMBERif (field.type == org.apache.thrift.protocol.TType.I64) {this.jacketNumber = iprot.readI64();setJacketNumberIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 7: // BILLING_TYPEif (field.type == org.apache.thrift.protocol.TType.I64) {this.billingType = iprot.readI64();setBillingTypeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 8: // FULFILMENT_WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.fulfilmentWarehouseId = iprot.readI64();setFulfilmentWarehouseIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 9: // AUTHORIZEif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.authorize = iprot.readBool();setAuthorizeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();if (this.invoice_number != null) {oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);oprot.writeString(this.invoice_number);oprot.writeFieldEnd();}if (this.serialNumber != null) {oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.serialNumber.size()));for (String _iter138 : this.serialNumber){oprot.writeString(_iter138);}oprot.writeListEnd();}oprot.writeFieldEnd();}if (this.itemNumber != null) {oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.itemNumber.size()));for (String _iter139 : this.itemNumber){oprot.writeString(_iter139);}oprot.writeListEnd();}oprot.writeFieldEnd();}if (this.billed_by != null) {oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);oprot.writeString(this.billed_by);oprot.writeFieldEnd();}oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);oprot.writeI64(this.jacketNumber);oprot.writeFieldEnd();oprot.writeFieldBegin(BILLING_TYPE_FIELD_DESC);oprot.writeI64(this.billingType);oprot.writeFieldEnd();oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.fulfilmentWarehouseId);oprot.writeFieldEnd();oprot.writeFieldBegin(AUTHORIZE_FIELD_DESC);oprot.writeBool(this.authorize);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addBillingDetails_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("invoice_number:");if (this.invoice_number == null) {sb.append("null");} else {sb.append(this.invoice_number);}first = false;if (!first) sb.append(", ");sb.append("serialNumber:");if (this.serialNumber == null) {sb.append("null");} else {sb.append(this.serialNumber);}first = false;if (!first) sb.append(", ");sb.append("itemNumber:");if (this.itemNumber == null) {sb.append("null");} else {sb.append(this.itemNumber);}first = false;if (!first) sb.append(", ");sb.append("billed_by:");if (this.billed_by == null) {sb.append("null");} else {sb.append(this.billed_by);}first = false;if (!first) sb.append(", ");sb.append("jacketNumber:");sb.append(this.jacketNumber);first = false;if (!first) sb.append(", ");sb.append("billingType:");sb.append(this.billingType);first = false;if (!first) sb.append(", ");sb.append("fulfilmentWarehouseId:");sb.append(this.fulfilmentWarehouseId);first = false;if (!first) sb.append(", ");sb.append("authorize:");sb.append(this.authorize);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addBillingDetails_result implements org.apache.thrift.TBase<addBillingDetails_result, addBillingDetails_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addBillingDetails_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addBillingDetails_result.class, metaDataMap);}public addBillingDetails_result() {}public addBillingDetails_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public addBillingDetails_result(addBillingDetails_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public addBillingDetails_result deepCopy() {return new addBillingDetails_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addBillingDetails_result)return this.equals((addBillingDetails_result)that);return false;}public boolean equals(addBillingDetails_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addBillingDetails_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addBillingDetails_result typedOther = (addBillingDetails_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addBillingDetails_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addInvoiceNumber_args implements org.apache.thrift.TBase<addInvoiceNumber_args, addInvoiceNumber_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInvoiceNumber_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumber", org.apache.thrift.protocol.TType.STRING, (short)2);private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)3);private long orderId; // requiredprivate String invoiceNumber; // requiredprivate String color; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),INVOICE_NUMBER((short)2, "invoiceNumber"),COLOR((short)3, "color");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // INVOICE_NUMBERreturn INVOICE_NUMBER;case 3: // COLORreturn COLOR;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInvoiceNumber_args.class, metaDataMap);}public addInvoiceNumber_args() {}public addInvoiceNumber_args(long orderId,String invoiceNumber,String color){this();this.orderId = orderId;setOrderIdIsSet(true);this.invoiceNumber = invoiceNumber;this.color = color;}/*** Performs a deep copy on <i>other</i>.*/public addInvoiceNumber_args(addInvoiceNumber_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;if (other.isSetInvoiceNumber()) {this.invoiceNumber = other.invoiceNumber;}if (other.isSetColor()) {this.color = other.color;}}public addInvoiceNumber_args deepCopy() {return new addInvoiceNumber_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;this.invoiceNumber = null;this.color = null;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public String getInvoiceNumber() {return this.invoiceNumber;}public void setInvoiceNumber(String invoiceNumber) {this.invoiceNumber = invoiceNumber;}public void unsetInvoiceNumber() {this.invoiceNumber = null;}/** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */public boolean isSetInvoiceNumber() {return this.invoiceNumber != null;}public void setInvoiceNumberIsSet(boolean value) {if (!value) {this.invoiceNumber = null;}}public String getColor() {return this.color;}public void setColor(String color) {this.color = color;}public void unsetColor() {this.color = null;}/** Returns true if field color is set (has been assigned a value) and false otherwise */public boolean isSetColor() {return this.color != null;}public void setColorIsSet(boolean value) {if (!value) {this.color = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case INVOICE_NUMBER:if (value == null) {unsetInvoiceNumber();} else {setInvoiceNumber((String)value);}break;case COLOR:if (value == null) {unsetColor();} else {setColor((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case INVOICE_NUMBER:return getInvoiceNumber();case COLOR:return getColor();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case INVOICE_NUMBER:return isSetInvoiceNumber();case COLOR:return isSetColor();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addInvoiceNumber_args)return this.equals((addInvoiceNumber_args)that);return false;}public boolean equals(addInvoiceNumber_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();if (this_present_invoiceNumber || that_present_invoiceNumber) {if (!(this_present_invoiceNumber && that_present_invoiceNumber))return false;if (!this.invoiceNumber.equals(that.invoiceNumber))return false;}boolean this_present_color = true && this.isSetColor();boolean that_present_color = true && that.isSetColor();if (this_present_color || that_present_color) {if (!(this_present_color && that_present_color))return false;if (!this.color.equals(that.color))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addInvoiceNumber_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addInvoiceNumber_args typedOther = (addInvoiceNumber_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(typedOther.isSetInvoiceNumber());if (lastComparison != 0) {return lastComparison;}if (isSetInvoiceNumber()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumber, typedOther.invoiceNumber);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());if (lastComparison != 0) {return lastComparison;}if (isSetColor()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // INVOICE_NUMBERif (field.type == org.apache.thrift.protocol.TType.STRING) {this.invoiceNumber = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // COLORif (field.type == org.apache.thrift.protocol.TType.STRING) {this.color = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();if (this.invoiceNumber != null) {oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);oprot.writeString(this.invoiceNumber);oprot.writeFieldEnd();}if (this.color != null) {oprot.writeFieldBegin(COLOR_FIELD_DESC);oprot.writeString(this.color);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addInvoiceNumber_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("invoiceNumber:");if (this.invoiceNumber == null) {sb.append("null");} else {sb.append(this.invoiceNumber);}first = false;if (!first) sb.append(", ");sb.append("color:");if (this.color == null) {sb.append("null");} else {sb.append(this.color);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addInvoiceNumber_result implements org.apache.thrift.TBase<addInvoiceNumber_result, addInvoiceNumber_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addInvoiceNumber_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addInvoiceNumber_result.class, metaDataMap);}public addInvoiceNumber_result() {}public addInvoiceNumber_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public addInvoiceNumber_result(addInvoiceNumber_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public addInvoiceNumber_result deepCopy() {return new addInvoiceNumber_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addInvoiceNumber_result)return this.equals((addInvoiceNumber_result)that);return false;}public boolean equals(addInvoiceNumber_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addInvoiceNumber_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addInvoiceNumber_result typedOther = (addInvoiceNumber_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addInvoiceNumber_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsShippedFromWarehouse_args implements org.apache.thrift.TBase<markOrdersAsShippedFromWarehouse_args, markOrdersAsShippedFromWarehouse_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsShippedFromWarehouse_args");private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)3);private static final org.apache.thrift.protocol.TField ORDER_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("orderIds", org.apache.thrift.protocol.TType.LIST, (short)4);private long warehouseId; // requiredprivate long providerId; // requiredprivate boolean cod; // requiredprivate List<Long> orderIds; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {WAREHOUSE_ID((short)1, "warehouseId"),PROVIDER_ID((short)2, "providerId"),COD((short)3, "cod"),ORDER_IDS((short)4, "orderIds");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // WAREHOUSE_IDreturn WAREHOUSE_ID;case 2: // PROVIDER_IDreturn PROVIDER_ID;case 3: // CODreturn COD;case 4: // ORDER_IDSreturn ORDER_IDS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __WAREHOUSEID_ISSET_ID = 0;private static final int __PROVIDERID_ISSET_ID = 1;private static final int __COD_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.ORDER_IDS, new org.apache.thrift.meta_data.FieldMetaData("orderIds", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsShippedFromWarehouse_args.class, metaDataMap);}public markOrdersAsShippedFromWarehouse_args() {}public markOrdersAsShippedFromWarehouse_args(long warehouseId,long providerId,boolean cod,List<Long> orderIds){this();this.warehouseId = warehouseId;setWarehouseIdIsSet(true);this.providerId = providerId;setProviderIdIsSet(true);this.cod = cod;setCodIsSet(true);this.orderIds = orderIds;}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsShippedFromWarehouse_args(markOrdersAsShippedFromWarehouse_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.warehouseId = other.warehouseId;this.providerId = other.providerId;this.cod = other.cod;if (other.isSetOrderIds()) {List<Long> __this__orderIds = new ArrayList<Long>();for (Long other_element : other.orderIds) {__this__orderIds.add(other_element);}this.orderIds = __this__orderIds;}}public markOrdersAsShippedFromWarehouse_args deepCopy() {return new markOrdersAsShippedFromWarehouse_args(this);}@Overridepublic void clear() {setWarehouseIdIsSet(false);this.warehouseId = 0;setProviderIdIsSet(false);this.providerId = 0;setCodIsSet(false);this.cod = false;this.orderIds = null;}public long getWarehouseId() {return this.warehouseId;}public void setWarehouseId(long warehouseId) {this.warehouseId = warehouseId;setWarehouseIdIsSet(true);}public void unsetWarehouseId() {__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);}/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */public boolean isSetWarehouseId() {return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);}public void setWarehouseIdIsSet(boolean value) {__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public boolean isCod() {return this.cod;}public void setCod(boolean cod) {this.cod = cod;setCodIsSet(true);}public void unsetCod() {__isset_bit_vector.clear(__COD_ISSET_ID);}/** Returns true if field cod is set (has been assigned a value) and false otherwise */public boolean isSetCod() {return __isset_bit_vector.get(__COD_ISSET_ID);}public void setCodIsSet(boolean value) {__isset_bit_vector.set(__COD_ISSET_ID, value);}public int getOrderIdsSize() {return (this.orderIds == null) ? 0 : this.orderIds.size();}public java.util.Iterator<Long> getOrderIdsIterator() {return (this.orderIds == null) ? null : this.orderIds.iterator();}public void addToOrderIds(long elem) {if (this.orderIds == null) {this.orderIds = new ArrayList<Long>();}this.orderIds.add(elem);}public List<Long> getOrderIds() {return this.orderIds;}public void setOrderIds(List<Long> orderIds) {this.orderIds = orderIds;}public void unsetOrderIds() {this.orderIds = null;}/** Returns true if field orderIds is set (has been assigned a value) and false otherwise */public boolean isSetOrderIds() {return this.orderIds != null;}public void setOrderIdsIsSet(boolean value) {if (!value) {this.orderIds = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case WAREHOUSE_ID:if (value == null) {unsetWarehouseId();} else {setWarehouseId((Long)value);}break;case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;case COD:if (value == null) {unsetCod();} else {setCod((Boolean)value);}break;case ORDER_IDS:if (value == null) {unsetOrderIds();} else {setOrderIds((List<Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case WAREHOUSE_ID:return Long.valueOf(getWarehouseId());case PROVIDER_ID:return Long.valueOf(getProviderId());case COD:return Boolean.valueOf(isCod());case ORDER_IDS:return getOrderIds();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case WAREHOUSE_ID:return isSetWarehouseId();case PROVIDER_ID:return isSetProviderId();case COD:return isSetCod();case ORDER_IDS:return isSetOrderIds();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsShippedFromWarehouse_args)return this.equals((markOrdersAsShippedFromWarehouse_args)that);return false;}public boolean equals(markOrdersAsShippedFromWarehouse_args that) {if (that == null)return false;boolean this_present_warehouseId = true;boolean that_present_warehouseId = true;if (this_present_warehouseId || that_present_warehouseId) {if (!(this_present_warehouseId && that_present_warehouseId))return false;if (this.warehouseId != that.warehouseId)return false;}boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}boolean this_present_cod = true;boolean that_present_cod = true;if (this_present_cod || that_present_cod) {if (!(this_present_cod && that_present_cod))return false;if (this.cod != that.cod)return false;}boolean this_present_orderIds = true && this.isSetOrderIds();boolean that_present_orderIds = true && that.isSetOrderIds();if (this_present_orderIds || that_present_orderIds) {if (!(this_present_orderIds && that_present_orderIds))return false;if (!this.orderIds.equals(that.orderIds))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsShippedFromWarehouse_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsShippedFromWarehouse_args typedOther = (markOrdersAsShippedFromWarehouse_args)other;lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());if (lastComparison != 0) {return lastComparison;}if (isSetWarehouseId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());if (lastComparison != 0) {return lastComparison;}if (isSetCod()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOrderIds()).compareTo(typedOther.isSetOrderIds());if (lastComparison != 0) {return lastComparison;}if (isSetOrderIds()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderIds, typedOther.orderIds);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.warehouseId = iprot.readI64();setWarehouseIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // CODif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.cod = iprot.readBool();setCodIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // ORDER_IDSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list140 = iprot.readListBegin();this.orderIds = new ArrayList<Long>(_list140.size);for (int _i141 = 0; _i141 < _list140.size; ++_i141){long _elem142; // required_elem142 = iprot.readI64();this.orderIds.add(_elem142);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.warehouseId);oprot.writeFieldEnd();oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();oprot.writeFieldBegin(COD_FIELD_DESC);oprot.writeBool(this.cod);oprot.writeFieldEnd();if (this.orderIds != null) {oprot.writeFieldBegin(ORDER_IDS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.orderIds.size()));for (long _iter143 : this.orderIds){oprot.writeI64(_iter143);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsShippedFromWarehouse_args(");boolean first = true;sb.append("warehouseId:");sb.append(this.warehouseId);first = false;if (!first) sb.append(", ");sb.append("providerId:");sb.append(this.providerId);first = false;if (!first) sb.append(", ");sb.append("cod:");sb.append(this.cod);first = false;if (!first) sb.append(", ");sb.append("orderIds:");if (this.orderIds == null) {sb.append("null");} else {sb.append(this.orderIds);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsShippedFromWarehouse_result implements org.apache.thrift.TBase<markOrdersAsShippedFromWarehouse_result, markOrdersAsShippedFromWarehouse_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsShippedFromWarehouse_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsShippedFromWarehouse_result.class, metaDataMap);}public markOrdersAsShippedFromWarehouse_result() {}public markOrdersAsShippedFromWarehouse_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsShippedFromWarehouse_result(markOrdersAsShippedFromWarehouse_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrdersAsShippedFromWarehouse_result deepCopy() {return new markOrdersAsShippedFromWarehouse_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsShippedFromWarehouse_result)return this.equals((markOrdersAsShippedFromWarehouse_result)that);return false;}public boolean equals(markOrdersAsShippedFromWarehouse_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsShippedFromWarehouse_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsShippedFromWarehouse_result typedOther = (markOrdersAsShippedFromWarehouse_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsShippedFromWarehouse_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsReturnedFromStore_args implements org.apache.thrift.TBase<markOrdersAsReturnedFromStore_args, markOrdersAsReturnedFromStore_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsReturnedFromStore_args");private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField ORDER_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("orderIds", org.apache.thrift.protocol.TType.LIST, (short)2);private static final org.apache.thrift.protocol.TField AWBS_FIELD_DESC = new org.apache.thrift.protocol.TField("awbs", org.apache.thrift.protocol.TType.LIST, (short)3);private long providerId; // requiredprivate List<Long> orderIds; // requiredprivate List<String> awbs; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PROVIDER_ID((short)1, "providerId"),ORDER_IDS((short)2, "orderIds"),AWBS((short)3, "awbs");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PROVIDER_IDreturn PROVIDER_ID;case 2: // ORDER_IDSreturn ORDER_IDS;case 3: // AWBSreturn AWBS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __PROVIDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ORDER_IDS, new org.apache.thrift.meta_data.FieldMetaData("orderIds", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.AWBS, new org.apache.thrift.meta_data.FieldMetaData("awbs", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsReturnedFromStore_args.class, metaDataMap);}public markOrdersAsReturnedFromStore_args() {}public markOrdersAsReturnedFromStore_args(long providerId,List<Long> orderIds,List<String> awbs){this();this.providerId = providerId;setProviderIdIsSet(true);this.orderIds = orderIds;this.awbs = awbs;}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsReturnedFromStore_args(markOrdersAsReturnedFromStore_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.providerId = other.providerId;if (other.isSetOrderIds()) {List<Long> __this__orderIds = new ArrayList<Long>();for (Long other_element : other.orderIds) {__this__orderIds.add(other_element);}this.orderIds = __this__orderIds;}if (other.isSetAwbs()) {List<String> __this__awbs = new ArrayList<String>();for (String other_element : other.awbs) {__this__awbs.add(other_element);}this.awbs = __this__awbs;}}public markOrdersAsReturnedFromStore_args deepCopy() {return new markOrdersAsReturnedFromStore_args(this);}@Overridepublic void clear() {setProviderIdIsSet(false);this.providerId = 0;this.orderIds = null;this.awbs = null;}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public int getOrderIdsSize() {return (this.orderIds == null) ? 0 : this.orderIds.size();}public java.util.Iterator<Long> getOrderIdsIterator() {return (this.orderIds == null) ? null : this.orderIds.iterator();}public void addToOrderIds(long elem) {if (this.orderIds == null) {this.orderIds = new ArrayList<Long>();}this.orderIds.add(elem);}public List<Long> getOrderIds() {return this.orderIds;}public void setOrderIds(List<Long> orderIds) {this.orderIds = orderIds;}public void unsetOrderIds() {this.orderIds = null;}/** Returns true if field orderIds is set (has been assigned a value) and false otherwise */public boolean isSetOrderIds() {return this.orderIds != null;}public void setOrderIdsIsSet(boolean value) {if (!value) {this.orderIds = null;}}public int getAwbsSize() {return (this.awbs == null) ? 0 : this.awbs.size();}public java.util.Iterator<String> getAwbsIterator() {return (this.awbs == null) ? null : this.awbs.iterator();}public void addToAwbs(String elem) {if (this.awbs == null) {this.awbs = new ArrayList<String>();}this.awbs.add(elem);}public List<String> getAwbs() {return this.awbs;}public void setAwbs(List<String> awbs) {this.awbs = awbs;}public void unsetAwbs() {this.awbs = null;}/** Returns true if field awbs is set (has been assigned a value) and false otherwise */public boolean isSetAwbs() {return this.awbs != null;}public void setAwbsIsSet(boolean value) {if (!value) {this.awbs = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;case ORDER_IDS:if (value == null) {unsetOrderIds();} else {setOrderIds((List<Long>)value);}break;case AWBS:if (value == null) {unsetAwbs();} else {setAwbs((List<String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PROVIDER_ID:return Long.valueOf(getProviderId());case ORDER_IDS:return getOrderIds();case AWBS:return getAwbs();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PROVIDER_ID:return isSetProviderId();case ORDER_IDS:return isSetOrderIds();case AWBS:return isSetAwbs();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsReturnedFromStore_args)return this.equals((markOrdersAsReturnedFromStore_args)that);return false;}public boolean equals(markOrdersAsReturnedFromStore_args that) {if (that == null)return false;boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}boolean this_present_orderIds = true && this.isSetOrderIds();boolean that_present_orderIds = true && that.isSetOrderIds();if (this_present_orderIds || that_present_orderIds) {if (!(this_present_orderIds && that_present_orderIds))return false;if (!this.orderIds.equals(that.orderIds))return false;}boolean this_present_awbs = true && this.isSetAwbs();boolean that_present_awbs = true && that.isSetAwbs();if (this_present_awbs || that_present_awbs) {if (!(this_present_awbs && that_present_awbs))return false;if (!this.awbs.equals(that.awbs))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsReturnedFromStore_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsReturnedFromStore_args typedOther = (markOrdersAsReturnedFromStore_args)other;lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOrderIds()).compareTo(typedOther.isSetOrderIds());if (lastComparison != 0) {return lastComparison;}if (isSetOrderIds()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderIds, typedOther.orderIds);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetAwbs()).compareTo(typedOther.isSetAwbs());if (lastComparison != 0) {return lastComparison;}if (isSetAwbs()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbs, typedOther.awbs);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ORDER_IDSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list144 = iprot.readListBegin();this.orderIds = new ArrayList<Long>(_list144.size);for (int _i145 = 0; _i145 < _list144.size; ++_i145){long _elem146; // required_elem146 = iprot.readI64();this.orderIds.add(_elem146);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // AWBSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list147 = iprot.readListBegin();this.awbs = new ArrayList<String>(_list147.size);for (int _i148 = 0; _i148 < _list147.size; ++_i148){String _elem149; // required_elem149 = iprot.readString();this.awbs.add(_elem149);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();if (this.orderIds != null) {oprot.writeFieldBegin(ORDER_IDS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.orderIds.size()));for (long _iter150 : this.orderIds){oprot.writeI64(_iter150);}oprot.writeListEnd();}oprot.writeFieldEnd();}if (this.awbs != null) {oprot.writeFieldBegin(AWBS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.awbs.size()));for (String _iter151 : this.awbs){oprot.writeString(_iter151);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsReturnedFromStore_args(");boolean first = true;sb.append("providerId:");sb.append(this.providerId);first = false;if (!first) sb.append(", ");sb.append("orderIds:");if (this.orderIds == null) {sb.append("null");} else {sb.append(this.orderIds);}first = false;if (!first) sb.append(", ");sb.append("awbs:");if (this.awbs == null) {sb.append("null");} else {sb.append(this.awbs);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsReturnedFromStore_result implements org.apache.thrift.TBase<markOrdersAsReturnedFromStore_result, markOrdersAsReturnedFromStore_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsReturnedFromStore_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsReturnedFromStore_result.class, metaDataMap);}public markOrdersAsReturnedFromStore_result() {}public markOrdersAsReturnedFromStore_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsReturnedFromStore_result(markOrdersAsReturnedFromStore_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrdersAsReturnedFromStore_result deepCopy() {return new markOrdersAsReturnedFromStore_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsReturnedFromStore_result)return this.equals((markOrdersAsReturnedFromStore_result)that);return false;}public boolean equals(markOrdersAsReturnedFromStore_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsReturnedFromStore_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsReturnedFromStore_result typedOther = (markOrdersAsReturnedFromStore_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsReturnedFromStore_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsPickedUp_args implements org.apache.thrift.TBase<markOrdersAsPickedUp_args, markOrdersAsPickedUp_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsPickedUp_args");private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField PICKUP_DETAILS_FIELD_DESC = new org.apache.thrift.protocol.TField("pickupDetails", org.apache.thrift.protocol.TType.MAP, (short)2);private long providerId; // requiredprivate Map<String,String> pickupDetails; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PROVIDER_ID((short)1, "providerId"),PICKUP_DETAILS((short)2, "pickupDetails");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PROVIDER_IDreturn PROVIDER_ID;case 2: // PICKUP_DETAILSreturn PICKUP_DETAILS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __PROVIDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.PICKUP_DETAILS, new org.apache.thrift.meta_data.FieldMetaData("pickupDetails", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsPickedUp_args.class, metaDataMap);}public markOrdersAsPickedUp_args() {}public markOrdersAsPickedUp_args(long providerId,Map<String,String> pickupDetails){this();this.providerId = providerId;setProviderIdIsSet(true);this.pickupDetails = pickupDetails;}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsPickedUp_args(markOrdersAsPickedUp_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.providerId = other.providerId;if (other.isSetPickupDetails()) {Map<String,String> __this__pickupDetails = new HashMap<String,String>();for (Map.Entry<String, String> other_element : other.pickupDetails.entrySet()) {String other_element_key = other_element.getKey();String other_element_value = other_element.getValue();String __this__pickupDetails_copy_key = other_element_key;String __this__pickupDetails_copy_value = other_element_value;__this__pickupDetails.put(__this__pickupDetails_copy_key, __this__pickupDetails_copy_value);}this.pickupDetails = __this__pickupDetails;}}public markOrdersAsPickedUp_args deepCopy() {return new markOrdersAsPickedUp_args(this);}@Overridepublic void clear() {setProviderIdIsSet(false);this.providerId = 0;this.pickupDetails = null;}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public int getPickupDetailsSize() {return (this.pickupDetails == null) ? 0 : this.pickupDetails.size();}public void putToPickupDetails(String key, String val) {if (this.pickupDetails == null) {this.pickupDetails = new HashMap<String,String>();}this.pickupDetails.put(key, val);}public Map<String,String> getPickupDetails() {return this.pickupDetails;}public void setPickupDetails(Map<String,String> pickupDetails) {this.pickupDetails = pickupDetails;}public void unsetPickupDetails() {this.pickupDetails = null;}/** Returns true if field pickupDetails is set (has been assigned a value) and false otherwise */public boolean isSetPickupDetails() {return this.pickupDetails != null;}public void setPickupDetailsIsSet(boolean value) {if (!value) {this.pickupDetails = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;case PICKUP_DETAILS:if (value == null) {unsetPickupDetails();} else {setPickupDetails((Map<String,String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PROVIDER_ID:return Long.valueOf(getProviderId());case PICKUP_DETAILS:return getPickupDetails();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PROVIDER_ID:return isSetProviderId();case PICKUP_DETAILS:return isSetPickupDetails();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsPickedUp_args)return this.equals((markOrdersAsPickedUp_args)that);return false;}public boolean equals(markOrdersAsPickedUp_args that) {if (that == null)return false;boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}boolean this_present_pickupDetails = true && this.isSetPickupDetails();boolean that_present_pickupDetails = true && that.isSetPickupDetails();if (this_present_pickupDetails || that_present_pickupDetails) {if (!(this_present_pickupDetails && that_present_pickupDetails))return false;if (!this.pickupDetails.equals(that.pickupDetails))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsPickedUp_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsPickedUp_args typedOther = (markOrdersAsPickedUp_args)other;lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPickupDetails()).compareTo(typedOther.isSetPickupDetails());if (lastComparison != 0) {return lastComparison;}if (isSetPickupDetails()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickupDetails, typedOther.pickupDetails);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // PICKUP_DETAILSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map152 = iprot.readMapBegin();this.pickupDetails = new HashMap<String,String>(2*_map152.size);for (int _i153 = 0; _i153 < _map152.size; ++_i153){String _key154; // requiredString _val155; // required_key154 = iprot.readString();_val155 = iprot.readString();this.pickupDetails.put(_key154, _val155);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();if (this.pickupDetails != null) {oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.pickupDetails.size()));for (Map.Entry<String, String> _iter156 : this.pickupDetails.entrySet()){oprot.writeString(_iter156.getKey());oprot.writeString(_iter156.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsPickedUp_args(");boolean first = true;sb.append("providerId:");sb.append(this.providerId);first = false;if (!first) sb.append(", ");sb.append("pickupDetails:");if (this.pickupDetails == null) {sb.append("null");} else {sb.append(this.pickupDetails);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsPickedUp_result implements org.apache.thrift.TBase<markOrdersAsPickedUp_result, markOrdersAsPickedUp_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsPickedUp_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsPickedUp_result.class, metaDataMap);}public markOrdersAsPickedUp_result() {}public markOrdersAsPickedUp_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsPickedUp_result(markOrdersAsPickedUp_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrdersAsPickedUp_result deepCopy() {return new markOrdersAsPickedUp_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsPickedUp_result)return this.equals((markOrdersAsPickedUp_result)that);return false;}public boolean equals(markOrdersAsPickedUp_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsPickedUp_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsPickedUp_result typedOther = (markOrdersAsPickedUp_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsPickedUp_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersNotPickedUp_args implements org.apache.thrift.TBase<getOrdersNotPickedUp_args, getOrdersNotPickedUp_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersNotPickedUp_args");private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);private long providerId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PROVIDER_ID((short)1, "providerId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PROVIDER_IDreturn PROVIDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __PROVIDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersNotPickedUp_args.class, metaDataMap);}public getOrdersNotPickedUp_args() {}public getOrdersNotPickedUp_args(long providerId){this();this.providerId = providerId;setProviderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getOrdersNotPickedUp_args(getOrdersNotPickedUp_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.providerId = other.providerId;}public getOrdersNotPickedUp_args deepCopy() {return new getOrdersNotPickedUp_args(this);}@Overridepublic void clear() {setProviderIdIsSet(false);this.providerId = 0;}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PROVIDER_ID:return Long.valueOf(getProviderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PROVIDER_ID:return isSetProviderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersNotPickedUp_args)return this.equals((getOrdersNotPickedUp_args)that);return false;}public boolean equals(getOrdersNotPickedUp_args that) {if (that == null)return false;boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersNotPickedUp_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersNotPickedUp_args typedOther = (getOrdersNotPickedUp_args)other;lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersNotPickedUp_args(");boolean first = true;sb.append("providerId:");sb.append(this.providerId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersNotPickedUp_result implements org.apache.thrift.TBase<getOrdersNotPickedUp_result, getOrdersNotPickedUp_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersNotPickedUp_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Order> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersNotPickedUp_result.class, metaDataMap);}public getOrdersNotPickedUp_result() {}public getOrdersNotPickedUp_result(List<Order> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getOrdersNotPickedUp_result(getOrdersNotPickedUp_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}}public getOrdersNotPickedUp_result deepCopy() {return new getOrdersNotPickedUp_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersNotPickedUp_result)return this.equals((getOrdersNotPickedUp_result)that);return false;}public boolean equals(getOrdersNotPickedUp_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersNotPickedUp_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersNotPickedUp_result typedOther = (getOrdersNotPickedUp_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list157 = iprot.readListBegin();this.success = new ArrayList<Order>(_list157.size);for (int _i158 = 0; _i158 < _list157.size; ++_i158){Order _elem159; // required_elem159 = new Order();_elem159.read(iprot);this.success.add(_elem159);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter160 : this.success){_iter160.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersNotPickedUp_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsDelivered_args implements org.apache.thrift.TBase<markOrdersAsDelivered_args, markOrdersAsDelivered_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsDelivered_args");private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField DELIVERED_ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("deliveredOrders", org.apache.thrift.protocol.TType.MAP, (short)2);private long providerId; // requiredprivate Map<String,String> deliveredOrders; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PROVIDER_ID((short)1, "providerId"),DELIVERED_ORDERS((short)2, "deliveredOrders");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PROVIDER_IDreturn PROVIDER_ID;case 2: // DELIVERED_ORDERSreturn DELIVERED_ORDERS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __PROVIDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.DELIVERED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("deliveredOrders", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsDelivered_args.class, metaDataMap);}public markOrdersAsDelivered_args() {}public markOrdersAsDelivered_args(long providerId,Map<String,String> deliveredOrders){this();this.providerId = providerId;setProviderIdIsSet(true);this.deliveredOrders = deliveredOrders;}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsDelivered_args(markOrdersAsDelivered_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.providerId = other.providerId;if (other.isSetDeliveredOrders()) {Map<String,String> __this__deliveredOrders = new HashMap<String,String>();for (Map.Entry<String, String> other_element : other.deliveredOrders.entrySet()) {String other_element_key = other_element.getKey();String other_element_value = other_element.getValue();String __this__deliveredOrders_copy_key = other_element_key;String __this__deliveredOrders_copy_value = other_element_value;__this__deliveredOrders.put(__this__deliveredOrders_copy_key, __this__deliveredOrders_copy_value);}this.deliveredOrders = __this__deliveredOrders;}}public markOrdersAsDelivered_args deepCopy() {return new markOrdersAsDelivered_args(this);}@Overridepublic void clear() {setProviderIdIsSet(false);this.providerId = 0;this.deliveredOrders = null;}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public int getDeliveredOrdersSize() {return (this.deliveredOrders == null) ? 0 : this.deliveredOrders.size();}public void putToDeliveredOrders(String key, String val) {if (this.deliveredOrders == null) {this.deliveredOrders = new HashMap<String,String>();}this.deliveredOrders.put(key, val);}public Map<String,String> getDeliveredOrders() {return this.deliveredOrders;}public void setDeliveredOrders(Map<String,String> deliveredOrders) {this.deliveredOrders = deliveredOrders;}public void unsetDeliveredOrders() {this.deliveredOrders = null;}/** Returns true if field deliveredOrders is set (has been assigned a value) and false otherwise */public boolean isSetDeliveredOrders() {return this.deliveredOrders != null;}public void setDeliveredOrdersIsSet(boolean value) {if (!value) {this.deliveredOrders = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;case DELIVERED_ORDERS:if (value == null) {unsetDeliveredOrders();} else {setDeliveredOrders((Map<String,String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PROVIDER_ID:return Long.valueOf(getProviderId());case DELIVERED_ORDERS:return getDeliveredOrders();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PROVIDER_ID:return isSetProviderId();case DELIVERED_ORDERS:return isSetDeliveredOrders();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsDelivered_args)return this.equals((markOrdersAsDelivered_args)that);return false;}public boolean equals(markOrdersAsDelivered_args that) {if (that == null)return false;boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}boolean this_present_deliveredOrders = true && this.isSetDeliveredOrders();boolean that_present_deliveredOrders = true && that.isSetDeliveredOrders();if (this_present_deliveredOrders || that_present_deliveredOrders) {if (!(this_present_deliveredOrders && that_present_deliveredOrders))return false;if (!this.deliveredOrders.equals(that.deliveredOrders))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsDelivered_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsDelivered_args typedOther = (markOrdersAsDelivered_args)other;lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetDeliveredOrders()).compareTo(typedOther.isSetDeliveredOrders());if (lastComparison != 0) {return lastComparison;}if (isSetDeliveredOrders()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deliveredOrders, typedOther.deliveredOrders);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // DELIVERED_ORDERSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map161 = iprot.readMapBegin();this.deliveredOrders = new HashMap<String,String>(2*_map161.size);for (int _i162 = 0; _i162 < _map161.size; ++_i162){String _key163; // requiredString _val164; // required_key163 = iprot.readString();_val164 = iprot.readString();this.deliveredOrders.put(_key163, _val164);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();if (this.deliveredOrders != null) {oprot.writeFieldBegin(DELIVERED_ORDERS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.deliveredOrders.size()));for (Map.Entry<String, String> _iter165 : this.deliveredOrders.entrySet()){oprot.writeString(_iter165.getKey());oprot.writeString(_iter165.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsDelivered_args(");boolean first = true;sb.append("providerId:");sb.append(this.providerId);first = false;if (!first) sb.append(", ");sb.append("deliveredOrders:");if (this.deliveredOrders == null) {sb.append("null");} else {sb.append(this.deliveredOrders);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsDelivered_result implements org.apache.thrift.TBase<markOrdersAsDelivered_result, markOrdersAsDelivered_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsDelivered_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsDelivered_result.class, metaDataMap);}public markOrdersAsDelivered_result() {}public markOrdersAsDelivered_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsDelivered_result(markOrdersAsDelivered_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrdersAsDelivered_result deepCopy() {return new markOrdersAsDelivered_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsDelivered_result)return this.equals((markOrdersAsDelivered_result)that);return false;}public boolean equals(markOrdersAsDelivered_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsDelivered_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsDelivered_result typedOther = (markOrdersAsDelivered_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsDelivered_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markAsRTOrders_args implements org.apache.thrift.TBase<markAsRTOrders_args, markAsRTOrders_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markAsRTOrders_args");private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField RETURNED_ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("returnedOrders", org.apache.thrift.protocol.TType.MAP, (short)2);private long providerId; // requiredprivate Map<String,String> returnedOrders; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PROVIDER_ID((short)1, "providerId"),RETURNED_ORDERS((short)2, "returnedOrders");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PROVIDER_IDreturn PROVIDER_ID;case 2: // RETURNED_ORDERSreturn RETURNED_ORDERS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __PROVIDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.RETURNED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("returnedOrders", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markAsRTOrders_args.class, metaDataMap);}public markAsRTOrders_args() {}public markAsRTOrders_args(long providerId,Map<String,String> returnedOrders){this();this.providerId = providerId;setProviderIdIsSet(true);this.returnedOrders = returnedOrders;}/*** Performs a deep copy on <i>other</i>.*/public markAsRTOrders_args(markAsRTOrders_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.providerId = other.providerId;if (other.isSetReturnedOrders()) {Map<String,String> __this__returnedOrders = new HashMap<String,String>();for (Map.Entry<String, String> other_element : other.returnedOrders.entrySet()) {String other_element_key = other_element.getKey();String other_element_value = other_element.getValue();String __this__returnedOrders_copy_key = other_element_key;String __this__returnedOrders_copy_value = other_element_value;__this__returnedOrders.put(__this__returnedOrders_copy_key, __this__returnedOrders_copy_value);}this.returnedOrders = __this__returnedOrders;}}public markAsRTOrders_args deepCopy() {return new markAsRTOrders_args(this);}@Overridepublic void clear() {setProviderIdIsSet(false);this.providerId = 0;this.returnedOrders = null;}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public int getReturnedOrdersSize() {return (this.returnedOrders == null) ? 0 : this.returnedOrders.size();}public void putToReturnedOrders(String key, String val) {if (this.returnedOrders == null) {this.returnedOrders = new HashMap<String,String>();}this.returnedOrders.put(key, val);}public Map<String,String> getReturnedOrders() {return this.returnedOrders;}public void setReturnedOrders(Map<String,String> returnedOrders) {this.returnedOrders = returnedOrders;}public void unsetReturnedOrders() {this.returnedOrders = null;}/** Returns true if field returnedOrders is set (has been assigned a value) and false otherwise */public boolean isSetReturnedOrders() {return this.returnedOrders != null;}public void setReturnedOrdersIsSet(boolean value) {if (!value) {this.returnedOrders = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;case RETURNED_ORDERS:if (value == null) {unsetReturnedOrders();} else {setReturnedOrders((Map<String,String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PROVIDER_ID:return Long.valueOf(getProviderId());case RETURNED_ORDERS:return getReturnedOrders();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PROVIDER_ID:return isSetProviderId();case RETURNED_ORDERS:return isSetReturnedOrders();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markAsRTOrders_args)return this.equals((markAsRTOrders_args)that);return false;}public boolean equals(markAsRTOrders_args that) {if (that == null)return false;boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}boolean this_present_returnedOrders = true && this.isSetReturnedOrders();boolean that_present_returnedOrders = true && that.isSetReturnedOrders();if (this_present_returnedOrders || that_present_returnedOrders) {if (!(this_present_returnedOrders && that_present_returnedOrders))return false;if (!this.returnedOrders.equals(that.returnedOrders))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markAsRTOrders_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markAsRTOrders_args typedOther = (markAsRTOrders_args)other;lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReturnedOrders()).compareTo(typedOther.isSetReturnedOrders());if (lastComparison != 0) {return lastComparison;}if (isSetReturnedOrders()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnedOrders, typedOther.returnedOrders);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // RETURNED_ORDERSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map166 = iprot.readMapBegin();this.returnedOrders = new HashMap<String,String>(2*_map166.size);for (int _i167 = 0; _i167 < _map166.size; ++_i167){String _key168; // requiredString _val169; // required_key168 = iprot.readString();_val169 = iprot.readString();this.returnedOrders.put(_key168, _val169);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();if (this.returnedOrders != null) {oprot.writeFieldBegin(RETURNED_ORDERS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.returnedOrders.size()));for (Map.Entry<String, String> _iter170 : this.returnedOrders.entrySet()){oprot.writeString(_iter170.getKey());oprot.writeString(_iter170.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markAsRTOrders_args(");boolean first = true;sb.append("providerId:");sb.append(this.providerId);first = false;if (!first) sb.append(", ");sb.append("returnedOrders:");if (this.returnedOrders == null) {sb.append("null");} else {sb.append(this.returnedOrders);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markAsRTOrders_result implements org.apache.thrift.TBase<markAsRTOrders_result, markAsRTOrders_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markAsRTOrders_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markAsRTOrders_result.class, metaDataMap);}public markAsRTOrders_result() {}public markAsRTOrders_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markAsRTOrders_result(markAsRTOrders_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markAsRTOrders_result deepCopy() {return new markAsRTOrders_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markAsRTOrders_result)return this.equals((markAsRTOrders_result)that);return false;}public boolean equals(markAsRTOrders_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markAsRTOrders_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markAsRTOrders_result typedOther = (markAsRTOrders_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markAsRTOrders_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getRTOrders_args implements org.apache.thrift.TBase<getRTOrders_args, getRTOrders_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRTOrders_args");private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);private long providerId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PROVIDER_ID((short)1, "providerId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PROVIDER_IDreturn PROVIDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __PROVIDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRTOrders_args.class, metaDataMap);}public getRTOrders_args() {}public getRTOrders_args(long providerId){this();this.providerId = providerId;setProviderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getRTOrders_args(getRTOrders_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.providerId = other.providerId;}public getRTOrders_args deepCopy() {return new getRTOrders_args(this);}@Overridepublic void clear() {setProviderIdIsSet(false);this.providerId = 0;}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PROVIDER_ID:return Long.valueOf(getProviderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PROVIDER_ID:return isSetProviderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getRTOrders_args)return this.equals((getRTOrders_args)that);return false;}public boolean equals(getRTOrders_args that) {if (that == null)return false;boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getRTOrders_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getRTOrders_args typedOther = (getRTOrders_args)other;lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getRTOrders_args(");boolean first = true;sb.append("providerId:");sb.append(this.providerId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getRTOrders_result implements org.apache.thrift.TBase<getRTOrders_result, getRTOrders_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRTOrders_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Order> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRTOrders_result.class, metaDataMap);}public getRTOrders_result() {}public getRTOrders_result(List<Order> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getRTOrders_result(getRTOrders_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}}public getRTOrders_result deepCopy() {return new getRTOrders_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getRTOrders_result)return this.equals((getRTOrders_result)that);return false;}public boolean equals(getRTOrders_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getRTOrders_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getRTOrders_result typedOther = (getRTOrders_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list171 = iprot.readListBegin();this.success = new ArrayList<Order>(_list171.size);for (int _i172 = 0; _i172 < _list171.size; ++_i172){Order _elem173; // required_elem173 = new Order();_elem173.read(iprot);this.success.add(_elem173);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter174 : this.success){_iter174.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getRTOrders_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateNonDeliveryReason_args implements org.apache.thrift.TBase<updateNonDeliveryReason_args, updateNonDeliveryReason_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateNonDeliveryReason_args");private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField UNDELIVERED_ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("undeliveredOrders", org.apache.thrift.protocol.TType.MAP, (short)2);private long providerId; // requiredprivate Map<String,String> undeliveredOrders; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PROVIDER_ID((short)1, "providerId"),UNDELIVERED_ORDERS((short)2, "undeliveredOrders");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PROVIDER_IDreturn PROVIDER_ID;case 2: // UNDELIVERED_ORDERSreturn UNDELIVERED_ORDERS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __PROVIDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.UNDELIVERED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("undeliveredOrders", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateNonDeliveryReason_args.class, metaDataMap);}public updateNonDeliveryReason_args() {}public updateNonDeliveryReason_args(long providerId,Map<String,String> undeliveredOrders){this();this.providerId = providerId;setProviderIdIsSet(true);this.undeliveredOrders = undeliveredOrders;}/*** Performs a deep copy on <i>other</i>.*/public updateNonDeliveryReason_args(updateNonDeliveryReason_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.providerId = other.providerId;if (other.isSetUndeliveredOrders()) {Map<String,String> __this__undeliveredOrders = new HashMap<String,String>();for (Map.Entry<String, String> other_element : other.undeliveredOrders.entrySet()) {String other_element_key = other_element.getKey();String other_element_value = other_element.getValue();String __this__undeliveredOrders_copy_key = other_element_key;String __this__undeliveredOrders_copy_value = other_element_value;__this__undeliveredOrders.put(__this__undeliveredOrders_copy_key, __this__undeliveredOrders_copy_value);}this.undeliveredOrders = __this__undeliveredOrders;}}public updateNonDeliveryReason_args deepCopy() {return new updateNonDeliveryReason_args(this);}@Overridepublic void clear() {setProviderIdIsSet(false);this.providerId = 0;this.undeliveredOrders = null;}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public int getUndeliveredOrdersSize() {return (this.undeliveredOrders == null) ? 0 : this.undeliveredOrders.size();}public void putToUndeliveredOrders(String key, String val) {if (this.undeliveredOrders == null) {this.undeliveredOrders = new HashMap<String,String>();}this.undeliveredOrders.put(key, val);}public Map<String,String> getUndeliveredOrders() {return this.undeliveredOrders;}public void setUndeliveredOrders(Map<String,String> undeliveredOrders) {this.undeliveredOrders = undeliveredOrders;}public void unsetUndeliveredOrders() {this.undeliveredOrders = null;}/** Returns true if field undeliveredOrders is set (has been assigned a value) and false otherwise */public boolean isSetUndeliveredOrders() {return this.undeliveredOrders != null;}public void setUndeliveredOrdersIsSet(boolean value) {if (!value) {this.undeliveredOrders = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;case UNDELIVERED_ORDERS:if (value == null) {unsetUndeliveredOrders();} else {setUndeliveredOrders((Map<String,String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PROVIDER_ID:return Long.valueOf(getProviderId());case UNDELIVERED_ORDERS:return getUndeliveredOrders();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PROVIDER_ID:return isSetProviderId();case UNDELIVERED_ORDERS:return isSetUndeliveredOrders();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateNonDeliveryReason_args)return this.equals((updateNonDeliveryReason_args)that);return false;}public boolean equals(updateNonDeliveryReason_args that) {if (that == null)return false;boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}boolean this_present_undeliveredOrders = true && this.isSetUndeliveredOrders();boolean that_present_undeliveredOrders = true && that.isSetUndeliveredOrders();if (this_present_undeliveredOrders || that_present_undeliveredOrders) {if (!(this_present_undeliveredOrders && that_present_undeliveredOrders))return false;if (!this.undeliveredOrders.equals(that.undeliveredOrders))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateNonDeliveryReason_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateNonDeliveryReason_args typedOther = (updateNonDeliveryReason_args)other;lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetUndeliveredOrders()).compareTo(typedOther.isSetUndeliveredOrders());if (lastComparison != 0) {return lastComparison;}if (isSetUndeliveredOrders()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.undeliveredOrders, typedOther.undeliveredOrders);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // UNDELIVERED_ORDERSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map175 = iprot.readMapBegin();this.undeliveredOrders = new HashMap<String,String>(2*_map175.size);for (int _i176 = 0; _i176 < _map175.size; ++_i176){String _key177; // requiredString _val178; // required_key177 = iprot.readString();_val178 = iprot.readString();this.undeliveredOrders.put(_key177, _val178);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();if (this.undeliveredOrders != null) {oprot.writeFieldBegin(UNDELIVERED_ORDERS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.undeliveredOrders.size()));for (Map.Entry<String, String> _iter179 : this.undeliveredOrders.entrySet()){oprot.writeString(_iter179.getKey());oprot.writeString(_iter179.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateNonDeliveryReason_args(");boolean first = true;sb.append("providerId:");sb.append(this.providerId);first = false;if (!first) sb.append(", ");sb.append("undeliveredOrders:");if (this.undeliveredOrders == null) {sb.append("null");} else {sb.append(this.undeliveredOrders);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateNonDeliveryReason_result implements org.apache.thrift.TBase<updateNonDeliveryReason_result, updateNonDeliveryReason_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateNonDeliveryReason_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateNonDeliveryReason_result.class, metaDataMap);}public updateNonDeliveryReason_result() {}public updateNonDeliveryReason_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public updateNonDeliveryReason_result(updateNonDeliveryReason_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public updateNonDeliveryReason_result deepCopy() {return new updateNonDeliveryReason_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateNonDeliveryReason_result)return this.equals((updateNonDeliveryReason_result)that);return false;}public boolean equals(updateNonDeliveryReason_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateNonDeliveryReason_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateNonDeliveryReason_result typedOther = (updateNonDeliveryReason_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateNonDeliveryReason_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getNonDeliveredOrdersbyCourier_args implements org.apache.thrift.TBase<getNonDeliveredOrdersbyCourier_args, getNonDeliveredOrdersbyCourier_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonDeliveredOrdersbyCourier_args");private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);private long providerId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PROVIDER_ID((short)1, "providerId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PROVIDER_IDreturn PROVIDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __PROVIDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonDeliveredOrdersbyCourier_args.class, metaDataMap);}public getNonDeliveredOrdersbyCourier_args() {}public getNonDeliveredOrdersbyCourier_args(long providerId){this();this.providerId = providerId;setProviderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getNonDeliveredOrdersbyCourier_args(getNonDeliveredOrdersbyCourier_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.providerId = other.providerId;}public getNonDeliveredOrdersbyCourier_args deepCopy() {return new getNonDeliveredOrdersbyCourier_args(this);}@Overridepublic void clear() {setProviderIdIsSet(false);this.providerId = 0;}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PROVIDER_ID:return Long.valueOf(getProviderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PROVIDER_ID:return isSetProviderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getNonDeliveredOrdersbyCourier_args)return this.equals((getNonDeliveredOrdersbyCourier_args)that);return false;}public boolean equals(getNonDeliveredOrdersbyCourier_args that) {if (that == null)return false;boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getNonDeliveredOrdersbyCourier_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getNonDeliveredOrdersbyCourier_args typedOther = (getNonDeliveredOrdersbyCourier_args)other;lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getNonDeliveredOrdersbyCourier_args(");boolean first = true;sb.append("providerId:");sb.append(this.providerId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getNonDeliveredOrdersbyCourier_result implements org.apache.thrift.TBase<getNonDeliveredOrdersbyCourier_result, getNonDeliveredOrdersbyCourier_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonDeliveredOrdersbyCourier_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Order> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonDeliveredOrdersbyCourier_result.class, metaDataMap);}public getNonDeliveredOrdersbyCourier_result() {}public getNonDeliveredOrdersbyCourier_result(List<Order> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getNonDeliveredOrdersbyCourier_result(getNonDeliveredOrdersbyCourier_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}}public getNonDeliveredOrdersbyCourier_result deepCopy() {return new getNonDeliveredOrdersbyCourier_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getNonDeliveredOrdersbyCourier_result)return this.equals((getNonDeliveredOrdersbyCourier_result)that);return false;}public boolean equals(getNonDeliveredOrdersbyCourier_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getNonDeliveredOrdersbyCourier_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getNonDeliveredOrdersbyCourier_result typedOther = (getNonDeliveredOrdersbyCourier_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list180 = iprot.readListBegin();this.success = new ArrayList<Order>(_list180.size);for (int _i181 = 0; _i181 < _list180.size; ++_i181){Order _elem182; // required_elem182 = new Order();_elem182.read(iprot);this.success.add(_elem182);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter183 : this.success){_iter183.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getNonDeliveredOrdersbyCourier_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsLocalConnected_args implements org.apache.thrift.TBase<markOrdersAsLocalConnected_args, markOrdersAsLocalConnected_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsLocalConnected_args");private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField LOCAL_CONNECTED_ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("local_connected_orders", org.apache.thrift.protocol.TType.MAP, (short)2);private long providerId; // requiredprivate Map<String,String> local_connected_orders; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PROVIDER_ID((short)1, "providerId"),LOCAL_CONNECTED_ORDERS((short)2, "local_connected_orders");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PROVIDER_IDreturn PROVIDER_ID;case 2: // LOCAL_CONNECTED_ORDERSreturn LOCAL_CONNECTED_ORDERS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __PROVIDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LOCAL_CONNECTED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("local_connected_orders", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsLocalConnected_args.class, metaDataMap);}public markOrdersAsLocalConnected_args() {}public markOrdersAsLocalConnected_args(long providerId,Map<String,String> local_connected_orders){this();this.providerId = providerId;setProviderIdIsSet(true);this.local_connected_orders = local_connected_orders;}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsLocalConnected_args(markOrdersAsLocalConnected_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.providerId = other.providerId;if (other.isSetLocal_connected_orders()) {Map<String,String> __this__local_connected_orders = new HashMap<String,String>();for (Map.Entry<String, String> other_element : other.local_connected_orders.entrySet()) {String other_element_key = other_element.getKey();String other_element_value = other_element.getValue();String __this__local_connected_orders_copy_key = other_element_key;String __this__local_connected_orders_copy_value = other_element_value;__this__local_connected_orders.put(__this__local_connected_orders_copy_key, __this__local_connected_orders_copy_value);}this.local_connected_orders = __this__local_connected_orders;}}public markOrdersAsLocalConnected_args deepCopy() {return new markOrdersAsLocalConnected_args(this);}@Overridepublic void clear() {setProviderIdIsSet(false);this.providerId = 0;this.local_connected_orders = null;}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public int getLocal_connected_ordersSize() {return (this.local_connected_orders == null) ? 0 : this.local_connected_orders.size();}public void putToLocal_connected_orders(String key, String val) {if (this.local_connected_orders == null) {this.local_connected_orders = new HashMap<String,String>();}this.local_connected_orders.put(key, val);}public Map<String,String> getLocal_connected_orders() {return this.local_connected_orders;}public void setLocal_connected_orders(Map<String,String> local_connected_orders) {this.local_connected_orders = local_connected_orders;}public void unsetLocal_connected_orders() {this.local_connected_orders = null;}/** Returns true if field local_connected_orders is set (has been assigned a value) and false otherwise */public boolean isSetLocal_connected_orders() {return this.local_connected_orders != null;}public void setLocal_connected_ordersIsSet(boolean value) {if (!value) {this.local_connected_orders = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;case LOCAL_CONNECTED_ORDERS:if (value == null) {unsetLocal_connected_orders();} else {setLocal_connected_orders((Map<String,String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PROVIDER_ID:return Long.valueOf(getProviderId());case LOCAL_CONNECTED_ORDERS:return getLocal_connected_orders();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PROVIDER_ID:return isSetProviderId();case LOCAL_CONNECTED_ORDERS:return isSetLocal_connected_orders();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsLocalConnected_args)return this.equals((markOrdersAsLocalConnected_args)that);return false;}public boolean equals(markOrdersAsLocalConnected_args that) {if (that == null)return false;boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}boolean this_present_local_connected_orders = true && this.isSetLocal_connected_orders();boolean that_present_local_connected_orders = true && that.isSetLocal_connected_orders();if (this_present_local_connected_orders || that_present_local_connected_orders) {if (!(this_present_local_connected_orders && that_present_local_connected_orders))return false;if (!this.local_connected_orders.equals(that.local_connected_orders))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsLocalConnected_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsLocalConnected_args typedOther = (markOrdersAsLocalConnected_args)other;lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLocal_connected_orders()).compareTo(typedOther.isSetLocal_connected_orders());if (lastComparison != 0) {return lastComparison;}if (isSetLocal_connected_orders()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.local_connected_orders, typedOther.local_connected_orders);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // LOCAL_CONNECTED_ORDERSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map184 = iprot.readMapBegin();this.local_connected_orders = new HashMap<String,String>(2*_map184.size);for (int _i185 = 0; _i185 < _map184.size; ++_i185){String _key186; // requiredString _val187; // required_key186 = iprot.readString();_val187 = iprot.readString();this.local_connected_orders.put(_key186, _val187);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();if (this.local_connected_orders != null) {oprot.writeFieldBegin(LOCAL_CONNECTED_ORDERS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.local_connected_orders.size()));for (Map.Entry<String, String> _iter188 : this.local_connected_orders.entrySet()){oprot.writeString(_iter188.getKey());oprot.writeString(_iter188.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsLocalConnected_args(");boolean first = true;sb.append("providerId:");sb.append(this.providerId);first = false;if (!first) sb.append(", ");sb.append("local_connected_orders:");if (this.local_connected_orders == null) {sb.append("null");} else {sb.append(this.local_connected_orders);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsLocalConnected_result implements org.apache.thrift.TBase<markOrdersAsLocalConnected_result, markOrdersAsLocalConnected_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsLocalConnected_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsLocalConnected_result.class, metaDataMap);}public markOrdersAsLocalConnected_result() {}public markOrdersAsLocalConnected_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsLocalConnected_result(markOrdersAsLocalConnected_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrdersAsLocalConnected_result deepCopy() {return new markOrdersAsLocalConnected_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsLocalConnected_result)return this.equals((markOrdersAsLocalConnected_result)that);return false;}public boolean equals(markOrdersAsLocalConnected_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsLocalConnected_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsLocalConnected_result typedOther = (markOrdersAsLocalConnected_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsLocalConnected_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersNotLocalConnected_args implements org.apache.thrift.TBase<getOrdersNotLocalConnected_args, getOrdersNotLocalConnected_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersNotLocalConnected_args");private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);private long providerId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PROVIDER_ID((short)1, "providerId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PROVIDER_IDreturn PROVIDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __PROVIDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersNotLocalConnected_args.class, metaDataMap);}public getOrdersNotLocalConnected_args() {}public getOrdersNotLocalConnected_args(long providerId){this();this.providerId = providerId;setProviderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getOrdersNotLocalConnected_args(getOrdersNotLocalConnected_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.providerId = other.providerId;}public getOrdersNotLocalConnected_args deepCopy() {return new getOrdersNotLocalConnected_args(this);}@Overridepublic void clear() {setProviderIdIsSet(false);this.providerId = 0;}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PROVIDER_ID:return Long.valueOf(getProviderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PROVIDER_ID:return isSetProviderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersNotLocalConnected_args)return this.equals((getOrdersNotLocalConnected_args)that);return false;}public boolean equals(getOrdersNotLocalConnected_args that) {if (that == null)return false;boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersNotLocalConnected_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersNotLocalConnected_args typedOther = (getOrdersNotLocalConnected_args)other;lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersNotLocalConnected_args(");boolean first = true;sb.append("providerId:");sb.append(this.providerId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersNotLocalConnected_result implements org.apache.thrift.TBase<getOrdersNotLocalConnected_result, getOrdersNotLocalConnected_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersNotLocalConnected_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Order> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersNotLocalConnected_result.class, metaDataMap);}public getOrdersNotLocalConnected_result() {}public getOrdersNotLocalConnected_result(List<Order> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getOrdersNotLocalConnected_result(getOrdersNotLocalConnected_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}}public getOrdersNotLocalConnected_result deepCopy() {return new getOrdersNotLocalConnected_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersNotLocalConnected_result)return this.equals((getOrdersNotLocalConnected_result)that);return false;}public boolean equals(getOrdersNotLocalConnected_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersNotLocalConnected_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersNotLocalConnected_result typedOther = (getOrdersNotLocalConnected_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list189 = iprot.readListBegin();this.success = new ArrayList<Order>(_list189.size);for (int _i190 = 0; _i190 < _list189.size; ++_i190){Order _elem191; // required_elem191 = new Order();_elem191.read(iprot);this.success.add(_elem191);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter192 : this.success){_iter192.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersNotLocalConnected_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsDestinationCityReached_args implements org.apache.thrift.TBase<markOrdersAsDestinationCityReached_args, markOrdersAsDestinationCityReached_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsDestinationCityReached_args");private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField DESTINATION_CITY_REACHED_ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("destination_city_reached_orders", org.apache.thrift.protocol.TType.MAP, (short)2);private long providerId; // requiredprivate Map<String,String> destination_city_reached_orders; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PROVIDER_ID((short)1, "providerId"),DESTINATION_CITY_REACHED_ORDERS((short)2, "destination_city_reached_orders");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PROVIDER_IDreturn PROVIDER_ID;case 2: // DESTINATION_CITY_REACHED_ORDERSreturn DESTINATION_CITY_REACHED_ORDERS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __PROVIDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.DESTINATION_CITY_REACHED_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("destination_city_reached_orders", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsDestinationCityReached_args.class, metaDataMap);}public markOrdersAsDestinationCityReached_args() {}public markOrdersAsDestinationCityReached_args(long providerId,Map<String,String> destination_city_reached_orders){this();this.providerId = providerId;setProviderIdIsSet(true);this.destination_city_reached_orders = destination_city_reached_orders;}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsDestinationCityReached_args(markOrdersAsDestinationCityReached_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.providerId = other.providerId;if (other.isSetDestination_city_reached_orders()) {Map<String,String> __this__destination_city_reached_orders = new HashMap<String,String>();for (Map.Entry<String, String> other_element : other.destination_city_reached_orders.entrySet()) {String other_element_key = other_element.getKey();String other_element_value = other_element.getValue();String __this__destination_city_reached_orders_copy_key = other_element_key;String __this__destination_city_reached_orders_copy_value = other_element_value;__this__destination_city_reached_orders.put(__this__destination_city_reached_orders_copy_key, __this__destination_city_reached_orders_copy_value);}this.destination_city_reached_orders = __this__destination_city_reached_orders;}}public markOrdersAsDestinationCityReached_args deepCopy() {return new markOrdersAsDestinationCityReached_args(this);}@Overridepublic void clear() {setProviderIdIsSet(false);this.providerId = 0;this.destination_city_reached_orders = null;}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public int getDestination_city_reached_ordersSize() {return (this.destination_city_reached_orders == null) ? 0 : this.destination_city_reached_orders.size();}public void putToDestination_city_reached_orders(String key, String val) {if (this.destination_city_reached_orders == null) {this.destination_city_reached_orders = new HashMap<String,String>();}this.destination_city_reached_orders.put(key, val);}public Map<String,String> getDestination_city_reached_orders() {return this.destination_city_reached_orders;}public void setDestination_city_reached_orders(Map<String,String> destination_city_reached_orders) {this.destination_city_reached_orders = destination_city_reached_orders;}public void unsetDestination_city_reached_orders() {this.destination_city_reached_orders = null;}/** Returns true if field destination_city_reached_orders is set (has been assigned a value) and false otherwise */public boolean isSetDestination_city_reached_orders() {return this.destination_city_reached_orders != null;}public void setDestination_city_reached_ordersIsSet(boolean value) {if (!value) {this.destination_city_reached_orders = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;case DESTINATION_CITY_REACHED_ORDERS:if (value == null) {unsetDestination_city_reached_orders();} else {setDestination_city_reached_orders((Map<String,String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PROVIDER_ID:return Long.valueOf(getProviderId());case DESTINATION_CITY_REACHED_ORDERS:return getDestination_city_reached_orders();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PROVIDER_ID:return isSetProviderId();case DESTINATION_CITY_REACHED_ORDERS:return isSetDestination_city_reached_orders();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsDestinationCityReached_args)return this.equals((markOrdersAsDestinationCityReached_args)that);return false;}public boolean equals(markOrdersAsDestinationCityReached_args that) {if (that == null)return false;boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}boolean this_present_destination_city_reached_orders = true && this.isSetDestination_city_reached_orders();boolean that_present_destination_city_reached_orders = true && that.isSetDestination_city_reached_orders();if (this_present_destination_city_reached_orders || that_present_destination_city_reached_orders) {if (!(this_present_destination_city_reached_orders && that_present_destination_city_reached_orders))return false;if (!this.destination_city_reached_orders.equals(that.destination_city_reached_orders))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsDestinationCityReached_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsDestinationCityReached_args typedOther = (markOrdersAsDestinationCityReached_args)other;lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetDestination_city_reached_orders()).compareTo(typedOther.isSetDestination_city_reached_orders());if (lastComparison != 0) {return lastComparison;}if (isSetDestination_city_reached_orders()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_city_reached_orders, typedOther.destination_city_reached_orders);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // DESTINATION_CITY_REACHED_ORDERSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map193 = iprot.readMapBegin();this.destination_city_reached_orders = new HashMap<String,String>(2*_map193.size);for (int _i194 = 0; _i194 < _map193.size; ++_i194){String _key195; // requiredString _val196; // required_key195 = iprot.readString();_val196 = iprot.readString();this.destination_city_reached_orders.put(_key195, _val196);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();if (this.destination_city_reached_orders != null) {oprot.writeFieldBegin(DESTINATION_CITY_REACHED_ORDERS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.destination_city_reached_orders.size()));for (Map.Entry<String, String> _iter197 : this.destination_city_reached_orders.entrySet()){oprot.writeString(_iter197.getKey());oprot.writeString(_iter197.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsDestinationCityReached_args(");boolean first = true;sb.append("providerId:");sb.append(this.providerId);first = false;if (!first) sb.append(", ");sb.append("destination_city_reached_orders:");if (this.destination_city_reached_orders == null) {sb.append("null");} else {sb.append(this.destination_city_reached_orders);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsDestinationCityReached_result implements org.apache.thrift.TBase<markOrdersAsDestinationCityReached_result, markOrdersAsDestinationCityReached_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsDestinationCityReached_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsDestinationCityReached_result.class, metaDataMap);}public markOrdersAsDestinationCityReached_result() {}public markOrdersAsDestinationCityReached_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsDestinationCityReached_result(markOrdersAsDestinationCityReached_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrdersAsDestinationCityReached_result deepCopy() {return new markOrdersAsDestinationCityReached_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsDestinationCityReached_result)return this.equals((markOrdersAsDestinationCityReached_result)that);return false;}public boolean equals(markOrdersAsDestinationCityReached_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsDestinationCityReached_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsDestinationCityReached_result typedOther = (markOrdersAsDestinationCityReached_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsDestinationCityReached_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsFirstDeliveryAttempted_args implements org.apache.thrift.TBase<markOrdersAsFirstDeliveryAttempted_args, markOrdersAsFirstDeliveryAttempted_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsFirstDeliveryAttempted_args");private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField FIRST_ATDL_ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("first_atdl_orders", org.apache.thrift.protocol.TType.MAP, (short)2);private long providerId; // requiredprivate Map<String,String> first_atdl_orders; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PROVIDER_ID((short)1, "providerId"),FIRST_ATDL_ORDERS((short)2, "first_atdl_orders");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PROVIDER_IDreturn PROVIDER_ID;case 2: // FIRST_ATDL_ORDERSreturn FIRST_ATDL_ORDERS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __PROVIDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.FIRST_ATDL_ORDERS, new org.apache.thrift.meta_data.FieldMetaData("first_atdl_orders", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsFirstDeliveryAttempted_args.class, metaDataMap);}public markOrdersAsFirstDeliveryAttempted_args() {}public markOrdersAsFirstDeliveryAttempted_args(long providerId,Map<String,String> first_atdl_orders){this();this.providerId = providerId;setProviderIdIsSet(true);this.first_atdl_orders = first_atdl_orders;}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsFirstDeliveryAttempted_args(markOrdersAsFirstDeliveryAttempted_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.providerId = other.providerId;if (other.isSetFirst_atdl_orders()) {Map<String,String> __this__first_atdl_orders = new HashMap<String,String>();for (Map.Entry<String, String> other_element : other.first_atdl_orders.entrySet()) {String other_element_key = other_element.getKey();String other_element_value = other_element.getValue();String __this__first_atdl_orders_copy_key = other_element_key;String __this__first_atdl_orders_copy_value = other_element_value;__this__first_atdl_orders.put(__this__first_atdl_orders_copy_key, __this__first_atdl_orders_copy_value);}this.first_atdl_orders = __this__first_atdl_orders;}}public markOrdersAsFirstDeliveryAttempted_args deepCopy() {return new markOrdersAsFirstDeliveryAttempted_args(this);}@Overridepublic void clear() {setProviderIdIsSet(false);this.providerId = 0;this.first_atdl_orders = null;}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public int getFirst_atdl_ordersSize() {return (this.first_atdl_orders == null) ? 0 : this.first_atdl_orders.size();}public void putToFirst_atdl_orders(String key, String val) {if (this.first_atdl_orders == null) {this.first_atdl_orders = new HashMap<String,String>();}this.first_atdl_orders.put(key, val);}public Map<String,String> getFirst_atdl_orders() {return this.first_atdl_orders;}public void setFirst_atdl_orders(Map<String,String> first_atdl_orders) {this.first_atdl_orders = first_atdl_orders;}public void unsetFirst_atdl_orders() {this.first_atdl_orders = null;}/** Returns true if field first_atdl_orders is set (has been assigned a value) and false otherwise */public boolean isSetFirst_atdl_orders() {return this.first_atdl_orders != null;}public void setFirst_atdl_ordersIsSet(boolean value) {if (!value) {this.first_atdl_orders = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;case FIRST_ATDL_ORDERS:if (value == null) {unsetFirst_atdl_orders();} else {setFirst_atdl_orders((Map<String,String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PROVIDER_ID:return Long.valueOf(getProviderId());case FIRST_ATDL_ORDERS:return getFirst_atdl_orders();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PROVIDER_ID:return isSetProviderId();case FIRST_ATDL_ORDERS:return isSetFirst_atdl_orders();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsFirstDeliveryAttempted_args)return this.equals((markOrdersAsFirstDeliveryAttempted_args)that);return false;}public boolean equals(markOrdersAsFirstDeliveryAttempted_args that) {if (that == null)return false;boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}boolean this_present_first_atdl_orders = true && this.isSetFirst_atdl_orders();boolean that_present_first_atdl_orders = true && that.isSetFirst_atdl_orders();if (this_present_first_atdl_orders || that_present_first_atdl_orders) {if (!(this_present_first_atdl_orders && that_present_first_atdl_orders))return false;if (!this.first_atdl_orders.equals(that.first_atdl_orders))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsFirstDeliveryAttempted_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsFirstDeliveryAttempted_args typedOther = (markOrdersAsFirstDeliveryAttempted_args)other;lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetFirst_atdl_orders()).compareTo(typedOther.isSetFirst_atdl_orders());if (lastComparison != 0) {return lastComparison;}if (isSetFirst_atdl_orders()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.first_atdl_orders, typedOther.first_atdl_orders);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // FIRST_ATDL_ORDERSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map198 = iprot.readMapBegin();this.first_atdl_orders = new HashMap<String,String>(2*_map198.size);for (int _i199 = 0; _i199 < _map198.size; ++_i199){String _key200; // requiredString _val201; // required_key200 = iprot.readString();_val201 = iprot.readString();this.first_atdl_orders.put(_key200, _val201);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();if (this.first_atdl_orders != null) {oprot.writeFieldBegin(FIRST_ATDL_ORDERS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.first_atdl_orders.size()));for (Map.Entry<String, String> _iter202 : this.first_atdl_orders.entrySet()){oprot.writeString(_iter202.getKey());oprot.writeString(_iter202.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsFirstDeliveryAttempted_args(");boolean first = true;sb.append("providerId:");sb.append(this.providerId);first = false;if (!first) sb.append(", ");sb.append("first_atdl_orders:");if (this.first_atdl_orders == null) {sb.append("null");} else {sb.append(this.first_atdl_orders);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsFirstDeliveryAttempted_result implements org.apache.thrift.TBase<markOrdersAsFirstDeliveryAttempted_result, markOrdersAsFirstDeliveryAttempted_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsFirstDeliveryAttempted_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsFirstDeliveryAttempted_result.class, metaDataMap);}public markOrdersAsFirstDeliveryAttempted_result() {}public markOrdersAsFirstDeliveryAttempted_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsFirstDeliveryAttempted_result(markOrdersAsFirstDeliveryAttempted_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrdersAsFirstDeliveryAttempted_result deepCopy() {return new markOrdersAsFirstDeliveryAttempted_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsFirstDeliveryAttempted_result)return this.equals((markOrdersAsFirstDeliveryAttempted_result)that);return false;}public boolean equals(markOrdersAsFirstDeliveryAttempted_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsFirstDeliveryAttempted_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsFirstDeliveryAttempted_result typedOther = (markOrdersAsFirstDeliveryAttempted_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsFirstDeliveryAttempted_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getUndeliveredOrders_args implements org.apache.thrift.TBase<getUndeliveredOrders_args, getUndeliveredOrders_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUndeliveredOrders_args");private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);private long providerId; // requiredprivate long warehouseId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PROVIDER_ID((short)1, "providerId"),WAREHOUSE_ID((short)2, "warehouseId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PROVIDER_IDreturn PROVIDER_ID;case 2: // WAREHOUSE_IDreturn WAREHOUSE_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __PROVIDERID_ISSET_ID = 0;private static final int __WAREHOUSEID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUndeliveredOrders_args.class, metaDataMap);}public getUndeliveredOrders_args() {}public getUndeliveredOrders_args(long providerId,long warehouseId){this();this.providerId = providerId;setProviderIdIsSet(true);this.warehouseId = warehouseId;setWarehouseIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getUndeliveredOrders_args(getUndeliveredOrders_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.providerId = other.providerId;this.warehouseId = other.warehouseId;}public getUndeliveredOrders_args deepCopy() {return new getUndeliveredOrders_args(this);}@Overridepublic void clear() {setProviderIdIsSet(false);this.providerId = 0;setWarehouseIdIsSet(false);this.warehouseId = 0;}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public long getWarehouseId() {return this.warehouseId;}public void setWarehouseId(long warehouseId) {this.warehouseId = warehouseId;setWarehouseIdIsSet(true);}public void unsetWarehouseId() {__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);}/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */public boolean isSetWarehouseId() {return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);}public void setWarehouseIdIsSet(boolean value) {__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;case WAREHOUSE_ID:if (value == null) {unsetWarehouseId();} else {setWarehouseId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PROVIDER_ID:return Long.valueOf(getProviderId());case WAREHOUSE_ID:return Long.valueOf(getWarehouseId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PROVIDER_ID:return isSetProviderId();case WAREHOUSE_ID:return isSetWarehouseId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getUndeliveredOrders_args)return this.equals((getUndeliveredOrders_args)that);return false;}public boolean equals(getUndeliveredOrders_args that) {if (that == null)return false;boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}boolean this_present_warehouseId = true;boolean that_present_warehouseId = true;if (this_present_warehouseId || that_present_warehouseId) {if (!(this_present_warehouseId && that_present_warehouseId))return false;if (this.warehouseId != that.warehouseId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getUndeliveredOrders_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getUndeliveredOrders_args typedOther = (getUndeliveredOrders_args)other;lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());if (lastComparison != 0) {return lastComparison;}if (isSetWarehouseId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.warehouseId = iprot.readI64();setWarehouseIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.warehouseId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getUndeliveredOrders_args(");boolean first = true;sb.append("providerId:");sb.append(this.providerId);first = false;if (!first) sb.append(", ");sb.append("warehouseId:");sb.append(this.warehouseId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getUndeliveredOrders_result implements org.apache.thrift.TBase<getUndeliveredOrders_result, getUndeliveredOrders_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUndeliveredOrders_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Order> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUndeliveredOrders_result.class, metaDataMap);}public getUndeliveredOrders_result() {}public getUndeliveredOrders_result(List<Order> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getUndeliveredOrders_result(getUndeliveredOrders_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}}public getUndeliveredOrders_result deepCopy() {return new getUndeliveredOrders_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getUndeliveredOrders_result)return this.equals((getUndeliveredOrders_result)that);return false;}public boolean equals(getUndeliveredOrders_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getUndeliveredOrders_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getUndeliveredOrders_result typedOther = (getUndeliveredOrders_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list203 = iprot.readListBegin();this.success = new ArrayList<Order>(_list203.size);for (int _i204 = 0; _i204 < _list203.size; ++_i204){Order _elem205; // required_elem205 = new Order();_elem205.read(iprot);this.success.add(_elem205);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter206 : this.success){_iter206.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getUndeliveredOrders_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getUndeliveredOrdersExpectedDeliveryDateNotMet_args implements org.apache.thrift.TBase<getUndeliveredOrdersExpectedDeliveryDateNotMet_args, getUndeliveredOrdersExpectedDeliveryDateNotMet_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUndeliveredOrdersExpectedDeliveryDateNotMet_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUndeliveredOrdersExpectedDeliveryDateNotMet_args.class, metaDataMap);}public getUndeliveredOrdersExpectedDeliveryDateNotMet_args() {}/*** Performs a deep copy on <i>other</i>.*/public getUndeliveredOrdersExpectedDeliveryDateNotMet_args(getUndeliveredOrdersExpectedDeliveryDateNotMet_args other) {}public getUndeliveredOrdersExpectedDeliveryDateNotMet_args deepCopy() {return new getUndeliveredOrdersExpectedDeliveryDateNotMet_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getUndeliveredOrdersExpectedDeliveryDateNotMet_args)return this.equals((getUndeliveredOrdersExpectedDeliveryDateNotMet_args)that);return false;}public boolean equals(getUndeliveredOrdersExpectedDeliveryDateNotMet_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getUndeliveredOrdersExpectedDeliveryDateNotMet_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getUndeliveredOrdersExpectedDeliveryDateNotMet_args typedOther = (getUndeliveredOrdersExpectedDeliveryDateNotMet_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getUndeliveredOrdersExpectedDeliveryDateNotMet_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getUndeliveredOrdersExpectedDeliveryDateNotMet_result implements org.apache.thrift.TBase<getUndeliveredOrdersExpectedDeliveryDateNotMet_result, getUndeliveredOrdersExpectedDeliveryDateNotMet_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUndeliveredOrdersExpectedDeliveryDateNotMet_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Order> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUndeliveredOrdersExpectedDeliveryDateNotMet_result.class, metaDataMap);}public getUndeliveredOrdersExpectedDeliveryDateNotMet_result() {}public getUndeliveredOrdersExpectedDeliveryDateNotMet_result(List<Order> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getUndeliveredOrdersExpectedDeliveryDateNotMet_result(getUndeliveredOrdersExpectedDeliveryDateNotMet_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}}public getUndeliveredOrdersExpectedDeliveryDateNotMet_result deepCopy() {return new getUndeliveredOrdersExpectedDeliveryDateNotMet_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getUndeliveredOrdersExpectedDeliveryDateNotMet_result)return this.equals((getUndeliveredOrdersExpectedDeliveryDateNotMet_result)that);return false;}public boolean equals(getUndeliveredOrdersExpectedDeliveryDateNotMet_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getUndeliveredOrdersExpectedDeliveryDateNotMet_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getUndeliveredOrdersExpectedDeliveryDateNotMet_result typedOther = (getUndeliveredOrdersExpectedDeliveryDateNotMet_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list207 = iprot.readListBegin();this.success = new ArrayList<Order>(_list207.size);for (int _i208 = 0; _i208 < _list207.size; ++_i208){Order _elem209; // required_elem209 = new Order();_elem209.read(iprot);this.success.add(_elem209);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter210 : this.success){_iter210.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getUndeliveredOrdersExpectedDeliveryDateNotMet_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class toggleDOAFlag_args implements org.apache.thrift.TBase<toggleDOAFlag_args, toggleDOAFlag_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("toggleDOAFlag_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private long orderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(toggleDOAFlag_args.class, metaDataMap);}public toggleDOAFlag_args() {}public toggleDOAFlag_args(long orderId){this();this.orderId = orderId;setOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public toggleDOAFlag_args(toggleDOAFlag_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;}public toggleDOAFlag_args deepCopy() {return new toggleDOAFlag_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof toggleDOAFlag_args)return this.equals((toggleDOAFlag_args)that);return false;}public boolean equals(toggleDOAFlag_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(toggleDOAFlag_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;toggleDOAFlag_args typedOther = (toggleDOAFlag_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("toggleDOAFlag_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class toggleDOAFlag_result implements org.apache.thrift.TBase<toggleDOAFlag_result, toggleDOAFlag_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("toggleDOAFlag_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(toggleDOAFlag_result.class, metaDataMap);}public toggleDOAFlag_result() {}public toggleDOAFlag_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public toggleDOAFlag_result(toggleDOAFlag_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public toggleDOAFlag_result deepCopy() {return new toggleDOAFlag_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof toggleDOAFlag_result)return this.equals((toggleDOAFlag_result)that);return false;}public boolean equals(toggleDOAFlag_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(toggleDOAFlag_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;toggleDOAFlag_result typedOther = (toggleDOAFlag_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("toggleDOAFlag_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderAsDelivered_args implements org.apache.thrift.TBase<markOrderAsDelivered_args, markOrderAsDelivered_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsDelivered_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField DELIVERY_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("deliveryTimestamp", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField RECEIVER_FIELD_DESC = new org.apache.thrift.protocol.TField("receiver", org.apache.thrift.protocol.TType.STRING, (short)-1);private long orderId; // requiredprivate long deliveryTimestamp; // requiredprivate String receiver; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),DELIVERY_TIMESTAMP((short)2, "deliveryTimestamp"),RECEIVER((short)-1, "receiver");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // DELIVERY_TIMESTAMPreturn DELIVERY_TIMESTAMP;case -1: // RECEIVERreturn RECEIVER;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private static final int __DELIVERYTIMESTAMP_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.DELIVERY_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("deliveryTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.RECEIVER, new org.apache.thrift.meta_data.FieldMetaData("receiver", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsDelivered_args.class, metaDataMap);}public markOrderAsDelivered_args() {}public markOrderAsDelivered_args(long orderId,long deliveryTimestamp,String receiver){this();this.orderId = orderId;setOrderIdIsSet(true);this.deliveryTimestamp = deliveryTimestamp;setDeliveryTimestampIsSet(true);this.receiver = receiver;}/*** Performs a deep copy on <i>other</i>.*/public markOrderAsDelivered_args(markOrderAsDelivered_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;this.deliveryTimestamp = other.deliveryTimestamp;if (other.isSetReceiver()) {this.receiver = other.receiver;}}public markOrderAsDelivered_args deepCopy() {return new markOrderAsDelivered_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;setDeliveryTimestampIsSet(false);this.deliveryTimestamp = 0;this.receiver = null;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public long getDeliveryTimestamp() {return this.deliveryTimestamp;}public void setDeliveryTimestamp(long deliveryTimestamp) {this.deliveryTimestamp = deliveryTimestamp;setDeliveryTimestampIsSet(true);}public void unsetDeliveryTimestamp() {__isset_bit_vector.clear(__DELIVERYTIMESTAMP_ISSET_ID);}/** Returns true if field deliveryTimestamp is set (has been assigned a value) and false otherwise */public boolean isSetDeliveryTimestamp() {return __isset_bit_vector.get(__DELIVERYTIMESTAMP_ISSET_ID);}public void setDeliveryTimestampIsSet(boolean value) {__isset_bit_vector.set(__DELIVERYTIMESTAMP_ISSET_ID, value);}public String getReceiver() {return this.receiver;}public void setReceiver(String receiver) {this.receiver = receiver;}public void unsetReceiver() {this.receiver = null;}/** Returns true if field receiver is set (has been assigned a value) and false otherwise */public boolean isSetReceiver() {return this.receiver != null;}public void setReceiverIsSet(boolean value) {if (!value) {this.receiver = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case DELIVERY_TIMESTAMP:if (value == null) {unsetDeliveryTimestamp();} else {setDeliveryTimestamp((Long)value);}break;case RECEIVER:if (value == null) {unsetReceiver();} else {setReceiver((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case DELIVERY_TIMESTAMP:return Long.valueOf(getDeliveryTimestamp());case RECEIVER:return getReceiver();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case DELIVERY_TIMESTAMP:return isSetDeliveryTimestamp();case RECEIVER:return isSetReceiver();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderAsDelivered_args)return this.equals((markOrderAsDelivered_args)that);return false;}public boolean equals(markOrderAsDelivered_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_deliveryTimestamp = true;boolean that_present_deliveryTimestamp = true;if (this_present_deliveryTimestamp || that_present_deliveryTimestamp) {if (!(this_present_deliveryTimestamp && that_present_deliveryTimestamp))return false;if (this.deliveryTimestamp != that.deliveryTimestamp)return false;}boolean this_present_receiver = true && this.isSetReceiver();boolean that_present_receiver = true && that.isSetReceiver();if (this_present_receiver || that_present_receiver) {if (!(this_present_receiver && that_present_receiver))return false;if (!this.receiver.equals(that.receiver))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderAsDelivered_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderAsDelivered_args typedOther = (markOrderAsDelivered_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetDeliveryTimestamp()).compareTo(typedOther.isSetDeliveryTimestamp());if (lastComparison != 0) {return lastComparison;}if (isSetDeliveryTimestamp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deliveryTimestamp, typedOther.deliveryTimestamp);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReceiver()).compareTo(typedOther.isSetReceiver());if (lastComparison != 0) {return lastComparison;}if (isSetReceiver()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.receiver, typedOther.receiver);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // DELIVERY_TIMESTAMPif (field.type == org.apache.thrift.protocol.TType.I64) {this.deliveryTimestamp = iprot.readI64();setDeliveryTimestampIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case -1: // RECEIVERif (field.type == org.apache.thrift.protocol.TType.STRING) {this.receiver = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.receiver != null) {oprot.writeFieldBegin(RECEIVER_FIELD_DESC);oprot.writeString(this.receiver);oprot.writeFieldEnd();}oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldBegin(DELIVERY_TIMESTAMP_FIELD_DESC);oprot.writeI64(this.deliveryTimestamp);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderAsDelivered_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("deliveryTimestamp:");sb.append(this.deliveryTimestamp);first = false;if (!first) sb.append(", ");sb.append("receiver:");if (this.receiver == null) {sb.append("null");} else {sb.append(this.receiver);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderAsDelivered_result implements org.apache.thrift.TBase<markOrderAsDelivered_result, markOrderAsDelivered_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsDelivered_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsDelivered_result.class, metaDataMap);}public markOrderAsDelivered_result() {}public markOrderAsDelivered_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrderAsDelivered_result(markOrderAsDelivered_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrderAsDelivered_result deepCopy() {return new markOrderAsDelivered_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderAsDelivered_result)return this.equals((markOrderAsDelivered_result)that);return false;}public boolean equals(markOrderAsDelivered_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderAsDelivered_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderAsDelivered_result typedOther = (markOrderAsDelivered_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderAsDelivered_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderAsReceivedAtStore_args implements org.apache.thrift.TBase<markOrderAsReceivedAtStore_args, markOrderAsReceivedAtStore_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsReceivedAtStore_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField DELIVERY_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("deliveryTimestamp", org.apache.thrift.protocol.TType.I64, (short)2);private long orderId; // requiredprivate long deliveryTimestamp; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),DELIVERY_TIMESTAMP((short)2, "deliveryTimestamp");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // DELIVERY_TIMESTAMPreturn DELIVERY_TIMESTAMP;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private static final int __DELIVERYTIMESTAMP_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.DELIVERY_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("deliveryTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsReceivedAtStore_args.class, metaDataMap);}public markOrderAsReceivedAtStore_args() {}public markOrderAsReceivedAtStore_args(long orderId,long deliveryTimestamp){this();this.orderId = orderId;setOrderIdIsSet(true);this.deliveryTimestamp = deliveryTimestamp;setDeliveryTimestampIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markOrderAsReceivedAtStore_args(markOrderAsReceivedAtStore_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;this.deliveryTimestamp = other.deliveryTimestamp;}public markOrderAsReceivedAtStore_args deepCopy() {return new markOrderAsReceivedAtStore_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;setDeliveryTimestampIsSet(false);this.deliveryTimestamp = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public long getDeliveryTimestamp() {return this.deliveryTimestamp;}public void setDeliveryTimestamp(long deliveryTimestamp) {this.deliveryTimestamp = deliveryTimestamp;setDeliveryTimestampIsSet(true);}public void unsetDeliveryTimestamp() {__isset_bit_vector.clear(__DELIVERYTIMESTAMP_ISSET_ID);}/** Returns true if field deliveryTimestamp is set (has been assigned a value) and false otherwise */public boolean isSetDeliveryTimestamp() {return __isset_bit_vector.get(__DELIVERYTIMESTAMP_ISSET_ID);}public void setDeliveryTimestampIsSet(boolean value) {__isset_bit_vector.set(__DELIVERYTIMESTAMP_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case DELIVERY_TIMESTAMP:if (value == null) {unsetDeliveryTimestamp();} else {setDeliveryTimestamp((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case DELIVERY_TIMESTAMP:return Long.valueOf(getDeliveryTimestamp());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case DELIVERY_TIMESTAMP:return isSetDeliveryTimestamp();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderAsReceivedAtStore_args)return this.equals((markOrderAsReceivedAtStore_args)that);return false;}public boolean equals(markOrderAsReceivedAtStore_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_deliveryTimestamp = true;boolean that_present_deliveryTimestamp = true;if (this_present_deliveryTimestamp || that_present_deliveryTimestamp) {if (!(this_present_deliveryTimestamp && that_present_deliveryTimestamp))return false;if (this.deliveryTimestamp != that.deliveryTimestamp)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderAsReceivedAtStore_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderAsReceivedAtStore_args typedOther = (markOrderAsReceivedAtStore_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetDeliveryTimestamp()).compareTo(typedOther.isSetDeliveryTimestamp());if (lastComparison != 0) {return lastComparison;}if (isSetDeliveryTimestamp()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deliveryTimestamp, typedOther.deliveryTimestamp);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // DELIVERY_TIMESTAMPif (field.type == org.apache.thrift.protocol.TType.I64) {this.deliveryTimestamp = iprot.readI64();setDeliveryTimestampIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldBegin(DELIVERY_TIMESTAMP_FIELD_DESC);oprot.writeI64(this.deliveryTimestamp);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderAsReceivedAtStore_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("deliveryTimestamp:");sb.append(this.deliveryTimestamp);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderAsReceivedAtStore_result implements org.apache.thrift.TBase<markOrderAsReceivedAtStore_result, markOrderAsReceivedAtStore_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsReceivedAtStore_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsReceivedAtStore_result.class, metaDataMap);}public markOrderAsReceivedAtStore_result() {}public markOrderAsReceivedAtStore_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrderAsReceivedAtStore_result(markOrderAsReceivedAtStore_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrderAsReceivedAtStore_result deepCopy() {return new markOrderAsReceivedAtStore_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderAsReceivedAtStore_result)return this.equals((markOrderAsReceivedAtStore_result)that);return false;}public boolean equals(markOrderAsReceivedAtStore_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderAsReceivedAtStore_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderAsReceivedAtStore_result typedOther = (markOrderAsReceivedAtStore_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderAsReceivedAtStore_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderDoaRequestReceived_args implements org.apache.thrift.TBase<markOrderDoaRequestReceived_args, markOrderDoaRequestReceived_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderDoaRequestReceived_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private long orderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderDoaRequestReceived_args.class, metaDataMap);}public markOrderDoaRequestReceived_args() {}public markOrderDoaRequestReceived_args(long orderId){this();this.orderId = orderId;setOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markOrderDoaRequestReceived_args(markOrderDoaRequestReceived_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;}public markOrderDoaRequestReceived_args deepCopy() {return new markOrderDoaRequestReceived_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderDoaRequestReceived_args)return this.equals((markOrderDoaRequestReceived_args)that);return false;}public boolean equals(markOrderDoaRequestReceived_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderDoaRequestReceived_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderDoaRequestReceived_args typedOther = (markOrderDoaRequestReceived_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderDoaRequestReceived_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderDoaRequestReceived_result implements org.apache.thrift.TBase<markOrderDoaRequestReceived_result, markOrderDoaRequestReceived_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderDoaRequestReceived_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderDoaRequestReceived_result.class, metaDataMap);}public markOrderDoaRequestReceived_result() {}public markOrderDoaRequestReceived_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrderDoaRequestReceived_result(markOrderDoaRequestReceived_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrderDoaRequestReceived_result deepCopy() {return new markOrderDoaRequestReceived_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderDoaRequestReceived_result)return this.equals((markOrderDoaRequestReceived_result)that);return false;}public boolean equals(markOrderDoaRequestReceived_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderDoaRequestReceived_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderDoaRequestReceived_result typedOther = (markOrderDoaRequestReceived_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderDoaRequestReceived_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderDoaRequestAuthorized_args implements org.apache.thrift.TBase<markOrderDoaRequestAuthorized_args, markOrderDoaRequestAuthorized_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderDoaRequestAuthorized_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField IS_AUTHORIZED_FIELD_DESC = new org.apache.thrift.protocol.TField("isAuthorized", org.apache.thrift.protocol.TType.BOOL, (short)2);private long orderId; // requiredprivate boolean isAuthorized; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),IS_AUTHORIZED((short)2, "isAuthorized");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // IS_AUTHORIZEDreturn IS_AUTHORIZED;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private static final int __ISAUTHORIZED_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.IS_AUTHORIZED, new org.apache.thrift.meta_data.FieldMetaData("isAuthorized", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderDoaRequestAuthorized_args.class, metaDataMap);}public markOrderDoaRequestAuthorized_args() {}public markOrderDoaRequestAuthorized_args(long orderId,boolean isAuthorized){this();this.orderId = orderId;setOrderIdIsSet(true);this.isAuthorized = isAuthorized;setIsAuthorizedIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markOrderDoaRequestAuthorized_args(markOrderDoaRequestAuthorized_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;this.isAuthorized = other.isAuthorized;}public markOrderDoaRequestAuthorized_args deepCopy() {return new markOrderDoaRequestAuthorized_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;setIsAuthorizedIsSet(false);this.isAuthorized = false;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public boolean isIsAuthorized() {return this.isAuthorized;}public void setIsAuthorized(boolean isAuthorized) {this.isAuthorized = isAuthorized;setIsAuthorizedIsSet(true);}public void unsetIsAuthorized() {__isset_bit_vector.clear(__ISAUTHORIZED_ISSET_ID);}/** Returns true if field isAuthorized is set (has been assigned a value) and false otherwise */public boolean isSetIsAuthorized() {return __isset_bit_vector.get(__ISAUTHORIZED_ISSET_ID);}public void setIsAuthorizedIsSet(boolean value) {__isset_bit_vector.set(__ISAUTHORIZED_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case IS_AUTHORIZED:if (value == null) {unsetIsAuthorized();} else {setIsAuthorized((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case IS_AUTHORIZED:return Boolean.valueOf(isIsAuthorized());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case IS_AUTHORIZED:return isSetIsAuthorized();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderDoaRequestAuthorized_args)return this.equals((markOrderDoaRequestAuthorized_args)that);return false;}public boolean equals(markOrderDoaRequestAuthorized_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_isAuthorized = true;boolean that_present_isAuthorized = true;if (this_present_isAuthorized || that_present_isAuthorized) {if (!(this_present_isAuthorized && that_present_isAuthorized))return false;if (this.isAuthorized != that.isAuthorized)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderDoaRequestAuthorized_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderDoaRequestAuthorized_args typedOther = (markOrderDoaRequestAuthorized_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsAuthorized()).compareTo(typedOther.isSetIsAuthorized());if (lastComparison != 0) {return lastComparison;}if (isSetIsAuthorized()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAuthorized, typedOther.isAuthorized);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // IS_AUTHORIZEDif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.isAuthorized = iprot.readBool();setIsAuthorizedIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldBegin(IS_AUTHORIZED_FIELD_DESC);oprot.writeBool(this.isAuthorized);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderDoaRequestAuthorized_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("isAuthorized:");sb.append(this.isAuthorized);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderDoaRequestAuthorized_result implements org.apache.thrift.TBase<markOrderDoaRequestAuthorized_result, markOrderDoaRequestAuthorized_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderDoaRequestAuthorized_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderDoaRequestAuthorized_result.class, metaDataMap);}public markOrderDoaRequestAuthorized_result() {}public markOrderDoaRequestAuthorized_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrderDoaRequestAuthorized_result(markOrderDoaRequestAuthorized_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrderDoaRequestAuthorized_result deepCopy() {return new markOrderDoaRequestAuthorized_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderDoaRequestAuthorized_result)return this.equals((markOrderDoaRequestAuthorized_result)that);return false;}public boolean equals(markOrderDoaRequestAuthorized_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderDoaRequestAuthorized_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderDoaRequestAuthorized_result typedOther = (markOrderDoaRequestAuthorized_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderDoaRequestAuthorized_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderReturnRequestReceived_args implements org.apache.thrift.TBase<markOrderReturnRequestReceived_args, markOrderReturnRequestReceived_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderReturnRequestReceived_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private long orderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderReturnRequestReceived_args.class, metaDataMap);}public markOrderReturnRequestReceived_args() {}public markOrderReturnRequestReceived_args(long orderId){this();this.orderId = orderId;setOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markOrderReturnRequestReceived_args(markOrderReturnRequestReceived_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;}public markOrderReturnRequestReceived_args deepCopy() {return new markOrderReturnRequestReceived_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderReturnRequestReceived_args)return this.equals((markOrderReturnRequestReceived_args)that);return false;}public boolean equals(markOrderReturnRequestReceived_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderReturnRequestReceived_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderReturnRequestReceived_args typedOther = (markOrderReturnRequestReceived_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderReturnRequestReceived_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderReturnRequestReceived_result implements org.apache.thrift.TBase<markOrderReturnRequestReceived_result, markOrderReturnRequestReceived_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderReturnRequestReceived_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderReturnRequestReceived_result.class, metaDataMap);}public markOrderReturnRequestReceived_result() {}public markOrderReturnRequestReceived_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrderReturnRequestReceived_result(markOrderReturnRequestReceived_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrderReturnRequestReceived_result deepCopy() {return new markOrderReturnRequestReceived_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderReturnRequestReceived_result)return this.equals((markOrderReturnRequestReceived_result)that);return false;}public boolean equals(markOrderReturnRequestReceived_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderReturnRequestReceived_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderReturnRequestReceived_result typedOther = (markOrderReturnRequestReceived_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderReturnRequestReceived_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderReturnRequestAuthorized_args implements org.apache.thrift.TBase<markOrderReturnRequestAuthorized_args, markOrderReturnRequestAuthorized_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderReturnRequestAuthorized_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField IS_AUTHORIZED_FIELD_DESC = new org.apache.thrift.protocol.TField("isAuthorized", org.apache.thrift.protocol.TType.BOOL, (short)2);private long orderId; // requiredprivate boolean isAuthorized; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),IS_AUTHORIZED((short)2, "isAuthorized");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // IS_AUTHORIZEDreturn IS_AUTHORIZED;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private static final int __ISAUTHORIZED_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.IS_AUTHORIZED, new org.apache.thrift.meta_data.FieldMetaData("isAuthorized", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderReturnRequestAuthorized_args.class, metaDataMap);}public markOrderReturnRequestAuthorized_args() {}public markOrderReturnRequestAuthorized_args(long orderId,boolean isAuthorized){this();this.orderId = orderId;setOrderIdIsSet(true);this.isAuthorized = isAuthorized;setIsAuthorizedIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markOrderReturnRequestAuthorized_args(markOrderReturnRequestAuthorized_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;this.isAuthorized = other.isAuthorized;}public markOrderReturnRequestAuthorized_args deepCopy() {return new markOrderReturnRequestAuthorized_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;setIsAuthorizedIsSet(false);this.isAuthorized = false;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public boolean isIsAuthorized() {return this.isAuthorized;}public void setIsAuthorized(boolean isAuthorized) {this.isAuthorized = isAuthorized;setIsAuthorizedIsSet(true);}public void unsetIsAuthorized() {__isset_bit_vector.clear(__ISAUTHORIZED_ISSET_ID);}/** Returns true if field isAuthorized is set (has been assigned a value) and false otherwise */public boolean isSetIsAuthorized() {return __isset_bit_vector.get(__ISAUTHORIZED_ISSET_ID);}public void setIsAuthorizedIsSet(boolean value) {__isset_bit_vector.set(__ISAUTHORIZED_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case IS_AUTHORIZED:if (value == null) {unsetIsAuthorized();} else {setIsAuthorized((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case IS_AUTHORIZED:return Boolean.valueOf(isIsAuthorized());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case IS_AUTHORIZED:return isSetIsAuthorized();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderReturnRequestAuthorized_args)return this.equals((markOrderReturnRequestAuthorized_args)that);return false;}public boolean equals(markOrderReturnRequestAuthorized_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_isAuthorized = true;boolean that_present_isAuthorized = true;if (this_present_isAuthorized || that_present_isAuthorized) {if (!(this_present_isAuthorized && that_present_isAuthorized))return false;if (this.isAuthorized != that.isAuthorized)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderReturnRequestAuthorized_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderReturnRequestAuthorized_args typedOther = (markOrderReturnRequestAuthorized_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsAuthorized()).compareTo(typedOther.isSetIsAuthorized());if (lastComparison != 0) {return lastComparison;}if (isSetIsAuthorized()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAuthorized, typedOther.isAuthorized);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // IS_AUTHORIZEDif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.isAuthorized = iprot.readBool();setIsAuthorizedIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldBegin(IS_AUTHORIZED_FIELD_DESC);oprot.writeBool(this.isAuthorized);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderReturnRequestAuthorized_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("isAuthorized:");sb.append(this.isAuthorized);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderReturnRequestAuthorized_result implements org.apache.thrift.TBase<markOrderReturnRequestAuthorized_result, markOrderReturnRequestAuthorized_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderReturnRequestAuthorized_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderReturnRequestAuthorized_result.class, metaDataMap);}public markOrderReturnRequestAuthorized_result() {}public markOrderReturnRequestAuthorized_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrderReturnRequestAuthorized_result(markOrderReturnRequestAuthorized_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrderReturnRequestAuthorized_result deepCopy() {return new markOrderReturnRequestAuthorized_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderReturnRequestAuthorized_result)return this.equals((markOrderReturnRequestAuthorized_result)that);return false;}public boolean equals(markOrderReturnRequestAuthorized_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderReturnRequestAuthorized_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderReturnRequestAuthorized_result typedOther = (markOrderReturnRequestAuthorized_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderReturnRequestAuthorized_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class requestPickupNumber_args implements org.apache.thrift.TBase<requestPickupNumber_args, requestPickupNumber_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestPickupNumber_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)2);private long orderId; // requiredprivate long providerId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),PROVIDER_ID((short)2, "providerId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // PROVIDER_IDreturn PROVIDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private static final int __PROVIDERID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestPickupNumber_args.class, metaDataMap);}public requestPickupNumber_args() {}public requestPickupNumber_args(long orderId,long providerId){this();this.orderId = orderId;setOrderIdIsSet(true);this.providerId = providerId;setProviderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public requestPickupNumber_args(requestPickupNumber_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;this.providerId = other.providerId;}public requestPickupNumber_args deepCopy() {return new requestPickupNumber_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;setProviderIdIsSet(false);this.providerId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case PROVIDER_ID:return Long.valueOf(getProviderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case PROVIDER_ID:return isSetProviderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof requestPickupNumber_args)return this.equals((requestPickupNumber_args)that);return false;}public boolean equals(requestPickupNumber_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(requestPickupNumber_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;requestPickupNumber_args typedOther = (requestPickupNumber_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("requestPickupNumber_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("providerId:");sb.append(this.providerId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class requestPickupNumber_result implements org.apache.thrift.TBase<requestPickupNumber_result, requestPickupNumber_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("requestPickupNumber_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(requestPickupNumber_result.class, metaDataMap);}public requestPickupNumber_result() {}public requestPickupNumber_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public requestPickupNumber_result(requestPickupNumber_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public requestPickupNumber_result deepCopy() {return new requestPickupNumber_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof requestPickupNumber_result)return this.equals((requestPickupNumber_result)that);return false;}public boolean equals(requestPickupNumber_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(requestPickupNumber_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;requestPickupNumber_result typedOther = (requestPickupNumber_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("requestPickupNumber_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class authorizePickup_args implements org.apache.thrift.TBase<authorizePickup_args, authorizePickup_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authorizePickup_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField PICKUP_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("pickupNumber", org.apache.thrift.protocol.TType.STRING, (short)2);private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)3);private long orderId; // requiredprivate String pickupNumber; // requiredprivate long providerId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),PICKUP_NUMBER((short)2, "pickupNumber"),PROVIDER_ID((short)3, "providerId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // PICKUP_NUMBERreturn PICKUP_NUMBER;case 3: // PROVIDER_IDreturn PROVIDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private static final int __PROVIDERID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.PICKUP_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("pickupNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authorizePickup_args.class, metaDataMap);}public authorizePickup_args() {}public authorizePickup_args(long orderId,String pickupNumber,long providerId){this();this.orderId = orderId;setOrderIdIsSet(true);this.pickupNumber = pickupNumber;this.providerId = providerId;setProviderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public authorizePickup_args(authorizePickup_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;if (other.isSetPickupNumber()) {this.pickupNumber = other.pickupNumber;}this.providerId = other.providerId;}public authorizePickup_args deepCopy() {return new authorizePickup_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;this.pickupNumber = null;setProviderIdIsSet(false);this.providerId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public String getPickupNumber() {return this.pickupNumber;}public void setPickupNumber(String pickupNumber) {this.pickupNumber = pickupNumber;}public void unsetPickupNumber() {this.pickupNumber = null;}/** Returns true if field pickupNumber is set (has been assigned a value) and false otherwise */public boolean isSetPickupNumber() {return this.pickupNumber != null;}public void setPickupNumberIsSet(boolean value) {if (!value) {this.pickupNumber = null;}}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case PICKUP_NUMBER:if (value == null) {unsetPickupNumber();} else {setPickupNumber((String)value);}break;case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case PICKUP_NUMBER:return getPickupNumber();case PROVIDER_ID:return Long.valueOf(getProviderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case PICKUP_NUMBER:return isSetPickupNumber();case PROVIDER_ID:return isSetProviderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof authorizePickup_args)return this.equals((authorizePickup_args)that);return false;}public boolean equals(authorizePickup_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_pickupNumber = true && this.isSetPickupNumber();boolean that_present_pickupNumber = true && that.isSetPickupNumber();if (this_present_pickupNumber || that_present_pickupNumber) {if (!(this_present_pickupNumber && that_present_pickupNumber))return false;if (!this.pickupNumber.equals(that.pickupNumber))return false;}boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(authorizePickup_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;authorizePickup_args typedOther = (authorizePickup_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPickupNumber()).compareTo(typedOther.isSetPickupNumber());if (lastComparison != 0) {return lastComparison;}if (isSetPickupNumber()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickupNumber, typedOther.pickupNumber);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // PICKUP_NUMBERif (field.type == org.apache.thrift.protocol.TType.STRING) {this.pickupNumber = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();if (this.pickupNumber != null) {oprot.writeFieldBegin(PICKUP_NUMBER_FIELD_DESC);oprot.writeString(this.pickupNumber);oprot.writeFieldEnd();}oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("authorizePickup_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("pickupNumber:");if (this.pickupNumber == null) {sb.append("null");} else {sb.append(this.pickupNumber);}first = false;if (!first) sb.append(", ");sb.append("providerId:");sb.append(this.providerId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class authorizePickup_result implements org.apache.thrift.TBase<authorizePickup_result, authorizePickup_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authorizePickup_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authorizePickup_result.class, metaDataMap);}public authorizePickup_result() {}public authorizePickup_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public authorizePickup_result(authorizePickup_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public authorizePickup_result deepCopy() {return new authorizePickup_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof authorizePickup_result)return this.equals((authorizePickup_result)that);return false;}public boolean equals(authorizePickup_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(authorizePickup_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;authorizePickup_result typedOther = (authorizePickup_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("authorizePickup_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markDoasAsPickedUp_args implements org.apache.thrift.TBase<markDoasAsPickedUp_args, markDoasAsPickedUp_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markDoasAsPickedUp_args");private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField PICKUP_DETAILS_FIELD_DESC = new org.apache.thrift.protocol.TField("pickupDetails", org.apache.thrift.protocol.TType.MAP, (short)2);private long providerId; // requiredprivate Map<String,String> pickupDetails; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PROVIDER_ID((short)1, "providerId"),PICKUP_DETAILS((short)2, "pickupDetails");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PROVIDER_IDreturn PROVIDER_ID;case 2: // PICKUP_DETAILSreturn PICKUP_DETAILS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __PROVIDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.PICKUP_DETAILS, new org.apache.thrift.meta_data.FieldMetaData("pickupDetails", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markDoasAsPickedUp_args.class, metaDataMap);}public markDoasAsPickedUp_args() {}public markDoasAsPickedUp_args(long providerId,Map<String,String> pickupDetails){this();this.providerId = providerId;setProviderIdIsSet(true);this.pickupDetails = pickupDetails;}/*** Performs a deep copy on <i>other</i>.*/public markDoasAsPickedUp_args(markDoasAsPickedUp_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.providerId = other.providerId;if (other.isSetPickupDetails()) {Map<String,String> __this__pickupDetails = new HashMap<String,String>();for (Map.Entry<String, String> other_element : other.pickupDetails.entrySet()) {String other_element_key = other_element.getKey();String other_element_value = other_element.getValue();String __this__pickupDetails_copy_key = other_element_key;String __this__pickupDetails_copy_value = other_element_value;__this__pickupDetails.put(__this__pickupDetails_copy_key, __this__pickupDetails_copy_value);}this.pickupDetails = __this__pickupDetails;}}public markDoasAsPickedUp_args deepCopy() {return new markDoasAsPickedUp_args(this);}@Overridepublic void clear() {setProviderIdIsSet(false);this.providerId = 0;this.pickupDetails = null;}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public int getPickupDetailsSize() {return (this.pickupDetails == null) ? 0 : this.pickupDetails.size();}public void putToPickupDetails(String key, String val) {if (this.pickupDetails == null) {this.pickupDetails = new HashMap<String,String>();}this.pickupDetails.put(key, val);}public Map<String,String> getPickupDetails() {return this.pickupDetails;}public void setPickupDetails(Map<String,String> pickupDetails) {this.pickupDetails = pickupDetails;}public void unsetPickupDetails() {this.pickupDetails = null;}/** Returns true if field pickupDetails is set (has been assigned a value) and false otherwise */public boolean isSetPickupDetails() {return this.pickupDetails != null;}public void setPickupDetailsIsSet(boolean value) {if (!value) {this.pickupDetails = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;case PICKUP_DETAILS:if (value == null) {unsetPickupDetails();} else {setPickupDetails((Map<String,String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PROVIDER_ID:return Long.valueOf(getProviderId());case PICKUP_DETAILS:return getPickupDetails();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PROVIDER_ID:return isSetProviderId();case PICKUP_DETAILS:return isSetPickupDetails();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markDoasAsPickedUp_args)return this.equals((markDoasAsPickedUp_args)that);return false;}public boolean equals(markDoasAsPickedUp_args that) {if (that == null)return false;boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}boolean this_present_pickupDetails = true && this.isSetPickupDetails();boolean that_present_pickupDetails = true && that.isSetPickupDetails();if (this_present_pickupDetails || that_present_pickupDetails) {if (!(this_present_pickupDetails && that_present_pickupDetails))return false;if (!this.pickupDetails.equals(that.pickupDetails))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markDoasAsPickedUp_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markDoasAsPickedUp_args typedOther = (markDoasAsPickedUp_args)other;lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPickupDetails()).compareTo(typedOther.isSetPickupDetails());if (lastComparison != 0) {return lastComparison;}if (isSetPickupDetails()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickupDetails, typedOther.pickupDetails);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // PICKUP_DETAILSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map211 = iprot.readMapBegin();this.pickupDetails = new HashMap<String,String>(2*_map211.size);for (int _i212 = 0; _i212 < _map211.size; ++_i212){String _key213; // requiredString _val214; // required_key213 = iprot.readString();_val214 = iprot.readString();this.pickupDetails.put(_key213, _val214);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();if (this.pickupDetails != null) {oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.pickupDetails.size()));for (Map.Entry<String, String> _iter215 : this.pickupDetails.entrySet()){oprot.writeString(_iter215.getKey());oprot.writeString(_iter215.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markDoasAsPickedUp_args(");boolean first = true;sb.append("providerId:");sb.append(this.providerId);first = false;if (!first) sb.append(", ");sb.append("pickupDetails:");if (this.pickupDetails == null) {sb.append("null");} else {sb.append(this.pickupDetails);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markDoasAsPickedUp_result implements org.apache.thrift.TBase<markDoasAsPickedUp_result, markDoasAsPickedUp_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markDoasAsPickedUp_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markDoasAsPickedUp_result.class, metaDataMap);}public markDoasAsPickedUp_result() {}/*** Performs a deep copy on <i>other</i>.*/public markDoasAsPickedUp_result(markDoasAsPickedUp_result other) {}public markDoasAsPickedUp_result deepCopy() {return new markDoasAsPickedUp_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markDoasAsPickedUp_result)return this.equals((markDoasAsPickedUp_result)that);return false;}public boolean equals(markDoasAsPickedUp_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markDoasAsPickedUp_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markDoasAsPickedUp_result typedOther = (markDoasAsPickedUp_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markDoasAsPickedUp_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getDoasNotPickedUp_args implements org.apache.thrift.TBase<getDoasNotPickedUp_args, getDoasNotPickedUp_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDoasNotPickedUp_args");private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);private long providerId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PROVIDER_ID((short)1, "providerId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PROVIDER_IDreturn PROVIDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __PROVIDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDoasNotPickedUp_args.class, metaDataMap);}public getDoasNotPickedUp_args() {}public getDoasNotPickedUp_args(long providerId){this();this.providerId = providerId;setProviderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getDoasNotPickedUp_args(getDoasNotPickedUp_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.providerId = other.providerId;}public getDoasNotPickedUp_args deepCopy() {return new getDoasNotPickedUp_args(this);}@Overridepublic void clear() {setProviderIdIsSet(false);this.providerId = 0;}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PROVIDER_ID:return Long.valueOf(getProviderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PROVIDER_ID:return isSetProviderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getDoasNotPickedUp_args)return this.equals((getDoasNotPickedUp_args)that);return false;}public boolean equals(getDoasNotPickedUp_args that) {if (that == null)return false;boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getDoasNotPickedUp_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getDoasNotPickedUp_args typedOther = (getDoasNotPickedUp_args)other;lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getDoasNotPickedUp_args(");boolean first = true;sb.append("providerId:");sb.append(this.providerId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getDoasNotPickedUp_result implements org.apache.thrift.TBase<getDoasNotPickedUp_result, getDoasNotPickedUp_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDoasNotPickedUp_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Order> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDoasNotPickedUp_result.class, metaDataMap);}public getDoasNotPickedUp_result() {}public getDoasNotPickedUp_result(List<Order> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getDoasNotPickedUp_result(getDoasNotPickedUp_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}}public getDoasNotPickedUp_result deepCopy() {return new getDoasNotPickedUp_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getDoasNotPickedUp_result)return this.equals((getDoasNotPickedUp_result)that);return false;}public boolean equals(getDoasNotPickedUp_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getDoasNotPickedUp_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getDoasNotPickedUp_result typedOther = (getDoasNotPickedUp_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list216 = iprot.readListBegin();this.success = new ArrayList<Order>(_list216.size);for (int _i217 = 0; _i217 < _list216.size; ++_i217){Order _elem218; // required_elem218 = new Order();_elem218.read(iprot);this.success.add(_elem218);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter219 : this.success){_iter219.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getDoasNotPickedUp_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markReturnOrdersAsPickedUp_args implements org.apache.thrift.TBase<markReturnOrdersAsPickedUp_args, markReturnOrdersAsPickedUp_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markReturnOrdersAsPickedUp_args");private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField PICKUP_DETAILS_FIELD_DESC = new org.apache.thrift.protocol.TField("pickupDetails", org.apache.thrift.protocol.TType.MAP, (short)2);private long providerId; // requiredprivate Map<String,String> pickupDetails; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PROVIDER_ID((short)1, "providerId"),PICKUP_DETAILS((short)2, "pickupDetails");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PROVIDER_IDreturn PROVIDER_ID;case 2: // PICKUP_DETAILSreturn PICKUP_DETAILS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __PROVIDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.PICKUP_DETAILS, new org.apache.thrift.meta_data.FieldMetaData("pickupDetails", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markReturnOrdersAsPickedUp_args.class, metaDataMap);}public markReturnOrdersAsPickedUp_args() {}public markReturnOrdersAsPickedUp_args(long providerId,Map<String,String> pickupDetails){this();this.providerId = providerId;setProviderIdIsSet(true);this.pickupDetails = pickupDetails;}/*** Performs a deep copy on <i>other</i>.*/public markReturnOrdersAsPickedUp_args(markReturnOrdersAsPickedUp_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.providerId = other.providerId;if (other.isSetPickupDetails()) {Map<String,String> __this__pickupDetails = new HashMap<String,String>();for (Map.Entry<String, String> other_element : other.pickupDetails.entrySet()) {String other_element_key = other_element.getKey();String other_element_value = other_element.getValue();String __this__pickupDetails_copy_key = other_element_key;String __this__pickupDetails_copy_value = other_element_value;__this__pickupDetails.put(__this__pickupDetails_copy_key, __this__pickupDetails_copy_value);}this.pickupDetails = __this__pickupDetails;}}public markReturnOrdersAsPickedUp_args deepCopy() {return new markReturnOrdersAsPickedUp_args(this);}@Overridepublic void clear() {setProviderIdIsSet(false);this.providerId = 0;this.pickupDetails = null;}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public int getPickupDetailsSize() {return (this.pickupDetails == null) ? 0 : this.pickupDetails.size();}public void putToPickupDetails(String key, String val) {if (this.pickupDetails == null) {this.pickupDetails = new HashMap<String,String>();}this.pickupDetails.put(key, val);}public Map<String,String> getPickupDetails() {return this.pickupDetails;}public void setPickupDetails(Map<String,String> pickupDetails) {this.pickupDetails = pickupDetails;}public void unsetPickupDetails() {this.pickupDetails = null;}/** Returns true if field pickupDetails is set (has been assigned a value) and false otherwise */public boolean isSetPickupDetails() {return this.pickupDetails != null;}public void setPickupDetailsIsSet(boolean value) {if (!value) {this.pickupDetails = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;case PICKUP_DETAILS:if (value == null) {unsetPickupDetails();} else {setPickupDetails((Map<String,String>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PROVIDER_ID:return Long.valueOf(getProviderId());case PICKUP_DETAILS:return getPickupDetails();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PROVIDER_ID:return isSetProviderId();case PICKUP_DETAILS:return isSetPickupDetails();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markReturnOrdersAsPickedUp_args)return this.equals((markReturnOrdersAsPickedUp_args)that);return false;}public boolean equals(markReturnOrdersAsPickedUp_args that) {if (that == null)return false;boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}boolean this_present_pickupDetails = true && this.isSetPickupDetails();boolean that_present_pickupDetails = true && that.isSetPickupDetails();if (this_present_pickupDetails || that_present_pickupDetails) {if (!(this_present_pickupDetails && that_present_pickupDetails))return false;if (!this.pickupDetails.equals(that.pickupDetails))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markReturnOrdersAsPickedUp_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markReturnOrdersAsPickedUp_args typedOther = (markReturnOrdersAsPickedUp_args)other;lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPickupDetails()).compareTo(typedOther.isSetPickupDetails());if (lastComparison != 0) {return lastComparison;}if (isSetPickupDetails()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickupDetails, typedOther.pickupDetails);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // PICKUP_DETAILSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map220 = iprot.readMapBegin();this.pickupDetails = new HashMap<String,String>(2*_map220.size);for (int _i221 = 0; _i221 < _map220.size; ++_i221){String _key222; // requiredString _val223; // required_key222 = iprot.readString();_val223 = iprot.readString();this.pickupDetails.put(_key222, _val223);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();if (this.pickupDetails != null) {oprot.writeFieldBegin(PICKUP_DETAILS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.pickupDetails.size()));for (Map.Entry<String, String> _iter224 : this.pickupDetails.entrySet()){oprot.writeString(_iter224.getKey());oprot.writeString(_iter224.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markReturnOrdersAsPickedUp_args(");boolean first = true;sb.append("providerId:");sb.append(this.providerId);first = false;if (!first) sb.append(", ");sb.append("pickupDetails:");if (this.pickupDetails == null) {sb.append("null");} else {sb.append(this.pickupDetails);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markReturnOrdersAsPickedUp_result implements org.apache.thrift.TBase<markReturnOrdersAsPickedUp_result, markReturnOrdersAsPickedUp_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markReturnOrdersAsPickedUp_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markReturnOrdersAsPickedUp_result.class, metaDataMap);}public markReturnOrdersAsPickedUp_result() {}/*** Performs a deep copy on <i>other</i>.*/public markReturnOrdersAsPickedUp_result(markReturnOrdersAsPickedUp_result other) {}public markReturnOrdersAsPickedUp_result deepCopy() {return new markReturnOrdersAsPickedUp_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markReturnOrdersAsPickedUp_result)return this.equals((markReturnOrdersAsPickedUp_result)that);return false;}public boolean equals(markReturnOrdersAsPickedUp_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markReturnOrdersAsPickedUp_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markReturnOrdersAsPickedUp_result typedOther = (markReturnOrdersAsPickedUp_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markReturnOrdersAsPickedUp_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getReturnOrdersNotPickedUp_args implements org.apache.thrift.TBase<getReturnOrdersNotPickedUp_args, getReturnOrdersNotPickedUp_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrdersNotPickedUp_args");private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);private long providerId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {PROVIDER_ID((short)1, "providerId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // PROVIDER_IDreturn PROVIDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __PROVIDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnOrdersNotPickedUp_args.class, metaDataMap);}public getReturnOrdersNotPickedUp_args() {}public getReturnOrdersNotPickedUp_args(long providerId){this();this.providerId = providerId;setProviderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getReturnOrdersNotPickedUp_args(getReturnOrdersNotPickedUp_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.providerId = other.providerId;}public getReturnOrdersNotPickedUp_args deepCopy() {return new getReturnOrdersNotPickedUp_args(this);}@Overridepublic void clear() {setProviderIdIsSet(false);this.providerId = 0;}public long getProviderId() {return this.providerId;}public void setProviderId(long providerId) {this.providerId = providerId;setProviderIdIsSet(true);}public void unsetProviderId() {__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);}/** Returns true if field providerId is set (has been assigned a value) and false otherwise */public boolean isSetProviderId() {return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);}public void setProviderIdIsSet(boolean value) {__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case PROVIDER_ID:if (value == null) {unsetProviderId();} else {setProviderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case PROVIDER_ID:return Long.valueOf(getProviderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case PROVIDER_ID:return isSetProviderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getReturnOrdersNotPickedUp_args)return this.equals((getReturnOrdersNotPickedUp_args)that);return false;}public boolean equals(getReturnOrdersNotPickedUp_args that) {if (that == null)return false;boolean this_present_providerId = true;boolean that_present_providerId = true;if (this_present_providerId || that_present_providerId) {if (!(this_present_providerId && that_present_providerId))return false;if (this.providerId != that.providerId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getReturnOrdersNotPickedUp_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getReturnOrdersNotPickedUp_args typedOther = (getReturnOrdersNotPickedUp_args)other;lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());if (lastComparison != 0) {return lastComparison;}if (isSetProviderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.providerId = iprot.readI64();setProviderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.providerId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getReturnOrdersNotPickedUp_args(");boolean first = true;sb.append("providerId:");sb.append(this.providerId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getReturnOrdersNotPickedUp_result implements org.apache.thrift.TBase<getReturnOrdersNotPickedUp_result, getReturnOrdersNotPickedUp_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrdersNotPickedUp_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Order> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnOrdersNotPickedUp_result.class, metaDataMap);}public getReturnOrdersNotPickedUp_result() {}public getReturnOrdersNotPickedUp_result(List<Order> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getReturnOrdersNotPickedUp_result(getReturnOrdersNotPickedUp_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}}public getReturnOrdersNotPickedUp_result deepCopy() {return new getReturnOrdersNotPickedUp_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getReturnOrdersNotPickedUp_result)return this.equals((getReturnOrdersNotPickedUp_result)that);return false;}public boolean equals(getReturnOrdersNotPickedUp_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getReturnOrdersNotPickedUp_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getReturnOrdersNotPickedUp_result typedOther = (getReturnOrdersNotPickedUp_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list225 = iprot.readListBegin();this.success = new ArrayList<Order>(_list225.size);for (int _i226 = 0; _i226 < _list225.size; ++_i226){Order _elem227; // required_elem227 = new Order();_elem227.read(iprot);this.success.add(_elem227);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter228 : this.success){_iter228.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getReturnOrdersNotPickedUp_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class receiveReturn_args implements org.apache.thrift.TBase<receiveReturn_args, receiveReturn_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("receiveReturn_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField RECEIVE_CONDITION_FIELD_DESC = new org.apache.thrift.protocol.TField("receiveCondition", org.apache.thrift.protocol.TType.I64, (short)2);private long orderId; // requiredprivate long receiveCondition; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),RECEIVE_CONDITION((short)2, "receiveCondition");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // RECEIVE_CONDITIONreturn RECEIVE_CONDITION;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private static final int __RECEIVECONDITION_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.RECEIVE_CONDITION, new org.apache.thrift.meta_data.FieldMetaData("receiveCondition", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(receiveReturn_args.class, metaDataMap);}public receiveReturn_args() {}public receiveReturn_args(long orderId,long receiveCondition){this();this.orderId = orderId;setOrderIdIsSet(true);this.receiveCondition = receiveCondition;setReceiveConditionIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public receiveReturn_args(receiveReturn_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;this.receiveCondition = other.receiveCondition;}public receiveReturn_args deepCopy() {return new receiveReturn_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;setReceiveConditionIsSet(false);this.receiveCondition = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public long getReceiveCondition() {return this.receiveCondition;}public void setReceiveCondition(long receiveCondition) {this.receiveCondition = receiveCondition;setReceiveConditionIsSet(true);}public void unsetReceiveCondition() {__isset_bit_vector.clear(__RECEIVECONDITION_ISSET_ID);}/** Returns true if field receiveCondition is set (has been assigned a value) and false otherwise */public boolean isSetReceiveCondition() {return __isset_bit_vector.get(__RECEIVECONDITION_ISSET_ID);}public void setReceiveConditionIsSet(boolean value) {__isset_bit_vector.set(__RECEIVECONDITION_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case RECEIVE_CONDITION:if (value == null) {unsetReceiveCondition();} else {setReceiveCondition((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case RECEIVE_CONDITION:return Long.valueOf(getReceiveCondition());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case RECEIVE_CONDITION:return isSetReceiveCondition();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof receiveReturn_args)return this.equals((receiveReturn_args)that);return false;}public boolean equals(receiveReturn_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_receiveCondition = true;boolean that_present_receiveCondition = true;if (this_present_receiveCondition || that_present_receiveCondition) {if (!(this_present_receiveCondition && that_present_receiveCondition))return false;if (this.receiveCondition != that.receiveCondition)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(receiveReturn_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;receiveReturn_args typedOther = (receiveReturn_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReceiveCondition()).compareTo(typedOther.isSetReceiveCondition());if (lastComparison != 0) {return lastComparison;}if (isSetReceiveCondition()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.receiveCondition, typedOther.receiveCondition);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // RECEIVE_CONDITIONif (field.type == org.apache.thrift.protocol.TType.I64) {this.receiveCondition = iprot.readI64();setReceiveConditionIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldBegin(RECEIVE_CONDITION_FIELD_DESC);oprot.writeI64(this.receiveCondition);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("receiveReturn_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("receiveCondition:");sb.append(this.receiveCondition);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class receiveReturn_result implements org.apache.thrift.TBase<receiveReturn_result, receiveReturn_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("receiveReturn_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(receiveReturn_result.class, metaDataMap);}public receiveReturn_result() {}public receiveReturn_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public receiveReturn_result(receiveReturn_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public receiveReturn_result deepCopy() {return new receiveReturn_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof receiveReturn_result)return this.equals((receiveReturn_result)that);return false;}public boolean equals(receiveReturn_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(receiveReturn_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;receiveReturn_result typedOther = (receiveReturn_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("receiveReturn_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class validateDoa_args implements org.apache.thrift.TBase<validateDoa_args, validateDoa_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateDoa_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField IS_VALID_FIELD_DESC = new org.apache.thrift.protocol.TField("isValid", org.apache.thrift.protocol.TType.BOOL, (short)2);private long orderId; // requiredprivate boolean isValid; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),IS_VALID((short)2, "isValid");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // IS_VALIDreturn IS_VALID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private static final int __ISVALID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.IS_VALID, new org.apache.thrift.meta_data.FieldMetaData("isValid", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateDoa_args.class, metaDataMap);}public validateDoa_args() {}public validateDoa_args(long orderId,boolean isValid){this();this.orderId = orderId;setOrderIdIsSet(true);this.isValid = isValid;setIsValidIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public validateDoa_args(validateDoa_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;this.isValid = other.isValid;}public validateDoa_args deepCopy() {return new validateDoa_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;setIsValidIsSet(false);this.isValid = false;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public boolean isIsValid() {return this.isValid;}public void setIsValid(boolean isValid) {this.isValid = isValid;setIsValidIsSet(true);}public void unsetIsValid() {__isset_bit_vector.clear(__ISVALID_ISSET_ID);}/** Returns true if field isValid is set (has been assigned a value) and false otherwise */public boolean isSetIsValid() {return __isset_bit_vector.get(__ISVALID_ISSET_ID);}public void setIsValidIsSet(boolean value) {__isset_bit_vector.set(__ISVALID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case IS_VALID:if (value == null) {unsetIsValid();} else {setIsValid((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case IS_VALID:return Boolean.valueOf(isIsValid());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case IS_VALID:return isSetIsValid();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof validateDoa_args)return this.equals((validateDoa_args)that);return false;}public boolean equals(validateDoa_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_isValid = true;boolean that_present_isValid = true;if (this_present_isValid || that_present_isValid) {if (!(this_present_isValid && that_present_isValid))return false;if (this.isValid != that.isValid)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(validateDoa_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;validateDoa_args typedOther = (validateDoa_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsValid()).compareTo(typedOther.isSetIsValid());if (lastComparison != 0) {return lastComparison;}if (isSetIsValid()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isValid, typedOther.isValid);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // IS_VALIDif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.isValid = iprot.readBool();setIsValidIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldBegin(IS_VALID_FIELD_DESC);oprot.writeBool(this.isValid);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("validateDoa_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("isValid:");sb.append(this.isValid);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class validateDoa_result implements org.apache.thrift.TBase<validateDoa_result, validateDoa_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateDoa_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateDoa_result.class, metaDataMap);}public validateDoa_result() {}public validateDoa_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public validateDoa_result(validateDoa_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public validateDoa_result deepCopy() {return new validateDoa_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof validateDoa_result)return this.equals((validateDoa_result)that);return false;}public boolean equals(validateDoa_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(validateDoa_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;validateDoa_result typedOther = (validateDoa_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("validateDoa_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class validateReturnProduct_args implements org.apache.thrift.TBase<validateReturnProduct_args, validateReturnProduct_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateReturnProduct_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField IS_USABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("isUsable", org.apache.thrift.protocol.TType.BOOL, (short)2);private long orderId; // requiredprivate boolean isUsable; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),IS_USABLE((short)2, "isUsable");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // IS_USABLEreturn IS_USABLE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private static final int __ISUSABLE_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.IS_USABLE, new org.apache.thrift.meta_data.FieldMetaData("isUsable", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateReturnProduct_args.class, metaDataMap);}public validateReturnProduct_args() {}public validateReturnProduct_args(long orderId,boolean isUsable){this();this.orderId = orderId;setOrderIdIsSet(true);this.isUsable = isUsable;setIsUsableIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public validateReturnProduct_args(validateReturnProduct_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;this.isUsable = other.isUsable;}public validateReturnProduct_args deepCopy() {return new validateReturnProduct_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;setIsUsableIsSet(false);this.isUsable = false;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public boolean isIsUsable() {return this.isUsable;}public void setIsUsable(boolean isUsable) {this.isUsable = isUsable;setIsUsableIsSet(true);}public void unsetIsUsable() {__isset_bit_vector.clear(__ISUSABLE_ISSET_ID);}/** Returns true if field isUsable is set (has been assigned a value) and false otherwise */public boolean isSetIsUsable() {return __isset_bit_vector.get(__ISUSABLE_ISSET_ID);}public void setIsUsableIsSet(boolean value) {__isset_bit_vector.set(__ISUSABLE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case IS_USABLE:if (value == null) {unsetIsUsable();} else {setIsUsable((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case IS_USABLE:return Boolean.valueOf(isIsUsable());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case IS_USABLE:return isSetIsUsable();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof validateReturnProduct_args)return this.equals((validateReturnProduct_args)that);return false;}public boolean equals(validateReturnProduct_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_isUsable = true;boolean that_present_isUsable = true;if (this_present_isUsable || that_present_isUsable) {if (!(this_present_isUsable && that_present_isUsable))return false;if (this.isUsable != that.isUsable)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(validateReturnProduct_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;validateReturnProduct_args typedOther = (validateReturnProduct_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsUsable()).compareTo(typedOther.isSetIsUsable());if (lastComparison != 0) {return lastComparison;}if (isSetIsUsable()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isUsable, typedOther.isUsable);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // IS_USABLEif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.isUsable = iprot.readBool();setIsUsableIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldBegin(IS_USABLE_FIELD_DESC);oprot.writeBool(this.isUsable);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("validateReturnProduct_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("isUsable:");sb.append(this.isUsable);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class validateReturnProduct_result implements org.apache.thrift.TBase<validateReturnProduct_result, validateReturnProduct_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateReturnProduct_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateReturnProduct_result.class, metaDataMap);}public validateReturnProduct_result() {}public validateReturnProduct_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public validateReturnProduct_result(validateReturnProduct_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public validateReturnProduct_result deepCopy() {return new validateReturnProduct_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof validateReturnProduct_result)return this.equals((validateReturnProduct_result)that);return false;}public boolean equals(validateReturnProduct_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(validateReturnProduct_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;validateReturnProduct_result typedOther = (validateReturnProduct_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("validateReturnProduct_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class reshipOrder_args implements org.apache.thrift.TBase<reshipOrder_args, reshipOrder_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipOrder_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private long orderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipOrder_args.class, metaDataMap);}public reshipOrder_args() {}public reshipOrder_args(long orderId){this();this.orderId = orderId;setOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public reshipOrder_args(reshipOrder_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;}public reshipOrder_args deepCopy() {return new reshipOrder_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof reshipOrder_args)return this.equals((reshipOrder_args)that);return false;}public boolean equals(reshipOrder_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(reshipOrder_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;reshipOrder_args typedOther = (reshipOrder_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("reshipOrder_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class reshipOrder_result implements org.apache.thrift.TBase<reshipOrder_result, reshipOrder_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipOrder_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private long success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipOrder_result.class, metaDataMap);}public reshipOrder_result() {}public reshipOrder_result(long success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public reshipOrder_result(reshipOrder_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public reshipOrder_result deepCopy() {return new reshipOrder_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;this.ex = null;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof reshipOrder_result)return this.equals((reshipOrder_result)that);return false;}public boolean equals(reshipOrder_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(reshipOrder_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;reshipOrder_result typedOther = (reshipOrder_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("reshipOrder_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class refundOrder_args implements org.apache.thrift.TBase<refundOrder_args, refundOrder_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundOrder_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField REFUNDED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("refundedBy", org.apache.thrift.protocol.TType.STRING, (short)2);private static final org.apache.thrift.protocol.TField REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("reason", org.apache.thrift.protocol.TType.STRING, (short)3);private long orderId; // requiredprivate String refundedBy; // requiredprivate String reason; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),REFUNDED_BY((short)2, "refundedBy"),REASON((short)3, "reason");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // REFUNDED_BYreturn REFUNDED_BY;case 3: // REASONreturn REASON;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.REFUNDED_BY, new org.apache.thrift.meta_data.FieldMetaData("refundedBy", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.REASON, new org.apache.thrift.meta_data.FieldMetaData("reason", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundOrder_args.class, metaDataMap);}public refundOrder_args() {}public refundOrder_args(long orderId,String refundedBy,String reason){this();this.orderId = orderId;setOrderIdIsSet(true);this.refundedBy = refundedBy;this.reason = reason;}/*** Performs a deep copy on <i>other</i>.*/public refundOrder_args(refundOrder_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;if (other.isSetRefundedBy()) {this.refundedBy = other.refundedBy;}if (other.isSetReason()) {this.reason = other.reason;}}public refundOrder_args deepCopy() {return new refundOrder_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;this.refundedBy = null;this.reason = null;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public String getRefundedBy() {return this.refundedBy;}public void setRefundedBy(String refundedBy) {this.refundedBy = refundedBy;}public void unsetRefundedBy() {this.refundedBy = null;}/** Returns true if field refundedBy is set (has been assigned a value) and false otherwise */public boolean isSetRefundedBy() {return this.refundedBy != null;}public void setRefundedByIsSet(boolean value) {if (!value) {this.refundedBy = null;}}public String getReason() {return this.reason;}public void setReason(String reason) {this.reason = reason;}public void unsetReason() {this.reason = null;}/** Returns true if field reason is set (has been assigned a value) and false otherwise */public boolean isSetReason() {return this.reason != null;}public void setReasonIsSet(boolean value) {if (!value) {this.reason = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case REFUNDED_BY:if (value == null) {unsetRefundedBy();} else {setRefundedBy((String)value);}break;case REASON:if (value == null) {unsetReason();} else {setReason((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case REFUNDED_BY:return getRefundedBy();case REASON:return getReason();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case REFUNDED_BY:return isSetRefundedBy();case REASON:return isSetReason();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof refundOrder_args)return this.equals((refundOrder_args)that);return false;}public boolean equals(refundOrder_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_refundedBy = true && this.isSetRefundedBy();boolean that_present_refundedBy = true && that.isSetRefundedBy();if (this_present_refundedBy || that_present_refundedBy) {if (!(this_present_refundedBy && that_present_refundedBy))return false;if (!this.refundedBy.equals(that.refundedBy))return false;}boolean this_present_reason = true && this.isSetReason();boolean that_present_reason = true && that.isSetReason();if (this_present_reason || that_present_reason) {if (!(this_present_reason && that_present_reason))return false;if (!this.reason.equals(that.reason))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(refundOrder_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;refundOrder_args typedOther = (refundOrder_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetRefundedBy()).compareTo(typedOther.isSetRefundedBy());if (lastComparison != 0) {return lastComparison;}if (isSetRefundedBy()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundedBy, typedOther.refundedBy);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReason()).compareTo(typedOther.isSetReason());if (lastComparison != 0) {return lastComparison;}if (isSetReason()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reason, typedOther.reason);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // REFUNDED_BYif (field.type == org.apache.thrift.protocol.TType.STRING) {this.refundedBy = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // REASONif (field.type == org.apache.thrift.protocol.TType.STRING) {this.reason = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();if (this.refundedBy != null) {oprot.writeFieldBegin(REFUNDED_BY_FIELD_DESC);oprot.writeString(this.refundedBy);oprot.writeFieldEnd();}if (this.reason != null) {oprot.writeFieldBegin(REASON_FIELD_DESC);oprot.writeString(this.reason);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("refundOrder_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("refundedBy:");if (this.refundedBy == null) {sb.append("null");} else {sb.append(this.refundedBy);}first = false;if (!first) sb.append(", ");sb.append("reason:");if (this.reason == null) {sb.append("null");} else {sb.append(this.reason);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class refundOrder_result implements org.apache.thrift.TBase<refundOrder_result, refundOrder_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundOrder_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundOrder_result.class, metaDataMap);}public refundOrder_result() {}public refundOrder_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public refundOrder_result(refundOrder_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public refundOrder_result deepCopy() {return new refundOrder_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof refundOrder_result)return this.equals((refundOrder_result)that);return false;}public boolean equals(refundOrder_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(refundOrder_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;refundOrder_result typedOther = (refundOrder_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("refundOrder_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getReturnOrders_args implements org.apache.thrift.TBase<getReturnOrders_args, getReturnOrders_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrders_args");private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField FROM_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("fromDate", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField TO_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("toDate", org.apache.thrift.protocol.TType.I64, (short)3);private long warehouseId; // requiredprivate long fromDate; // requiredprivate long toDate; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {WAREHOUSE_ID((short)1, "warehouseId"),FROM_DATE((short)2, "fromDate"),TO_DATE((short)3, "toDate");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // WAREHOUSE_IDreturn WAREHOUSE_ID;case 2: // FROM_DATEreturn FROM_DATE;case 3: // TO_DATEreturn TO_DATE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __WAREHOUSEID_ISSET_ID = 0;private static final int __FROMDATE_ISSET_ID = 1;private static final int __TODATE_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnOrders_args.class, metaDataMap);}public getReturnOrders_args() {}public getReturnOrders_args(long warehouseId,long fromDate,long toDate){this();this.warehouseId = warehouseId;setWarehouseIdIsSet(true);this.fromDate = fromDate;setFromDateIsSet(true);this.toDate = toDate;setToDateIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getReturnOrders_args(getReturnOrders_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.warehouseId = other.warehouseId;this.fromDate = other.fromDate;this.toDate = other.toDate;}public getReturnOrders_args deepCopy() {return new getReturnOrders_args(this);}@Overridepublic void clear() {setWarehouseIdIsSet(false);this.warehouseId = 0;setFromDateIsSet(false);this.fromDate = 0;setToDateIsSet(false);this.toDate = 0;}public long getWarehouseId() {return this.warehouseId;}public void setWarehouseId(long warehouseId) {this.warehouseId = warehouseId;setWarehouseIdIsSet(true);}public void unsetWarehouseId() {__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);}/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */public boolean isSetWarehouseId() {return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);}public void setWarehouseIdIsSet(boolean value) {__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);}public long getFromDate() {return this.fromDate;}public void setFromDate(long fromDate) {this.fromDate = fromDate;setFromDateIsSet(true);}public void unsetFromDate() {__isset_bit_vector.clear(__FROMDATE_ISSET_ID);}/** Returns true if field fromDate is set (has been assigned a value) and false otherwise */public boolean isSetFromDate() {return __isset_bit_vector.get(__FROMDATE_ISSET_ID);}public void setFromDateIsSet(boolean value) {__isset_bit_vector.set(__FROMDATE_ISSET_ID, value);}public long getToDate() {return this.toDate;}public void setToDate(long toDate) {this.toDate = toDate;setToDateIsSet(true);}public void unsetToDate() {__isset_bit_vector.clear(__TODATE_ISSET_ID);}/** Returns true if field toDate is set (has been assigned a value) and false otherwise */public boolean isSetToDate() {return __isset_bit_vector.get(__TODATE_ISSET_ID);}public void setToDateIsSet(boolean value) {__isset_bit_vector.set(__TODATE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case WAREHOUSE_ID:if (value == null) {unsetWarehouseId();} else {setWarehouseId((Long)value);}break;case FROM_DATE:if (value == null) {unsetFromDate();} else {setFromDate((Long)value);}break;case TO_DATE:if (value == null) {unsetToDate();} else {setToDate((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case WAREHOUSE_ID:return Long.valueOf(getWarehouseId());case FROM_DATE:return Long.valueOf(getFromDate());case TO_DATE:return Long.valueOf(getToDate());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case WAREHOUSE_ID:return isSetWarehouseId();case FROM_DATE:return isSetFromDate();case TO_DATE:return isSetToDate();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getReturnOrders_args)return this.equals((getReturnOrders_args)that);return false;}public boolean equals(getReturnOrders_args that) {if (that == null)return false;boolean this_present_warehouseId = true;boolean that_present_warehouseId = true;if (this_present_warehouseId || that_present_warehouseId) {if (!(this_present_warehouseId && that_present_warehouseId))return false;if (this.warehouseId != that.warehouseId)return false;}boolean this_present_fromDate = true;boolean that_present_fromDate = true;if (this_present_fromDate || that_present_fromDate) {if (!(this_present_fromDate && that_present_fromDate))return false;if (this.fromDate != that.fromDate)return false;}boolean this_present_toDate = true;boolean that_present_toDate = true;if (this_present_toDate || that_present_toDate) {if (!(this_present_toDate && that_present_toDate))return false;if (this.toDate != that.toDate)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getReturnOrders_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getReturnOrders_args typedOther = (getReturnOrders_args)other;lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());if (lastComparison != 0) {return lastComparison;}if (isSetWarehouseId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());if (lastComparison != 0) {return lastComparison;}if (isSetFromDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());if (lastComparison != 0) {return lastComparison;}if (isSetToDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.warehouseId = iprot.readI64();setWarehouseIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // FROM_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.fromDate = iprot.readI64();setFromDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // TO_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.toDate = iprot.readI64();setToDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.warehouseId);oprot.writeFieldEnd();oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);oprot.writeI64(this.fromDate);oprot.writeFieldEnd();oprot.writeFieldBegin(TO_DATE_FIELD_DESC);oprot.writeI64(this.toDate);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getReturnOrders_args(");boolean first = true;sb.append("warehouseId:");sb.append(this.warehouseId);first = false;if (!first) sb.append(", ");sb.append("fromDate:");sb.append(this.fromDate);first = false;if (!first) sb.append(", ");sb.append("toDate:");sb.append(this.toDate);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getReturnOrders_result implements org.apache.thrift.TBase<getReturnOrders_result, getReturnOrders_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrders_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<ReturnOrder> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReturnOrder.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnOrders_result.class, metaDataMap);}public getReturnOrders_result() {}public getReturnOrders_result(List<ReturnOrder> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getReturnOrders_result(getReturnOrders_result other) {if (other.isSetSuccess()) {List<ReturnOrder> __this__success = new ArrayList<ReturnOrder>();for (ReturnOrder other_element : other.success) {__this__success.add(new ReturnOrder(other_element));}this.success = __this__success;}}public getReturnOrders_result deepCopy() {return new getReturnOrders_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<ReturnOrder> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(ReturnOrder elem) {if (this.success == null) {this.success = new ArrayList<ReturnOrder>();}this.success.add(elem);}public List<ReturnOrder> getSuccess() {return this.success;}public void setSuccess(List<ReturnOrder> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<ReturnOrder>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getReturnOrders_result)return this.equals((getReturnOrders_result)that);return false;}public boolean equals(getReturnOrders_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getReturnOrders_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getReturnOrders_result typedOther = (getReturnOrders_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list229 = iprot.readListBegin();this.success = new ArrayList<ReturnOrder>(_list229.size);for (int _i230 = 0; _i230 < _list229.size; ++_i230){ReturnOrder _elem231; // required_elem231 = new ReturnOrder();_elem231.read(iprot);this.success.add(_elem231);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (ReturnOrder _iter232 : this.success){_iter232.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getReturnOrders_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllReturnOrders_args implements org.apache.thrift.TBase<getAllReturnOrders_args, getAllReturnOrders_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllReturnOrders_args");private static final org.apache.thrift.protocol.TField ONLY_NOT_PROCESSED_FIELD_DESC = new org.apache.thrift.protocol.TField("onlyNotProcessed", org.apache.thrift.protocol.TType.BOOL, (short)1);private static final org.apache.thrift.protocol.TField FROM_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("fromDate", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField TO_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("toDate", org.apache.thrift.protocol.TType.I64, (short)3);private boolean onlyNotProcessed; // requiredprivate long fromDate; // requiredprivate long toDate; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ONLY_NOT_PROCESSED((short)1, "onlyNotProcessed"),FROM_DATE((short)2, "fromDate"),TO_DATE((short)3, "toDate");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ONLY_NOT_PROCESSEDreturn ONLY_NOT_PROCESSED;case 2: // FROM_DATEreturn FROM_DATE;case 3: // TO_DATEreturn TO_DATE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ONLYNOTPROCESSED_ISSET_ID = 0;private static final int __FROMDATE_ISSET_ID = 1;private static final int __TODATE_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ONLY_NOT_PROCESSED, new org.apache.thrift.meta_data.FieldMetaData("onlyNotProcessed", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllReturnOrders_args.class, metaDataMap);}public getAllReturnOrders_args() {}public getAllReturnOrders_args(boolean onlyNotProcessed,long fromDate,long toDate){this();this.onlyNotProcessed = onlyNotProcessed;setOnlyNotProcessedIsSet(true);this.fromDate = fromDate;setFromDateIsSet(true);this.toDate = toDate;setToDateIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllReturnOrders_args(getAllReturnOrders_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.onlyNotProcessed = other.onlyNotProcessed;this.fromDate = other.fromDate;this.toDate = other.toDate;}public getAllReturnOrders_args deepCopy() {return new getAllReturnOrders_args(this);}@Overridepublic void clear() {setOnlyNotProcessedIsSet(false);this.onlyNotProcessed = false;setFromDateIsSet(false);this.fromDate = 0;setToDateIsSet(false);this.toDate = 0;}public boolean isOnlyNotProcessed() {return this.onlyNotProcessed;}public void setOnlyNotProcessed(boolean onlyNotProcessed) {this.onlyNotProcessed = onlyNotProcessed;setOnlyNotProcessedIsSet(true);}public void unsetOnlyNotProcessed() {__isset_bit_vector.clear(__ONLYNOTPROCESSED_ISSET_ID);}/** Returns true if field onlyNotProcessed is set (has been assigned a value) and false otherwise */public boolean isSetOnlyNotProcessed() {return __isset_bit_vector.get(__ONLYNOTPROCESSED_ISSET_ID);}public void setOnlyNotProcessedIsSet(boolean value) {__isset_bit_vector.set(__ONLYNOTPROCESSED_ISSET_ID, value);}public long getFromDate() {return this.fromDate;}public void setFromDate(long fromDate) {this.fromDate = fromDate;setFromDateIsSet(true);}public void unsetFromDate() {__isset_bit_vector.clear(__FROMDATE_ISSET_ID);}/** Returns true if field fromDate is set (has been assigned a value) and false otherwise */public boolean isSetFromDate() {return __isset_bit_vector.get(__FROMDATE_ISSET_ID);}public void setFromDateIsSet(boolean value) {__isset_bit_vector.set(__FROMDATE_ISSET_ID, value);}public long getToDate() {return this.toDate;}public void setToDate(long toDate) {this.toDate = toDate;setToDateIsSet(true);}public void unsetToDate() {__isset_bit_vector.clear(__TODATE_ISSET_ID);}/** Returns true if field toDate is set (has been assigned a value) and false otherwise */public boolean isSetToDate() {return __isset_bit_vector.get(__TODATE_ISSET_ID);}public void setToDateIsSet(boolean value) {__isset_bit_vector.set(__TODATE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ONLY_NOT_PROCESSED:if (value == null) {unsetOnlyNotProcessed();} else {setOnlyNotProcessed((Boolean)value);}break;case FROM_DATE:if (value == null) {unsetFromDate();} else {setFromDate((Long)value);}break;case TO_DATE:if (value == null) {unsetToDate();} else {setToDate((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ONLY_NOT_PROCESSED:return Boolean.valueOf(isOnlyNotProcessed());case FROM_DATE:return Long.valueOf(getFromDate());case TO_DATE:return Long.valueOf(getToDate());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ONLY_NOT_PROCESSED:return isSetOnlyNotProcessed();case FROM_DATE:return isSetFromDate();case TO_DATE:return isSetToDate();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllReturnOrders_args)return this.equals((getAllReturnOrders_args)that);return false;}public boolean equals(getAllReturnOrders_args that) {if (that == null)return false;boolean this_present_onlyNotProcessed = true;boolean that_present_onlyNotProcessed = true;if (this_present_onlyNotProcessed || that_present_onlyNotProcessed) {if (!(this_present_onlyNotProcessed && that_present_onlyNotProcessed))return false;if (this.onlyNotProcessed != that.onlyNotProcessed)return false;}boolean this_present_fromDate = true;boolean that_present_fromDate = true;if (this_present_fromDate || that_present_fromDate) {if (!(this_present_fromDate && that_present_fromDate))return false;if (this.fromDate != that.fromDate)return false;}boolean this_present_toDate = true;boolean that_present_toDate = true;if (this_present_toDate || that_present_toDate) {if (!(this_present_toDate && that_present_toDate))return false;if (this.toDate != that.toDate)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllReturnOrders_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllReturnOrders_args typedOther = (getAllReturnOrders_args)other;lastComparison = Boolean.valueOf(isSetOnlyNotProcessed()).compareTo(typedOther.isSetOnlyNotProcessed());if (lastComparison != 0) {return lastComparison;}if (isSetOnlyNotProcessed()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.onlyNotProcessed, typedOther.onlyNotProcessed);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());if (lastComparison != 0) {return lastComparison;}if (isSetFromDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());if (lastComparison != 0) {return lastComparison;}if (isSetToDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ONLY_NOT_PROCESSEDif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.onlyNotProcessed = iprot.readBool();setOnlyNotProcessedIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // FROM_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.fromDate = iprot.readI64();setFromDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // TO_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.toDate = iprot.readI64();setToDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ONLY_NOT_PROCESSED_FIELD_DESC);oprot.writeBool(this.onlyNotProcessed);oprot.writeFieldEnd();oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);oprot.writeI64(this.fromDate);oprot.writeFieldEnd();oprot.writeFieldBegin(TO_DATE_FIELD_DESC);oprot.writeI64(this.toDate);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllReturnOrders_args(");boolean first = true;sb.append("onlyNotProcessed:");sb.append(this.onlyNotProcessed);first = false;if (!first) sb.append(", ");sb.append("fromDate:");sb.append(this.fromDate);first = false;if (!first) sb.append(", ");sb.append("toDate:");sb.append(this.toDate);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllReturnOrders_result implements org.apache.thrift.TBase<getAllReturnOrders_result, getAllReturnOrders_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllReturnOrders_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<ReturnOrder> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReturnOrder.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllReturnOrders_result.class, metaDataMap);}public getAllReturnOrders_result() {}public getAllReturnOrders_result(List<ReturnOrder> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllReturnOrders_result(getAllReturnOrders_result other) {if (other.isSetSuccess()) {List<ReturnOrder> __this__success = new ArrayList<ReturnOrder>();for (ReturnOrder other_element : other.success) {__this__success.add(new ReturnOrder(other_element));}this.success = __this__success;}}public getAllReturnOrders_result deepCopy() {return new getAllReturnOrders_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<ReturnOrder> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(ReturnOrder elem) {if (this.success == null) {this.success = new ArrayList<ReturnOrder>();}this.success.add(elem);}public List<ReturnOrder> getSuccess() {return this.success;}public void setSuccess(List<ReturnOrder> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<ReturnOrder>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllReturnOrders_result)return this.equals((getAllReturnOrders_result)that);return false;}public boolean equals(getAllReturnOrders_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllReturnOrders_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllReturnOrders_result typedOther = (getAllReturnOrders_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list233 = iprot.readListBegin();this.success = new ArrayList<ReturnOrder>(_list233.size);for (int _i234 = 0; _i234 < _list233.size; ++_i234){ReturnOrder _elem235; // required_elem235 = new ReturnOrder();_elem235.read(iprot);this.success.add(_elem235);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (ReturnOrder _iter236 : this.success){_iter236.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllReturnOrders_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getReturnOrder_args implements org.apache.thrift.TBase<getReturnOrder_args, getReturnOrder_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrder_args");private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);private long id; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ID((short)1, "id");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // IDreturn ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnOrder_args.class, metaDataMap);}public getReturnOrder_args() {}public getReturnOrder_args(long id){this();this.id = id;setIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getReturnOrder_args(getReturnOrder_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;}public getReturnOrder_args deepCopy() {return new getReturnOrder_args(this);}@Overridepublic void clear() {setIdIsSet(false);this.id = 0;}public long getId() {return this.id;}public void setId(long id) {this.id = id;setIdIsSet(true);}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been assigned a value) and false otherwise */public boolean isSetId() {return __isset_bit_vector.get(__ID_ISSET_ID);}public void setIdIsSet(boolean value) {__isset_bit_vector.set(__ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ID:return Long.valueOf(getId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ID:return isSetId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getReturnOrder_args)return this.equals((getReturnOrder_args)that);return false;}public boolean equals(getReturnOrder_args that) {if (that == null)return false;boolean this_present_id = true;boolean that_present_id = true;if (this_present_id || that_present_id) {if (!(this_present_id && that_present_id))return false;if (this.id != that.id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getReturnOrder_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getReturnOrder_args typedOther = (getReturnOrder_args)other;lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());if (lastComparison != 0) {return lastComparison;}if (isSetId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getReturnOrder_args(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getReturnOrder_result implements org.apache.thrift.TBase<getReturnOrder_result, getReturnOrder_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReturnOrder_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private ReturnOrder success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReturnOrder.class)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReturnOrder_result.class, metaDataMap);}public getReturnOrder_result() {}public getReturnOrder_result(ReturnOrder success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getReturnOrder_result(getReturnOrder_result other) {if (other.isSetSuccess()) {this.success = new ReturnOrder(other.success);}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getReturnOrder_result deepCopy() {return new getReturnOrder_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public ReturnOrder getSuccess() {return this.success;}public void setSuccess(ReturnOrder success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((ReturnOrder)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getReturnOrder_result)return this.equals((getReturnOrder_result)that);return false;}public boolean equals(getReturnOrder_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getReturnOrder_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getReturnOrder_result typedOther = (getReturnOrder_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new ReturnOrder();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getReturnOrder_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class processReturn_args implements org.apache.thrift.TBase<processReturn_args, processReturn_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processReturn_args");private static final org.apache.thrift.protocol.TField RETURN_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("returnOrderId", org.apache.thrift.protocol.TType.I64, (short)1);private long returnOrderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {RETURN_ORDER_ID((short)1, "returnOrderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // RETURN_ORDER_IDreturn RETURN_ORDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __RETURNORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.RETURN_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("returnOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processReturn_args.class, metaDataMap);}public processReturn_args() {}public processReturn_args(long returnOrderId){this();this.returnOrderId = returnOrderId;setReturnOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public processReturn_args(processReturn_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.returnOrderId = other.returnOrderId;}public processReturn_args deepCopy() {return new processReturn_args(this);}@Overridepublic void clear() {setReturnOrderIdIsSet(false);this.returnOrderId = 0;}public long getReturnOrderId() {return this.returnOrderId;}public void setReturnOrderId(long returnOrderId) {this.returnOrderId = returnOrderId;setReturnOrderIdIsSet(true);}public void unsetReturnOrderId() {__isset_bit_vector.clear(__RETURNORDERID_ISSET_ID);}/** Returns true if field returnOrderId is set (has been assigned a value) and false otherwise */public boolean isSetReturnOrderId() {return __isset_bit_vector.get(__RETURNORDERID_ISSET_ID);}public void setReturnOrderIdIsSet(boolean value) {__isset_bit_vector.set(__RETURNORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case RETURN_ORDER_ID:if (value == null) {unsetReturnOrderId();} else {setReturnOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case RETURN_ORDER_ID:return Long.valueOf(getReturnOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case RETURN_ORDER_ID:return isSetReturnOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof processReturn_args)return this.equals((processReturn_args)that);return false;}public boolean equals(processReturn_args that) {if (that == null)return false;boolean this_present_returnOrderId = true;boolean that_present_returnOrderId = true;if (this_present_returnOrderId || that_present_returnOrderId) {if (!(this_present_returnOrderId && that_present_returnOrderId))return false;if (this.returnOrderId != that.returnOrderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(processReturn_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;processReturn_args typedOther = (processReturn_args)other;lastComparison = Boolean.valueOf(isSetReturnOrderId()).compareTo(typedOther.isSetReturnOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetReturnOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnOrderId, typedOther.returnOrderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // RETURN_ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.returnOrderId = iprot.readI64();setReturnOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(RETURN_ORDER_ID_FIELD_DESC);oprot.writeI64(this.returnOrderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("processReturn_args(");boolean first = true;sb.append("returnOrderId:");sb.append(this.returnOrderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class processReturn_result implements org.apache.thrift.TBase<processReturn_result, processReturn_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processReturn_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processReturn_result.class, metaDataMap);}public processReturn_result() {}public processReturn_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public processReturn_result(processReturn_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public processReturn_result deepCopy() {return new processReturn_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof processReturn_result)return this.equals((processReturn_result)that);return false;}public boolean equals(processReturn_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(processReturn_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;processReturn_result typedOther = (processReturn_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("processReturn_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateWeight_args implements org.apache.thrift.TBase<updateWeight_args, updateWeight_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateWeight_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("weight", org.apache.thrift.protocol.TType.DOUBLE, (short)2);private long orderId; // requiredprivate double weight; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),WEIGHT((short)2, "weight");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // WEIGHTreturn WEIGHT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private static final int __WEIGHT_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateWeight_args.class, metaDataMap);}public updateWeight_args() {}public updateWeight_args(long orderId,double weight){this();this.orderId = orderId;setOrderIdIsSet(true);this.weight = weight;setWeightIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateWeight_args(updateWeight_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;this.weight = other.weight;}public updateWeight_args deepCopy() {return new updateWeight_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;setWeightIsSet(false);this.weight = 0.0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public double getWeight() {return this.weight;}public void setWeight(double weight) {this.weight = weight;setWeightIsSet(true);}public void unsetWeight() {__isset_bit_vector.clear(__WEIGHT_ISSET_ID);}/** Returns true if field weight is set (has been assigned a value) and false otherwise */public boolean isSetWeight() {return __isset_bit_vector.get(__WEIGHT_ISSET_ID);}public void setWeightIsSet(boolean value) {__isset_bit_vector.set(__WEIGHT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case WEIGHT:if (value == null) {unsetWeight();} else {setWeight((Double)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case WEIGHT:return Double.valueOf(getWeight());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case WEIGHT:return isSetWeight();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateWeight_args)return this.equals((updateWeight_args)that);return false;}public boolean equals(updateWeight_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_weight = true;boolean that_present_weight = true;if (this_present_weight || that_present_weight) {if (!(this_present_weight && that_present_weight))return false;if (this.weight != that.weight)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateWeight_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateWeight_args typedOther = (updateWeight_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetWeight()).compareTo(typedOther.isSetWeight());if (lastComparison != 0) {return lastComparison;}if (isSetWeight()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weight, typedOther.weight);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // WEIGHTif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.weight = iprot.readDouble();setWeightIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldBegin(WEIGHT_FIELD_DESC);oprot.writeDouble(this.weight);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateWeight_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("weight:");sb.append(this.weight);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateWeight_result implements org.apache.thrift.TBase<updateWeight_result, updateWeight_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateWeight_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Order success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateWeight_result.class, metaDataMap);}public updateWeight_result() {}public updateWeight_result(Order success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public updateWeight_result(updateWeight_result other) {if (other.isSetSuccess()) {this.success = new Order(other.success);}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public updateWeight_result deepCopy() {return new updateWeight_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public Order getSuccess() {return this.success;}public void setSuccess(Order success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Order)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateWeight_result)return this.equals((updateWeight_result)that);return false;}public boolean equals(updateWeight_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateWeight_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateWeight_result typedOther = (updateWeight_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Order();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateWeight_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class changeItem_args implements org.apache.thrift.TBase<changeItem_args, changeItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItem_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);private long orderId; // requiredprivate long itemId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),ITEM_ID((short)2, "itemId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // ITEM_IDreturn ITEM_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private static final int __ITEMID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItem_args.class, metaDataMap);}public changeItem_args() {}public changeItem_args(long orderId,long itemId){this();this.orderId = orderId;setOrderIdIsSet(true);this.itemId = itemId;setItemIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public changeItem_args(changeItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;this.itemId = other.itemId;}public changeItem_args deepCopy() {return new changeItem_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;setItemIdIsSet(false);this.itemId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case ITEM_ID:return Long.valueOf(getItemId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case ITEM_ID:return isSetItemId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof changeItem_args)return this.equals((changeItem_args)that);return false;}public boolean equals(changeItem_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(changeItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;changeItem_args typedOther = (changeItem_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("changeItem_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("itemId:");sb.append(this.itemId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class changeItem_result implements org.apache.thrift.TBase<changeItem_result, changeItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeItem_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Order success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeItem_result.class, metaDataMap);}public changeItem_result() {}public changeItem_result(Order success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public changeItem_result(changeItem_result other) {if (other.isSetSuccess()) {this.success = new Order(other.success);}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public changeItem_result deepCopy() {return new changeItem_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public Order getSuccess() {return this.success;}public void setSuccess(Order success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Order)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof changeItem_result)return this.equals((changeItem_result)that);return false;}public boolean equals(changeItem_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(changeItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;changeItem_result typedOther = (changeItem_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Order();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("changeItem_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class shiftToWarehouse_args implements org.apache.thrift.TBase<shiftToWarehouse_args, shiftToWarehouse_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shiftToWarehouse_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);private long orderId; // requiredprivate long warehouseId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),WAREHOUSE_ID((short)2, "warehouseId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // WAREHOUSE_IDreturn WAREHOUSE_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private static final int __WAREHOUSEID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shiftToWarehouse_args.class, metaDataMap);}public shiftToWarehouse_args() {}public shiftToWarehouse_args(long orderId,long warehouseId){this();this.orderId = orderId;setOrderIdIsSet(true);this.warehouseId = warehouseId;setWarehouseIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public shiftToWarehouse_args(shiftToWarehouse_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;this.warehouseId = other.warehouseId;}public shiftToWarehouse_args deepCopy() {return new shiftToWarehouse_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;setWarehouseIdIsSet(false);this.warehouseId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public long getWarehouseId() {return this.warehouseId;}public void setWarehouseId(long warehouseId) {this.warehouseId = warehouseId;setWarehouseIdIsSet(true);}public void unsetWarehouseId() {__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);}/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */public boolean isSetWarehouseId() {return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);}public void setWarehouseIdIsSet(boolean value) {__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case WAREHOUSE_ID:if (value == null) {unsetWarehouseId();} else {setWarehouseId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case WAREHOUSE_ID:return Long.valueOf(getWarehouseId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case WAREHOUSE_ID:return isSetWarehouseId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof shiftToWarehouse_args)return this.equals((shiftToWarehouse_args)that);return false;}public boolean equals(shiftToWarehouse_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_warehouseId = true;boolean that_present_warehouseId = true;if (this_present_warehouseId || that_present_warehouseId) {if (!(this_present_warehouseId && that_present_warehouseId))return false;if (this.warehouseId != that.warehouseId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(shiftToWarehouse_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;shiftToWarehouse_args typedOther = (shiftToWarehouse_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());if (lastComparison != 0) {return lastComparison;}if (isSetWarehouseId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.warehouseId = iprot.readI64();setWarehouseIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.warehouseId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("shiftToWarehouse_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("warehouseId:");sb.append(this.warehouseId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class shiftToWarehouse_result implements org.apache.thrift.TBase<shiftToWarehouse_result, shiftToWarehouse_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shiftToWarehouse_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Order success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shiftToWarehouse_result.class, metaDataMap);}public shiftToWarehouse_result() {}public shiftToWarehouse_result(Order success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public shiftToWarehouse_result(shiftToWarehouse_result other) {if (other.isSetSuccess()) {this.success = new Order(other.success);}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public shiftToWarehouse_result deepCopy() {return new shiftToWarehouse_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public Order getSuccess() {return this.success;}public void setSuccess(Order success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Order)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof shiftToWarehouse_result)return this.equals((shiftToWarehouse_result)that);return false;}public boolean equals(shiftToWarehouse_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(shiftToWarehouse_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;shiftToWarehouse_result typedOther = (shiftToWarehouse_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Order();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("shiftToWarehouse_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addDelayReason_args implements org.apache.thrift.TBase<addDelayReason_args, addDelayReason_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addDelayReason_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField DELAY_REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("delayReason", org.apache.thrift.protocol.TType.I32, (short)2);private static final org.apache.thrift.protocol.TField FURTHER_DELAY_FIELD_DESC = new org.apache.thrift.protocol.TField("furtherDelay", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField DELAY_REASON_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("delayReasonText", org.apache.thrift.protocol.TType.STRING, (short)4);private long orderId; // requiredprivate DelayReason delayReason; // requiredprivate long furtherDelay; // requiredprivate String delayReasonText; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),/**** @see DelayReason*/DELAY_REASON((short)2, "delayReason"),FURTHER_DELAY((short)3, "furtherDelay"),DELAY_REASON_TEXT((short)4, "delayReasonText");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // DELAY_REASONreturn DELAY_REASON;case 3: // FURTHER_DELAYreturn FURTHER_DELAY;case 4: // DELAY_REASON_TEXTreturn DELAY_REASON_TEXT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private static final int __FURTHERDELAY_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.DELAY_REASON, new org.apache.thrift.meta_data.FieldMetaData("delayReason", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DelayReason.class)));tmpMap.put(_Fields.FURTHER_DELAY, new org.apache.thrift.meta_data.FieldMetaData("furtherDelay", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.DELAY_REASON_TEXT, new org.apache.thrift.meta_data.FieldMetaData("delayReasonText", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addDelayReason_args.class, metaDataMap);}public addDelayReason_args() {}public addDelayReason_args(long orderId,DelayReason delayReason,long furtherDelay,String delayReasonText){this();this.orderId = orderId;setOrderIdIsSet(true);this.delayReason = delayReason;this.furtherDelay = furtherDelay;setFurtherDelayIsSet(true);this.delayReasonText = delayReasonText;}/*** Performs a deep copy on <i>other</i>.*/public addDelayReason_args(addDelayReason_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;if (other.isSetDelayReason()) {this.delayReason = other.delayReason;}this.furtherDelay = other.furtherDelay;if (other.isSetDelayReasonText()) {this.delayReasonText = other.delayReasonText;}}public addDelayReason_args deepCopy() {return new addDelayReason_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;this.delayReason = null;setFurtherDelayIsSet(false);this.furtherDelay = 0;this.delayReasonText = null;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}/**** @see DelayReason*/public DelayReason getDelayReason() {return this.delayReason;}/**** @see DelayReason*/public void setDelayReason(DelayReason delayReason) {this.delayReason = delayReason;}public void unsetDelayReason() {this.delayReason = null;}/** Returns true if field delayReason is set (has been assigned a value) and false otherwise */public boolean isSetDelayReason() {return this.delayReason != null;}public void setDelayReasonIsSet(boolean value) {if (!value) {this.delayReason = null;}}public long getFurtherDelay() {return this.furtherDelay;}public void setFurtherDelay(long furtherDelay) {this.furtherDelay = furtherDelay;setFurtherDelayIsSet(true);}public void unsetFurtherDelay() {__isset_bit_vector.clear(__FURTHERDELAY_ISSET_ID);}/** Returns true if field furtherDelay is set (has been assigned a value) and false otherwise */public boolean isSetFurtherDelay() {return __isset_bit_vector.get(__FURTHERDELAY_ISSET_ID);}public void setFurtherDelayIsSet(boolean value) {__isset_bit_vector.set(__FURTHERDELAY_ISSET_ID, value);}public String getDelayReasonText() {return this.delayReasonText;}public void setDelayReasonText(String delayReasonText) {this.delayReasonText = delayReasonText;}public void unsetDelayReasonText() {this.delayReasonText = null;}/** Returns true if field delayReasonText is set (has been assigned a value) and false otherwise */public boolean isSetDelayReasonText() {return this.delayReasonText != null;}public void setDelayReasonTextIsSet(boolean value) {if (!value) {this.delayReasonText = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case DELAY_REASON:if (value == null) {unsetDelayReason();} else {setDelayReason((DelayReason)value);}break;case FURTHER_DELAY:if (value == null) {unsetFurtherDelay();} else {setFurtherDelay((Long)value);}break;case DELAY_REASON_TEXT:if (value == null) {unsetDelayReasonText();} else {setDelayReasonText((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case DELAY_REASON:return getDelayReason();case FURTHER_DELAY:return Long.valueOf(getFurtherDelay());case DELAY_REASON_TEXT:return getDelayReasonText();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case DELAY_REASON:return isSetDelayReason();case FURTHER_DELAY:return isSetFurtherDelay();case DELAY_REASON_TEXT:return isSetDelayReasonText();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addDelayReason_args)return this.equals((addDelayReason_args)that);return false;}public boolean equals(addDelayReason_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_delayReason = true && this.isSetDelayReason();boolean that_present_delayReason = true && that.isSetDelayReason();if (this_present_delayReason || that_present_delayReason) {if (!(this_present_delayReason && that_present_delayReason))return false;if (!this.delayReason.equals(that.delayReason))return false;}boolean this_present_furtherDelay = true;boolean that_present_furtherDelay = true;if (this_present_furtherDelay || that_present_furtherDelay) {if (!(this_present_furtherDelay && that_present_furtherDelay))return false;if (this.furtherDelay != that.furtherDelay)return false;}boolean this_present_delayReasonText = true && this.isSetDelayReasonText();boolean that_present_delayReasonText = true && that.isSetDelayReasonText();if (this_present_delayReasonText || that_present_delayReasonText) {if (!(this_present_delayReasonText && that_present_delayReasonText))return false;if (!this.delayReasonText.equals(that.delayReasonText))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addDelayReason_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addDelayReason_args typedOther = (addDelayReason_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetDelayReason()).compareTo(typedOther.isSetDelayReason());if (lastComparison != 0) {return lastComparison;}if (isSetDelayReason()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delayReason, typedOther.delayReason);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetFurtherDelay()).compareTo(typedOther.isSetFurtherDelay());if (lastComparison != 0) {return lastComparison;}if (isSetFurtherDelay()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.furtherDelay, typedOther.furtherDelay);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetDelayReasonText()).compareTo(typedOther.isSetDelayReasonText());if (lastComparison != 0) {return lastComparison;}if (isSetDelayReasonText()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delayReasonText, typedOther.delayReasonText);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // DELAY_REASONif (field.type == org.apache.thrift.protocol.TType.I32) {this.delayReason = DelayReason.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // FURTHER_DELAYif (field.type == org.apache.thrift.protocol.TType.I64) {this.furtherDelay = iprot.readI64();setFurtherDelayIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // DELAY_REASON_TEXTif (field.type == org.apache.thrift.protocol.TType.STRING) {this.delayReasonText = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();if (this.delayReason != null) {oprot.writeFieldBegin(DELAY_REASON_FIELD_DESC);oprot.writeI32(this.delayReason.getValue());oprot.writeFieldEnd();}oprot.writeFieldBegin(FURTHER_DELAY_FIELD_DESC);oprot.writeI64(this.furtherDelay);oprot.writeFieldEnd();if (this.delayReasonText != null) {oprot.writeFieldBegin(DELAY_REASON_TEXT_FIELD_DESC);oprot.writeString(this.delayReasonText);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addDelayReason_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("delayReason:");if (this.delayReason == null) {sb.append("null");} else {sb.append(this.delayReason);}first = false;if (!first) sb.append(", ");sb.append("furtherDelay:");sb.append(this.furtherDelay);first = false;if (!first) sb.append(", ");sb.append("delayReasonText:");if (this.delayReasonText == null) {sb.append("null");} else {sb.append(this.delayReasonText);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class addDelayReason_result implements org.apache.thrift.TBase<addDelayReason_result, addDelayReason_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addDelayReason_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addDelayReason_result.class, metaDataMap);}public addDelayReason_result() {}public addDelayReason_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public addDelayReason_result(addDelayReason_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public addDelayReason_result deepCopy() {return new addDelayReason_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addDelayReason_result)return this.equals((addDelayReason_result)that);return false;}public boolean equals(addDelayReason_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addDelayReason_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addDelayReason_result typedOther = (addDelayReason_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addDelayReason_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class reconcileCodCollection_args implements org.apache.thrift.TBase<reconcileCodCollection_args, reconcileCodCollection_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reconcileCodCollection_args");private static final org.apache.thrift.protocol.TField COLLECTED_AMOUNT_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("collectedAmountMap", org.apache.thrift.protocol.TType.MAP, (short)1);private static final org.apache.thrift.protocol.TField XFER_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("xferBy", org.apache.thrift.protocol.TType.STRING, (short)2);private static final org.apache.thrift.protocol.TField XFER_TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("xferTxnId", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField XFER_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("xferDate", org.apache.thrift.protocol.TType.I64, (short)4);private Map<String,Double> collectedAmountMap; // requiredprivate String xferBy; // requiredprivate String xferTxnId; // requiredprivate long xferDate; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {COLLECTED_AMOUNT_MAP((short)1, "collectedAmountMap"),XFER_BY((short)2, "xferBy"),XFER_TXN_ID((short)3, "xferTxnId"),XFER_DATE((short)4, "xferDate");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // COLLECTED_AMOUNT_MAPreturn COLLECTED_AMOUNT_MAP;case 2: // XFER_BYreturn XFER_BY;case 3: // XFER_TXN_IDreturn XFER_TXN_ID;case 4: // XFER_DATEreturn XFER_DATE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __XFERDATE_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.COLLECTED_AMOUNT_MAP, new org.apache.thrift.meta_data.FieldMetaData("collectedAmountMap", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));tmpMap.put(_Fields.XFER_BY, new org.apache.thrift.meta_data.FieldMetaData("xferBy", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.XFER_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("xferTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.XFER_DATE, new org.apache.thrift.meta_data.FieldMetaData("xferDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reconcileCodCollection_args.class, metaDataMap);}public reconcileCodCollection_args() {}public reconcileCodCollection_args(Map<String,Double> collectedAmountMap,String xferBy,String xferTxnId,long xferDate){this();this.collectedAmountMap = collectedAmountMap;this.xferBy = xferBy;this.xferTxnId = xferTxnId;this.xferDate = xferDate;setXferDateIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public reconcileCodCollection_args(reconcileCodCollection_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetCollectedAmountMap()) {Map<String,Double> __this__collectedAmountMap = new HashMap<String,Double>();for (Map.Entry<String, Double> other_element : other.collectedAmountMap.entrySet()) {String other_element_key = other_element.getKey();Double other_element_value = other_element.getValue();String __this__collectedAmountMap_copy_key = other_element_key;Double __this__collectedAmountMap_copy_value = other_element_value;__this__collectedAmountMap.put(__this__collectedAmountMap_copy_key, __this__collectedAmountMap_copy_value);}this.collectedAmountMap = __this__collectedAmountMap;}if (other.isSetXferBy()) {this.xferBy = other.xferBy;}if (other.isSetXferTxnId()) {this.xferTxnId = other.xferTxnId;}this.xferDate = other.xferDate;}public reconcileCodCollection_args deepCopy() {return new reconcileCodCollection_args(this);}@Overridepublic void clear() {this.collectedAmountMap = null;this.xferBy = null;this.xferTxnId = null;setXferDateIsSet(false);this.xferDate = 0;}public int getCollectedAmountMapSize() {return (this.collectedAmountMap == null) ? 0 : this.collectedAmountMap.size();}public void putToCollectedAmountMap(String key, double val) {if (this.collectedAmountMap == null) {this.collectedAmountMap = new HashMap<String,Double>();}this.collectedAmountMap.put(key, val);}public Map<String,Double> getCollectedAmountMap() {return this.collectedAmountMap;}public void setCollectedAmountMap(Map<String,Double> collectedAmountMap) {this.collectedAmountMap = collectedAmountMap;}public void unsetCollectedAmountMap() {this.collectedAmountMap = null;}/** Returns true if field collectedAmountMap is set (has been assigned a value) and false otherwise */public boolean isSetCollectedAmountMap() {return this.collectedAmountMap != null;}public void setCollectedAmountMapIsSet(boolean value) {if (!value) {this.collectedAmountMap = null;}}public String getXferBy() {return this.xferBy;}public void setXferBy(String xferBy) {this.xferBy = xferBy;}public void unsetXferBy() {this.xferBy = null;}/** Returns true if field xferBy is set (has been assigned a value) and false otherwise */public boolean isSetXferBy() {return this.xferBy != null;}public void setXferByIsSet(boolean value) {if (!value) {this.xferBy = null;}}public String getXferTxnId() {return this.xferTxnId;}public void setXferTxnId(String xferTxnId) {this.xferTxnId = xferTxnId;}public void unsetXferTxnId() {this.xferTxnId = null;}/** Returns true if field xferTxnId is set (has been assigned a value) and false otherwise */public boolean isSetXferTxnId() {return this.xferTxnId != null;}public void setXferTxnIdIsSet(boolean value) {if (!value) {this.xferTxnId = null;}}public long getXferDate() {return this.xferDate;}public void setXferDate(long xferDate) {this.xferDate = xferDate;setXferDateIsSet(true);}public void unsetXferDate() {__isset_bit_vector.clear(__XFERDATE_ISSET_ID);}/** Returns true if field xferDate is set (has been assigned a value) and false otherwise */public boolean isSetXferDate() {return __isset_bit_vector.get(__XFERDATE_ISSET_ID);}public void setXferDateIsSet(boolean value) {__isset_bit_vector.set(__XFERDATE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case COLLECTED_AMOUNT_MAP:if (value == null) {unsetCollectedAmountMap();} else {setCollectedAmountMap((Map<String,Double>)value);}break;case XFER_BY:if (value == null) {unsetXferBy();} else {setXferBy((String)value);}break;case XFER_TXN_ID:if (value == null) {unsetXferTxnId();} else {setXferTxnId((String)value);}break;case XFER_DATE:if (value == null) {unsetXferDate();} else {setXferDate((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case COLLECTED_AMOUNT_MAP:return getCollectedAmountMap();case XFER_BY:return getXferBy();case XFER_TXN_ID:return getXferTxnId();case XFER_DATE:return Long.valueOf(getXferDate());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case COLLECTED_AMOUNT_MAP:return isSetCollectedAmountMap();case XFER_BY:return isSetXferBy();case XFER_TXN_ID:return isSetXferTxnId();case XFER_DATE:return isSetXferDate();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof reconcileCodCollection_args)return this.equals((reconcileCodCollection_args)that);return false;}public boolean equals(reconcileCodCollection_args that) {if (that == null)return false;boolean this_present_collectedAmountMap = true && this.isSetCollectedAmountMap();boolean that_present_collectedAmountMap = true && that.isSetCollectedAmountMap();if (this_present_collectedAmountMap || that_present_collectedAmountMap) {if (!(this_present_collectedAmountMap && that_present_collectedAmountMap))return false;if (!this.collectedAmountMap.equals(that.collectedAmountMap))return false;}boolean this_present_xferBy = true && this.isSetXferBy();boolean that_present_xferBy = true && that.isSetXferBy();if (this_present_xferBy || that_present_xferBy) {if (!(this_present_xferBy && that_present_xferBy))return false;if (!this.xferBy.equals(that.xferBy))return false;}boolean this_present_xferTxnId = true && this.isSetXferTxnId();boolean that_present_xferTxnId = true && that.isSetXferTxnId();if (this_present_xferTxnId || that_present_xferTxnId) {if (!(this_present_xferTxnId && that_present_xferTxnId))return false;if (!this.xferTxnId.equals(that.xferTxnId))return false;}boolean this_present_xferDate = true;boolean that_present_xferDate = true;if (this_present_xferDate || that_present_xferDate) {if (!(this_present_xferDate && that_present_xferDate))return false;if (this.xferDate != that.xferDate)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(reconcileCodCollection_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;reconcileCodCollection_args typedOther = (reconcileCodCollection_args)other;lastComparison = Boolean.valueOf(isSetCollectedAmountMap()).compareTo(typedOther.isSetCollectedAmountMap());if (lastComparison != 0) {return lastComparison;}if (isSetCollectedAmountMap()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.collectedAmountMap, typedOther.collectedAmountMap);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetXferBy()).compareTo(typedOther.isSetXferBy());if (lastComparison != 0) {return lastComparison;}if (isSetXferBy()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferBy, typedOther.xferBy);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetXferTxnId()).compareTo(typedOther.isSetXferTxnId());if (lastComparison != 0) {return lastComparison;}if (isSetXferTxnId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferTxnId, typedOther.xferTxnId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetXferDate()).compareTo(typedOther.isSetXferDate());if (lastComparison != 0) {return lastComparison;}if (isSetXferDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferDate, typedOther.xferDate);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // COLLECTED_AMOUNT_MAPif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map237 = iprot.readMapBegin();this.collectedAmountMap = new HashMap<String,Double>(2*_map237.size);for (int _i238 = 0; _i238 < _map237.size; ++_i238){String _key239; // requireddouble _val240; // required_key239 = iprot.readString();_val240 = iprot.readDouble();this.collectedAmountMap.put(_key239, _val240);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // XFER_BYif (field.type == org.apache.thrift.protocol.TType.STRING) {this.xferBy = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // XFER_TXN_IDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.xferTxnId = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // XFER_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.xferDate = iprot.readI64();setXferDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.collectedAmountMap != null) {oprot.writeFieldBegin(COLLECTED_AMOUNT_MAP_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.DOUBLE, this.collectedAmountMap.size()));for (Map.Entry<String, Double> _iter241 : this.collectedAmountMap.entrySet()){oprot.writeString(_iter241.getKey());oprot.writeDouble(_iter241.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();}if (this.xferBy != null) {oprot.writeFieldBegin(XFER_BY_FIELD_DESC);oprot.writeString(this.xferBy);oprot.writeFieldEnd();}if (this.xferTxnId != null) {oprot.writeFieldBegin(XFER_TXN_ID_FIELD_DESC);oprot.writeString(this.xferTxnId);oprot.writeFieldEnd();}oprot.writeFieldBegin(XFER_DATE_FIELD_DESC);oprot.writeI64(this.xferDate);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("reconcileCodCollection_args(");boolean first = true;sb.append("collectedAmountMap:");if (this.collectedAmountMap == null) {sb.append("null");} else {sb.append(this.collectedAmountMap);}first = false;if (!first) sb.append(", ");sb.append("xferBy:");if (this.xferBy == null) {sb.append("null");} else {sb.append(this.xferBy);}first = false;if (!first) sb.append(", ");sb.append("xferTxnId:");if (this.xferTxnId == null) {sb.append("null");} else {sb.append(this.xferTxnId);}first = false;if (!first) sb.append(", ");sb.append("xferDate:");sb.append(this.xferDate);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class reconcileCodCollection_result implements org.apache.thrift.TBase<reconcileCodCollection_result, reconcileCodCollection_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reconcileCodCollection_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Map<String,String> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reconcileCodCollection_result.class, metaDataMap);}public reconcileCodCollection_result() {}public reconcileCodCollection_result(Map<String,String> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public reconcileCodCollection_result(reconcileCodCollection_result other) {if (other.isSetSuccess()) {Map<String,String> __this__success = new HashMap<String,String>();for (Map.Entry<String, String> other_element : other.success.entrySet()) {String other_element_key = other_element.getKey();String other_element_value = other_element.getValue();String __this__success_copy_key = other_element_key;String __this__success_copy_value = other_element_value;__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public reconcileCodCollection_result deepCopy() {return new reconcileCodCollection_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(String key, String val) {if (this.success == null) {this.success = new HashMap<String,String>();}this.success.put(key, val);}public Map<String,String> getSuccess() {return this.success;}public void setSuccess(Map<String,String> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<String,String>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof reconcileCodCollection_result)return this.equals((reconcileCodCollection_result)that);return false;}public boolean equals(reconcileCodCollection_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(reconcileCodCollection_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;reconcileCodCollection_result typedOther = (reconcileCodCollection_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map242 = iprot.readMapBegin();this.success = new HashMap<String,String>(2*_map242.size);for (int _i243 = 0; _i243 < _map242.size; ++_i243){String _key244; // requiredString _val245; // required_key244 = iprot.readString();_val245 = iprot.readString();this.success.put(_key244, _val245);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));for (Map.Entry<String, String> _iter246 : this.success.entrySet()){oprot.writeString(_iter246.getKey());oprot.writeString(_iter246.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("reconcileCodCollection_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getTransactionsRequiringExtraProcessing_args implements org.apache.thrift.TBase<getTransactionsRequiringExtraProcessing_args, getTransactionsRequiringExtraProcessing_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsRequiringExtraProcessing_args");private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.I32, (short)1);private ExtraTransactionProcessingType category; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {/**** @see ExtraTransactionProcessingType*/CATEGORY((short)1, "category");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CATEGORYreturn CATEGORY;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraTransactionProcessingType.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsRequiringExtraProcessing_args.class, metaDataMap);}public getTransactionsRequiringExtraProcessing_args() {}public getTransactionsRequiringExtraProcessing_args(ExtraTransactionProcessingType category){this();this.category = category;}/*** Performs a deep copy on <i>other</i>.*/public getTransactionsRequiringExtraProcessing_args(getTransactionsRequiringExtraProcessing_args other) {if (other.isSetCategory()) {this.category = other.category;}}public getTransactionsRequiringExtraProcessing_args deepCopy() {return new getTransactionsRequiringExtraProcessing_args(this);}@Overridepublic void clear() {this.category = null;}/**** @see ExtraTransactionProcessingType*/public ExtraTransactionProcessingType getCategory() {return this.category;}/**** @see ExtraTransactionProcessingType*/public void setCategory(ExtraTransactionProcessingType category) {this.category = category;}public void unsetCategory() {this.category = null;}/** Returns true if field category is set (has been assigned a value) and false otherwise */public boolean isSetCategory() {return this.category != null;}public void setCategoryIsSet(boolean value) {if (!value) {this.category = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CATEGORY:if (value == null) {unsetCategory();} else {setCategory((ExtraTransactionProcessingType)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CATEGORY:return getCategory();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CATEGORY:return isSetCategory();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransactionsRequiringExtraProcessing_args)return this.equals((getTransactionsRequiringExtraProcessing_args)that);return false;}public boolean equals(getTransactionsRequiringExtraProcessing_args that) {if (that == null)return false;boolean this_present_category = true && this.isSetCategory();boolean that_present_category = true && that.isSetCategory();if (this_present_category || that_present_category) {if (!(this_present_category && that_present_category))return false;if (!this.category.equals(that.category))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTransactionsRequiringExtraProcessing_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTransactionsRequiringExtraProcessing_args typedOther = (getTransactionsRequiringExtraProcessing_args)other;lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());if (lastComparison != 0) {return lastComparison;}if (isSetCategory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CATEGORYif (field.type == org.apache.thrift.protocol.TType.I32) {this.category = ExtraTransactionProcessingType.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.category != null) {oprot.writeFieldBegin(CATEGORY_FIELD_DESC);oprot.writeI32(this.category.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransactionsRequiringExtraProcessing_args(");boolean first = true;sb.append("category:");if (this.category == null) {sb.append("null");} else {sb.append(this.category);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getTransactionsRequiringExtraProcessing_result implements org.apache.thrift.TBase<getTransactionsRequiringExtraProcessing_result, getTransactionsRequiringExtraProcessing_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransactionsRequiringExtraProcessing_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Long> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransactionsRequiringExtraProcessing_result.class, metaDataMap);}public getTransactionsRequiringExtraProcessing_result() {}public getTransactionsRequiringExtraProcessing_result(List<Long> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getTransactionsRequiringExtraProcessing_result(getTransactionsRequiringExtraProcessing_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}}public getTransactionsRequiringExtraProcessing_result deepCopy() {return new getTransactionsRequiringExtraProcessing_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransactionsRequiringExtraProcessing_result)return this.equals((getTransactionsRequiringExtraProcessing_result)that);return false;}public boolean equals(getTransactionsRequiringExtraProcessing_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTransactionsRequiringExtraProcessing_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTransactionsRequiringExtraProcessing_result typedOther = (getTransactionsRequiringExtraProcessing_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list247 = iprot.readListBegin();this.success = new ArrayList<Long>(_list247.size);for (int _i248 = 0; _i248 < _list247.size; ++_i248){long _elem249; // required_elem249 = iprot.readI64();this.success.add(_elem249);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter250 : this.success){oprot.writeI64(_iter250);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransactionsRequiringExtraProcessing_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markTransactionAsProcessed_args implements org.apache.thrift.TBase<markTransactionAsProcessed_args, markTransactionAsProcessed_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransactionAsProcessed_args");private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.I32, (short)2);private long transactionId; // requiredprivate ExtraTransactionProcessingType category; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {TRANSACTION_ID((short)1, "transactionId"),/**** @see ExtraTransactionProcessingType*/CATEGORY((short)2, "category");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // TRANSACTION_IDreturn TRANSACTION_ID;case 2: // CATEGORYreturn CATEGORY;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TRANSACTIONID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraTransactionProcessingType.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransactionAsProcessed_args.class, metaDataMap);}public markTransactionAsProcessed_args() {}public markTransactionAsProcessed_args(long transactionId,ExtraTransactionProcessingType category){this();this.transactionId = transactionId;setTransactionIdIsSet(true);this.category = category;}/*** Performs a deep copy on <i>other</i>.*/public markTransactionAsProcessed_args(markTransactionAsProcessed_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.transactionId = other.transactionId;if (other.isSetCategory()) {this.category = other.category;}}public markTransactionAsProcessed_args deepCopy() {return new markTransactionAsProcessed_args(this);}@Overridepublic void clear() {setTransactionIdIsSet(false);this.transactionId = 0;this.category = null;}public long getTransactionId() {return this.transactionId;}public void setTransactionId(long transactionId) {this.transactionId = transactionId;setTransactionIdIsSet(true);}public void unsetTransactionId() {__isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);}/** Returns true if field transactionId is set (has been assigned a value) and false otherwise */public boolean isSetTransactionId() {return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);}public void setTransactionIdIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);}/**** @see ExtraTransactionProcessingType*/public ExtraTransactionProcessingType getCategory() {return this.category;}/**** @see ExtraTransactionProcessingType*/public void setCategory(ExtraTransactionProcessingType category) {this.category = category;}public void unsetCategory() {this.category = null;}/** Returns true if field category is set (has been assigned a value) and false otherwise */public boolean isSetCategory() {return this.category != null;}public void setCategoryIsSet(boolean value) {if (!value) {this.category = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION_ID:if (value == null) {unsetTransactionId();} else {setTransactionId((Long)value);}break;case CATEGORY:if (value == null) {unsetCategory();} else {setCategory((ExtraTransactionProcessingType)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION_ID:return Long.valueOf(getTransactionId());case CATEGORY:return getCategory();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case TRANSACTION_ID:return isSetTransactionId();case CATEGORY:return isSetCategory();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markTransactionAsProcessed_args)return this.equals((markTransactionAsProcessed_args)that);return false;}public boolean equals(markTransactionAsProcessed_args that) {if (that == null)return false;boolean this_present_transactionId = true;boolean that_present_transactionId = true;if (this_present_transactionId || that_present_transactionId) {if (!(this_present_transactionId && that_present_transactionId))return false;if (this.transactionId != that.transactionId)return false;}boolean this_present_category = true && this.isSetCategory();boolean that_present_category = true && that.isSetCategory();if (this_present_category || that_present_category) {if (!(this_present_category && that_present_category))return false;if (!this.category.equals(that.category))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markTransactionAsProcessed_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markTransactionAsProcessed_args typedOther = (markTransactionAsProcessed_args)other;lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());if (lastComparison != 0) {return lastComparison;}if (isSetTransactionId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());if (lastComparison != 0) {return lastComparison;}if (isSetCategory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // TRANSACTION_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.transactionId = iprot.readI64();setTransactionIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // CATEGORYif (field.type == org.apache.thrift.protocol.TType.I32) {this.category = ExtraTransactionProcessingType.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);oprot.writeI64(this.transactionId);oprot.writeFieldEnd();if (this.category != null) {oprot.writeFieldBegin(CATEGORY_FIELD_DESC);oprot.writeI32(this.category.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markTransactionAsProcessed_args(");boolean first = true;sb.append("transactionId:");sb.append(this.transactionId);first = false;if (!first) sb.append(", ");sb.append("category:");if (this.category == null) {sb.append("null");} else {sb.append(this.category);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markTransactionAsProcessed_result implements org.apache.thrift.TBase<markTransactionAsProcessed_result, markTransactionAsProcessed_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransactionAsProcessed_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransactionAsProcessed_result.class, metaDataMap);}public markTransactionAsProcessed_result() {}/*** Performs a deep copy on <i>other</i>.*/public markTransactionAsProcessed_result(markTransactionAsProcessed_result other) {}public markTransactionAsProcessed_result deepCopy() {return new markTransactionAsProcessed_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markTransactionAsProcessed_result)return this.equals((markTransactionAsProcessed_result)that);return false;}public boolean equals(markTransactionAsProcessed_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markTransactionAsProcessed_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markTransactionAsProcessed_result typedOther = (markTransactionAsProcessed_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markTransactionAsProcessed_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemWiseRiskyOrdersCount_args implements org.apache.thrift.TBase<getItemWiseRiskyOrdersCount_args, getItemWiseRiskyOrdersCount_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemWiseRiskyOrdersCount_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemWiseRiskyOrdersCount_args.class, metaDataMap);}public getItemWiseRiskyOrdersCount_args() {}/*** Performs a deep copy on <i>other</i>.*/public getItemWiseRiskyOrdersCount_args(getItemWiseRiskyOrdersCount_args other) {}public getItemWiseRiskyOrdersCount_args deepCopy() {return new getItemWiseRiskyOrdersCount_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemWiseRiskyOrdersCount_args)return this.equals((getItemWiseRiskyOrdersCount_args)that);return false;}public boolean equals(getItemWiseRiskyOrdersCount_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemWiseRiskyOrdersCount_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemWiseRiskyOrdersCount_args typedOther = (getItemWiseRiskyOrdersCount_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemWiseRiskyOrdersCount_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getItemWiseRiskyOrdersCount_result implements org.apache.thrift.TBase<getItemWiseRiskyOrdersCount_result, getItemWiseRiskyOrdersCount_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemWiseRiskyOrdersCount_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private Map<Long,Long> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemWiseRiskyOrdersCount_result.class, metaDataMap);}public getItemWiseRiskyOrdersCount_result() {}public getItemWiseRiskyOrdersCount_result(Map<Long,Long> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getItemWiseRiskyOrdersCount_result(getItemWiseRiskyOrdersCount_result other) {if (other.isSetSuccess()) {Map<Long,Long> __this__success = new HashMap<Long,Long>();for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {Long other_element_key = other_element.getKey();Long other_element_value = other_element.getValue();Long __this__success_copy_key = other_element_key;Long __this__success_copy_value = other_element_value;__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}}public getItemWiseRiskyOrdersCount_result deepCopy() {return new getItemWiseRiskyOrdersCount_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(long key, long val) {if (this.success == null) {this.success = new HashMap<Long,Long>();}this.success.put(key, val);}public Map<Long,Long> getSuccess() {return this.success;}public void setSuccess(Map<Long,Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<Long,Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getItemWiseRiskyOrdersCount_result)return this.equals((getItemWiseRiskyOrdersCount_result)that);return false;}public boolean equals(getItemWiseRiskyOrdersCount_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getItemWiseRiskyOrdersCount_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getItemWiseRiskyOrdersCount_result typedOther = (getItemWiseRiskyOrdersCount_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map251 = iprot.readMapBegin();this.success = new HashMap<Long,Long>(2*_map251.size);for (int _i252 = 0; _i252 < _map251.size; ++_i252){long _key253; // requiredlong _val254; // required_key253 = iprot.readI64();_val254 = iprot.readI64();this.success.put(_key253, _val254);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));for (Map.Entry<Long, Long> _iter255 : this.success.entrySet()){oprot.writeI64(_iter255.getKey());oprot.writeI64(_iter255.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getItemWiseRiskyOrdersCount_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersForItemIds_args implements org.apache.thrift.TBase<getOrdersForItemIds_args, getOrdersForItemIds_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForItemIds_args");private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)1);private List<Long> itemIds; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_IDS((short)1, "itemIds");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDSreturn ITEM_IDS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForItemIds_args.class, metaDataMap);}public getOrdersForItemIds_args() {}public getOrdersForItemIds_args(List<Long> itemIds){this();this.itemIds = itemIds;}/*** Performs a deep copy on <i>other</i>.*/public getOrdersForItemIds_args(getOrdersForItemIds_args other) {if (other.isSetItemIds()) {List<Long> __this__itemIds = new ArrayList<Long>();for (Long other_element : other.itemIds) {__this__itemIds.add(other_element);}this.itemIds = __this__itemIds;}}public getOrdersForItemIds_args deepCopy() {return new getOrdersForItemIds_args(this);}@Overridepublic void clear() {this.itemIds = null;}public int getItemIdsSize() {return (this.itemIds == null) ? 0 : this.itemIds.size();}public java.util.Iterator<Long> getItemIdsIterator() {return (this.itemIds == null) ? null : this.itemIds.iterator();}public void addToItemIds(long elem) {if (this.itemIds == null) {this.itemIds = new ArrayList<Long>();}this.itemIds.add(elem);}public List<Long> getItemIds() {return this.itemIds;}public void setItemIds(List<Long> itemIds) {this.itemIds = itemIds;}public void unsetItemIds() {this.itemIds = null;}/** Returns true if field itemIds is set (has been assigned a value) and false otherwise */public boolean isSetItemIds() {return this.itemIds != null;}public void setItemIdsIsSet(boolean value) {if (!value) {this.itemIds = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_IDS:if (value == null) {unsetItemIds();} else {setItemIds((List<Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_IDS:return getItemIds();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_IDS:return isSetItemIds();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersForItemIds_args)return this.equals((getOrdersForItemIds_args)that);return false;}public boolean equals(getOrdersForItemIds_args that) {if (that == null)return false;boolean this_present_itemIds = true && this.isSetItemIds();boolean that_present_itemIds = true && that.isSetItemIds();if (this_present_itemIds || that_present_itemIds) {if (!(this_present_itemIds && that_present_itemIds))return false;if (!this.itemIds.equals(that.itemIds))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersForItemIds_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersForItemIds_args typedOther = (getOrdersForItemIds_args)other;lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());if (lastComparison != 0) {return lastComparison;}if (isSetItemIds()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list256 = iprot.readListBegin();this.itemIds = new ArrayList<Long>(_list256.size);for (int _i257 = 0; _i257 < _list256.size; ++_i257){long _elem258; // required_elem258 = iprot.readI64();this.itemIds.add(_elem258);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.itemIds != null) {oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));for (long _iter259 : this.itemIds){oprot.writeI64(_iter259);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersForItemIds_args(");boolean first = true;sb.append("itemIds:");if (this.itemIds == null) {sb.append("null");} else {sb.append(this.itemIds);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersForItemIds_result implements org.apache.thrift.TBase<getOrdersForItemIds_result, getOrdersForItemIds_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForItemIds_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Order> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForItemIds_result.class, metaDataMap);}public getOrdersForItemIds_result() {}public getOrdersForItemIds_result(List<Order> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getOrdersForItemIds_result(getOrdersForItemIds_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}}public getOrdersForItemIds_result deepCopy() {return new getOrdersForItemIds_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersForItemIds_result)return this.equals((getOrdersForItemIds_result)that);return false;}public boolean equals(getOrdersForItemIds_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersForItemIds_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersForItemIds_result typedOther = (getOrdersForItemIds_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list260 = iprot.readListBegin();this.success = new ArrayList<Order>(_list260.size);for (int _i261 = 0; _i261 < _list260.size; ++_i261){Order _elem262; // required_elem262 = new Order();_elem262.read(iprot);this.success.add(_elem262);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter263 : this.success){_iter263.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersForItemIds_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderCancellationRequestReceived_args implements org.apache.thrift.TBase<markOrderCancellationRequestReceived_args, markOrderCancellationRequestReceived_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderCancellationRequestReceived_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private long orderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderCancellationRequestReceived_args.class, metaDataMap);}public markOrderCancellationRequestReceived_args() {}public markOrderCancellationRequestReceived_args(long orderId){this();this.orderId = orderId;setOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markOrderCancellationRequestReceived_args(markOrderCancellationRequestReceived_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;}public markOrderCancellationRequestReceived_args deepCopy() {return new markOrderCancellationRequestReceived_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderCancellationRequestReceived_args)return this.equals((markOrderCancellationRequestReceived_args)that);return false;}public boolean equals(markOrderCancellationRequestReceived_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderCancellationRequestReceived_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderCancellationRequestReceived_args typedOther = (markOrderCancellationRequestReceived_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderCancellationRequestReceived_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderCancellationRequestReceived_result implements org.apache.thrift.TBase<markOrderCancellationRequestReceived_result, markOrderCancellationRequestReceived_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderCancellationRequestReceived_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderCancellationRequestReceived_result.class, metaDataMap);}public markOrderCancellationRequestReceived_result() {}public markOrderCancellationRequestReceived_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrderCancellationRequestReceived_result(markOrderCancellationRequestReceived_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrderCancellationRequestReceived_result deepCopy() {return new markOrderCancellationRequestReceived_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderCancellationRequestReceived_result)return this.equals((markOrderCancellationRequestReceived_result)that);return false;}public boolean equals(markOrderCancellationRequestReceived_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderCancellationRequestReceived_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderCancellationRequestReceived_result typedOther = (markOrderCancellationRequestReceived_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderCancellationRequestReceived_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderCancellationRequestConfirmed_args implements org.apache.thrift.TBase<markOrderCancellationRequestConfirmed_args, markOrderCancellationRequestConfirmed_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderCancellationRequestConfirmed_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private long orderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderCancellationRequestConfirmed_args.class, metaDataMap);}public markOrderCancellationRequestConfirmed_args() {}public markOrderCancellationRequestConfirmed_args(long orderId){this();this.orderId = orderId;setOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markOrderCancellationRequestConfirmed_args(markOrderCancellationRequestConfirmed_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;}public markOrderCancellationRequestConfirmed_args deepCopy() {return new markOrderCancellationRequestConfirmed_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderCancellationRequestConfirmed_args)return this.equals((markOrderCancellationRequestConfirmed_args)that);return false;}public boolean equals(markOrderCancellationRequestConfirmed_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderCancellationRequestConfirmed_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderCancellationRequestConfirmed_args typedOther = (markOrderCancellationRequestConfirmed_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderCancellationRequestConfirmed_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderCancellationRequestConfirmed_result implements org.apache.thrift.TBase<markOrderCancellationRequestConfirmed_result, markOrderCancellationRequestConfirmed_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderCancellationRequestConfirmed_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderCancellationRequestConfirmed_result.class, metaDataMap);}public markOrderCancellationRequestConfirmed_result() {}public markOrderCancellationRequestConfirmed_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrderCancellationRequestConfirmed_result(markOrderCancellationRequestConfirmed_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrderCancellationRequestConfirmed_result deepCopy() {return new markOrderCancellationRequestConfirmed_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderCancellationRequestConfirmed_result)return this.equals((markOrderCancellationRequestConfirmed_result)that);return false;}public boolean equals(markOrderCancellationRequestConfirmed_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderCancellationRequestConfirmed_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderCancellationRequestConfirmed_result typedOther = (markOrderCancellationRequestConfirmed_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderCancellationRequestConfirmed_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderCancellationRequestDenied_args implements org.apache.thrift.TBase<markOrderCancellationRequestDenied_args, markOrderCancellationRequestDenied_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderCancellationRequestDenied_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private long orderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderCancellationRequestDenied_args.class, metaDataMap);}public markOrderCancellationRequestDenied_args() {}public markOrderCancellationRequestDenied_args(long orderId){this();this.orderId = orderId;setOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markOrderCancellationRequestDenied_args(markOrderCancellationRequestDenied_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;}public markOrderCancellationRequestDenied_args deepCopy() {return new markOrderCancellationRequestDenied_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderCancellationRequestDenied_args)return this.equals((markOrderCancellationRequestDenied_args)that);return false;}public boolean equals(markOrderCancellationRequestDenied_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderCancellationRequestDenied_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderCancellationRequestDenied_args typedOther = (markOrderCancellationRequestDenied_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderCancellationRequestDenied_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderCancellationRequestDenied_result implements org.apache.thrift.TBase<markOrderCancellationRequestDenied_result, markOrderCancellationRequestDenied_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderCancellationRequestDenied_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderCancellationRequestDenied_result.class, metaDataMap);}public markOrderCancellationRequestDenied_result() {}public markOrderCancellationRequestDenied_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrderCancellationRequestDenied_result(markOrderCancellationRequestDenied_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrderCancellationRequestDenied_result deepCopy() {return new markOrderCancellationRequestDenied_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderCancellationRequestDenied_result)return this.equals((markOrderCancellationRequestDenied_result)that);return false;}public boolean equals(markOrderCancellationRequestDenied_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderCancellationRequestDenied_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderCancellationRequestDenied_result typedOther = (markOrderCancellationRequestDenied_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderCancellationRequestDenied_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markTransactionAsPaymentFlagRemoved_args implements org.apache.thrift.TBase<markTransactionAsPaymentFlagRemoved_args, markTransactionAsPaymentFlagRemoved_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransactionAsPaymentFlagRemoved_args");private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)1);private long transactionId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {TRANSACTION_ID((short)1, "transactionId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // TRANSACTION_IDreturn TRANSACTION_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TRANSACTIONID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransactionAsPaymentFlagRemoved_args.class, metaDataMap);}public markTransactionAsPaymentFlagRemoved_args() {}public markTransactionAsPaymentFlagRemoved_args(long transactionId){this();this.transactionId = transactionId;setTransactionIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markTransactionAsPaymentFlagRemoved_args(markTransactionAsPaymentFlagRemoved_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.transactionId = other.transactionId;}public markTransactionAsPaymentFlagRemoved_args deepCopy() {return new markTransactionAsPaymentFlagRemoved_args(this);}@Overridepublic void clear() {setTransactionIdIsSet(false);this.transactionId = 0;}public long getTransactionId() {return this.transactionId;}public void setTransactionId(long transactionId) {this.transactionId = transactionId;setTransactionIdIsSet(true);}public void unsetTransactionId() {__isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);}/** Returns true if field transactionId is set (has been assigned a value) and false otherwise */public boolean isSetTransactionId() {return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);}public void setTransactionIdIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION_ID:if (value == null) {unsetTransactionId();} else {setTransactionId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION_ID:return Long.valueOf(getTransactionId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case TRANSACTION_ID:return isSetTransactionId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markTransactionAsPaymentFlagRemoved_args)return this.equals((markTransactionAsPaymentFlagRemoved_args)that);return false;}public boolean equals(markTransactionAsPaymentFlagRemoved_args that) {if (that == null)return false;boolean this_present_transactionId = true;boolean that_present_transactionId = true;if (this_present_transactionId || that_present_transactionId) {if (!(this_present_transactionId && that_present_transactionId))return false;if (this.transactionId != that.transactionId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markTransactionAsPaymentFlagRemoved_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markTransactionAsPaymentFlagRemoved_args typedOther = (markTransactionAsPaymentFlagRemoved_args)other;lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());if (lastComparison != 0) {return lastComparison;}if (isSetTransactionId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // TRANSACTION_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.transactionId = iprot.readI64();setTransactionIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);oprot.writeI64(this.transactionId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markTransactionAsPaymentFlagRemoved_args(");boolean first = true;sb.append("transactionId:");sb.append(this.transactionId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markTransactionAsPaymentFlagRemoved_result implements org.apache.thrift.TBase<markTransactionAsPaymentFlagRemoved_result, markTransactionAsPaymentFlagRemoved_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransactionAsPaymentFlagRemoved_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransactionAsPaymentFlagRemoved_result.class, metaDataMap);}public markTransactionAsPaymentFlagRemoved_result() {}public markTransactionAsPaymentFlagRemoved_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markTransactionAsPaymentFlagRemoved_result(markTransactionAsPaymentFlagRemoved_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markTransactionAsPaymentFlagRemoved_result deepCopy() {return new markTransactionAsPaymentFlagRemoved_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markTransactionAsPaymentFlagRemoved_result)return this.equals((markTransactionAsPaymentFlagRemoved_result)that);return false;}public boolean equals(markTransactionAsPaymentFlagRemoved_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markTransactionAsPaymentFlagRemoved_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markTransactionAsPaymentFlagRemoved_result typedOther = (markTransactionAsPaymentFlagRemoved_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markTransactionAsPaymentFlagRemoved_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class refundTransaction_args implements org.apache.thrift.TBase<refundTransaction_args, refundTransaction_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundTransaction_args");private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField REFUNDED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("refundedBy", org.apache.thrift.protocol.TType.STRING, (short)2);private static final org.apache.thrift.protocol.TField REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("reason", org.apache.thrift.protocol.TType.STRING, (short)3);private long transactionId; // requiredprivate String refundedBy; // requiredprivate String reason; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {TRANSACTION_ID((short)1, "transactionId"),REFUNDED_BY((short)2, "refundedBy"),REASON((short)3, "reason");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // TRANSACTION_IDreturn TRANSACTION_ID;case 2: // REFUNDED_BYreturn REFUNDED_BY;case 3: // REASONreturn REASON;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TRANSACTIONID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.REFUNDED_BY, new org.apache.thrift.meta_data.FieldMetaData("refundedBy", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.REASON, new org.apache.thrift.meta_data.FieldMetaData("reason", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundTransaction_args.class, metaDataMap);}public refundTransaction_args() {}public refundTransaction_args(long transactionId,String refundedBy,String reason){this();this.transactionId = transactionId;setTransactionIdIsSet(true);this.refundedBy = refundedBy;this.reason = reason;}/*** Performs a deep copy on <i>other</i>.*/public refundTransaction_args(refundTransaction_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.transactionId = other.transactionId;if (other.isSetRefundedBy()) {this.refundedBy = other.refundedBy;}if (other.isSetReason()) {this.reason = other.reason;}}public refundTransaction_args deepCopy() {return new refundTransaction_args(this);}@Overridepublic void clear() {setTransactionIdIsSet(false);this.transactionId = 0;this.refundedBy = null;this.reason = null;}public long getTransactionId() {return this.transactionId;}public void setTransactionId(long transactionId) {this.transactionId = transactionId;setTransactionIdIsSet(true);}public void unsetTransactionId() {__isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);}/** Returns true if field transactionId is set (has been assigned a value) and false otherwise */public boolean isSetTransactionId() {return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);}public void setTransactionIdIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);}public String getRefundedBy() {return this.refundedBy;}public void setRefundedBy(String refundedBy) {this.refundedBy = refundedBy;}public void unsetRefundedBy() {this.refundedBy = null;}/** Returns true if field refundedBy is set (has been assigned a value) and false otherwise */public boolean isSetRefundedBy() {return this.refundedBy != null;}public void setRefundedByIsSet(boolean value) {if (!value) {this.refundedBy = null;}}public String getReason() {return this.reason;}public void setReason(String reason) {this.reason = reason;}public void unsetReason() {this.reason = null;}/** Returns true if field reason is set (has been assigned a value) and false otherwise */public boolean isSetReason() {return this.reason != null;}public void setReasonIsSet(boolean value) {if (!value) {this.reason = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION_ID:if (value == null) {unsetTransactionId();} else {setTransactionId((Long)value);}break;case REFUNDED_BY:if (value == null) {unsetRefundedBy();} else {setRefundedBy((String)value);}break;case REASON:if (value == null) {unsetReason();} else {setReason((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION_ID:return Long.valueOf(getTransactionId());case REFUNDED_BY:return getRefundedBy();case REASON:return getReason();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case TRANSACTION_ID:return isSetTransactionId();case REFUNDED_BY:return isSetRefundedBy();case REASON:return isSetReason();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof refundTransaction_args)return this.equals((refundTransaction_args)that);return false;}public boolean equals(refundTransaction_args that) {if (that == null)return false;boolean this_present_transactionId = true;boolean that_present_transactionId = true;if (this_present_transactionId || that_present_transactionId) {if (!(this_present_transactionId && that_present_transactionId))return false;if (this.transactionId != that.transactionId)return false;}boolean this_present_refundedBy = true && this.isSetRefundedBy();boolean that_present_refundedBy = true && that.isSetRefundedBy();if (this_present_refundedBy || that_present_refundedBy) {if (!(this_present_refundedBy && that_present_refundedBy))return false;if (!this.refundedBy.equals(that.refundedBy))return false;}boolean this_present_reason = true && this.isSetReason();boolean that_present_reason = true && that.isSetReason();if (this_present_reason || that_present_reason) {if (!(this_present_reason && that_present_reason))return false;if (!this.reason.equals(that.reason))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(refundTransaction_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;refundTransaction_args typedOther = (refundTransaction_args)other;lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());if (lastComparison != 0) {return lastComparison;}if (isSetTransactionId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetRefundedBy()).compareTo(typedOther.isSetRefundedBy());if (lastComparison != 0) {return lastComparison;}if (isSetRefundedBy()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundedBy, typedOther.refundedBy);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReason()).compareTo(typedOther.isSetReason());if (lastComparison != 0) {return lastComparison;}if (isSetReason()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reason, typedOther.reason);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // TRANSACTION_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.transactionId = iprot.readI64();setTransactionIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // REFUNDED_BYif (field.type == org.apache.thrift.protocol.TType.STRING) {this.refundedBy = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // REASONif (field.type == org.apache.thrift.protocol.TType.STRING) {this.reason = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);oprot.writeI64(this.transactionId);oprot.writeFieldEnd();if (this.refundedBy != null) {oprot.writeFieldBegin(REFUNDED_BY_FIELD_DESC);oprot.writeString(this.refundedBy);oprot.writeFieldEnd();}if (this.reason != null) {oprot.writeFieldBegin(REASON_FIELD_DESC);oprot.writeString(this.reason);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("refundTransaction_args(");boolean first = true;sb.append("transactionId:");sb.append(this.transactionId);first = false;if (!first) sb.append(", ");sb.append("refundedBy:");if (this.refundedBy == null) {sb.append("null");} else {sb.append(this.refundedBy);}first = false;if (!first) sb.append(", ");sb.append("reason:");if (this.reason == null) {sb.append("null");} else {sb.append(this.reason);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class refundTransaction_result implements org.apache.thrift.TBase<refundTransaction_result, refundTransaction_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundTransaction_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundTransaction_result.class, metaDataMap);}public refundTransaction_result() {}public refundTransaction_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public refundTransaction_result(refundTransaction_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public refundTransaction_result deepCopy() {return new refundTransaction_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof refundTransaction_result)return this.equals((refundTransaction_result)that);return false;}public boolean equals(refundTransaction_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(refundTransaction_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;refundTransaction_result typedOther = (refundTransaction_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("refundTransaction_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateShipmentAddress_args implements org.apache.thrift.TBase<updateShipmentAddress_args, updateShipmentAddress_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateShipmentAddress_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("addressId", org.apache.thrift.protocol.TType.I64, (short)2);private long orderId; // requiredprivate long addressId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),ADDRESS_ID((short)2, "addressId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // ADDRESS_IDreturn ADDRESS_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private static final int __ADDRESSID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateShipmentAddress_args.class, metaDataMap);}public updateShipmentAddress_args() {}public updateShipmentAddress_args(long orderId,long addressId){this();this.orderId = orderId;setOrderIdIsSet(true);this.addressId = addressId;setAddressIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateShipmentAddress_args(updateShipmentAddress_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;this.addressId = other.addressId;}public updateShipmentAddress_args deepCopy() {return new updateShipmentAddress_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;setAddressIdIsSet(false);this.addressId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public long getAddressId() {return this.addressId;}public void setAddressId(long addressId) {this.addressId = addressId;setAddressIdIsSet(true);}public void unsetAddressId() {__isset_bit_vector.clear(__ADDRESSID_ISSET_ID);}/** Returns true if field addressId is set (has been assigned a value) and false otherwise */public boolean isSetAddressId() {return __isset_bit_vector.get(__ADDRESSID_ISSET_ID);}public void setAddressIdIsSet(boolean value) {__isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case ADDRESS_ID:if (value == null) {unsetAddressId();} else {setAddressId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case ADDRESS_ID:return Long.valueOf(getAddressId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case ADDRESS_ID:return isSetAddressId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateShipmentAddress_args)return this.equals((updateShipmentAddress_args)that);return false;}public boolean equals(updateShipmentAddress_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_addressId = true;boolean that_present_addressId = true;if (this_present_addressId || that_present_addressId) {if (!(this_present_addressId && that_present_addressId))return false;if (this.addressId != that.addressId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateShipmentAddress_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateShipmentAddress_args typedOther = (updateShipmentAddress_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetAddressId()).compareTo(typedOther.isSetAddressId());if (lastComparison != 0) {return lastComparison;}if (isSetAddressId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addressId, typedOther.addressId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ADDRESS_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.addressId = iprot.readI64();setAddressIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);oprot.writeI64(this.addressId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateShipmentAddress_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("addressId:");sb.append(this.addressId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateShipmentAddress_result implements org.apache.thrift.TBase<updateShipmentAddress_result, updateShipmentAddress_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateShipmentAddress_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateShipmentAddress_result.class, metaDataMap);}public updateShipmentAddress_result() {}public updateShipmentAddress_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public updateShipmentAddress_result(updateShipmentAddress_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public updateShipmentAddress_result deepCopy() {return new updateShipmentAddress_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateShipmentAddress_result)return this.equals((updateShipmentAddress_result)that);return false;}public boolean equals(updateShipmentAddress_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateShipmentAddress_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateShipmentAddress_result typedOther = (updateShipmentAddress_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateShipmentAddress_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class acceptOrdersForItemId_args implements org.apache.thrift.TBase<acceptOrdersForItemId_args, acceptOrdersForItemId_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("acceptOrdersForItemId_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("inventory", org.apache.thrift.protocol.TType.I64, (short)2);private long itemId; // requiredprivate long inventory; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),INVENTORY((short)2, "inventory");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // INVENTORYreturn INVENTORY;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private static final int __INVENTORY_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("inventory", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(acceptOrdersForItemId_args.class, metaDataMap);}public acceptOrdersForItemId_args() {}public acceptOrdersForItemId_args(long itemId,long inventory){this();this.itemId = itemId;setItemIdIsSet(true);this.inventory = inventory;setInventoryIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public acceptOrdersForItemId_args(acceptOrdersForItemId_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.inventory = other.inventory;}public acceptOrdersForItemId_args deepCopy() {return new acceptOrdersForItemId_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setInventoryIsSet(false);this.inventory = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public long getInventory() {return this.inventory;}public void setInventory(long inventory) {this.inventory = inventory;setInventoryIsSet(true);}public void unsetInventory() {__isset_bit_vector.clear(__INVENTORY_ISSET_ID);}/** Returns true if field inventory is set (has been assigned a value) and false otherwise */public boolean isSetInventory() {return __isset_bit_vector.get(__INVENTORY_ISSET_ID);}public void setInventoryIsSet(boolean value) {__isset_bit_vector.set(__INVENTORY_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case INVENTORY:if (value == null) {unsetInventory();} else {setInventory((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case INVENTORY:return Long.valueOf(getInventory());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case INVENTORY:return isSetInventory();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof acceptOrdersForItemId_args)return this.equals((acceptOrdersForItemId_args)that);return false;}public boolean equals(acceptOrdersForItemId_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_inventory = true;boolean that_present_inventory = true;if (this_present_inventory || that_present_inventory) {if (!(this_present_inventory && that_present_inventory))return false;if (this.inventory != that.inventory)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(acceptOrdersForItemId_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;acceptOrdersForItemId_args typedOther = (acceptOrdersForItemId_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetInventory()).compareTo(typedOther.isSetInventory());if (lastComparison != 0) {return lastComparison;}if (isSetInventory()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventory, typedOther.inventory);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // INVENTORYif (field.type == org.apache.thrift.protocol.TType.I64) {this.inventory = iprot.readI64();setInventoryIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(INVENTORY_FIELD_DESC);oprot.writeI64(this.inventory);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("acceptOrdersForItemId_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("inventory:");sb.append(this.inventory);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class acceptOrdersForItemId_result implements org.apache.thrift.TBase<acceptOrdersForItemId_result, acceptOrdersForItemId_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("acceptOrdersForItemId_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(acceptOrdersForItemId_result.class, metaDataMap);}public acceptOrdersForItemId_result() {}public acceptOrdersForItemId_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public acceptOrdersForItemId_result(acceptOrdersForItemId_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public acceptOrdersForItemId_result deepCopy() {return new acceptOrdersForItemId_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof acceptOrdersForItemId_result)return this.equals((acceptOrdersForItemId_result)that);return false;}public boolean equals(acceptOrdersForItemId_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(acceptOrdersForItemId_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;acceptOrdersForItemId_result typedOther = (acceptOrdersForItemId_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("acceptOrdersForItemId_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsPORaised_args implements org.apache.thrift.TBase<markOrdersAsPORaised_args, markOrdersAsPORaised_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsPORaised_args");private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField ESTIMATE_FIELD_DESC = new org.apache.thrift.protocol.TField("estimate", org.apache.thrift.protocol.TType.I64, (short)4);private static final org.apache.thrift.protocol.TField IS_REMINDER_FIELD_DESC = new org.apache.thrift.protocol.TField("isReminder", org.apache.thrift.protocol.TType.BOOL, (short)5);private long vendorId; // requiredprivate long itemId; // requiredprivate long quantity; // requiredprivate long estimate; // requiredprivate boolean isReminder; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {VENDOR_ID((short)1, "vendorId"),ITEM_ID((short)2, "itemId"),QUANTITY((short)3, "quantity"),ESTIMATE((short)4, "estimate"),IS_REMINDER((short)5, "isReminder");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // VENDOR_IDreturn VENDOR_ID;case 2: // ITEM_IDreturn ITEM_ID;case 3: // QUANTITYreturn QUANTITY;case 4: // ESTIMATEreturn ESTIMATE;case 5: // IS_REMINDERreturn IS_REMINDER;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __VENDORID_ISSET_ID = 0;private static final int __ITEMID_ISSET_ID = 1;private static final int __QUANTITY_ISSET_ID = 2;private static final int __ESTIMATE_ISSET_ID = 3;private static final int __ISREMINDER_ISSET_ID = 4;private BitSet __isset_bit_vector = new BitSet(5);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ESTIMATE, new org.apache.thrift.meta_data.FieldMetaData("estimate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.IS_REMINDER, new org.apache.thrift.meta_data.FieldMetaData("isReminder", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsPORaised_args.class, metaDataMap);}public markOrdersAsPORaised_args() {}public markOrdersAsPORaised_args(long vendorId,long itemId,long quantity,long estimate,boolean isReminder){this();this.vendorId = vendorId;setVendorIdIsSet(true);this.itemId = itemId;setItemIdIsSet(true);this.quantity = quantity;setQuantityIsSet(true);this.estimate = estimate;setEstimateIsSet(true);this.isReminder = isReminder;setIsReminderIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsPORaised_args(markOrdersAsPORaised_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.vendorId = other.vendorId;this.itemId = other.itemId;this.quantity = other.quantity;this.estimate = other.estimate;this.isReminder = other.isReminder;}public markOrdersAsPORaised_args deepCopy() {return new markOrdersAsPORaised_args(this);}@Overridepublic void clear() {setVendorIdIsSet(false);this.vendorId = 0;setItemIdIsSet(false);this.itemId = 0;setQuantityIsSet(false);this.quantity = 0;setEstimateIsSet(false);this.estimate = 0;setIsReminderIsSet(false);this.isReminder = false;}public long getVendorId() {return this.vendorId;}public void setVendorId(long vendorId) {this.vendorId = vendorId;setVendorIdIsSet(true);}public void unsetVendorId() {__isset_bit_vector.clear(__VENDORID_ISSET_ID);}/** Returns true if field vendorId is set (has been assigned a value) and false otherwise */public boolean isSetVendorId() {return __isset_bit_vector.get(__VENDORID_ISSET_ID);}public void setVendorIdIsSet(boolean value) {__isset_bit_vector.set(__VENDORID_ISSET_ID, value);}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public long getQuantity() {return this.quantity;}public void setQuantity(long quantity) {this.quantity = quantity;setQuantityIsSet(true);}public void unsetQuantity() {__isset_bit_vector.clear(__QUANTITY_ISSET_ID);}/** Returns true if field quantity is set (has been assigned a value) and false otherwise */public boolean isSetQuantity() {return __isset_bit_vector.get(__QUANTITY_ISSET_ID);}public void setQuantityIsSet(boolean value) {__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);}public long getEstimate() {return this.estimate;}public void setEstimate(long estimate) {this.estimate = estimate;setEstimateIsSet(true);}public void unsetEstimate() {__isset_bit_vector.clear(__ESTIMATE_ISSET_ID);}/** Returns true if field estimate is set (has been assigned a value) and false otherwise */public boolean isSetEstimate() {return __isset_bit_vector.get(__ESTIMATE_ISSET_ID);}public void setEstimateIsSet(boolean value) {__isset_bit_vector.set(__ESTIMATE_ISSET_ID, value);}public boolean isIsReminder() {return this.isReminder;}public void setIsReminder(boolean isReminder) {this.isReminder = isReminder;setIsReminderIsSet(true);}public void unsetIsReminder() {__isset_bit_vector.clear(__ISREMINDER_ISSET_ID);}/** Returns true if field isReminder is set (has been assigned a value) and false otherwise */public boolean isSetIsReminder() {return __isset_bit_vector.get(__ISREMINDER_ISSET_ID);}public void setIsReminderIsSet(boolean value) {__isset_bit_vector.set(__ISREMINDER_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case VENDOR_ID:if (value == null) {unsetVendorId();} else {setVendorId((Long)value);}break;case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case QUANTITY:if (value == null) {unsetQuantity();} else {setQuantity((Long)value);}break;case ESTIMATE:if (value == null) {unsetEstimate();} else {setEstimate((Long)value);}break;case IS_REMINDER:if (value == null) {unsetIsReminder();} else {setIsReminder((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case VENDOR_ID:return Long.valueOf(getVendorId());case ITEM_ID:return Long.valueOf(getItemId());case QUANTITY:return Long.valueOf(getQuantity());case ESTIMATE:return Long.valueOf(getEstimate());case IS_REMINDER:return Boolean.valueOf(isIsReminder());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case VENDOR_ID:return isSetVendorId();case ITEM_ID:return isSetItemId();case QUANTITY:return isSetQuantity();case ESTIMATE:return isSetEstimate();case IS_REMINDER:return isSetIsReminder();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsPORaised_args)return this.equals((markOrdersAsPORaised_args)that);return false;}public boolean equals(markOrdersAsPORaised_args that) {if (that == null)return false;boolean this_present_vendorId = true;boolean that_present_vendorId = true;if (this_present_vendorId || that_present_vendorId) {if (!(this_present_vendorId && that_present_vendorId))return false;if (this.vendorId != that.vendorId)return false;}boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_quantity = true;boolean that_present_quantity = true;if (this_present_quantity || that_present_quantity) {if (!(this_present_quantity && that_present_quantity))return false;if (this.quantity != that.quantity)return false;}boolean this_present_estimate = true;boolean that_present_estimate = true;if (this_present_estimate || that_present_estimate) {if (!(this_present_estimate && that_present_estimate))return false;if (this.estimate != that.estimate)return false;}boolean this_present_isReminder = true;boolean that_present_isReminder = true;if (this_present_isReminder || that_present_isReminder) {if (!(this_present_isReminder && that_present_isReminder))return false;if (this.isReminder != that.isReminder)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsPORaised_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsPORaised_args typedOther = (markOrdersAsPORaised_args)other;lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());if (lastComparison != 0) {return lastComparison;}if (isSetVendorId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());if (lastComparison != 0) {return lastComparison;}if (isSetQuantity()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEstimate()).compareTo(typedOther.isSetEstimate());if (lastComparison != 0) {return lastComparison;}if (isSetEstimate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.estimate, typedOther.estimate);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsReminder()).compareTo(typedOther.isSetIsReminder());if (lastComparison != 0) {return lastComparison;}if (isSetIsReminder()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isReminder, typedOther.isReminder);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // VENDOR_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.vendorId = iprot.readI64();setVendorIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // QUANTITYif (field.type == org.apache.thrift.protocol.TType.I64) {this.quantity = iprot.readI64();setQuantityIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // ESTIMATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.estimate = iprot.readI64();setEstimateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // IS_REMINDERif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.isReminder = iprot.readBool();setIsReminderIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);oprot.writeI64(this.vendorId);oprot.writeFieldEnd();oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(QUANTITY_FIELD_DESC);oprot.writeI64(this.quantity);oprot.writeFieldEnd();oprot.writeFieldBegin(ESTIMATE_FIELD_DESC);oprot.writeI64(this.estimate);oprot.writeFieldEnd();oprot.writeFieldBegin(IS_REMINDER_FIELD_DESC);oprot.writeBool(this.isReminder);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsPORaised_args(");boolean first = true;sb.append("vendorId:");sb.append(this.vendorId);first = false;if (!first) sb.append(", ");sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("quantity:");sb.append(this.quantity);first = false;if (!first) sb.append(", ");sb.append("estimate:");sb.append(this.estimate);first = false;if (!first) sb.append(", ");sb.append("isReminder:");sb.append(this.isReminder);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsPORaised_result implements org.apache.thrift.TBase<markOrdersAsPORaised_result, markOrdersAsPORaised_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsPORaised_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsPORaised_result.class, metaDataMap);}public markOrdersAsPORaised_result() {}public markOrdersAsPORaised_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsPORaised_result(markOrdersAsPORaised_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrdersAsPORaised_result deepCopy() {return new markOrdersAsPORaised_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsPORaised_result)return this.equals((markOrdersAsPORaised_result)that);return false;}public boolean equals(markOrdersAsPORaised_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsPORaised_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsPORaised_result typedOther = (markOrdersAsPORaised_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsPORaised_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsReversalInitiated_args implements org.apache.thrift.TBase<markOrdersAsReversalInitiated_args, markOrdersAsReversalInitiated_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsReversalInitiated_args");private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField ESTIMATE_FIELD_DESC = new org.apache.thrift.protocol.TField("estimate", org.apache.thrift.protocol.TType.I64, (short)4);private static final org.apache.thrift.protocol.TField IS_REMINDER_FIELD_DESC = new org.apache.thrift.protocol.TField("isReminder", org.apache.thrift.protocol.TType.BOOL, (short)5);private long vendorId; // requiredprivate long itemId; // requiredprivate long quantity; // requiredprivate long estimate; // requiredprivate boolean isReminder; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {VENDOR_ID((short)1, "vendorId"),ITEM_ID((short)2, "itemId"),QUANTITY((short)3, "quantity"),ESTIMATE((short)4, "estimate"),IS_REMINDER((short)5, "isReminder");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // VENDOR_IDreturn VENDOR_ID;case 2: // ITEM_IDreturn ITEM_ID;case 3: // QUANTITYreturn QUANTITY;case 4: // ESTIMATEreturn ESTIMATE;case 5: // IS_REMINDERreturn IS_REMINDER;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __VENDORID_ISSET_ID = 0;private static final int __ITEMID_ISSET_ID = 1;private static final int __QUANTITY_ISSET_ID = 2;private static final int __ESTIMATE_ISSET_ID = 3;private static final int __ISREMINDER_ISSET_ID = 4;private BitSet __isset_bit_vector = new BitSet(5);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ESTIMATE, new org.apache.thrift.meta_data.FieldMetaData("estimate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.IS_REMINDER, new org.apache.thrift.meta_data.FieldMetaData("isReminder", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsReversalInitiated_args.class, metaDataMap);}public markOrdersAsReversalInitiated_args() {}public markOrdersAsReversalInitiated_args(long vendorId,long itemId,long quantity,long estimate,boolean isReminder){this();this.vendorId = vendorId;setVendorIdIsSet(true);this.itemId = itemId;setItemIdIsSet(true);this.quantity = quantity;setQuantityIsSet(true);this.estimate = estimate;setEstimateIsSet(true);this.isReminder = isReminder;setIsReminderIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsReversalInitiated_args(markOrdersAsReversalInitiated_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.vendorId = other.vendorId;this.itemId = other.itemId;this.quantity = other.quantity;this.estimate = other.estimate;this.isReminder = other.isReminder;}public markOrdersAsReversalInitiated_args deepCopy() {return new markOrdersAsReversalInitiated_args(this);}@Overridepublic void clear() {setVendorIdIsSet(false);this.vendorId = 0;setItemIdIsSet(false);this.itemId = 0;setQuantityIsSet(false);this.quantity = 0;setEstimateIsSet(false);this.estimate = 0;setIsReminderIsSet(false);this.isReminder = false;}public long getVendorId() {return this.vendorId;}public void setVendorId(long vendorId) {this.vendorId = vendorId;setVendorIdIsSet(true);}public void unsetVendorId() {__isset_bit_vector.clear(__VENDORID_ISSET_ID);}/** Returns true if field vendorId is set (has been assigned a value) and false otherwise */public boolean isSetVendorId() {return __isset_bit_vector.get(__VENDORID_ISSET_ID);}public void setVendorIdIsSet(boolean value) {__isset_bit_vector.set(__VENDORID_ISSET_ID, value);}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public long getQuantity() {return this.quantity;}public void setQuantity(long quantity) {this.quantity = quantity;setQuantityIsSet(true);}public void unsetQuantity() {__isset_bit_vector.clear(__QUANTITY_ISSET_ID);}/** Returns true if field quantity is set (has been assigned a value) and false otherwise */public boolean isSetQuantity() {return __isset_bit_vector.get(__QUANTITY_ISSET_ID);}public void setQuantityIsSet(boolean value) {__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);}public long getEstimate() {return this.estimate;}public void setEstimate(long estimate) {this.estimate = estimate;setEstimateIsSet(true);}public void unsetEstimate() {__isset_bit_vector.clear(__ESTIMATE_ISSET_ID);}/** Returns true if field estimate is set (has been assigned a value) and false otherwise */public boolean isSetEstimate() {return __isset_bit_vector.get(__ESTIMATE_ISSET_ID);}public void setEstimateIsSet(boolean value) {__isset_bit_vector.set(__ESTIMATE_ISSET_ID, value);}public boolean isIsReminder() {return this.isReminder;}public void setIsReminder(boolean isReminder) {this.isReminder = isReminder;setIsReminderIsSet(true);}public void unsetIsReminder() {__isset_bit_vector.clear(__ISREMINDER_ISSET_ID);}/** Returns true if field isReminder is set (has been assigned a value) and false otherwise */public boolean isSetIsReminder() {return __isset_bit_vector.get(__ISREMINDER_ISSET_ID);}public void setIsReminderIsSet(boolean value) {__isset_bit_vector.set(__ISREMINDER_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case VENDOR_ID:if (value == null) {unsetVendorId();} else {setVendorId((Long)value);}break;case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case QUANTITY:if (value == null) {unsetQuantity();} else {setQuantity((Long)value);}break;case ESTIMATE:if (value == null) {unsetEstimate();} else {setEstimate((Long)value);}break;case IS_REMINDER:if (value == null) {unsetIsReminder();} else {setIsReminder((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case VENDOR_ID:return Long.valueOf(getVendorId());case ITEM_ID:return Long.valueOf(getItemId());case QUANTITY:return Long.valueOf(getQuantity());case ESTIMATE:return Long.valueOf(getEstimate());case IS_REMINDER:return Boolean.valueOf(isIsReminder());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case VENDOR_ID:return isSetVendorId();case ITEM_ID:return isSetItemId();case QUANTITY:return isSetQuantity();case ESTIMATE:return isSetEstimate();case IS_REMINDER:return isSetIsReminder();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsReversalInitiated_args)return this.equals((markOrdersAsReversalInitiated_args)that);return false;}public boolean equals(markOrdersAsReversalInitiated_args that) {if (that == null)return false;boolean this_present_vendorId = true;boolean that_present_vendorId = true;if (this_present_vendorId || that_present_vendorId) {if (!(this_present_vendorId && that_present_vendorId))return false;if (this.vendorId != that.vendorId)return false;}boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_quantity = true;boolean that_present_quantity = true;if (this_present_quantity || that_present_quantity) {if (!(this_present_quantity && that_present_quantity))return false;if (this.quantity != that.quantity)return false;}boolean this_present_estimate = true;boolean that_present_estimate = true;if (this_present_estimate || that_present_estimate) {if (!(this_present_estimate && that_present_estimate))return false;if (this.estimate != that.estimate)return false;}boolean this_present_isReminder = true;boolean that_present_isReminder = true;if (this_present_isReminder || that_present_isReminder) {if (!(this_present_isReminder && that_present_isReminder))return false;if (this.isReminder != that.isReminder)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsReversalInitiated_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsReversalInitiated_args typedOther = (markOrdersAsReversalInitiated_args)other;lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());if (lastComparison != 0) {return lastComparison;}if (isSetVendorId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());if (lastComparison != 0) {return lastComparison;}if (isSetQuantity()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEstimate()).compareTo(typedOther.isSetEstimate());if (lastComparison != 0) {return lastComparison;}if (isSetEstimate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.estimate, typedOther.estimate);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsReminder()).compareTo(typedOther.isSetIsReminder());if (lastComparison != 0) {return lastComparison;}if (isSetIsReminder()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isReminder, typedOther.isReminder);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // VENDOR_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.vendorId = iprot.readI64();setVendorIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // QUANTITYif (field.type == org.apache.thrift.protocol.TType.I64) {this.quantity = iprot.readI64();setQuantityIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // ESTIMATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.estimate = iprot.readI64();setEstimateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // IS_REMINDERif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.isReminder = iprot.readBool();setIsReminderIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);oprot.writeI64(this.vendorId);oprot.writeFieldEnd();oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(QUANTITY_FIELD_DESC);oprot.writeI64(this.quantity);oprot.writeFieldEnd();oprot.writeFieldBegin(ESTIMATE_FIELD_DESC);oprot.writeI64(this.estimate);oprot.writeFieldEnd();oprot.writeFieldBegin(IS_REMINDER_FIELD_DESC);oprot.writeBool(this.isReminder);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsReversalInitiated_args(");boolean first = true;sb.append("vendorId:");sb.append(this.vendorId);first = false;if (!first) sb.append(", ");sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("quantity:");sb.append(this.quantity);first = false;if (!first) sb.append(", ");sb.append("estimate:");sb.append(this.estimate);first = false;if (!first) sb.append(", ");sb.append("isReminder:");sb.append(this.isReminder);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsReversalInitiated_result implements org.apache.thrift.TBase<markOrdersAsReversalInitiated_result, markOrdersAsReversalInitiated_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsReversalInitiated_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsReversalInitiated_result.class, metaDataMap);}public markOrdersAsReversalInitiated_result() {}public markOrdersAsReversalInitiated_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsReversalInitiated_result(markOrdersAsReversalInitiated_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrdersAsReversalInitiated_result deepCopy() {return new markOrdersAsReversalInitiated_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsReversalInitiated_result)return this.equals((markOrdersAsReversalInitiated_result)that);return false;}public boolean equals(markOrdersAsReversalInitiated_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsReversalInitiated_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsReversalInitiated_result typedOther = (markOrdersAsReversalInitiated_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsReversalInitiated_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsNotAvailabke_args implements org.apache.thrift.TBase<markOrdersAsNotAvailabke_args, markOrdersAsNotAvailabke_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsNotAvailabke_args");private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField ESTIMATE_FIELD_DESC = new org.apache.thrift.protocol.TField("estimate", org.apache.thrift.protocol.TType.I64, (short)4);private static final org.apache.thrift.protocol.TField IS_REMINDER_FIELD_DESC = new org.apache.thrift.protocol.TField("isReminder", org.apache.thrift.protocol.TType.BOOL, (short)5);private long vendorId; // requiredprivate long itemId; // requiredprivate long quantity; // requiredprivate long estimate; // requiredprivate boolean isReminder; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {VENDOR_ID((short)1, "vendorId"),ITEM_ID((short)2, "itemId"),QUANTITY((short)3, "quantity"),ESTIMATE((short)4, "estimate"),IS_REMINDER((short)5, "isReminder");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // VENDOR_IDreturn VENDOR_ID;case 2: // ITEM_IDreturn ITEM_ID;case 3: // QUANTITYreturn QUANTITY;case 4: // ESTIMATEreturn ESTIMATE;case 5: // IS_REMINDERreturn IS_REMINDER;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __VENDORID_ISSET_ID = 0;private static final int __ITEMID_ISSET_ID = 1;private static final int __QUANTITY_ISSET_ID = 2;private static final int __ESTIMATE_ISSET_ID = 3;private static final int __ISREMINDER_ISSET_ID = 4;private BitSet __isset_bit_vector = new BitSet(5);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ESTIMATE, new org.apache.thrift.meta_data.FieldMetaData("estimate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.IS_REMINDER, new org.apache.thrift.meta_data.FieldMetaData("isReminder", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsNotAvailabke_args.class, metaDataMap);}public markOrdersAsNotAvailabke_args() {}public markOrdersAsNotAvailabke_args(long vendorId,long itemId,long quantity,long estimate,boolean isReminder){this();this.vendorId = vendorId;setVendorIdIsSet(true);this.itemId = itemId;setItemIdIsSet(true);this.quantity = quantity;setQuantityIsSet(true);this.estimate = estimate;setEstimateIsSet(true);this.isReminder = isReminder;setIsReminderIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsNotAvailabke_args(markOrdersAsNotAvailabke_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.vendorId = other.vendorId;this.itemId = other.itemId;this.quantity = other.quantity;this.estimate = other.estimate;this.isReminder = other.isReminder;}public markOrdersAsNotAvailabke_args deepCopy() {return new markOrdersAsNotAvailabke_args(this);}@Overridepublic void clear() {setVendorIdIsSet(false);this.vendorId = 0;setItemIdIsSet(false);this.itemId = 0;setQuantityIsSet(false);this.quantity = 0;setEstimateIsSet(false);this.estimate = 0;setIsReminderIsSet(false);this.isReminder = false;}public long getVendorId() {return this.vendorId;}public void setVendorId(long vendorId) {this.vendorId = vendorId;setVendorIdIsSet(true);}public void unsetVendorId() {__isset_bit_vector.clear(__VENDORID_ISSET_ID);}/** Returns true if field vendorId is set (has been assigned a value) and false otherwise */public boolean isSetVendorId() {return __isset_bit_vector.get(__VENDORID_ISSET_ID);}public void setVendorIdIsSet(boolean value) {__isset_bit_vector.set(__VENDORID_ISSET_ID, value);}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public long getQuantity() {return this.quantity;}public void setQuantity(long quantity) {this.quantity = quantity;setQuantityIsSet(true);}public void unsetQuantity() {__isset_bit_vector.clear(__QUANTITY_ISSET_ID);}/** Returns true if field quantity is set (has been assigned a value) and false otherwise */public boolean isSetQuantity() {return __isset_bit_vector.get(__QUANTITY_ISSET_ID);}public void setQuantityIsSet(boolean value) {__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);}public long getEstimate() {return this.estimate;}public void setEstimate(long estimate) {this.estimate = estimate;setEstimateIsSet(true);}public void unsetEstimate() {__isset_bit_vector.clear(__ESTIMATE_ISSET_ID);}/** Returns true if field estimate is set (has been assigned a value) and false otherwise */public boolean isSetEstimate() {return __isset_bit_vector.get(__ESTIMATE_ISSET_ID);}public void setEstimateIsSet(boolean value) {__isset_bit_vector.set(__ESTIMATE_ISSET_ID, value);}public boolean isIsReminder() {return this.isReminder;}public void setIsReminder(boolean isReminder) {this.isReminder = isReminder;setIsReminderIsSet(true);}public void unsetIsReminder() {__isset_bit_vector.clear(__ISREMINDER_ISSET_ID);}/** Returns true if field isReminder is set (has been assigned a value) and false otherwise */public boolean isSetIsReminder() {return __isset_bit_vector.get(__ISREMINDER_ISSET_ID);}public void setIsReminderIsSet(boolean value) {__isset_bit_vector.set(__ISREMINDER_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case VENDOR_ID:if (value == null) {unsetVendorId();} else {setVendorId((Long)value);}break;case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case QUANTITY:if (value == null) {unsetQuantity();} else {setQuantity((Long)value);}break;case ESTIMATE:if (value == null) {unsetEstimate();} else {setEstimate((Long)value);}break;case IS_REMINDER:if (value == null) {unsetIsReminder();} else {setIsReminder((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case VENDOR_ID:return Long.valueOf(getVendorId());case ITEM_ID:return Long.valueOf(getItemId());case QUANTITY:return Long.valueOf(getQuantity());case ESTIMATE:return Long.valueOf(getEstimate());case IS_REMINDER:return Boolean.valueOf(isIsReminder());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case VENDOR_ID:return isSetVendorId();case ITEM_ID:return isSetItemId();case QUANTITY:return isSetQuantity();case ESTIMATE:return isSetEstimate();case IS_REMINDER:return isSetIsReminder();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsNotAvailabke_args)return this.equals((markOrdersAsNotAvailabke_args)that);return false;}public boolean equals(markOrdersAsNotAvailabke_args that) {if (that == null)return false;boolean this_present_vendorId = true;boolean that_present_vendorId = true;if (this_present_vendorId || that_present_vendorId) {if (!(this_present_vendorId && that_present_vendorId))return false;if (this.vendorId != that.vendorId)return false;}boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_quantity = true;boolean that_present_quantity = true;if (this_present_quantity || that_present_quantity) {if (!(this_present_quantity && that_present_quantity))return false;if (this.quantity != that.quantity)return false;}boolean this_present_estimate = true;boolean that_present_estimate = true;if (this_present_estimate || that_present_estimate) {if (!(this_present_estimate && that_present_estimate))return false;if (this.estimate != that.estimate)return false;}boolean this_present_isReminder = true;boolean that_present_isReminder = true;if (this_present_isReminder || that_present_isReminder) {if (!(this_present_isReminder && that_present_isReminder))return false;if (this.isReminder != that.isReminder)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsNotAvailabke_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsNotAvailabke_args typedOther = (markOrdersAsNotAvailabke_args)other;lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());if (lastComparison != 0) {return lastComparison;}if (isSetVendorId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());if (lastComparison != 0) {return lastComparison;}if (isSetQuantity()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEstimate()).compareTo(typedOther.isSetEstimate());if (lastComparison != 0) {return lastComparison;}if (isSetEstimate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.estimate, typedOther.estimate);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsReminder()).compareTo(typedOther.isSetIsReminder());if (lastComparison != 0) {return lastComparison;}if (isSetIsReminder()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isReminder, typedOther.isReminder);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // VENDOR_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.vendorId = iprot.readI64();setVendorIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // QUANTITYif (field.type == org.apache.thrift.protocol.TType.I64) {this.quantity = iprot.readI64();setQuantityIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // ESTIMATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.estimate = iprot.readI64();setEstimateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // IS_REMINDERif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.isReminder = iprot.readBool();setIsReminderIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);oprot.writeI64(this.vendorId);oprot.writeFieldEnd();oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(QUANTITY_FIELD_DESC);oprot.writeI64(this.quantity);oprot.writeFieldEnd();oprot.writeFieldBegin(ESTIMATE_FIELD_DESC);oprot.writeI64(this.estimate);oprot.writeFieldEnd();oprot.writeFieldBegin(IS_REMINDER_FIELD_DESC);oprot.writeBool(this.isReminder);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsNotAvailabke_args(");boolean first = true;sb.append("vendorId:");sb.append(this.vendorId);first = false;if (!first) sb.append(", ");sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("quantity:");sb.append(this.quantity);first = false;if (!first) sb.append(", ");sb.append("estimate:");sb.append(this.estimate);first = false;if (!first) sb.append(", ");sb.append("isReminder:");sb.append(this.isReminder);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsNotAvailabke_result implements org.apache.thrift.TBase<markOrdersAsNotAvailabke_result, markOrdersAsNotAvailabke_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsNotAvailabke_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsNotAvailabke_result.class, metaDataMap);}public markOrdersAsNotAvailabke_result() {}public markOrdersAsNotAvailabke_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsNotAvailabke_result(markOrdersAsNotAvailabke_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrdersAsNotAvailabke_result deepCopy() {return new markOrdersAsNotAvailabke_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsNotAvailabke_result)return this.equals((markOrdersAsNotAvailabke_result)that);return false;}public boolean equals(markOrdersAsNotAvailabke_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsNotAvailabke_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsNotAvailabke_result typedOther = (markOrdersAsNotAvailabke_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsNotAvailabke_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsTimeout_args implements org.apache.thrift.TBase<markOrdersAsTimeout_args, markOrdersAsTimeout_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsTimeout_args");private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)1);private long vendorId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {VENDOR_ID((short)1, "vendorId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // VENDOR_IDreturn VENDOR_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __VENDORID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsTimeout_args.class, metaDataMap);}public markOrdersAsTimeout_args() {}public markOrdersAsTimeout_args(long vendorId){this();this.vendorId = vendorId;setVendorIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsTimeout_args(markOrdersAsTimeout_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.vendorId = other.vendorId;}public markOrdersAsTimeout_args deepCopy() {return new markOrdersAsTimeout_args(this);}@Overridepublic void clear() {setVendorIdIsSet(false);this.vendorId = 0;}public long getVendorId() {return this.vendorId;}public void setVendorId(long vendorId) {this.vendorId = vendorId;setVendorIdIsSet(true);}public void unsetVendorId() {__isset_bit_vector.clear(__VENDORID_ISSET_ID);}/** Returns true if field vendorId is set (has been assigned a value) and false otherwise */public boolean isSetVendorId() {return __isset_bit_vector.get(__VENDORID_ISSET_ID);}public void setVendorIdIsSet(boolean value) {__isset_bit_vector.set(__VENDORID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case VENDOR_ID:if (value == null) {unsetVendorId();} else {setVendorId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case VENDOR_ID:return Long.valueOf(getVendorId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case VENDOR_ID:return isSetVendorId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsTimeout_args)return this.equals((markOrdersAsTimeout_args)that);return false;}public boolean equals(markOrdersAsTimeout_args that) {if (that == null)return false;boolean this_present_vendorId = true;boolean that_present_vendorId = true;if (this_present_vendorId || that_present_vendorId) {if (!(this_present_vendorId && that_present_vendorId))return false;if (this.vendorId != that.vendorId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsTimeout_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsTimeout_args typedOther = (markOrdersAsTimeout_args)other;lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());if (lastComparison != 0) {return lastComparison;}if (isSetVendorId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // VENDOR_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.vendorId = iprot.readI64();setVendorIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);oprot.writeI64(this.vendorId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsTimeout_args(");boolean first = true;sb.append("vendorId:");sb.append(this.vendorId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrdersAsTimeout_result implements org.apache.thrift.TBase<markOrdersAsTimeout_result, markOrdersAsTimeout_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrdersAsTimeout_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Map<Integer,TimeoutSummary> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32),new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TimeoutSummary.class))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrdersAsTimeout_result.class, metaDataMap);}public markOrdersAsTimeout_result() {}public markOrdersAsTimeout_result(Map<Integer,TimeoutSummary> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrdersAsTimeout_result(markOrdersAsTimeout_result other) {if (other.isSetSuccess()) {Map<Integer,TimeoutSummary> __this__success = new HashMap<Integer,TimeoutSummary>();for (Map.Entry<Integer, TimeoutSummary> other_element : other.success.entrySet()) {Integer other_element_key = other_element.getKey();TimeoutSummary other_element_value = other_element.getValue();Integer __this__success_copy_key = other_element_key;TimeoutSummary __this__success_copy_value = new TimeoutSummary(other_element_value);__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrdersAsTimeout_result deepCopy() {return new markOrdersAsTimeout_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(int key, TimeoutSummary val) {if (this.success == null) {this.success = new HashMap<Integer,TimeoutSummary>();}this.success.put(key, val);}public Map<Integer,TimeoutSummary> getSuccess() {return this.success;}public void setSuccess(Map<Integer,TimeoutSummary> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<Integer,TimeoutSummary>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrdersAsTimeout_result)return this.equals((markOrdersAsTimeout_result)that);return false;}public boolean equals(markOrdersAsTimeout_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrdersAsTimeout_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrdersAsTimeout_result typedOther = (markOrdersAsTimeout_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map264 = iprot.readMapBegin();this.success = new HashMap<Integer,TimeoutSummary>(2*_map264.size);for (int _i265 = 0; _i265 < _map264.size; ++_i265){int _key266; // requiredTimeoutSummary _val267; // required_key266 = iprot.readI32();_val267 = new TimeoutSummary();_val267.read(iprot);this.success.put(_key266, _val267);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Map.Entry<Integer, TimeoutSummary> _iter268 : this.success.entrySet()){oprot.writeI32(_iter268.getKey());_iter268.getValue().write(oprot);}oprot.writeMapEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrdersAsTimeout_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderAsLostInTransit_args implements org.apache.thrift.TBase<markOrderAsLostInTransit_args, markOrderAsLostInTransit_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsLostInTransit_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private long orderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsLostInTransit_args.class, metaDataMap);}public markOrderAsLostInTransit_args() {}public markOrderAsLostInTransit_args(long orderId){this();this.orderId = orderId;setOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markOrderAsLostInTransit_args(markOrderAsLostInTransit_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;}public markOrderAsLostInTransit_args deepCopy() {return new markOrderAsLostInTransit_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderAsLostInTransit_args)return this.equals((markOrderAsLostInTransit_args)that);return false;}public boolean equals(markOrderAsLostInTransit_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderAsLostInTransit_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderAsLostInTransit_args typedOther = (markOrderAsLostInTransit_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderAsLostInTransit_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markOrderAsLostInTransit_result implements org.apache.thrift.TBase<markOrderAsLostInTransit_result, markOrderAsLostInTransit_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markOrderAsLostInTransit_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private boolean success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markOrderAsLostInTransit_result.class, metaDataMap);}public markOrderAsLostInTransit_result() {}public markOrderAsLostInTransit_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markOrderAsLostInTransit_result(markOrderAsLostInTransit_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markOrderAsLostInTransit_result deepCopy() {return new markOrderAsLostInTransit_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = false;this.ex = null;}public boolean isSuccess() {return this.success;}public void setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Boolean.valueOf(isSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markOrderAsLostInTransit_result)return this.equals((markOrderAsLostInTransit_result)that);return false;}public boolean equals(markOrderAsLostInTransit_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markOrderAsLostInTransit_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markOrderAsLostInTransit_result typedOther = (markOrderAsLostInTransit_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markOrderAsLostInTransit_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrderForAwb_args implements org.apache.thrift.TBase<getOrderForAwb_args, getOrderForAwb_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderForAwb_args");private static final org.apache.thrift.protocol.TField AWB_FIELD_DESC = new org.apache.thrift.protocol.TField("awb", org.apache.thrift.protocol.TType.STRING, (short)1);private String awb; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {AWB((short)1, "awb");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // AWBreturn AWB;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.AWB, new org.apache.thrift.meta_data.FieldMetaData("awb", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderForAwb_args.class, metaDataMap);}public getOrderForAwb_args() {}public getOrderForAwb_args(String awb){this();this.awb = awb;}/*** Performs a deep copy on <i>other</i>.*/public getOrderForAwb_args(getOrderForAwb_args other) {if (other.isSetAwb()) {this.awb = other.awb;}}public getOrderForAwb_args deepCopy() {return new getOrderForAwb_args(this);}@Overridepublic void clear() {this.awb = null;}public String getAwb() {return this.awb;}public void setAwb(String awb) {this.awb = awb;}public void unsetAwb() {this.awb = null;}/** Returns true if field awb is set (has been assigned a value) and false otherwise */public boolean isSetAwb() {return this.awb != null;}public void setAwbIsSet(boolean value) {if (!value) {this.awb = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case AWB:if (value == null) {unsetAwb();} else {setAwb((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case AWB:return getAwb();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case AWB:return isSetAwb();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderForAwb_args)return this.equals((getOrderForAwb_args)that);return false;}public boolean equals(getOrderForAwb_args that) {if (that == null)return false;boolean this_present_awb = true && this.isSetAwb();boolean that_present_awb = true && that.isSetAwb();if (this_present_awb || that_present_awb) {if (!(this_present_awb && that_present_awb))return false;if (!this.awb.equals(that.awb))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrderForAwb_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrderForAwb_args typedOther = (getOrderForAwb_args)other;lastComparison = Boolean.valueOf(isSetAwb()).compareTo(typedOther.isSetAwb());if (lastComparison != 0) {return lastComparison;}if (isSetAwb()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awb, typedOther.awb);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // AWBif (field.type == org.apache.thrift.protocol.TType.STRING) {this.awb = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.awb != null) {oprot.writeFieldBegin(AWB_FIELD_DESC);oprot.writeString(this.awb);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderForAwb_args(");boolean first = true;sb.append("awb:");if (this.awb == null) {sb.append("null");} else {sb.append(this.awb);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrderForAwb_result implements org.apache.thrift.TBase<getOrderForAwb_result, getOrderForAwb_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderForAwb_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Order success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderForAwb_result.class, metaDataMap);}public getOrderForAwb_result() {}public getOrderForAwb_result(Order success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getOrderForAwb_result(getOrderForAwb_result other) {if (other.isSetSuccess()) {this.success = new Order(other.success);}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getOrderForAwb_result deepCopy() {return new getOrderForAwb_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public Order getSuccess() {return this.success;}public void setSuccess(Order success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Order)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderForAwb_result)return this.equals((getOrderForAwb_result)that);return false;}public boolean equals(getOrderForAwb_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrderForAwb_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrderForAwb_result typedOther = (getOrderForAwb_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new Order();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderForAwb_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersForProviderForStatus_args implements org.apache.thrift.TBase<getOrdersForProviderForStatus_args, getOrdersForProviderForStatus_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForProviderForStatus_args");private static final org.apache.thrift.protocol.TField LOGISTICS_PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("logistics_provider_id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField ORDER_STATUS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("order_status_list", org.apache.thrift.protocol.TType.LIST, (short)2);private long logistics_provider_id; // requiredprivate List<OrderStatus> order_status_list; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {LOGISTICS_PROVIDER_ID((short)1, "logistics_provider_id"),ORDER_STATUS_LIST((short)2, "order_status_list");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // LOGISTICS_PROVIDER_IDreturn LOGISTICS_PROVIDER_ID;case 2: // ORDER_STATUS_LISTreturn ORDER_STATUS_LIST;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __LOGISTICS_PROVIDER_ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.LOGISTICS_PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("logistics_provider_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ORDER_STATUS_LIST, new org.apache.thrift.meta_data.FieldMetaData("order_status_list", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForProviderForStatus_args.class, metaDataMap);}public getOrdersForProviderForStatus_args() {}public getOrdersForProviderForStatus_args(long logistics_provider_id,List<OrderStatus> order_status_list){this();this.logistics_provider_id = logistics_provider_id;setLogistics_provider_idIsSet(true);this.order_status_list = order_status_list;}/*** Performs a deep copy on <i>other</i>.*/public getOrdersForProviderForStatus_args(getOrdersForProviderForStatus_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.logistics_provider_id = other.logistics_provider_id;if (other.isSetOrder_status_list()) {List<OrderStatus> __this__order_status_list = new ArrayList<OrderStatus>();for (OrderStatus other_element : other.order_status_list) {__this__order_status_list.add(other_element);}this.order_status_list = __this__order_status_list;}}public getOrdersForProviderForStatus_args deepCopy() {return new getOrdersForProviderForStatus_args(this);}@Overridepublic void clear() {setLogistics_provider_idIsSet(false);this.logistics_provider_id = 0;this.order_status_list = null;}public long getLogistics_provider_id() {return this.logistics_provider_id;}public void setLogistics_provider_id(long logistics_provider_id) {this.logistics_provider_id = logistics_provider_id;setLogistics_provider_idIsSet(true);}public void unsetLogistics_provider_id() {__isset_bit_vector.clear(__LOGISTICS_PROVIDER_ID_ISSET_ID);}/** Returns true if field logistics_provider_id is set (has been assigned a value) and false otherwise */public boolean isSetLogistics_provider_id() {return __isset_bit_vector.get(__LOGISTICS_PROVIDER_ID_ISSET_ID);}public void setLogistics_provider_idIsSet(boolean value) {__isset_bit_vector.set(__LOGISTICS_PROVIDER_ID_ISSET_ID, value);}public int getOrder_status_listSize() {return (this.order_status_list == null) ? 0 : this.order_status_list.size();}public java.util.Iterator<OrderStatus> getOrder_status_listIterator() {return (this.order_status_list == null) ? null : this.order_status_list.iterator();}public void addToOrder_status_list(OrderStatus elem) {if (this.order_status_list == null) {this.order_status_list = new ArrayList<OrderStatus>();}this.order_status_list.add(elem);}public List<OrderStatus> getOrder_status_list() {return this.order_status_list;}public void setOrder_status_list(List<OrderStatus> order_status_list) {this.order_status_list = order_status_list;}public void unsetOrder_status_list() {this.order_status_list = null;}/** Returns true if field order_status_list is set (has been assigned a value) and false otherwise */public boolean isSetOrder_status_list() {return this.order_status_list != null;}public void setOrder_status_listIsSet(boolean value) {if (!value) {this.order_status_list = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case LOGISTICS_PROVIDER_ID:if (value == null) {unsetLogistics_provider_id();} else {setLogistics_provider_id((Long)value);}break;case ORDER_STATUS_LIST:if (value == null) {unsetOrder_status_list();} else {setOrder_status_list((List<OrderStatus>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case LOGISTICS_PROVIDER_ID:return Long.valueOf(getLogistics_provider_id());case ORDER_STATUS_LIST:return getOrder_status_list();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case LOGISTICS_PROVIDER_ID:return isSetLogistics_provider_id();case ORDER_STATUS_LIST:return isSetOrder_status_list();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersForProviderForStatus_args)return this.equals((getOrdersForProviderForStatus_args)that);return false;}public boolean equals(getOrdersForProviderForStatus_args that) {if (that == null)return false;boolean this_present_logistics_provider_id = true;boolean that_present_logistics_provider_id = true;if (this_present_logistics_provider_id || that_present_logistics_provider_id) {if (!(this_present_logistics_provider_id && that_present_logistics_provider_id))return false;if (this.logistics_provider_id != that.logistics_provider_id)return false;}boolean this_present_order_status_list = true && this.isSetOrder_status_list();boolean that_present_order_status_list = true && that.isSetOrder_status_list();if (this_present_order_status_list || that_present_order_status_list) {if (!(this_present_order_status_list && that_present_order_status_list))return false;if (!this.order_status_list.equals(that.order_status_list))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersForProviderForStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersForProviderForStatus_args typedOther = (getOrdersForProviderForStatus_args)other;lastComparison = Boolean.valueOf(isSetLogistics_provider_id()).compareTo(typedOther.isSetLogistics_provider_id());if (lastComparison != 0) {return lastComparison;}if (isSetLogistics_provider_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logistics_provider_id, typedOther.logistics_provider_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOrder_status_list()).compareTo(typedOther.isSetOrder_status_list());if (lastComparison != 0) {return lastComparison;}if (isSetOrder_status_list()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order_status_list, typedOther.order_status_list);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // LOGISTICS_PROVIDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.logistics_provider_id = iprot.readI64();setLogistics_provider_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ORDER_STATUS_LISTif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list269 = iprot.readListBegin();this.order_status_list = new ArrayList<OrderStatus>(_list269.size);for (int _i270 = 0; _i270 < _list269.size; ++_i270){OrderStatus _elem271; // required_elem271 = OrderStatus.findByValue(iprot.readI32());this.order_status_list.add(_elem271);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(LOGISTICS_PROVIDER_ID_FIELD_DESC);oprot.writeI64(this.logistics_provider_id);oprot.writeFieldEnd();if (this.order_status_list != null) {oprot.writeFieldBegin(ORDER_STATUS_LIST_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, this.order_status_list.size()));for (OrderStatus _iter272 : this.order_status_list){oprot.writeI32(_iter272.getValue());}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersForProviderForStatus_args(");boolean first = true;sb.append("logistics_provider_id:");sb.append(this.logistics_provider_id);first = false;if (!first) sb.append(", ");sb.append("order_status_list:");if (this.order_status_list == null) {sb.append("null");} else {sb.append(this.order_status_list);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersForProviderForStatus_result implements org.apache.thrift.TBase<getOrdersForProviderForStatus_result, getOrdersForProviderForStatus_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersForProviderForStatus_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Order> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersForProviderForStatus_result.class, metaDataMap);}public getOrdersForProviderForStatus_result() {}public getOrdersForProviderForStatus_result(List<Order> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getOrdersForProviderForStatus_result(getOrdersForProviderForStatus_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getOrdersForProviderForStatus_result deepCopy() {return new getOrdersForProviderForStatus_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersForProviderForStatus_result)return this.equals((getOrdersForProviderForStatus_result)that);return false;}public boolean equals(getOrdersForProviderForStatus_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersForProviderForStatus_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersForProviderForStatus_result typedOther = (getOrdersForProviderForStatus_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list273 = iprot.readListBegin();this.success = new ArrayList<Order>(_list273.size);for (int _i274 = 0; _i274 < _list273.size; ++_i274){Order _elem275; // required_elem275 = new Order();_elem275.read(iprot);this.success.add(_elem275);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter276 : this.success){_iter276.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersForProviderForStatus_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBilledOrdersForVendor_args implements org.apache.thrift.TBase<getBilledOrdersForVendor_args, getBilledOrdersForVendor_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBilledOrdersForVendor_args");private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField BILLING_DATE_FROM_FIELD_DESC = new org.apache.thrift.protocol.TField("billingDateFrom", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField BILLING_DATE_TO_FIELD_DESC = new org.apache.thrift.protocol.TField("billingDateTo", org.apache.thrift.protocol.TType.I64, (short)3);private long vendorId; // requiredprivate long billingDateFrom; // requiredprivate long billingDateTo; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {VENDOR_ID((short)1, "vendorId"),BILLING_DATE_FROM((short)2, "billingDateFrom"),BILLING_DATE_TO((short)3, "billingDateTo");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // VENDOR_IDreturn VENDOR_ID;case 2: // BILLING_DATE_FROMreturn BILLING_DATE_FROM;case 3: // BILLING_DATE_TOreturn BILLING_DATE_TO;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __VENDORID_ISSET_ID = 0;private static final int __BILLINGDATEFROM_ISSET_ID = 1;private static final int __BILLINGDATETO_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.BILLING_DATE_FROM, new org.apache.thrift.meta_data.FieldMetaData("billingDateFrom", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.BILLING_DATE_TO, new org.apache.thrift.meta_data.FieldMetaData("billingDateTo", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBilledOrdersForVendor_args.class, metaDataMap);}public getBilledOrdersForVendor_args() {}public getBilledOrdersForVendor_args(long vendorId,long billingDateFrom,long billingDateTo){this();this.vendorId = vendorId;setVendorIdIsSet(true);this.billingDateFrom = billingDateFrom;setBillingDateFromIsSet(true);this.billingDateTo = billingDateTo;setBillingDateToIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getBilledOrdersForVendor_args(getBilledOrdersForVendor_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.vendorId = other.vendorId;this.billingDateFrom = other.billingDateFrom;this.billingDateTo = other.billingDateTo;}public getBilledOrdersForVendor_args deepCopy() {return new getBilledOrdersForVendor_args(this);}@Overridepublic void clear() {setVendorIdIsSet(false);this.vendorId = 0;setBillingDateFromIsSet(false);this.billingDateFrom = 0;setBillingDateToIsSet(false);this.billingDateTo = 0;}public long getVendorId() {return this.vendorId;}public void setVendorId(long vendorId) {this.vendorId = vendorId;setVendorIdIsSet(true);}public void unsetVendorId() {__isset_bit_vector.clear(__VENDORID_ISSET_ID);}/** Returns true if field vendorId is set (has been assigned a value) and false otherwise */public boolean isSetVendorId() {return __isset_bit_vector.get(__VENDORID_ISSET_ID);}public void setVendorIdIsSet(boolean value) {__isset_bit_vector.set(__VENDORID_ISSET_ID, value);}public long getBillingDateFrom() {return this.billingDateFrom;}public void setBillingDateFrom(long billingDateFrom) {this.billingDateFrom = billingDateFrom;setBillingDateFromIsSet(true);}public void unsetBillingDateFrom() {__isset_bit_vector.clear(__BILLINGDATEFROM_ISSET_ID);}/** Returns true if field billingDateFrom is set (has been assigned a value) and false otherwise */public boolean isSetBillingDateFrom() {return __isset_bit_vector.get(__BILLINGDATEFROM_ISSET_ID);}public void setBillingDateFromIsSet(boolean value) {__isset_bit_vector.set(__BILLINGDATEFROM_ISSET_ID, value);}public long getBillingDateTo() {return this.billingDateTo;}public void setBillingDateTo(long billingDateTo) {this.billingDateTo = billingDateTo;setBillingDateToIsSet(true);}public void unsetBillingDateTo() {__isset_bit_vector.clear(__BILLINGDATETO_ISSET_ID);}/** Returns true if field billingDateTo is set (has been assigned a value) and false otherwise */public boolean isSetBillingDateTo() {return __isset_bit_vector.get(__BILLINGDATETO_ISSET_ID);}public void setBillingDateToIsSet(boolean value) {__isset_bit_vector.set(__BILLINGDATETO_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case VENDOR_ID:if (value == null) {unsetVendorId();} else {setVendorId((Long)value);}break;case BILLING_DATE_FROM:if (value == null) {unsetBillingDateFrom();} else {setBillingDateFrom((Long)value);}break;case BILLING_DATE_TO:if (value == null) {unsetBillingDateTo();} else {setBillingDateTo((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case VENDOR_ID:return Long.valueOf(getVendorId());case BILLING_DATE_FROM:return Long.valueOf(getBillingDateFrom());case BILLING_DATE_TO:return Long.valueOf(getBillingDateTo());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case VENDOR_ID:return isSetVendorId();case BILLING_DATE_FROM:return isSetBillingDateFrom();case BILLING_DATE_TO:return isSetBillingDateTo();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBilledOrdersForVendor_args)return this.equals((getBilledOrdersForVendor_args)that);return false;}public boolean equals(getBilledOrdersForVendor_args that) {if (that == null)return false;boolean this_present_vendorId = true;boolean that_present_vendorId = true;if (this_present_vendorId || that_present_vendorId) {if (!(this_present_vendorId && that_present_vendorId))return false;if (this.vendorId != that.vendorId)return false;}boolean this_present_billingDateFrom = true;boolean that_present_billingDateFrom = true;if (this_present_billingDateFrom || that_present_billingDateFrom) {if (!(this_present_billingDateFrom && that_present_billingDateFrom))return false;if (this.billingDateFrom != that.billingDateFrom)return false;}boolean this_present_billingDateTo = true;boolean that_present_billingDateTo = true;if (this_present_billingDateTo || that_present_billingDateTo) {if (!(this_present_billingDateTo && that_present_billingDateTo))return false;if (this.billingDateTo != that.billingDateTo)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBilledOrdersForVendor_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBilledOrdersForVendor_args typedOther = (getBilledOrdersForVendor_args)other;lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());if (lastComparison != 0) {return lastComparison;}if (isSetVendorId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBillingDateFrom()).compareTo(typedOther.isSetBillingDateFrom());if (lastComparison != 0) {return lastComparison;}if (isSetBillingDateFrom()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingDateFrom, typedOther.billingDateFrom);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBillingDateTo()).compareTo(typedOther.isSetBillingDateTo());if (lastComparison != 0) {return lastComparison;}if (isSetBillingDateTo()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingDateTo, typedOther.billingDateTo);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // VENDOR_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.vendorId = iprot.readI64();setVendorIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // BILLING_DATE_FROMif (field.type == org.apache.thrift.protocol.TType.I64) {this.billingDateFrom = iprot.readI64();setBillingDateFromIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // BILLING_DATE_TOif (field.type == org.apache.thrift.protocol.TType.I64) {this.billingDateTo = iprot.readI64();setBillingDateToIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);oprot.writeI64(this.vendorId);oprot.writeFieldEnd();oprot.writeFieldBegin(BILLING_DATE_FROM_FIELD_DESC);oprot.writeI64(this.billingDateFrom);oprot.writeFieldEnd();oprot.writeFieldBegin(BILLING_DATE_TO_FIELD_DESC);oprot.writeI64(this.billingDateTo);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBilledOrdersForVendor_args(");boolean first = true;sb.append("vendorId:");sb.append(this.vendorId);first = false;if (!first) sb.append(", ");sb.append("billingDateFrom:");sb.append(this.billingDateFrom);first = false;if (!first) sb.append(", ");sb.append("billingDateTo:");sb.append(this.billingDateTo);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBilledOrdersForVendor_result implements org.apache.thrift.TBase<getBilledOrdersForVendor_result, getBilledOrdersForVendor_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBilledOrdersForVendor_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Order> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBilledOrdersForVendor_result.class, metaDataMap);}public getBilledOrdersForVendor_result() {}public getBilledOrdersForVendor_result(List<Order> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getBilledOrdersForVendor_result(getBilledOrdersForVendor_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getBilledOrdersForVendor_result deepCopy() {return new getBilledOrdersForVendor_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBilledOrdersForVendor_result)return this.equals((getBilledOrdersForVendor_result)that);return false;}public boolean equals(getBilledOrdersForVendor_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBilledOrdersForVendor_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBilledOrdersForVendor_result typedOther = (getBilledOrdersForVendor_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list277 = iprot.readListBegin();this.success = new ArrayList<Order>(_list277.size);for (int _i278 = 0; _i278 < _list277.size; ++_i278){Order _elem279; // required_elem279 = new Order();_elem279.read(iprot);this.success.add(_elem279);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter280 : this.success){_iter280.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBilledOrdersForVendor_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSlippedSippingDateOrders_args implements org.apache.thrift.TBase<getSlippedSippingDateOrders_args, getSlippedSippingDateOrders_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSlippedSippingDateOrders_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSlippedSippingDateOrders_args.class, metaDataMap);}public getSlippedSippingDateOrders_args() {}/*** Performs a deep copy on <i>other</i>.*/public getSlippedSippingDateOrders_args(getSlippedSippingDateOrders_args other) {}public getSlippedSippingDateOrders_args deepCopy() {return new getSlippedSippingDateOrders_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSlippedSippingDateOrders_args)return this.equals((getSlippedSippingDateOrders_args)that);return false;}public boolean equals(getSlippedSippingDateOrders_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSlippedSippingDateOrders_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSlippedSippingDateOrders_args typedOther = (getSlippedSippingDateOrders_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSlippedSippingDateOrders_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSlippedSippingDateOrders_result implements org.apache.thrift.TBase<getSlippedSippingDateOrders_result, getSlippedSippingDateOrders_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSlippedSippingDateOrders_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Order> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSlippedSippingDateOrders_result.class, metaDataMap);}public getSlippedSippingDateOrders_result() {}public getSlippedSippingDateOrders_result(List<Order> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getSlippedSippingDateOrders_result(getSlippedSippingDateOrders_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getSlippedSippingDateOrders_result deepCopy() {return new getSlippedSippingDateOrders_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSlippedSippingDateOrders_result)return this.equals((getSlippedSippingDateOrders_result)that);return false;}public boolean equals(getSlippedSippingDateOrders_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSlippedSippingDateOrders_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSlippedSippingDateOrders_result typedOther = (getSlippedSippingDateOrders_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list281 = iprot.readListBegin();this.success = new ArrayList<Order>(_list281.size);for (int _i282 = 0; _i282 < _list281.size; ++_i282){Order _elem283; // required_elem283 = new Order();_elem283.read(iprot);this.success.add(_elem283);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter284 : this.success){_iter284.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSlippedSippingDateOrders_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCancelledOrders_args implements org.apache.thrift.TBase<getCancelledOrders_args, getCancelledOrders_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCancelledOrders_args");private static final org.apache.thrift.protocol.TField CANCEL_DATE_FROM_FIELD_DESC = new org.apache.thrift.protocol.TField("cancelDateFrom", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField CANCEL_DATE_TO_FIELD_DESC = new org.apache.thrift.protocol.TField("cancelDateTo", org.apache.thrift.protocol.TType.I64, (short)2);private long cancelDateFrom; // requiredprivate long cancelDateTo; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CANCEL_DATE_FROM((short)1, "cancelDateFrom"),CANCEL_DATE_TO((short)2, "cancelDateTo");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CANCEL_DATE_FROMreturn CANCEL_DATE_FROM;case 2: // CANCEL_DATE_TOreturn CANCEL_DATE_TO;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CANCELDATEFROM_ISSET_ID = 0;private static final int __CANCELDATETO_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CANCEL_DATE_FROM, new org.apache.thrift.meta_data.FieldMetaData("cancelDateFrom", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CANCEL_DATE_TO, new org.apache.thrift.meta_data.FieldMetaData("cancelDateTo", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCancelledOrders_args.class, metaDataMap);}public getCancelledOrders_args() {}public getCancelledOrders_args(long cancelDateFrom,long cancelDateTo){this();this.cancelDateFrom = cancelDateFrom;setCancelDateFromIsSet(true);this.cancelDateTo = cancelDateTo;setCancelDateToIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getCancelledOrders_args(getCancelledOrders_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.cancelDateFrom = other.cancelDateFrom;this.cancelDateTo = other.cancelDateTo;}public getCancelledOrders_args deepCopy() {return new getCancelledOrders_args(this);}@Overridepublic void clear() {setCancelDateFromIsSet(false);this.cancelDateFrom = 0;setCancelDateToIsSet(false);this.cancelDateTo = 0;}public long getCancelDateFrom() {return this.cancelDateFrom;}public void setCancelDateFrom(long cancelDateFrom) {this.cancelDateFrom = cancelDateFrom;setCancelDateFromIsSet(true);}public void unsetCancelDateFrom() {__isset_bit_vector.clear(__CANCELDATEFROM_ISSET_ID);}/** Returns true if field cancelDateFrom is set (has been assigned a value) and false otherwise */public boolean isSetCancelDateFrom() {return __isset_bit_vector.get(__CANCELDATEFROM_ISSET_ID);}public void setCancelDateFromIsSet(boolean value) {__isset_bit_vector.set(__CANCELDATEFROM_ISSET_ID, value);}public long getCancelDateTo() {return this.cancelDateTo;}public void setCancelDateTo(long cancelDateTo) {this.cancelDateTo = cancelDateTo;setCancelDateToIsSet(true);}public void unsetCancelDateTo() {__isset_bit_vector.clear(__CANCELDATETO_ISSET_ID);}/** Returns true if field cancelDateTo is set (has been assigned a value) and false otherwise */public boolean isSetCancelDateTo() {return __isset_bit_vector.get(__CANCELDATETO_ISSET_ID);}public void setCancelDateToIsSet(boolean value) {__isset_bit_vector.set(__CANCELDATETO_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CANCEL_DATE_FROM:if (value == null) {unsetCancelDateFrom();} else {setCancelDateFrom((Long)value);}break;case CANCEL_DATE_TO:if (value == null) {unsetCancelDateTo();} else {setCancelDateTo((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CANCEL_DATE_FROM:return Long.valueOf(getCancelDateFrom());case CANCEL_DATE_TO:return Long.valueOf(getCancelDateTo());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CANCEL_DATE_FROM:return isSetCancelDateFrom();case CANCEL_DATE_TO:return isSetCancelDateTo();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCancelledOrders_args)return this.equals((getCancelledOrders_args)that);return false;}public boolean equals(getCancelledOrders_args that) {if (that == null)return false;boolean this_present_cancelDateFrom = true;boolean that_present_cancelDateFrom = true;if (this_present_cancelDateFrom || that_present_cancelDateFrom) {if (!(this_present_cancelDateFrom && that_present_cancelDateFrom))return false;if (this.cancelDateFrom != that.cancelDateFrom)return false;}boolean this_present_cancelDateTo = true;boolean that_present_cancelDateTo = true;if (this_present_cancelDateTo || that_present_cancelDateTo) {if (!(this_present_cancelDateTo && that_present_cancelDateTo))return false;if (this.cancelDateTo != that.cancelDateTo)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCancelledOrders_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCancelledOrders_args typedOther = (getCancelledOrders_args)other;lastComparison = Boolean.valueOf(isSetCancelDateFrom()).compareTo(typedOther.isSetCancelDateFrom());if (lastComparison != 0) {return lastComparison;}if (isSetCancelDateFrom()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cancelDateFrom, typedOther.cancelDateFrom);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCancelDateTo()).compareTo(typedOther.isSetCancelDateTo());if (lastComparison != 0) {return lastComparison;}if (isSetCancelDateTo()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cancelDateTo, typedOther.cancelDateTo);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CANCEL_DATE_FROMif (field.type == org.apache.thrift.protocol.TType.I64) {this.cancelDateFrom = iprot.readI64();setCancelDateFromIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // CANCEL_DATE_TOif (field.type == org.apache.thrift.protocol.TType.I64) {this.cancelDateTo = iprot.readI64();setCancelDateToIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CANCEL_DATE_FROM_FIELD_DESC);oprot.writeI64(this.cancelDateFrom);oprot.writeFieldEnd();oprot.writeFieldBegin(CANCEL_DATE_TO_FIELD_DESC);oprot.writeI64(this.cancelDateTo);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCancelledOrders_args(");boolean first = true;sb.append("cancelDateFrom:");sb.append(this.cancelDateFrom);first = false;if (!first) sb.append(", ");sb.append("cancelDateTo:");sb.append(this.cancelDateTo);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getCancelledOrders_result implements org.apache.thrift.TBase<getCancelledOrders_result, getCancelledOrders_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCancelledOrders_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Order> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCancelledOrders_result.class, metaDataMap);}public getCancelledOrders_result() {}public getCancelledOrders_result(List<Order> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getCancelledOrders_result(getCancelledOrders_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getCancelledOrders_result deepCopy() {return new getCancelledOrders_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getCancelledOrders_result)return this.equals((getCancelledOrders_result)that);return false;}public boolean equals(getCancelledOrders_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getCancelledOrders_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getCancelledOrders_result typedOther = (getCancelledOrders_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list285 = iprot.readListBegin();this.success = new ArrayList<Order>(_list285.size);for (int _i286 = 0; _i286 < _list285.size; ++_i286){Order _elem287; // required_elem287 = new Order();_elem287.read(iprot);this.success.add(_elem287);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter288 : this.success){_iter288.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getCancelledOrders_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class saveBluedartSettlements_args implements org.apache.thrift.TBase<saveBluedartSettlements_args, saveBluedartSettlements_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveBluedartSettlements_args");private static final org.apache.thrift.protocol.TField MAP_AWBAND_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("mapAWBAndAmount", org.apache.thrift.protocol.TType.MAP, (short)1);private Map<Long,Double> mapAWBAndAmount; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {MAP_AWBAND_AMOUNT((short)1, "mapAWBAndAmount");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // MAP_AWBAND_AMOUNTreturn MAP_AWBAND_AMOUNT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.MAP_AWBAND_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("mapAWBAndAmount", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveBluedartSettlements_args.class, metaDataMap);}public saveBluedartSettlements_args() {}public saveBluedartSettlements_args(Map<Long,Double> mapAWBAndAmount){this();this.mapAWBAndAmount = mapAWBAndAmount;}/*** Performs a deep copy on <i>other</i>.*/public saveBluedartSettlements_args(saveBluedartSettlements_args other) {if (other.isSetMapAWBAndAmount()) {Map<Long,Double> __this__mapAWBAndAmount = new HashMap<Long,Double>();for (Map.Entry<Long, Double> other_element : other.mapAWBAndAmount.entrySet()) {Long other_element_key = other_element.getKey();Double other_element_value = other_element.getValue();Long __this__mapAWBAndAmount_copy_key = other_element_key;Double __this__mapAWBAndAmount_copy_value = other_element_value;__this__mapAWBAndAmount.put(__this__mapAWBAndAmount_copy_key, __this__mapAWBAndAmount_copy_value);}this.mapAWBAndAmount = __this__mapAWBAndAmount;}}public saveBluedartSettlements_args deepCopy() {return new saveBluedartSettlements_args(this);}@Overridepublic void clear() {this.mapAWBAndAmount = null;}public int getMapAWBAndAmountSize() {return (this.mapAWBAndAmount == null) ? 0 : this.mapAWBAndAmount.size();}public void putToMapAWBAndAmount(long key, double val) {if (this.mapAWBAndAmount == null) {this.mapAWBAndAmount = new HashMap<Long,Double>();}this.mapAWBAndAmount.put(key, val);}public Map<Long,Double> getMapAWBAndAmount() {return this.mapAWBAndAmount;}public void setMapAWBAndAmount(Map<Long,Double> mapAWBAndAmount) {this.mapAWBAndAmount = mapAWBAndAmount;}public void unsetMapAWBAndAmount() {this.mapAWBAndAmount = null;}/** Returns true if field mapAWBAndAmount is set (has been assigned a value) and false otherwise */public boolean isSetMapAWBAndAmount() {return this.mapAWBAndAmount != null;}public void setMapAWBAndAmountIsSet(boolean value) {if (!value) {this.mapAWBAndAmount = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case MAP_AWBAND_AMOUNT:if (value == null) {unsetMapAWBAndAmount();} else {setMapAWBAndAmount((Map<Long,Double>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case MAP_AWBAND_AMOUNT:return getMapAWBAndAmount();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case MAP_AWBAND_AMOUNT:return isSetMapAWBAndAmount();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof saveBluedartSettlements_args)return this.equals((saveBluedartSettlements_args)that);return false;}public boolean equals(saveBluedartSettlements_args that) {if (that == null)return false;boolean this_present_mapAWBAndAmount = true && this.isSetMapAWBAndAmount();boolean that_present_mapAWBAndAmount = true && that.isSetMapAWBAndAmount();if (this_present_mapAWBAndAmount || that_present_mapAWBAndAmount) {if (!(this_present_mapAWBAndAmount && that_present_mapAWBAndAmount))return false;if (!this.mapAWBAndAmount.equals(that.mapAWBAndAmount))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(saveBluedartSettlements_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;saveBluedartSettlements_args typedOther = (saveBluedartSettlements_args)other;lastComparison = Boolean.valueOf(isSetMapAWBAndAmount()).compareTo(typedOther.isSetMapAWBAndAmount());if (lastComparison != 0) {return lastComparison;}if (isSetMapAWBAndAmount()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mapAWBAndAmount, typedOther.mapAWBAndAmount);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // MAP_AWBAND_AMOUNTif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map289 = iprot.readMapBegin();this.mapAWBAndAmount = new HashMap<Long,Double>(2*_map289.size);for (int _i290 = 0; _i290 < _map289.size; ++_i290){long _key291; // requireddouble _val292; // required_key291 = iprot.readI64();_val292 = iprot.readDouble();this.mapAWBAndAmount.put(_key291, _val292);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.mapAWBAndAmount != null) {oprot.writeFieldBegin(MAP_AWBAND_AMOUNT_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.DOUBLE, this.mapAWBAndAmount.size()));for (Map.Entry<Long, Double> _iter293 : this.mapAWBAndAmount.entrySet()){oprot.writeI64(_iter293.getKey());oprot.writeDouble(_iter293.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("saveBluedartSettlements_args(");boolean first = true;sb.append("mapAWBAndAmount:");if (this.mapAWBAndAmount == null) {sb.append("null");} else {sb.append(this.mapAWBAndAmount);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class saveBluedartSettlements_result implements org.apache.thrift.TBase<saveBluedartSettlements_result, saveBluedartSettlements_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveBluedartSettlements_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveBluedartSettlements_result.class, metaDataMap);}public saveBluedartSettlements_result() {}public saveBluedartSettlements_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public saveBluedartSettlements_result(saveBluedartSettlements_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public saveBluedartSettlements_result deepCopy() {return new saveBluedartSettlements_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof saveBluedartSettlements_result)return this.equals((saveBluedartSettlements_result)that);return false;}public boolean equals(saveBluedartSettlements_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(saveBluedartSettlements_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;saveBluedartSettlements_result typedOther = (saveBluedartSettlements_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("saveBluedartSettlements_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class savePaymentSettlements_args implements org.apache.thrift.TBase<savePaymentSettlements_args, savePaymentSettlements_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("savePaymentSettlements_args");private static final org.apache.thrift.protocol.TField SETTLEMENT_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("settlementDate", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField PAYMENT_GATEWAY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("paymentGatewayId", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField REFERENCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceId", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField SERVICE_TAX_FIELD_DESC = new org.apache.thrift.protocol.TField("serviceTax", org.apache.thrift.protocol.TType.DOUBLE, (short)4);private static final org.apache.thrift.protocol.TField OTHER_CHARGES_FIELD_DESC = new org.apache.thrift.protocol.TField("otherCharges", org.apache.thrift.protocol.TType.DOUBLE, (short)5);private static final org.apache.thrift.protocol.TField NET_COLLECTION_FIELD_DESC = new org.apache.thrift.protocol.TField("netCollection", org.apache.thrift.protocol.TType.DOUBLE, (short)6);private long settlementDate; // requiredprivate long paymentGatewayId; // requiredprivate long referenceId; // requiredprivate double serviceTax; // requiredprivate double otherCharges; // requiredprivate double netCollection; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SETTLEMENT_DATE((short)1, "settlementDate"),PAYMENT_GATEWAY_ID((short)2, "paymentGatewayId"),REFERENCE_ID((short)3, "referenceId"),SERVICE_TAX((short)4, "serviceTax"),OTHER_CHARGES((short)5, "otherCharges"),NET_COLLECTION((short)6, "netCollection");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SETTLEMENT_DATEreturn SETTLEMENT_DATE;case 2: // PAYMENT_GATEWAY_IDreturn PAYMENT_GATEWAY_ID;case 3: // REFERENCE_IDreturn REFERENCE_ID;case 4: // SERVICE_TAXreturn SERVICE_TAX;case 5: // OTHER_CHARGESreturn OTHER_CHARGES;case 6: // NET_COLLECTIONreturn NET_COLLECTION;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SETTLEMENTDATE_ISSET_ID = 0;private static final int __PAYMENTGATEWAYID_ISSET_ID = 1;private static final int __REFERENCEID_ISSET_ID = 2;private static final int __SERVICETAX_ISSET_ID = 3;private static final int __OTHERCHARGES_ISSET_ID = 4;private static final int __NETCOLLECTION_ISSET_ID = 5;private BitSet __isset_bit_vector = new BitSet(6);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SETTLEMENT_DATE, new org.apache.thrift.meta_data.FieldMetaData("settlementDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.PAYMENT_GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentGatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.REFERENCE_ID, new org.apache.thrift.meta_data.FieldMetaData("referenceId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.SERVICE_TAX, new org.apache.thrift.meta_data.FieldMetaData("serviceTax", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.OTHER_CHARGES, new org.apache.thrift.meta_data.FieldMetaData("otherCharges", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.NET_COLLECTION, new org.apache.thrift.meta_data.FieldMetaData("netCollection", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(savePaymentSettlements_args.class, metaDataMap);}public savePaymentSettlements_args() {}public savePaymentSettlements_args(long settlementDate,long paymentGatewayId,long referenceId,double serviceTax,double otherCharges,double netCollection){this();this.settlementDate = settlementDate;setSettlementDateIsSet(true);this.paymentGatewayId = paymentGatewayId;setPaymentGatewayIdIsSet(true);this.referenceId = referenceId;setReferenceIdIsSet(true);this.serviceTax = serviceTax;setServiceTaxIsSet(true);this.otherCharges = otherCharges;setOtherChargesIsSet(true);this.netCollection = netCollection;setNetCollectionIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public savePaymentSettlements_args(savePaymentSettlements_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.settlementDate = other.settlementDate;this.paymentGatewayId = other.paymentGatewayId;this.referenceId = other.referenceId;this.serviceTax = other.serviceTax;this.otherCharges = other.otherCharges;this.netCollection = other.netCollection;}public savePaymentSettlements_args deepCopy() {return new savePaymentSettlements_args(this);}@Overridepublic void clear() {setSettlementDateIsSet(false);this.settlementDate = 0;setPaymentGatewayIdIsSet(false);this.paymentGatewayId = 0;setReferenceIdIsSet(false);this.referenceId = 0;setServiceTaxIsSet(false);this.serviceTax = 0.0;setOtherChargesIsSet(false);this.otherCharges = 0.0;setNetCollectionIsSet(false);this.netCollection = 0.0;}public long getSettlementDate() {return this.settlementDate;}public void setSettlementDate(long settlementDate) {this.settlementDate = settlementDate;setSettlementDateIsSet(true);}public void unsetSettlementDate() {__isset_bit_vector.clear(__SETTLEMENTDATE_ISSET_ID);}/** Returns true if field settlementDate is set (has been assigned a value) and false otherwise */public boolean isSetSettlementDate() {return __isset_bit_vector.get(__SETTLEMENTDATE_ISSET_ID);}public void setSettlementDateIsSet(boolean value) {__isset_bit_vector.set(__SETTLEMENTDATE_ISSET_ID, value);}public long getPaymentGatewayId() {return this.paymentGatewayId;}public void setPaymentGatewayId(long paymentGatewayId) {this.paymentGatewayId = paymentGatewayId;setPaymentGatewayIdIsSet(true);}public void unsetPaymentGatewayId() {__isset_bit_vector.clear(__PAYMENTGATEWAYID_ISSET_ID);}/** Returns true if field paymentGatewayId is set (has been assigned a value) and false otherwise */public boolean isSetPaymentGatewayId() {return __isset_bit_vector.get(__PAYMENTGATEWAYID_ISSET_ID);}public void setPaymentGatewayIdIsSet(boolean value) {__isset_bit_vector.set(__PAYMENTGATEWAYID_ISSET_ID, value);}public long getReferenceId() {return this.referenceId;}public void setReferenceId(long referenceId) {this.referenceId = referenceId;setReferenceIdIsSet(true);}public void unsetReferenceId() {__isset_bit_vector.clear(__REFERENCEID_ISSET_ID);}/** Returns true if field referenceId is set (has been assigned a value) and false otherwise */public boolean isSetReferenceId() {return __isset_bit_vector.get(__REFERENCEID_ISSET_ID);}public void setReferenceIdIsSet(boolean value) {__isset_bit_vector.set(__REFERENCEID_ISSET_ID, value);}public double getServiceTax() {return this.serviceTax;}public void setServiceTax(double serviceTax) {this.serviceTax = serviceTax;setServiceTaxIsSet(true);}public void unsetServiceTax() {__isset_bit_vector.clear(__SERVICETAX_ISSET_ID);}/** Returns true if field serviceTax is set (has been assigned a value) and false otherwise */public boolean isSetServiceTax() {return __isset_bit_vector.get(__SERVICETAX_ISSET_ID);}public void setServiceTaxIsSet(boolean value) {__isset_bit_vector.set(__SERVICETAX_ISSET_ID, value);}public double getOtherCharges() {return this.otherCharges;}public void setOtherCharges(double otherCharges) {this.otherCharges = otherCharges;setOtherChargesIsSet(true);}public void unsetOtherCharges() {__isset_bit_vector.clear(__OTHERCHARGES_ISSET_ID);}/** Returns true if field otherCharges is set (has been assigned a value) and false otherwise */public boolean isSetOtherCharges() {return __isset_bit_vector.get(__OTHERCHARGES_ISSET_ID);}public void setOtherChargesIsSet(boolean value) {__isset_bit_vector.set(__OTHERCHARGES_ISSET_ID, value);}public double getNetCollection() {return this.netCollection;}public void setNetCollection(double netCollection) {this.netCollection = netCollection;setNetCollectionIsSet(true);}public void unsetNetCollection() {__isset_bit_vector.clear(__NETCOLLECTION_ISSET_ID);}/** Returns true if field netCollection is set (has been assigned a value) and false otherwise */public boolean isSetNetCollection() {return __isset_bit_vector.get(__NETCOLLECTION_ISSET_ID);}public void setNetCollectionIsSet(boolean value) {__isset_bit_vector.set(__NETCOLLECTION_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SETTLEMENT_DATE:if (value == null) {unsetSettlementDate();} else {setSettlementDate((Long)value);}break;case PAYMENT_GATEWAY_ID:if (value == null) {unsetPaymentGatewayId();} else {setPaymentGatewayId((Long)value);}break;case REFERENCE_ID:if (value == null) {unsetReferenceId();} else {setReferenceId((Long)value);}break;case SERVICE_TAX:if (value == null) {unsetServiceTax();} else {setServiceTax((Double)value);}break;case OTHER_CHARGES:if (value == null) {unsetOtherCharges();} else {setOtherCharges((Double)value);}break;case NET_COLLECTION:if (value == null) {unsetNetCollection();} else {setNetCollection((Double)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SETTLEMENT_DATE:return Long.valueOf(getSettlementDate());case PAYMENT_GATEWAY_ID:return Long.valueOf(getPaymentGatewayId());case REFERENCE_ID:return Long.valueOf(getReferenceId());case SERVICE_TAX:return Double.valueOf(getServiceTax());case OTHER_CHARGES:return Double.valueOf(getOtherCharges());case NET_COLLECTION:return Double.valueOf(getNetCollection());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SETTLEMENT_DATE:return isSetSettlementDate();case PAYMENT_GATEWAY_ID:return isSetPaymentGatewayId();case REFERENCE_ID:return isSetReferenceId();case SERVICE_TAX:return isSetServiceTax();case OTHER_CHARGES:return isSetOtherCharges();case NET_COLLECTION:return isSetNetCollection();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof savePaymentSettlements_args)return this.equals((savePaymentSettlements_args)that);return false;}public boolean equals(savePaymentSettlements_args that) {if (that == null)return false;boolean this_present_settlementDate = true;boolean that_present_settlementDate = true;if (this_present_settlementDate || that_present_settlementDate) {if (!(this_present_settlementDate && that_present_settlementDate))return false;if (this.settlementDate != that.settlementDate)return false;}boolean this_present_paymentGatewayId = true;boolean that_present_paymentGatewayId = true;if (this_present_paymentGatewayId || that_present_paymentGatewayId) {if (!(this_present_paymentGatewayId && that_present_paymentGatewayId))return false;if (this.paymentGatewayId != that.paymentGatewayId)return false;}boolean this_present_referenceId = true;boolean that_present_referenceId = true;if (this_present_referenceId || that_present_referenceId) {if (!(this_present_referenceId && that_present_referenceId))return false;if (this.referenceId != that.referenceId)return false;}boolean this_present_serviceTax = true;boolean that_present_serviceTax = true;if (this_present_serviceTax || that_present_serviceTax) {if (!(this_present_serviceTax && that_present_serviceTax))return false;if (this.serviceTax != that.serviceTax)return false;}boolean this_present_otherCharges = true;boolean that_present_otherCharges = true;if (this_present_otherCharges || that_present_otherCharges) {if (!(this_present_otherCharges && that_present_otherCharges))return false;if (this.otherCharges != that.otherCharges)return false;}boolean this_present_netCollection = true;boolean that_present_netCollection = true;if (this_present_netCollection || that_present_netCollection) {if (!(this_present_netCollection && that_present_netCollection))return false;if (this.netCollection != that.netCollection)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(savePaymentSettlements_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;savePaymentSettlements_args typedOther = (savePaymentSettlements_args)other;lastComparison = Boolean.valueOf(isSetSettlementDate()).compareTo(typedOther.isSetSettlementDate());if (lastComparison != 0) {return lastComparison;}if (isSetSettlementDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.settlementDate, typedOther.settlementDate);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetPaymentGatewayId()).compareTo(typedOther.isSetPaymentGatewayId());if (lastComparison != 0) {return lastComparison;}if (isSetPaymentGatewayId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentGatewayId, typedOther.paymentGatewayId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReferenceId()).compareTo(typedOther.isSetReferenceId());if (lastComparison != 0) {return lastComparison;}if (isSetReferenceId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceId, typedOther.referenceId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetServiceTax()).compareTo(typedOther.isSetServiceTax());if (lastComparison != 0) {return lastComparison;}if (isSetServiceTax()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serviceTax, typedOther.serviceTax);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOtherCharges()).compareTo(typedOther.isSetOtherCharges());if (lastComparison != 0) {return lastComparison;}if (isSetOtherCharges()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otherCharges, typedOther.otherCharges);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetNetCollection()).compareTo(typedOther.isSetNetCollection());if (lastComparison != 0) {return lastComparison;}if (isSetNetCollection()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.netCollection, typedOther.netCollection);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SETTLEMENT_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.settlementDate = iprot.readI64();setSettlementDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // PAYMENT_GATEWAY_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.paymentGatewayId = iprot.readI64();setPaymentGatewayIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // REFERENCE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.referenceId = iprot.readI64();setReferenceIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // SERVICE_TAXif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.serviceTax = iprot.readDouble();setServiceTaxIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // OTHER_CHARGESif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.otherCharges = iprot.readDouble();setOtherChargesIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 6: // NET_COLLECTIONif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.netCollection = iprot.readDouble();setNetCollectionIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(SETTLEMENT_DATE_FIELD_DESC);oprot.writeI64(this.settlementDate);oprot.writeFieldEnd();oprot.writeFieldBegin(PAYMENT_GATEWAY_ID_FIELD_DESC);oprot.writeI64(this.paymentGatewayId);oprot.writeFieldEnd();oprot.writeFieldBegin(REFERENCE_ID_FIELD_DESC);oprot.writeI64(this.referenceId);oprot.writeFieldEnd();oprot.writeFieldBegin(SERVICE_TAX_FIELD_DESC);oprot.writeDouble(this.serviceTax);oprot.writeFieldEnd();oprot.writeFieldBegin(OTHER_CHARGES_FIELD_DESC);oprot.writeDouble(this.otherCharges);oprot.writeFieldEnd();oprot.writeFieldBegin(NET_COLLECTION_FIELD_DESC);oprot.writeDouble(this.netCollection);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("savePaymentSettlements_args(");boolean first = true;sb.append("settlementDate:");sb.append(this.settlementDate);first = false;if (!first) sb.append(", ");sb.append("paymentGatewayId:");sb.append(this.paymentGatewayId);first = false;if (!first) sb.append(", ");sb.append("referenceId:");sb.append(this.referenceId);first = false;if (!first) sb.append(", ");sb.append("serviceTax:");sb.append(this.serviceTax);first = false;if (!first) sb.append(", ");sb.append("otherCharges:");sb.append(this.otherCharges);first = false;if (!first) sb.append(", ");sb.append("netCollection:");sb.append(this.netCollection);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class savePaymentSettlements_result implements org.apache.thrift.TBase<savePaymentSettlements_result, savePaymentSettlements_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("savePaymentSettlements_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(savePaymentSettlements_result.class, metaDataMap);}public savePaymentSettlements_result() {}public savePaymentSettlements_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public savePaymentSettlements_result(savePaymentSettlements_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public savePaymentSettlements_result deepCopy() {return new savePaymentSettlements_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof savePaymentSettlements_result)return this.equals((savePaymentSettlements_result)that);return false;}public boolean equals(savePaymentSettlements_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(savePaymentSettlements_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;savePaymentSettlements_result typedOther = (savePaymentSettlements_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("savePaymentSettlements_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class saveEBSSettlementSummary_args implements org.apache.thrift.TBase<saveEBSSettlementSummary_args, saveEBSSettlementSummary_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveEBSSettlementSummary_args");private static final org.apache.thrift.protocol.TField SETTLEMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("settlementId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField SETTLEMENT_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("settlementDate", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField TRANSACTION_DATE_FROM_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionDateFrom", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField TRANSACTION_DATE_TO_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionDateTo", org.apache.thrift.protocol.TType.I64, (short)4);private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.DOUBLE, (short)5);private long settlementId; // requiredprivate long settlementDate; // requiredprivate long transactionDateFrom; // requiredprivate long transactionDateTo; // requiredprivate double amount; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SETTLEMENT_ID((short)1, "settlementId"),SETTLEMENT_DATE((short)2, "settlementDate"),TRANSACTION_DATE_FROM((short)3, "transactionDateFrom"),TRANSACTION_DATE_TO((short)4, "transactionDateTo"),AMOUNT((short)5, "amount");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SETTLEMENT_IDreturn SETTLEMENT_ID;case 2: // SETTLEMENT_DATEreturn SETTLEMENT_DATE;case 3: // TRANSACTION_DATE_FROMreturn TRANSACTION_DATE_FROM;case 4: // TRANSACTION_DATE_TOreturn TRANSACTION_DATE_TO;case 5: // AMOUNTreturn AMOUNT;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SETTLEMENTID_ISSET_ID = 0;private static final int __SETTLEMENTDATE_ISSET_ID = 1;private static final int __TRANSACTIONDATEFROM_ISSET_ID = 2;private static final int __TRANSACTIONDATETO_ISSET_ID = 3;private static final int __AMOUNT_ISSET_ID = 4;private BitSet __isset_bit_vector = new BitSet(5);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SETTLEMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("settlementId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.SETTLEMENT_DATE, new org.apache.thrift.meta_data.FieldMetaData("settlementDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TRANSACTION_DATE_FROM, new org.apache.thrift.meta_data.FieldMetaData("transactionDateFrom", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TRANSACTION_DATE_TO, new org.apache.thrift.meta_data.FieldMetaData("transactionDateTo", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveEBSSettlementSummary_args.class, metaDataMap);}public saveEBSSettlementSummary_args() {}public saveEBSSettlementSummary_args(long settlementId,long settlementDate,long transactionDateFrom,long transactionDateTo,double amount){this();this.settlementId = settlementId;setSettlementIdIsSet(true);this.settlementDate = settlementDate;setSettlementDateIsSet(true);this.transactionDateFrom = transactionDateFrom;setTransactionDateFromIsSet(true);this.transactionDateTo = transactionDateTo;setTransactionDateToIsSet(true);this.amount = amount;setAmountIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public saveEBSSettlementSummary_args(saveEBSSettlementSummary_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.settlementId = other.settlementId;this.settlementDate = other.settlementDate;this.transactionDateFrom = other.transactionDateFrom;this.transactionDateTo = other.transactionDateTo;this.amount = other.amount;}public saveEBSSettlementSummary_args deepCopy() {return new saveEBSSettlementSummary_args(this);}@Overridepublic void clear() {setSettlementIdIsSet(false);this.settlementId = 0;setSettlementDateIsSet(false);this.settlementDate = 0;setTransactionDateFromIsSet(false);this.transactionDateFrom = 0;setTransactionDateToIsSet(false);this.transactionDateTo = 0;setAmountIsSet(false);this.amount = 0.0;}public long getSettlementId() {return this.settlementId;}public void setSettlementId(long settlementId) {this.settlementId = settlementId;setSettlementIdIsSet(true);}public void unsetSettlementId() {__isset_bit_vector.clear(__SETTLEMENTID_ISSET_ID);}/** Returns true if field settlementId is set (has been assigned a value) and false otherwise */public boolean isSetSettlementId() {return __isset_bit_vector.get(__SETTLEMENTID_ISSET_ID);}public void setSettlementIdIsSet(boolean value) {__isset_bit_vector.set(__SETTLEMENTID_ISSET_ID, value);}public long getSettlementDate() {return this.settlementDate;}public void setSettlementDate(long settlementDate) {this.settlementDate = settlementDate;setSettlementDateIsSet(true);}public void unsetSettlementDate() {__isset_bit_vector.clear(__SETTLEMENTDATE_ISSET_ID);}/** Returns true if field settlementDate is set (has been assigned a value) and false otherwise */public boolean isSetSettlementDate() {return __isset_bit_vector.get(__SETTLEMENTDATE_ISSET_ID);}public void setSettlementDateIsSet(boolean value) {__isset_bit_vector.set(__SETTLEMENTDATE_ISSET_ID, value);}public long getTransactionDateFrom() {return this.transactionDateFrom;}public void setTransactionDateFrom(long transactionDateFrom) {this.transactionDateFrom = transactionDateFrom;setTransactionDateFromIsSet(true);}public void unsetTransactionDateFrom() {__isset_bit_vector.clear(__TRANSACTIONDATEFROM_ISSET_ID);}/** Returns true if field transactionDateFrom is set (has been assigned a value) and false otherwise */public boolean isSetTransactionDateFrom() {return __isset_bit_vector.get(__TRANSACTIONDATEFROM_ISSET_ID);}public void setTransactionDateFromIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONDATEFROM_ISSET_ID, value);}public long getTransactionDateTo() {return this.transactionDateTo;}public void setTransactionDateTo(long transactionDateTo) {this.transactionDateTo = transactionDateTo;setTransactionDateToIsSet(true);}public void unsetTransactionDateTo() {__isset_bit_vector.clear(__TRANSACTIONDATETO_ISSET_ID);}/** Returns true if field transactionDateTo is set (has been assigned a value) and false otherwise */public boolean isSetTransactionDateTo() {return __isset_bit_vector.get(__TRANSACTIONDATETO_ISSET_ID);}public void setTransactionDateToIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONDATETO_ISSET_ID, value);}public double getAmount() {return this.amount;}public void setAmount(double amount) {this.amount = amount;setAmountIsSet(true);}public void unsetAmount() {__isset_bit_vector.clear(__AMOUNT_ISSET_ID);}/** Returns true if field amount is set (has been assigned a value) and false otherwise */public boolean isSetAmount() {return __isset_bit_vector.get(__AMOUNT_ISSET_ID);}public void setAmountIsSet(boolean value) {__isset_bit_vector.set(__AMOUNT_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SETTLEMENT_ID:if (value == null) {unsetSettlementId();} else {setSettlementId((Long)value);}break;case SETTLEMENT_DATE:if (value == null) {unsetSettlementDate();} else {setSettlementDate((Long)value);}break;case TRANSACTION_DATE_FROM:if (value == null) {unsetTransactionDateFrom();} else {setTransactionDateFrom((Long)value);}break;case TRANSACTION_DATE_TO:if (value == null) {unsetTransactionDateTo();} else {setTransactionDateTo((Long)value);}break;case AMOUNT:if (value == null) {unsetAmount();} else {setAmount((Double)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SETTLEMENT_ID:return Long.valueOf(getSettlementId());case SETTLEMENT_DATE:return Long.valueOf(getSettlementDate());case TRANSACTION_DATE_FROM:return Long.valueOf(getTransactionDateFrom());case TRANSACTION_DATE_TO:return Long.valueOf(getTransactionDateTo());case AMOUNT:return Double.valueOf(getAmount());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SETTLEMENT_ID:return isSetSettlementId();case SETTLEMENT_DATE:return isSetSettlementDate();case TRANSACTION_DATE_FROM:return isSetTransactionDateFrom();case TRANSACTION_DATE_TO:return isSetTransactionDateTo();case AMOUNT:return isSetAmount();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof saveEBSSettlementSummary_args)return this.equals((saveEBSSettlementSummary_args)that);return false;}public boolean equals(saveEBSSettlementSummary_args that) {if (that == null)return false;boolean this_present_settlementId = true;boolean that_present_settlementId = true;if (this_present_settlementId || that_present_settlementId) {if (!(this_present_settlementId && that_present_settlementId))return false;if (this.settlementId != that.settlementId)return false;}boolean this_present_settlementDate = true;boolean that_present_settlementDate = true;if (this_present_settlementDate || that_present_settlementDate) {if (!(this_present_settlementDate && that_present_settlementDate))return false;if (this.settlementDate != that.settlementDate)return false;}boolean this_present_transactionDateFrom = true;boolean that_present_transactionDateFrom = true;if (this_present_transactionDateFrom || that_present_transactionDateFrom) {if (!(this_present_transactionDateFrom && that_present_transactionDateFrom))return false;if (this.transactionDateFrom != that.transactionDateFrom)return false;}boolean this_present_transactionDateTo = true;boolean that_present_transactionDateTo = true;if (this_present_transactionDateTo || that_present_transactionDateTo) {if (!(this_present_transactionDateTo && that_present_transactionDateTo))return false;if (this.transactionDateTo != that.transactionDateTo)return false;}boolean this_present_amount = true;boolean that_present_amount = true;if (this_present_amount || that_present_amount) {if (!(this_present_amount && that_present_amount))return false;if (this.amount != that.amount)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(saveEBSSettlementSummary_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;saveEBSSettlementSummary_args typedOther = (saveEBSSettlementSummary_args)other;lastComparison = Boolean.valueOf(isSetSettlementId()).compareTo(typedOther.isSetSettlementId());if (lastComparison != 0) {return lastComparison;}if (isSetSettlementId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.settlementId, typedOther.settlementId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSettlementDate()).compareTo(typedOther.isSetSettlementDate());if (lastComparison != 0) {return lastComparison;}if (isSetSettlementDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.settlementDate, typedOther.settlementDate);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTransactionDateFrom()).compareTo(typedOther.isSetTransactionDateFrom());if (lastComparison != 0) {return lastComparison;}if (isSetTransactionDateFrom()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionDateFrom, typedOther.transactionDateFrom);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetTransactionDateTo()).compareTo(typedOther.isSetTransactionDateTo());if (lastComparison != 0) {return lastComparison;}if (isSetTransactionDateTo()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionDateTo, typedOther.transactionDateTo);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());if (lastComparison != 0) {return lastComparison;}if (isSetAmount()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SETTLEMENT_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.settlementId = iprot.readI64();setSettlementIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // SETTLEMENT_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.settlementDate = iprot.readI64();setSettlementDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // TRANSACTION_DATE_FROMif (field.type == org.apache.thrift.protocol.TType.I64) {this.transactionDateFrom = iprot.readI64();setTransactionDateFromIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // TRANSACTION_DATE_TOif (field.type == org.apache.thrift.protocol.TType.I64) {this.transactionDateTo = iprot.readI64();setTransactionDateToIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // AMOUNTif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.amount = iprot.readDouble();setAmountIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(SETTLEMENT_ID_FIELD_DESC);oprot.writeI64(this.settlementId);oprot.writeFieldEnd();oprot.writeFieldBegin(SETTLEMENT_DATE_FIELD_DESC);oprot.writeI64(this.settlementDate);oprot.writeFieldEnd();oprot.writeFieldBegin(TRANSACTION_DATE_FROM_FIELD_DESC);oprot.writeI64(this.transactionDateFrom);oprot.writeFieldEnd();oprot.writeFieldBegin(TRANSACTION_DATE_TO_FIELD_DESC);oprot.writeI64(this.transactionDateTo);oprot.writeFieldEnd();oprot.writeFieldBegin(AMOUNT_FIELD_DESC);oprot.writeDouble(this.amount);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("saveEBSSettlementSummary_args(");boolean first = true;sb.append("settlementId:");sb.append(this.settlementId);first = false;if (!first) sb.append(", ");sb.append("settlementDate:");sb.append(this.settlementDate);first = false;if (!first) sb.append(", ");sb.append("transactionDateFrom:");sb.append(this.transactionDateFrom);first = false;if (!first) sb.append(", ");sb.append("transactionDateTo:");sb.append(this.transactionDateTo);first = false;if (!first) sb.append(", ");sb.append("amount:");sb.append(this.amount);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class saveEBSSettlementSummary_result implements org.apache.thrift.TBase<saveEBSSettlementSummary_result, saveEBSSettlementSummary_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveEBSSettlementSummary_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveEBSSettlementSummary_result.class, metaDataMap);}public saveEBSSettlementSummary_result() {}public saveEBSSettlementSummary_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public saveEBSSettlementSummary_result(saveEBSSettlementSummary_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public saveEBSSettlementSummary_result deepCopy() {return new saveEBSSettlementSummary_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof saveEBSSettlementSummary_result)return this.equals((saveEBSSettlementSummary_result)that);return false;}public boolean equals(saveEBSSettlementSummary_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(saveEBSSettlementSummary_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;saveEBSSettlementSummary_result typedOther = (saveEBSSettlementSummary_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("saveEBSSettlementSummary_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSettlementForPrepaid_args implements org.apache.thrift.TBase<getSettlementForPrepaid_args, getSettlementForPrepaid_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSettlementForPrepaid_args");private static final org.apache.thrift.protocol.TField REFERENCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField IS_REFUND_FIELD_DESC = new org.apache.thrift.protocol.TField("isRefund", org.apache.thrift.protocol.TType.BOOL, (short)2);private long referenceId; // requiredprivate boolean isRefund; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {REFERENCE_ID((short)1, "referenceId"),IS_REFUND((short)2, "isRefund");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // REFERENCE_IDreturn REFERENCE_ID;case 2: // IS_REFUNDreturn IS_REFUND;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __REFERENCEID_ISSET_ID = 0;private static final int __ISREFUND_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.REFERENCE_ID, new org.apache.thrift.meta_data.FieldMetaData("referenceId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.IS_REFUND, new org.apache.thrift.meta_data.FieldMetaData("isRefund", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSettlementForPrepaid_args.class, metaDataMap);}public getSettlementForPrepaid_args() {}public getSettlementForPrepaid_args(long referenceId,boolean isRefund){this();this.referenceId = referenceId;setReferenceIdIsSet(true);this.isRefund = isRefund;setIsRefundIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getSettlementForPrepaid_args(getSettlementForPrepaid_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.referenceId = other.referenceId;this.isRefund = other.isRefund;}public getSettlementForPrepaid_args deepCopy() {return new getSettlementForPrepaid_args(this);}@Overridepublic void clear() {setReferenceIdIsSet(false);this.referenceId = 0;setIsRefundIsSet(false);this.isRefund = false;}public long getReferenceId() {return this.referenceId;}public void setReferenceId(long referenceId) {this.referenceId = referenceId;setReferenceIdIsSet(true);}public void unsetReferenceId() {__isset_bit_vector.clear(__REFERENCEID_ISSET_ID);}/** Returns true if field referenceId is set (has been assigned a value) and false otherwise */public boolean isSetReferenceId() {return __isset_bit_vector.get(__REFERENCEID_ISSET_ID);}public void setReferenceIdIsSet(boolean value) {__isset_bit_vector.set(__REFERENCEID_ISSET_ID, value);}public boolean isIsRefund() {return this.isRefund;}public void setIsRefund(boolean isRefund) {this.isRefund = isRefund;setIsRefundIsSet(true);}public void unsetIsRefund() {__isset_bit_vector.clear(__ISREFUND_ISSET_ID);}/** Returns true if field isRefund is set (has been assigned a value) and false otherwise */public boolean isSetIsRefund() {return __isset_bit_vector.get(__ISREFUND_ISSET_ID);}public void setIsRefundIsSet(boolean value) {__isset_bit_vector.set(__ISREFUND_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case REFERENCE_ID:if (value == null) {unsetReferenceId();} else {setReferenceId((Long)value);}break;case IS_REFUND:if (value == null) {unsetIsRefund();} else {setIsRefund((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case REFERENCE_ID:return Long.valueOf(getReferenceId());case IS_REFUND:return Boolean.valueOf(isIsRefund());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case REFERENCE_ID:return isSetReferenceId();case IS_REFUND:return isSetIsRefund();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSettlementForPrepaid_args)return this.equals((getSettlementForPrepaid_args)that);return false;}public boolean equals(getSettlementForPrepaid_args that) {if (that == null)return false;boolean this_present_referenceId = true;boolean that_present_referenceId = true;if (this_present_referenceId || that_present_referenceId) {if (!(this_present_referenceId && that_present_referenceId))return false;if (this.referenceId != that.referenceId)return false;}boolean this_present_isRefund = true;boolean that_present_isRefund = true;if (this_present_isRefund || that_present_isRefund) {if (!(this_present_isRefund && that_present_isRefund))return false;if (this.isRefund != that.isRefund)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSettlementForPrepaid_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSettlementForPrepaid_args typedOther = (getSettlementForPrepaid_args)other;lastComparison = Boolean.valueOf(isSetReferenceId()).compareTo(typedOther.isSetReferenceId());if (lastComparison != 0) {return lastComparison;}if (isSetReferenceId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceId, typedOther.referenceId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsRefund()).compareTo(typedOther.isSetIsRefund());if (lastComparison != 0) {return lastComparison;}if (isSetIsRefund()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isRefund, typedOther.isRefund);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // REFERENCE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.referenceId = iprot.readI64();setReferenceIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // IS_REFUNDif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.isRefund = iprot.readBool();setIsRefundIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(REFERENCE_ID_FIELD_DESC);oprot.writeI64(this.referenceId);oprot.writeFieldEnd();oprot.writeFieldBegin(IS_REFUND_FIELD_DESC);oprot.writeBool(this.isRefund);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSettlementForPrepaid_args(");boolean first = true;sb.append("referenceId:");sb.append(this.referenceId);first = false;if (!first) sb.append(", ");sb.append("isRefund:");sb.append(this.isRefund);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSettlementForPrepaid_result implements org.apache.thrift.TBase<getSettlementForPrepaid_result, getSettlementForPrepaid_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSettlementForPrepaid_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private PaymentSettlement success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PaymentSettlement.class)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSettlementForPrepaid_result.class, metaDataMap);}public getSettlementForPrepaid_result() {}public getSettlementForPrepaid_result(PaymentSettlement success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getSettlementForPrepaid_result(getSettlementForPrepaid_result other) {if (other.isSetSuccess()) {this.success = new PaymentSettlement(other.success);}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getSettlementForPrepaid_result deepCopy() {return new getSettlementForPrepaid_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public PaymentSettlement getSuccess() {return this.success;}public void setSuccess(PaymentSettlement success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((PaymentSettlement)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSettlementForPrepaid_result)return this.equals((getSettlementForPrepaid_result)that);return false;}public boolean equals(getSettlementForPrepaid_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSettlementForPrepaid_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSettlementForPrepaid_result typedOther = (getSettlementForPrepaid_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new PaymentSettlement();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSettlementForPrepaid_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSettlementForCod_args implements org.apache.thrift.TBase<getSettlementForCod_args, getSettlementForCod_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSettlementForCod_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField IS_REFUND_FIELD_DESC = new org.apache.thrift.protocol.TField("isRefund", org.apache.thrift.protocol.TType.BOOL, (short)2);private long orderId; // requiredprivate boolean isRefund; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),IS_REFUND((short)2, "isRefund");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case 2: // IS_REFUNDreturn IS_REFUND;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private static final int __ISREFUND_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.IS_REFUND, new org.apache.thrift.meta_data.FieldMetaData("isRefund", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSettlementForCod_args.class, metaDataMap);}public getSettlementForCod_args() {}public getSettlementForCod_args(long orderId,boolean isRefund){this();this.orderId = orderId;setOrderIdIsSet(true);this.isRefund = isRefund;setIsRefundIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getSettlementForCod_args(getSettlementForCod_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;this.isRefund = other.isRefund;}public getSettlementForCod_args deepCopy() {return new getSettlementForCod_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;setIsRefundIsSet(false);this.isRefund = false;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public boolean isIsRefund() {return this.isRefund;}public void setIsRefund(boolean isRefund) {this.isRefund = isRefund;setIsRefundIsSet(true);}public void unsetIsRefund() {__isset_bit_vector.clear(__ISREFUND_ISSET_ID);}/** Returns true if field isRefund is set (has been assigned a value) and false otherwise */public boolean isSetIsRefund() {return __isset_bit_vector.get(__ISREFUND_ISSET_ID);}public void setIsRefundIsSet(boolean value) {__isset_bit_vector.set(__ISREFUND_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case IS_REFUND:if (value == null) {unsetIsRefund();} else {setIsRefund((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case IS_REFUND:return Boolean.valueOf(isIsRefund());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case IS_REFUND:return isSetIsRefund();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSettlementForCod_args)return this.equals((getSettlementForCod_args)that);return false;}public boolean equals(getSettlementForCod_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_isRefund = true;boolean that_present_isRefund = true;if (this_present_isRefund || that_present_isRefund) {if (!(this_present_isRefund && that_present_isRefund))return false;if (this.isRefund != that.isRefund)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSettlementForCod_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSettlementForCod_args typedOther = (getSettlementForCod_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsRefund()).compareTo(typedOther.isSetIsRefund());if (lastComparison != 0) {return lastComparison;}if (isSetIsRefund()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isRefund, typedOther.isRefund);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // IS_REFUNDif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.isRefund = iprot.readBool();setIsRefundIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldBegin(IS_REFUND_FIELD_DESC);oprot.writeBool(this.isRefund);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSettlementForCod_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("isRefund:");sb.append(this.isRefund);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSettlementForCod_result implements org.apache.thrift.TBase<getSettlementForCod_result, getSettlementForCod_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSettlementForCod_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private PaymentSettlement success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PaymentSettlement.class)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSettlementForCod_result.class, metaDataMap);}public getSettlementForCod_result() {}public getSettlementForCod_result(PaymentSettlement success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getSettlementForCod_result(getSettlementForCod_result other) {if (other.isSetSuccess()) {this.success = new PaymentSettlement(other.success);}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getSettlementForCod_result deepCopy() {return new getSettlementForCod_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public PaymentSettlement getSuccess() {return this.success;}public void setSuccess(PaymentSettlement success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((PaymentSettlement)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSettlementForCod_result)return this.equals((getSettlementForCod_result)that);return false;}public boolean equals(getSettlementForCod_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSettlementForCod_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSettlementForCod_result typedOther = (getSettlementForCod_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new PaymentSettlement();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSettlementForCod_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getEBSSettlementSummaries_args implements org.apache.thrift.TBase<getEBSSettlementSummaries_args, getEBSSettlementSummaries_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEBSSettlementSummaries_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEBSSettlementSummaries_args.class, metaDataMap);}public getEBSSettlementSummaries_args() {}/*** Performs a deep copy on <i>other</i>.*/public getEBSSettlementSummaries_args(getEBSSettlementSummaries_args other) {}public getEBSSettlementSummaries_args deepCopy() {return new getEBSSettlementSummaries_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getEBSSettlementSummaries_args)return this.equals((getEBSSettlementSummaries_args)that);return false;}public boolean equals(getEBSSettlementSummaries_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getEBSSettlementSummaries_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getEBSSettlementSummaries_args typedOther = (getEBSSettlementSummaries_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getEBSSettlementSummaries_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getEBSSettlementSummaries_result implements org.apache.thrift.TBase<getEBSSettlementSummaries_result, getEBSSettlementSummaries_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEBSSettlementSummaries_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Map<Long,String> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEBSSettlementSummaries_result.class, metaDataMap);}public getEBSSettlementSummaries_result() {}public getEBSSettlementSummaries_result(Map<Long,String> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getEBSSettlementSummaries_result(getEBSSettlementSummaries_result other) {if (other.isSetSuccess()) {Map<Long,String> __this__success = new HashMap<Long,String>();for (Map.Entry<Long, String> other_element : other.success.entrySet()) {Long other_element_key = other_element.getKey();String other_element_value = other_element.getValue();Long __this__success_copy_key = other_element_key;String __this__success_copy_value = other_element_value;__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getEBSSettlementSummaries_result deepCopy() {return new getEBSSettlementSummaries_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(long key, String val) {if (this.success == null) {this.success = new HashMap<Long,String>();}this.success.put(key, val);}public Map<Long,String> getSuccess() {return this.success;}public void setSuccess(Map<Long,String> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<Long,String>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getEBSSettlementSummaries_result)return this.equals((getEBSSettlementSummaries_result)that);return false;}public boolean equals(getEBSSettlementSummaries_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getEBSSettlementSummaries_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getEBSSettlementSummaries_result typedOther = (getEBSSettlementSummaries_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map294 = iprot.readMapBegin();this.success = new HashMap<Long,String>(2*_map294.size);for (int _i295 = 0; _i295 < _map294.size; ++_i295){long _key296; // requiredString _val297; // required_key296 = iprot.readI64();_val297 = iprot.readString();this.success.put(_key296, _val297);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, this.success.size()));for (Map.Entry<Long, String> _iter298 : this.success.entrySet()){oprot.writeI64(_iter298.getKey());oprot.writeString(_iter298.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getEBSSettlementSummaries_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markEBSSettlementUploaded_args implements org.apache.thrift.TBase<markEBSSettlementUploaded_args, markEBSSettlementUploaded_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEBSSettlementUploaded_args");private static final org.apache.thrift.protocol.TField SETTLEMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("settlementId", org.apache.thrift.protocol.TType.I64, (short)1);private long settlementId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SETTLEMENT_ID((short)1, "settlementId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SETTLEMENT_IDreturn SETTLEMENT_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SETTLEMENTID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SETTLEMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("settlementId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEBSSettlementUploaded_args.class, metaDataMap);}public markEBSSettlementUploaded_args() {}public markEBSSettlementUploaded_args(long settlementId){this();this.settlementId = settlementId;setSettlementIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public markEBSSettlementUploaded_args(markEBSSettlementUploaded_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.settlementId = other.settlementId;}public markEBSSettlementUploaded_args deepCopy() {return new markEBSSettlementUploaded_args(this);}@Overridepublic void clear() {setSettlementIdIsSet(false);this.settlementId = 0;}public long getSettlementId() {return this.settlementId;}public void setSettlementId(long settlementId) {this.settlementId = settlementId;setSettlementIdIsSet(true);}public void unsetSettlementId() {__isset_bit_vector.clear(__SETTLEMENTID_ISSET_ID);}/** Returns true if field settlementId is set (has been assigned a value) and false otherwise */public boolean isSetSettlementId() {return __isset_bit_vector.get(__SETTLEMENTID_ISSET_ID);}public void setSettlementIdIsSet(boolean value) {__isset_bit_vector.set(__SETTLEMENTID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SETTLEMENT_ID:if (value == null) {unsetSettlementId();} else {setSettlementId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SETTLEMENT_ID:return Long.valueOf(getSettlementId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SETTLEMENT_ID:return isSetSettlementId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markEBSSettlementUploaded_args)return this.equals((markEBSSettlementUploaded_args)that);return false;}public boolean equals(markEBSSettlementUploaded_args that) {if (that == null)return false;boolean this_present_settlementId = true;boolean that_present_settlementId = true;if (this_present_settlementId || that_present_settlementId) {if (!(this_present_settlementId && that_present_settlementId))return false;if (this.settlementId != that.settlementId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markEBSSettlementUploaded_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markEBSSettlementUploaded_args typedOther = (markEBSSettlementUploaded_args)other;lastComparison = Boolean.valueOf(isSetSettlementId()).compareTo(typedOther.isSetSettlementId());if (lastComparison != 0) {return lastComparison;}if (isSetSettlementId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.settlementId, typedOther.settlementId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SETTLEMENT_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.settlementId = iprot.readI64();setSettlementIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(SETTLEMENT_ID_FIELD_DESC);oprot.writeI64(this.settlementId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markEBSSettlementUploaded_args(");boolean first = true;sb.append("settlementId:");sb.append(this.settlementId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class markEBSSettlementUploaded_result implements org.apache.thrift.TBase<markEBSSettlementUploaded_result, markEBSSettlementUploaded_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEBSSettlementUploaded_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEBSSettlementUploaded_result.class, metaDataMap);}public markEBSSettlementUploaded_result() {}public markEBSSettlementUploaded_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public markEBSSettlementUploaded_result(markEBSSettlementUploaded_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public markEBSSettlementUploaded_result deepCopy() {return new markEBSSettlementUploaded_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof markEBSSettlementUploaded_result)return this.equals((markEBSSettlementUploaded_result)that);return false;}public boolean equals(markEBSSettlementUploaded_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(markEBSSettlementUploaded_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;markEBSSettlementUploaded_result typedOther = (markEBSSettlementUploaded_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("markEBSSettlementUploaded_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getEBSSettlementDate_args implements org.apache.thrift.TBase<getEBSSettlementDate_args, getEBSSettlementDate_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEBSSettlementDate_args");private static final org.apache.thrift.protocol.TField SETTLEMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("settlementId", org.apache.thrift.protocol.TType.I64, (short)1);private long settlementId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SETTLEMENT_ID((short)1, "settlementId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SETTLEMENT_IDreturn SETTLEMENT_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SETTLEMENTID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SETTLEMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("settlementId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEBSSettlementDate_args.class, metaDataMap);}public getEBSSettlementDate_args() {}public getEBSSettlementDate_args(long settlementId){this();this.settlementId = settlementId;setSettlementIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getEBSSettlementDate_args(getEBSSettlementDate_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.settlementId = other.settlementId;}public getEBSSettlementDate_args deepCopy() {return new getEBSSettlementDate_args(this);}@Overridepublic void clear() {setSettlementIdIsSet(false);this.settlementId = 0;}public long getSettlementId() {return this.settlementId;}public void setSettlementId(long settlementId) {this.settlementId = settlementId;setSettlementIdIsSet(true);}public void unsetSettlementId() {__isset_bit_vector.clear(__SETTLEMENTID_ISSET_ID);}/** Returns true if field settlementId is set (has been assigned a value) and false otherwise */public boolean isSetSettlementId() {return __isset_bit_vector.get(__SETTLEMENTID_ISSET_ID);}public void setSettlementIdIsSet(boolean value) {__isset_bit_vector.set(__SETTLEMENTID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SETTLEMENT_ID:if (value == null) {unsetSettlementId();} else {setSettlementId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SETTLEMENT_ID:return Long.valueOf(getSettlementId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SETTLEMENT_ID:return isSetSettlementId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getEBSSettlementDate_args)return this.equals((getEBSSettlementDate_args)that);return false;}public boolean equals(getEBSSettlementDate_args that) {if (that == null)return false;boolean this_present_settlementId = true;boolean that_present_settlementId = true;if (this_present_settlementId || that_present_settlementId) {if (!(this_present_settlementId && that_present_settlementId))return false;if (this.settlementId != that.settlementId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getEBSSettlementDate_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getEBSSettlementDate_args typedOther = (getEBSSettlementDate_args)other;lastComparison = Boolean.valueOf(isSetSettlementId()).compareTo(typedOther.isSetSettlementId());if (lastComparison != 0) {return lastComparison;}if (isSetSettlementId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.settlementId, typedOther.settlementId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SETTLEMENT_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.settlementId = iprot.readI64();setSettlementIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(SETTLEMENT_ID_FIELD_DESC);oprot.writeI64(this.settlementId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getEBSSettlementDate_args(");boolean first = true;sb.append("settlementId:");sb.append(this.settlementId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getEBSSettlementDate_result implements org.apache.thrift.TBase<getEBSSettlementDate_result, getEBSSettlementDate_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEBSSettlementDate_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private long success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEBSSettlementDate_result.class, metaDataMap);}public getEBSSettlementDate_result() {}public getEBSSettlementDate_result(long success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getEBSSettlementDate_result(getEBSSettlementDate_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getEBSSettlementDate_result deepCopy() {return new getEBSSettlementDate_result(this);}@Overridepublic void clear() {setSuccessIsSet(false);this.success = 0;this.ex = null;}public long getSuccess() {return this.success;}public void setSuccess(long success) {this.success = success;setSuccessIsSet(true);}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return Long.valueOf(getSuccess());case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getEBSSettlementDate_result)return this.equals((getEBSSettlementDate_result)that);return false;}public boolean equals(getEBSSettlementDate_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getEBSSettlementDate_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getEBSSettlementDate_result typedOther = (getEBSSettlementDate_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getEBSSettlementDate_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSettlementsByDate_args implements org.apache.thrift.TBase<getSettlementsByDate_args, getSettlementsByDate_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSettlementsByDate_args");private static final org.apache.thrift.protocol.TField SETTLEMENT_DATE_FROM_FIELD_DESC = new org.apache.thrift.protocol.TField("settlementDateFrom", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField SETTLEMENT_DATE_TO_FIELD_DESC = new org.apache.thrift.protocol.TField("settlementDateTo", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField IS_REFUND_FIELD_DESC = new org.apache.thrift.protocol.TField("isRefund", org.apache.thrift.protocol.TType.BOOL, (short)3);private long settlementDateFrom; // requiredprivate long settlementDateTo; // requiredprivate boolean isRefund; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SETTLEMENT_DATE_FROM((short)1, "settlementDateFrom"),SETTLEMENT_DATE_TO((short)2, "settlementDateTo"),IS_REFUND((short)3, "isRefund");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // SETTLEMENT_DATE_FROMreturn SETTLEMENT_DATE_FROM;case 2: // SETTLEMENT_DATE_TOreturn SETTLEMENT_DATE_TO;case 3: // IS_REFUNDreturn IS_REFUND;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SETTLEMENTDATEFROM_ISSET_ID = 0;private static final int __SETTLEMENTDATETO_ISSET_ID = 1;private static final int __ISREFUND_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SETTLEMENT_DATE_FROM, new org.apache.thrift.meta_data.FieldMetaData("settlementDateFrom", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.SETTLEMENT_DATE_TO, new org.apache.thrift.meta_data.FieldMetaData("settlementDateTo", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.IS_REFUND, new org.apache.thrift.meta_data.FieldMetaData("isRefund", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSettlementsByDate_args.class, metaDataMap);}public getSettlementsByDate_args() {}public getSettlementsByDate_args(long settlementDateFrom,long settlementDateTo,boolean isRefund){this();this.settlementDateFrom = settlementDateFrom;setSettlementDateFromIsSet(true);this.settlementDateTo = settlementDateTo;setSettlementDateToIsSet(true);this.isRefund = isRefund;setIsRefundIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getSettlementsByDate_args(getSettlementsByDate_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.settlementDateFrom = other.settlementDateFrom;this.settlementDateTo = other.settlementDateTo;this.isRefund = other.isRefund;}public getSettlementsByDate_args deepCopy() {return new getSettlementsByDate_args(this);}@Overridepublic void clear() {setSettlementDateFromIsSet(false);this.settlementDateFrom = 0;setSettlementDateToIsSet(false);this.settlementDateTo = 0;setIsRefundIsSet(false);this.isRefund = false;}public long getSettlementDateFrom() {return this.settlementDateFrom;}public void setSettlementDateFrom(long settlementDateFrom) {this.settlementDateFrom = settlementDateFrom;setSettlementDateFromIsSet(true);}public void unsetSettlementDateFrom() {__isset_bit_vector.clear(__SETTLEMENTDATEFROM_ISSET_ID);}/** Returns true if field settlementDateFrom is set (has been assigned a value) and false otherwise */public boolean isSetSettlementDateFrom() {return __isset_bit_vector.get(__SETTLEMENTDATEFROM_ISSET_ID);}public void setSettlementDateFromIsSet(boolean value) {__isset_bit_vector.set(__SETTLEMENTDATEFROM_ISSET_ID, value);}public long getSettlementDateTo() {return this.settlementDateTo;}public void setSettlementDateTo(long settlementDateTo) {this.settlementDateTo = settlementDateTo;setSettlementDateToIsSet(true);}public void unsetSettlementDateTo() {__isset_bit_vector.clear(__SETTLEMENTDATETO_ISSET_ID);}/** Returns true if field settlementDateTo is set (has been assigned a value) and false otherwise */public boolean isSetSettlementDateTo() {return __isset_bit_vector.get(__SETTLEMENTDATETO_ISSET_ID);}public void setSettlementDateToIsSet(boolean value) {__isset_bit_vector.set(__SETTLEMENTDATETO_ISSET_ID, value);}public boolean isIsRefund() {return this.isRefund;}public void setIsRefund(boolean isRefund) {this.isRefund = isRefund;setIsRefundIsSet(true);}public void unsetIsRefund() {__isset_bit_vector.clear(__ISREFUND_ISSET_ID);}/** Returns true if field isRefund is set (has been assigned a value) and false otherwise */public boolean isSetIsRefund() {return __isset_bit_vector.get(__ISREFUND_ISSET_ID);}public void setIsRefundIsSet(boolean value) {__isset_bit_vector.set(__ISREFUND_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SETTLEMENT_DATE_FROM:if (value == null) {unsetSettlementDateFrom();} else {setSettlementDateFrom((Long)value);}break;case SETTLEMENT_DATE_TO:if (value == null) {unsetSettlementDateTo();} else {setSettlementDateTo((Long)value);}break;case IS_REFUND:if (value == null) {unsetIsRefund();} else {setIsRefund((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SETTLEMENT_DATE_FROM:return Long.valueOf(getSettlementDateFrom());case SETTLEMENT_DATE_TO:return Long.valueOf(getSettlementDateTo());case IS_REFUND:return Boolean.valueOf(isIsRefund());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SETTLEMENT_DATE_FROM:return isSetSettlementDateFrom();case SETTLEMENT_DATE_TO:return isSetSettlementDateTo();case IS_REFUND:return isSetIsRefund();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSettlementsByDate_args)return this.equals((getSettlementsByDate_args)that);return false;}public boolean equals(getSettlementsByDate_args that) {if (that == null)return false;boolean this_present_settlementDateFrom = true;boolean that_present_settlementDateFrom = true;if (this_present_settlementDateFrom || that_present_settlementDateFrom) {if (!(this_present_settlementDateFrom && that_present_settlementDateFrom))return false;if (this.settlementDateFrom != that.settlementDateFrom)return false;}boolean this_present_settlementDateTo = true;boolean that_present_settlementDateTo = true;if (this_present_settlementDateTo || that_present_settlementDateTo) {if (!(this_present_settlementDateTo && that_present_settlementDateTo))return false;if (this.settlementDateTo != that.settlementDateTo)return false;}boolean this_present_isRefund = true;boolean that_present_isRefund = true;if (this_present_isRefund || that_present_isRefund) {if (!(this_present_isRefund && that_present_isRefund))return false;if (this.isRefund != that.isRefund)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSettlementsByDate_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSettlementsByDate_args typedOther = (getSettlementsByDate_args)other;lastComparison = Boolean.valueOf(isSetSettlementDateFrom()).compareTo(typedOther.isSetSettlementDateFrom());if (lastComparison != 0) {return lastComparison;}if (isSetSettlementDateFrom()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.settlementDateFrom, typedOther.settlementDateFrom);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetSettlementDateTo()).compareTo(typedOther.isSetSettlementDateTo());if (lastComparison != 0) {return lastComparison;}if (isSetSettlementDateTo()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.settlementDateTo, typedOther.settlementDateTo);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetIsRefund()).compareTo(typedOther.isSetIsRefund());if (lastComparison != 0) {return lastComparison;}if (isSetIsRefund()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isRefund, typedOther.isRefund);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // SETTLEMENT_DATE_FROMif (field.type == org.apache.thrift.protocol.TType.I64) {this.settlementDateFrom = iprot.readI64();setSettlementDateFromIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // SETTLEMENT_DATE_TOif (field.type == org.apache.thrift.protocol.TType.I64) {this.settlementDateTo = iprot.readI64();setSettlementDateToIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // IS_REFUNDif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.isRefund = iprot.readBool();setIsRefundIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(SETTLEMENT_DATE_FROM_FIELD_DESC);oprot.writeI64(this.settlementDateFrom);oprot.writeFieldEnd();oprot.writeFieldBegin(SETTLEMENT_DATE_TO_FIELD_DESC);oprot.writeI64(this.settlementDateTo);oprot.writeFieldEnd();oprot.writeFieldBegin(IS_REFUND_FIELD_DESC);oprot.writeBool(this.isRefund);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSettlementsByDate_args(");boolean first = true;sb.append("settlementDateFrom:");sb.append(this.settlementDateFrom);first = false;if (!first) sb.append(", ");sb.append("settlementDateTo:");sb.append(this.settlementDateTo);first = false;if (!first) sb.append(", ");sb.append("isRefund:");sb.append(this.isRefund);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getSettlementsByDate_result implements org.apache.thrift.TBase<getSettlementsByDate_result, getSettlementsByDate_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSettlementsByDate_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<PaymentSettlement> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PaymentSettlement.class))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSettlementsByDate_result.class, metaDataMap);}public getSettlementsByDate_result() {}public getSettlementsByDate_result(List<PaymentSettlement> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getSettlementsByDate_result(getSettlementsByDate_result other) {if (other.isSetSuccess()) {List<PaymentSettlement> __this__success = new ArrayList<PaymentSettlement>();for (PaymentSettlement other_element : other.success) {__this__success.add(new PaymentSettlement(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getSettlementsByDate_result deepCopy() {return new getSettlementsByDate_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<PaymentSettlement> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(PaymentSettlement elem) {if (this.success == null) {this.success = new ArrayList<PaymentSettlement>();}this.success.add(elem);}public List<PaymentSettlement> getSuccess() {return this.success;}public void setSuccess(List<PaymentSettlement> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<PaymentSettlement>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getSettlementsByDate_result)return this.equals((getSettlementsByDate_result)that);return false;}public boolean equals(getSettlementsByDate_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getSettlementsByDate_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getSettlementsByDate_result typedOther = (getSettlementsByDate_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list299 = iprot.readListBegin();this.success = new ArrayList<PaymentSettlement>(_list299.size);for (int _i300 = 0; _i300 < _list299.size; ++_i300){PaymentSettlement _elem301; // required_elem301 = new PaymentSettlement();_elem301.read(iprot);this.success.add(_elem301);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (PaymentSettlement _iter302 : this.success){_iter302.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getSettlementsByDate_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getReshippedOrderIds_args implements org.apache.thrift.TBase<getReshippedOrderIds_args, getReshippedOrderIds_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReshippedOrderIds_args");private static final org.apache.thrift.protocol.TField ORDER_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("orderIds", org.apache.thrift.protocol.TType.LIST, (short)1);private List<Long> orderIds; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_IDS((short)1, "orderIds");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDSreturn ORDER_IDS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_IDS, new org.apache.thrift.meta_data.FieldMetaData("orderIds", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReshippedOrderIds_args.class, metaDataMap);}public getReshippedOrderIds_args() {}public getReshippedOrderIds_args(List<Long> orderIds){this();this.orderIds = orderIds;}/*** Performs a deep copy on <i>other</i>.*/public getReshippedOrderIds_args(getReshippedOrderIds_args other) {if (other.isSetOrderIds()) {List<Long> __this__orderIds = new ArrayList<Long>();for (Long other_element : other.orderIds) {__this__orderIds.add(other_element);}this.orderIds = __this__orderIds;}}public getReshippedOrderIds_args deepCopy() {return new getReshippedOrderIds_args(this);}@Overridepublic void clear() {this.orderIds = null;}public int getOrderIdsSize() {return (this.orderIds == null) ? 0 : this.orderIds.size();}public java.util.Iterator<Long> getOrderIdsIterator() {return (this.orderIds == null) ? null : this.orderIds.iterator();}public void addToOrderIds(long elem) {if (this.orderIds == null) {this.orderIds = new ArrayList<Long>();}this.orderIds.add(elem);}public List<Long> getOrderIds() {return this.orderIds;}public void setOrderIds(List<Long> orderIds) {this.orderIds = orderIds;}public void unsetOrderIds() {this.orderIds = null;}/** Returns true if field orderIds is set (has been assigned a value) and false otherwise */public boolean isSetOrderIds() {return this.orderIds != null;}public void setOrderIdsIsSet(boolean value) {if (!value) {this.orderIds = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_IDS:if (value == null) {unsetOrderIds();} else {setOrderIds((List<Long>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_IDS:return getOrderIds();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_IDS:return isSetOrderIds();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getReshippedOrderIds_args)return this.equals((getReshippedOrderIds_args)that);return false;}public boolean equals(getReshippedOrderIds_args that) {if (that == null)return false;boolean this_present_orderIds = true && this.isSetOrderIds();boolean that_present_orderIds = true && that.isSetOrderIds();if (this_present_orderIds || that_present_orderIds) {if (!(this_present_orderIds && that_present_orderIds))return false;if (!this.orderIds.equals(that.orderIds))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getReshippedOrderIds_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getReshippedOrderIds_args typedOther = (getReshippedOrderIds_args)other;lastComparison = Boolean.valueOf(isSetOrderIds()).compareTo(typedOther.isSetOrderIds());if (lastComparison != 0) {return lastComparison;}if (isSetOrderIds()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderIds, typedOther.orderIds);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list303 = iprot.readListBegin();this.orderIds = new ArrayList<Long>(_list303.size);for (int _i304 = 0; _i304 < _list303.size; ++_i304){long _elem305; // required_elem305 = iprot.readI64();this.orderIds.add(_elem305);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.orderIds != null) {oprot.writeFieldBegin(ORDER_IDS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.orderIds.size()));for (long _iter306 : this.orderIds){oprot.writeI64(_iter306);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getReshippedOrderIds_args(");boolean first = true;sb.append("orderIds:");if (this.orderIds == null) {sb.append("null");} else {sb.append(this.orderIds);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getReshippedOrderIds_result implements org.apache.thrift.TBase<getReshippedOrderIds_result, getReshippedOrderIds_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReshippedOrderIds_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Long> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReshippedOrderIds_result.class, metaDataMap);}public getReshippedOrderIds_result() {}public getReshippedOrderIds_result(List<Long> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getReshippedOrderIds_result(getReshippedOrderIds_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getReshippedOrderIds_result deepCopy() {return new getReshippedOrderIds_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Long>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getReshippedOrderIds_result)return this.equals((getReshippedOrderIds_result)that);return false;}public boolean equals(getReshippedOrderIds_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getReshippedOrderIds_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getReshippedOrderIds_result typedOther = (getReshippedOrderIds_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list307 = iprot.readListBegin();this.success = new ArrayList<Long>(_list307.size);for (int _i308 = 0; _i308 < _list307.size; ++_i308){long _elem309; // required_elem309 = iprot.readI64();this.success.add(_elem309);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter310 : this.success){oprot.writeI64(_iter310);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getReshippedOrderIds_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBilledOrders_args implements org.apache.thrift.TBase<getBilledOrders_args, getBilledOrders_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBilledOrders_args");private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField ONLY_VENDOR_NOT_PAID_FIELD_DESC = new org.apache.thrift.protocol.TField("onlyVendorNotPaid", org.apache.thrift.protocol.TType.BOOL, (short)2);private static final org.apache.thrift.protocol.TField BILLING_DATE_FROM_FIELD_DESC = new org.apache.thrift.protocol.TField("billingDateFrom", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField BILLING_DATE_TO_FIELD_DESC = new org.apache.thrift.protocol.TField("billingDateTo", org.apache.thrift.protocol.TType.I64, (short)4);private long vendorId; // requiredprivate boolean onlyVendorNotPaid; // requiredprivate long billingDateFrom; // requiredprivate long billingDateTo; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {VENDOR_ID((short)1, "vendorId"),ONLY_VENDOR_NOT_PAID((short)2, "onlyVendorNotPaid"),BILLING_DATE_FROM((short)3, "billingDateFrom"),BILLING_DATE_TO((short)4, "billingDateTo");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // VENDOR_IDreturn VENDOR_ID;case 2: // ONLY_VENDOR_NOT_PAIDreturn ONLY_VENDOR_NOT_PAID;case 3: // BILLING_DATE_FROMreturn BILLING_DATE_FROM;case 4: // BILLING_DATE_TOreturn BILLING_DATE_TO;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __VENDORID_ISSET_ID = 0;private static final int __ONLYVENDORNOTPAID_ISSET_ID = 1;private static final int __BILLINGDATEFROM_ISSET_ID = 2;private static final int __BILLINGDATETO_ISSET_ID = 3;private BitSet __isset_bit_vector = new BitSet(4);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ONLY_VENDOR_NOT_PAID, new org.apache.thrift.meta_data.FieldMetaData("onlyVendorNotPaid", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));tmpMap.put(_Fields.BILLING_DATE_FROM, new org.apache.thrift.meta_data.FieldMetaData("billingDateFrom", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.BILLING_DATE_TO, new org.apache.thrift.meta_data.FieldMetaData("billingDateTo", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBilledOrders_args.class, metaDataMap);}public getBilledOrders_args() {}public getBilledOrders_args(long vendorId,boolean onlyVendorNotPaid,long billingDateFrom,long billingDateTo){this();this.vendorId = vendorId;setVendorIdIsSet(true);this.onlyVendorNotPaid = onlyVendorNotPaid;setOnlyVendorNotPaidIsSet(true);this.billingDateFrom = billingDateFrom;setBillingDateFromIsSet(true);this.billingDateTo = billingDateTo;setBillingDateToIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getBilledOrders_args(getBilledOrders_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.vendorId = other.vendorId;this.onlyVendorNotPaid = other.onlyVendorNotPaid;this.billingDateFrom = other.billingDateFrom;this.billingDateTo = other.billingDateTo;}public getBilledOrders_args deepCopy() {return new getBilledOrders_args(this);}@Overridepublic void clear() {setVendorIdIsSet(false);this.vendorId = 0;setOnlyVendorNotPaidIsSet(false);this.onlyVendorNotPaid = false;setBillingDateFromIsSet(false);this.billingDateFrom = 0;setBillingDateToIsSet(false);this.billingDateTo = 0;}public long getVendorId() {return this.vendorId;}public void setVendorId(long vendorId) {this.vendorId = vendorId;setVendorIdIsSet(true);}public void unsetVendorId() {__isset_bit_vector.clear(__VENDORID_ISSET_ID);}/** Returns true if field vendorId is set (has been assigned a value) and false otherwise */public boolean isSetVendorId() {return __isset_bit_vector.get(__VENDORID_ISSET_ID);}public void setVendorIdIsSet(boolean value) {__isset_bit_vector.set(__VENDORID_ISSET_ID, value);}public boolean isOnlyVendorNotPaid() {return this.onlyVendorNotPaid;}public void setOnlyVendorNotPaid(boolean onlyVendorNotPaid) {this.onlyVendorNotPaid = onlyVendorNotPaid;setOnlyVendorNotPaidIsSet(true);}public void unsetOnlyVendorNotPaid() {__isset_bit_vector.clear(__ONLYVENDORNOTPAID_ISSET_ID);}/** Returns true if field onlyVendorNotPaid is set (has been assigned a value) and false otherwise */public boolean isSetOnlyVendorNotPaid() {return __isset_bit_vector.get(__ONLYVENDORNOTPAID_ISSET_ID);}public void setOnlyVendorNotPaidIsSet(boolean value) {__isset_bit_vector.set(__ONLYVENDORNOTPAID_ISSET_ID, value);}public long getBillingDateFrom() {return this.billingDateFrom;}public void setBillingDateFrom(long billingDateFrom) {this.billingDateFrom = billingDateFrom;setBillingDateFromIsSet(true);}public void unsetBillingDateFrom() {__isset_bit_vector.clear(__BILLINGDATEFROM_ISSET_ID);}/** Returns true if field billingDateFrom is set (has been assigned a value) and false otherwise */public boolean isSetBillingDateFrom() {return __isset_bit_vector.get(__BILLINGDATEFROM_ISSET_ID);}public void setBillingDateFromIsSet(boolean value) {__isset_bit_vector.set(__BILLINGDATEFROM_ISSET_ID, value);}public long getBillingDateTo() {return this.billingDateTo;}public void setBillingDateTo(long billingDateTo) {this.billingDateTo = billingDateTo;setBillingDateToIsSet(true);}public void unsetBillingDateTo() {__isset_bit_vector.clear(__BILLINGDATETO_ISSET_ID);}/** Returns true if field billingDateTo is set (has been assigned a value) and false otherwise */public boolean isSetBillingDateTo() {return __isset_bit_vector.get(__BILLINGDATETO_ISSET_ID);}public void setBillingDateToIsSet(boolean value) {__isset_bit_vector.set(__BILLINGDATETO_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case VENDOR_ID:if (value == null) {unsetVendorId();} else {setVendorId((Long)value);}break;case ONLY_VENDOR_NOT_PAID:if (value == null) {unsetOnlyVendorNotPaid();} else {setOnlyVendorNotPaid((Boolean)value);}break;case BILLING_DATE_FROM:if (value == null) {unsetBillingDateFrom();} else {setBillingDateFrom((Long)value);}break;case BILLING_DATE_TO:if (value == null) {unsetBillingDateTo();} else {setBillingDateTo((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case VENDOR_ID:return Long.valueOf(getVendorId());case ONLY_VENDOR_NOT_PAID:return Boolean.valueOf(isOnlyVendorNotPaid());case BILLING_DATE_FROM:return Long.valueOf(getBillingDateFrom());case BILLING_DATE_TO:return Long.valueOf(getBillingDateTo());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case VENDOR_ID:return isSetVendorId();case ONLY_VENDOR_NOT_PAID:return isSetOnlyVendorNotPaid();case BILLING_DATE_FROM:return isSetBillingDateFrom();case BILLING_DATE_TO:return isSetBillingDateTo();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBilledOrders_args)return this.equals((getBilledOrders_args)that);return false;}public boolean equals(getBilledOrders_args that) {if (that == null)return false;boolean this_present_vendorId = true;boolean that_present_vendorId = true;if (this_present_vendorId || that_present_vendorId) {if (!(this_present_vendorId && that_present_vendorId))return false;if (this.vendorId != that.vendorId)return false;}boolean this_present_onlyVendorNotPaid = true;boolean that_present_onlyVendorNotPaid = true;if (this_present_onlyVendorNotPaid || that_present_onlyVendorNotPaid) {if (!(this_present_onlyVendorNotPaid && that_present_onlyVendorNotPaid))return false;if (this.onlyVendorNotPaid != that.onlyVendorNotPaid)return false;}boolean this_present_billingDateFrom = true;boolean that_present_billingDateFrom = true;if (this_present_billingDateFrom || that_present_billingDateFrom) {if (!(this_present_billingDateFrom && that_present_billingDateFrom))return false;if (this.billingDateFrom != that.billingDateFrom)return false;}boolean this_present_billingDateTo = true;boolean that_present_billingDateTo = true;if (this_present_billingDateTo || that_present_billingDateTo) {if (!(this_present_billingDateTo && that_present_billingDateTo))return false;if (this.billingDateTo != that.billingDateTo)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBilledOrders_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBilledOrders_args typedOther = (getBilledOrders_args)other;lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());if (lastComparison != 0) {return lastComparison;}if (isSetVendorId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOnlyVendorNotPaid()).compareTo(typedOther.isSetOnlyVendorNotPaid());if (lastComparison != 0) {return lastComparison;}if (isSetOnlyVendorNotPaid()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.onlyVendorNotPaid, typedOther.onlyVendorNotPaid);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBillingDateFrom()).compareTo(typedOther.isSetBillingDateFrom());if (lastComparison != 0) {return lastComparison;}if (isSetBillingDateFrom()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingDateFrom, typedOther.billingDateFrom);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBillingDateTo()).compareTo(typedOther.isSetBillingDateTo());if (lastComparison != 0) {return lastComparison;}if (isSetBillingDateTo()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingDateTo, typedOther.billingDateTo);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // VENDOR_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.vendorId = iprot.readI64();setVendorIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ONLY_VENDOR_NOT_PAIDif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.onlyVendorNotPaid = iprot.readBool();setOnlyVendorNotPaidIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // BILLING_DATE_FROMif (field.type == org.apache.thrift.protocol.TType.I64) {this.billingDateFrom = iprot.readI64();setBillingDateFromIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // BILLING_DATE_TOif (field.type == org.apache.thrift.protocol.TType.I64) {this.billingDateTo = iprot.readI64();setBillingDateToIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);oprot.writeI64(this.vendorId);oprot.writeFieldEnd();oprot.writeFieldBegin(ONLY_VENDOR_NOT_PAID_FIELD_DESC);oprot.writeBool(this.onlyVendorNotPaid);oprot.writeFieldEnd();oprot.writeFieldBegin(BILLING_DATE_FROM_FIELD_DESC);oprot.writeI64(this.billingDateFrom);oprot.writeFieldEnd();oprot.writeFieldBegin(BILLING_DATE_TO_FIELD_DESC);oprot.writeI64(this.billingDateTo);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBilledOrders_args(");boolean first = true;sb.append("vendorId:");sb.append(this.vendorId);first = false;if (!first) sb.append(", ");sb.append("onlyVendorNotPaid:");sb.append(this.onlyVendorNotPaid);first = false;if (!first) sb.append(", ");sb.append("billingDateFrom:");sb.append(this.billingDateFrom);first = false;if (!first) sb.append(", ");sb.append("billingDateTo:");sb.append(this.billingDateTo);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getBilledOrders_result implements org.apache.thrift.TBase<getBilledOrders_result, getBilledOrders_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBilledOrders_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Order> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBilledOrders_result.class, metaDataMap);}public getBilledOrders_result() {}public getBilledOrders_result(List<Order> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getBilledOrders_result(getBilledOrders_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getBilledOrders_result deepCopy() {return new getBilledOrders_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBilledOrders_result)return this.equals((getBilledOrders_result)that);return false;}public boolean equals(getBilledOrders_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBilledOrders_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBilledOrders_result typedOther = (getBilledOrders_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list311 = iprot.readListBegin();this.success = new ArrayList<Order>(_list311.size);for (int _i312 = 0; _i312 < _list311.size; ++_i312){Order _elem313; // required_elem313 = new Order();_elem313.read(iprot);this.success.add(_elem313);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter314 : this.success){_iter314.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBilledOrders_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getStatusDistributionOfOrders_args implements org.apache.thrift.TBase<getStatusDistributionOfOrders_args, getStatusDistributionOfOrders_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStatusDistributionOfOrders_args");private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)2);private long startDate; // requiredprivate long endDate; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {START_DATE((short)1, "startDate"),END_DATE((short)2, "endDate");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // START_DATEreturn START_DATE;case 2: // END_DATEreturn END_DATE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __STARTDATE_ISSET_ID = 0;private static final int __ENDDATE_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStatusDistributionOfOrders_args.class, metaDataMap);}public getStatusDistributionOfOrders_args() {}public getStatusDistributionOfOrders_args(long startDate,long endDate){this();this.startDate = startDate;setStartDateIsSet(true);this.endDate = endDate;setEndDateIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getStatusDistributionOfOrders_args(getStatusDistributionOfOrders_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.startDate = other.startDate;this.endDate = other.endDate;}public getStatusDistributionOfOrders_args deepCopy() {return new getStatusDistributionOfOrders_args(this);}@Overridepublic void clear() {setStartDateIsSet(false);this.startDate = 0;setEndDateIsSet(false);this.endDate = 0;}public long getStartDate() {return this.startDate;}public void setStartDate(long startDate) {this.startDate = startDate;setStartDateIsSet(true);}public void unsetStartDate() {__isset_bit_vector.clear(__STARTDATE_ISSET_ID);}/** Returns true if field startDate is set (has been assigned a value) and false otherwise */public boolean isSetStartDate() {return __isset_bit_vector.get(__STARTDATE_ISSET_ID);}public void setStartDateIsSet(boolean value) {__isset_bit_vector.set(__STARTDATE_ISSET_ID, value);}public long getEndDate() {return this.endDate;}public void setEndDate(long endDate) {this.endDate = endDate;setEndDateIsSet(true);}public void unsetEndDate() {__isset_bit_vector.clear(__ENDDATE_ISSET_ID);}/** Returns true if field endDate is set (has been assigned a value) and false otherwise */public boolean isSetEndDate() {return __isset_bit_vector.get(__ENDDATE_ISSET_ID);}public void setEndDateIsSet(boolean value) {__isset_bit_vector.set(__ENDDATE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case START_DATE:if (value == null) {unsetStartDate();} else {setStartDate((Long)value);}break;case END_DATE:if (value == null) {unsetEndDate();} else {setEndDate((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case START_DATE:return Long.valueOf(getStartDate());case END_DATE:return Long.valueOf(getEndDate());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case START_DATE:return isSetStartDate();case END_DATE:return isSetEndDate();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getStatusDistributionOfOrders_args)return this.equals((getStatusDistributionOfOrders_args)that);return false;}public boolean equals(getStatusDistributionOfOrders_args that) {if (that == null)return false;boolean this_present_startDate = true;boolean that_present_startDate = true;if (this_present_startDate || that_present_startDate) {if (!(this_present_startDate && that_present_startDate))return false;if (this.startDate != that.startDate)return false;}boolean this_present_endDate = true;boolean that_present_endDate = true;if (this_present_endDate || that_present_endDate) {if (!(this_present_endDate && that_present_endDate))return false;if (this.endDate != that.endDate)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getStatusDistributionOfOrders_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getStatusDistributionOfOrders_args typedOther = (getStatusDistributionOfOrders_args)other;lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());if (lastComparison != 0) {return lastComparison;}if (isSetStartDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());if (lastComparison != 0) {return lastComparison;}if (isSetEndDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // START_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.startDate = iprot.readI64();setStartDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // END_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.endDate = iprot.readI64();setEndDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(START_DATE_FIELD_DESC);oprot.writeI64(this.startDate);oprot.writeFieldEnd();oprot.writeFieldBegin(END_DATE_FIELD_DESC);oprot.writeI64(this.endDate);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getStatusDistributionOfOrders_args(");boolean first = true;sb.append("startDate:");sb.append(this.startDate);first = false;if (!first) sb.append(", ");sb.append("endDate:");sb.append(this.endDate);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getStatusDistributionOfOrders_result implements org.apache.thrift.TBase<getStatusDistributionOfOrders_result, getStatusDistributionOfOrders_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getStatusDistributionOfOrders_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private Map<Long,Long> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64),new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getStatusDistributionOfOrders_result.class, metaDataMap);}public getStatusDistributionOfOrders_result() {}public getStatusDistributionOfOrders_result(Map<Long,Long> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getStatusDistributionOfOrders_result(getStatusDistributionOfOrders_result other) {if (other.isSetSuccess()) {Map<Long,Long> __this__success = new HashMap<Long,Long>();for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {Long other_element_key = other_element.getKey();Long other_element_value = other_element.getValue();Long __this__success_copy_key = other_element_key;Long __this__success_copy_value = other_element_value;__this__success.put(__this__success_copy_key, __this__success_copy_value);}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getStatusDistributionOfOrders_result deepCopy() {return new getStatusDistributionOfOrders_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public void putToSuccess(long key, long val) {if (this.success == null) {this.success = new HashMap<Long,Long>();}this.success.put(key, val);}public Map<Long,Long> getSuccess() {return this.success;}public void setSuccess(Map<Long,Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Map<Long,Long>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getStatusDistributionOfOrders_result)return this.equals((getStatusDistributionOfOrders_result)that);return false;}public boolean equals(getStatusDistributionOfOrders_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getStatusDistributionOfOrders_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getStatusDistributionOfOrders_result typedOther = (getStatusDistributionOfOrders_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.MAP) {{org.apache.thrift.protocol.TMap _map315 = iprot.readMapBegin();this.success = new HashMap<Long,Long>(2*_map315.size);for (int _i316 = 0; _i316 < _map315.size; ++_i316){long _key317; // requiredlong _val318; // required_key317 = iprot.readI64();_val318 = iprot.readI64();this.success.put(_key317, _val318);}iprot.readMapEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));for (Map.Entry<Long, Long> _iter319 : this.success.entrySet()){oprot.writeI64(_iter319.getKey());oprot.writeI64(_iter319.getValue());}oprot.writeMapEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getStatusDistributionOfOrders_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrderIdsForStatus_args implements org.apache.thrift.TBase<getOrderIdsForStatus_args, getOrderIdsForStatus_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderIdsForStatus_args");private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField START_DATETIME_FIELD_DESC = new org.apache.thrift.protocol.TField("startDatetime", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField END_DATETIME_FIELD_DESC = new org.apache.thrift.protocol.TField("endDatetime", org.apache.thrift.protocol.TType.I64, (short)3);private long status; // requiredprivate long startDatetime; // requiredprivate long endDatetime; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {STATUS((short)1, "status"),START_DATETIME((short)2, "startDatetime"),END_DATETIME((short)3, "endDatetime");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // STATUSreturn STATUS;case 2: // START_DATETIMEreturn START_DATETIME;case 3: // END_DATETIMEreturn END_DATETIME;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __STATUS_ISSET_ID = 0;private static final int __STARTDATETIME_ISSET_ID = 1;private static final int __ENDDATETIME_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.START_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("startDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.END_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("endDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderIdsForStatus_args.class, metaDataMap);}public getOrderIdsForStatus_args() {}public getOrderIdsForStatus_args(long status,long startDatetime,long endDatetime){this();this.status = status;setStatusIsSet(true);this.startDatetime = startDatetime;setStartDatetimeIsSet(true);this.endDatetime = endDatetime;setEndDatetimeIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getOrderIdsForStatus_args(getOrderIdsForStatus_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.status = other.status;this.startDatetime = other.startDatetime;this.endDatetime = other.endDatetime;}public getOrderIdsForStatus_args deepCopy() {return new getOrderIdsForStatus_args(this);}@Overridepublic void clear() {setStatusIsSet(false);this.status = 0;setStartDatetimeIsSet(false);this.startDatetime = 0;setEndDatetimeIsSet(false);this.endDatetime = 0;}public long getStatus() {return this.status;}public void setStatus(long status) {this.status = status;setStatusIsSet(true);}public void unsetStatus() {__isset_bit_vector.clear(__STATUS_ISSET_ID);}/** Returns true if field status is set (has been assigned a value) and false otherwise */public boolean isSetStatus() {return __isset_bit_vector.get(__STATUS_ISSET_ID);}public void setStatusIsSet(boolean value) {__isset_bit_vector.set(__STATUS_ISSET_ID, value);}public long getStartDatetime() {return this.startDatetime;}public void setStartDatetime(long startDatetime) {this.startDatetime = startDatetime;setStartDatetimeIsSet(true);}public void unsetStartDatetime() {__isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);}/** Returns true if field startDatetime is set (has been assigned a value) and false otherwise */public boolean isSetStartDatetime() {return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);}public void setStartDatetimeIsSet(boolean value) {__isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);}public long getEndDatetime() {return this.endDatetime;}public void setEndDatetime(long endDatetime) {this.endDatetime = endDatetime;setEndDatetimeIsSet(true);}public void unsetEndDatetime() {__isset_bit_vector.clear(__ENDDATETIME_ISSET_ID);}/** Returns true if field endDatetime is set (has been assigned a value) and false otherwise */public boolean isSetEndDatetime() {return __isset_bit_vector.get(__ENDDATETIME_ISSET_ID);}public void setEndDatetimeIsSet(boolean value) {__isset_bit_vector.set(__ENDDATETIME_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case STATUS:if (value == null) {unsetStatus();} else {setStatus((Long)value);}break;case START_DATETIME:if (value == null) {unsetStartDatetime();} else {setStartDatetime((Long)value);}break;case END_DATETIME:if (value == null) {unsetEndDatetime();} else {setEndDatetime((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case STATUS:return Long.valueOf(getStatus());case START_DATETIME:return Long.valueOf(getStartDatetime());case END_DATETIME:return Long.valueOf(getEndDatetime());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case STATUS:return isSetStatus();case START_DATETIME:return isSetStartDatetime();case END_DATETIME:return isSetEndDatetime();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderIdsForStatus_args)return this.equals((getOrderIdsForStatus_args)that);return false;}public boolean equals(getOrderIdsForStatus_args that) {if (that == null)return false;boolean this_present_status = true;boolean that_present_status = true;if (this_present_status || that_present_status) {if (!(this_present_status && that_present_status))return false;if (this.status != that.status)return false;}boolean this_present_startDatetime = true;boolean that_present_startDatetime = true;if (this_present_startDatetime || that_present_startDatetime) {if (!(this_present_startDatetime && that_present_startDatetime))return false;if (this.startDatetime != that.startDatetime)return false;}boolean this_present_endDatetime = true;boolean that_present_endDatetime = true;if (this_present_endDatetime || that_present_endDatetime) {if (!(this_present_endDatetime && that_present_endDatetime))return false;if (this.endDatetime != that.endDatetime)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrderIdsForStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrderIdsForStatus_args typedOther = (getOrderIdsForStatus_args)other;lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());if (lastComparison != 0) {return lastComparison;}if (isSetStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetStartDatetime()).compareTo(typedOther.isSetStartDatetime());if (lastComparison != 0) {return lastComparison;}if (isSetStartDatetime()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDatetime, typedOther.startDatetime);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEndDatetime()).compareTo(typedOther.isSetEndDatetime());if (lastComparison != 0) {return lastComparison;}if (isSetEndDatetime()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDatetime, typedOther.endDatetime);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // STATUSif (field.type == org.apache.thrift.protocol.TType.I64) {this.status = iprot.readI64();setStatusIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // START_DATETIMEif (field.type == org.apache.thrift.protocol.TType.I64) {this.startDatetime = iprot.readI64();setStartDatetimeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // END_DATETIMEif (field.type == org.apache.thrift.protocol.TType.I64) {this.endDatetime = iprot.readI64();setEndDatetimeIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(STATUS_FIELD_DESC);oprot.writeI64(this.status);oprot.writeFieldEnd();oprot.writeFieldBegin(START_DATETIME_FIELD_DESC);oprot.writeI64(this.startDatetime);oprot.writeFieldEnd();oprot.writeFieldBegin(END_DATETIME_FIELD_DESC);oprot.writeI64(this.endDatetime);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderIdsForStatus_args(");boolean first = true;sb.append("status:");sb.append(this.status);first = false;if (!first) sb.append(", ");sb.append("startDatetime:");sb.append(this.startDatetime);first = false;if (!first) sb.append(", ");sb.append("endDatetime:");sb.append(this.endDatetime);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrderIdsForStatus_result implements org.apache.thrift.TBase<getOrderIdsForStatus_result, getOrderIdsForStatus_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderIdsForStatus_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Long> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderIdsForStatus_result.class, metaDataMap);}public getOrderIdsForStatus_result() {}public getOrderIdsForStatus_result(List<Long> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getOrderIdsForStatus_result(getOrderIdsForStatus_result other) {if (other.isSetSuccess()) {List<Long> __this__success = new ArrayList<Long>();for (Long other_element : other.success) {__this__success.add(other_element);}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getOrderIdsForStatus_result deepCopy() {return new getOrderIdsForStatus_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Long> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(long elem) {if (this.success == null) {this.success = new ArrayList<Long>();}this.success.add(elem);}public List<Long> getSuccess() {return this.success;}public void setSuccess(List<Long> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Long>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderIdsForStatus_result)return this.equals((getOrderIdsForStatus_result)that);return false;}public boolean equals(getOrderIdsForStatus_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrderIdsForStatus_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrderIdsForStatus_result typedOther = (getOrderIdsForStatus_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list320 = iprot.readListBegin();this.success = new ArrayList<Long>(_list320.size);for (int _i321 = 0; _i321 < _list320.size; ++_i321){long _elem322; // required_elem322 = iprot.readI64();this.success.add(_elem322);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));for (long _iter323 : this.success){oprot.writeI64(_iter323);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderIdsForStatus_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateCODAgent_args implements org.apache.thrift.TBase<updateCODAgent_args, updateCODAgent_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateCODAgent_args");private static final org.apache.thrift.protocol.TField AGENT_FIELD_DESC = new org.apache.thrift.protocol.TField("agent", org.apache.thrift.protocol.TType.STRING, (short)1);private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)2);private String agent; // requiredprivate long orderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {AGENT((short)1, "agent"),ORDER_ID((short)2, "orderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // AGENTreturn AGENT;case 2: // ORDER_IDreturn ORDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.AGENT, new org.apache.thrift.meta_data.FieldMetaData("agent", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateCODAgent_args.class, metaDataMap);}public updateCODAgent_args() {}public updateCODAgent_args(String agent,long orderId){this();this.agent = agent;this.orderId = orderId;setOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateCODAgent_args(updateCODAgent_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetAgent()) {this.agent = other.agent;}this.orderId = other.orderId;}public updateCODAgent_args deepCopy() {return new updateCODAgent_args(this);}@Overridepublic void clear() {this.agent = null;setOrderIdIsSet(false);this.orderId = 0;}public String getAgent() {return this.agent;}public void setAgent(String agent) {this.agent = agent;}public void unsetAgent() {this.agent = null;}/** Returns true if field agent is set (has been assigned a value) and false otherwise */public boolean isSetAgent() {return this.agent != null;}public void setAgentIsSet(boolean value) {if (!value) {this.agent = null;}}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case AGENT:if (value == null) {unsetAgent();} else {setAgent((String)value);}break;case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case AGENT:return getAgent();case ORDER_ID:return Long.valueOf(getOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case AGENT:return isSetAgent();case ORDER_ID:return isSetOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateCODAgent_args)return this.equals((updateCODAgent_args)that);return false;}public boolean equals(updateCODAgent_args that) {if (that == null)return false;boolean this_present_agent = true && this.isSetAgent();boolean that_present_agent = true && that.isSetAgent();if (this_present_agent || that_present_agent) {if (!(this_present_agent && that_present_agent))return false;if (!this.agent.equals(that.agent))return false;}boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateCODAgent_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateCODAgent_args typedOther = (updateCODAgent_args)other;lastComparison = Boolean.valueOf(isSetAgent()).compareTo(typedOther.isSetAgent());if (lastComparison != 0) {return lastComparison;}if (isSetAgent()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agent, typedOther.agent);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // AGENTif (field.type == org.apache.thrift.protocol.TType.STRING) {this.agent = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.agent != null) {oprot.writeFieldBegin(AGENT_FIELD_DESC);oprot.writeString(this.agent);oprot.writeFieldEnd();}oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateCODAgent_args(");boolean first = true;sb.append("agent:");if (this.agent == null) {sb.append("null");} else {sb.append(this.agent);}first = false;if (!first) sb.append(", ");sb.append("orderId:");sb.append(this.orderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateCODAgent_result implements org.apache.thrift.TBase<updateCODAgent_result, updateCODAgent_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateCODAgent_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateCODAgent_result.class, metaDataMap);}public updateCODAgent_result() {}public updateCODAgent_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public updateCODAgent_result(updateCODAgent_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public updateCODAgent_result deepCopy() {return new updateCODAgent_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateCODAgent_result)return this.equals((updateCODAgent_result)that);return false;}public boolean equals(updateCODAgent_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateCODAgent_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateCODAgent_result typedOther = (updateCODAgent_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateCODAgent_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateOrderAsPaidToVendor_args implements org.apache.thrift.TBase<updateOrderAsPaidToVendor_args, updateOrderAsPaidToVendor_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateOrderAsPaidToVendor_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private long orderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateOrderAsPaidToVendor_args.class, metaDataMap);}public updateOrderAsPaidToVendor_args() {}public updateOrderAsPaidToVendor_args(long orderId){this();this.orderId = orderId;setOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateOrderAsPaidToVendor_args(updateOrderAsPaidToVendor_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;}public updateOrderAsPaidToVendor_args deepCopy() {return new updateOrderAsPaidToVendor_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateOrderAsPaidToVendor_args)return this.equals((updateOrderAsPaidToVendor_args)that);return false;}public boolean equals(updateOrderAsPaidToVendor_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateOrderAsPaidToVendor_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateOrderAsPaidToVendor_args typedOther = (updateOrderAsPaidToVendor_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateOrderAsPaidToVendor_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateOrderAsPaidToVendor_result implements org.apache.thrift.TBase<updateOrderAsPaidToVendor_result, updateOrderAsPaidToVendor_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateOrderAsPaidToVendor_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateOrderAsPaidToVendor_result.class, metaDataMap);}public updateOrderAsPaidToVendor_result() {}public updateOrderAsPaidToVendor_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public updateOrderAsPaidToVendor_result(updateOrderAsPaidToVendor_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public updateOrderAsPaidToVendor_result deepCopy() {return new updateOrderAsPaidToVendor_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateOrderAsPaidToVendor_result)return this.equals((updateOrderAsPaidToVendor_result)that);return false;}public boolean equals(updateOrderAsPaidToVendor_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateOrderAsPaidToVendor_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateOrderAsPaidToVendor_result typedOther = (updateOrderAsPaidToVendor_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateOrderAsPaidToVendor_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateOrderOnlyAsPaidToVendor_args implements org.apache.thrift.TBase<updateOrderOnlyAsPaidToVendor_args, updateOrderOnlyAsPaidToVendor_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateOrderOnlyAsPaidToVendor_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private long orderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateOrderOnlyAsPaidToVendor_args.class, metaDataMap);}public updateOrderOnlyAsPaidToVendor_args() {}public updateOrderOnlyAsPaidToVendor_args(long orderId){this();this.orderId = orderId;setOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public updateOrderOnlyAsPaidToVendor_args(updateOrderOnlyAsPaidToVendor_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;}public updateOrderOnlyAsPaidToVendor_args deepCopy() {return new updateOrderOnlyAsPaidToVendor_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateOrderOnlyAsPaidToVendor_args)return this.equals((updateOrderOnlyAsPaidToVendor_args)that);return false;}public boolean equals(updateOrderOnlyAsPaidToVendor_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateOrderOnlyAsPaidToVendor_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateOrderOnlyAsPaidToVendor_args typedOther = (updateOrderOnlyAsPaidToVendor_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateOrderOnlyAsPaidToVendor_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateOrderOnlyAsPaidToVendor_result implements org.apache.thrift.TBase<updateOrderOnlyAsPaidToVendor_result, updateOrderOnlyAsPaidToVendor_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateOrderOnlyAsPaidToVendor_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateOrderOnlyAsPaidToVendor_result.class, metaDataMap);}public updateOrderOnlyAsPaidToVendor_result() {}public updateOrderOnlyAsPaidToVendor_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public updateOrderOnlyAsPaidToVendor_result(updateOrderOnlyAsPaidToVendor_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public updateOrderOnlyAsPaidToVendor_result deepCopy() {return new updateOrderOnlyAsPaidToVendor_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateOrderOnlyAsPaidToVendor_result)return this.equals((updateOrderOnlyAsPaidToVendor_result)that);return false;}public boolean equals(updateOrderOnlyAsPaidToVendor_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateOrderOnlyAsPaidToVendor_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateOrderOnlyAsPaidToVendor_result typedOther = (updateOrderOnlyAsPaidToVendor_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateOrderOnlyAsPaidToVendor_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getRefundedOrdersMarkedPaid_args implements org.apache.thrift.TBase<getRefundedOrdersMarkedPaid_args, getRefundedOrdersMarkedPaid_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRefundedOrdersMarkedPaid_args");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRefundedOrdersMarkedPaid_args.class, metaDataMap);}public getRefundedOrdersMarkedPaid_args() {}/*** Performs a deep copy on <i>other</i>.*/public getRefundedOrdersMarkedPaid_args(getRefundedOrdersMarkedPaid_args other) {}public getRefundedOrdersMarkedPaid_args deepCopy() {return new getRefundedOrdersMarkedPaid_args(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getRefundedOrdersMarkedPaid_args)return this.equals((getRefundedOrdersMarkedPaid_args)that);return false;}public boolean equals(getRefundedOrdersMarkedPaid_args that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getRefundedOrdersMarkedPaid_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getRefundedOrdersMarkedPaid_args typedOther = (getRefundedOrdersMarkedPaid_args)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getRefundedOrdersMarkedPaid_args(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getRefundedOrdersMarkedPaid_result implements org.apache.thrift.TBase<getRefundedOrdersMarkedPaid_result, getRefundedOrdersMarkedPaid_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRefundedOrdersMarkedPaid_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private List<Order> success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRefundedOrdersMarkedPaid_result.class, metaDataMap);}public getRefundedOrdersMarkedPaid_result() {}public getRefundedOrdersMarkedPaid_result(List<Order> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getRefundedOrdersMarkedPaid_result(getRefundedOrdersMarkedPaid_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getRefundedOrdersMarkedPaid_result deepCopy() {return new getRefundedOrdersMarkedPaid_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getRefundedOrdersMarkedPaid_result)return this.equals((getRefundedOrdersMarkedPaid_result)that);return false;}public boolean equals(getRefundedOrdersMarkedPaid_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getRefundedOrdersMarkedPaid_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getRefundedOrdersMarkedPaid_result typedOther = (getRefundedOrdersMarkedPaid_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list324 = iprot.readListBegin();this.success = new ArrayList<Order>(_list324.size);for (int _i325 = 0; _i325 < _list324.size; ++_i325){Order _elem326; // required_elem326 = new Order();_elem326.read(iprot);this.success.add(_elem326);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter327 : this.success){_iter327.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getRefundedOrdersMarkedPaid_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllVerificationAgents_args implements org.apache.thrift.TBase<getAllVerificationAgents_args, getAllVerificationAgents_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVerificationAgents_args");private static final org.apache.thrift.protocol.TField MIN_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("minOrderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField MAX_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("maxOrderId", org.apache.thrift.protocol.TType.I64, (short)2);private long minOrderId; // requiredprivate long maxOrderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {MIN_ORDER_ID((short)1, "minOrderId"),MAX_ORDER_ID((short)2, "maxOrderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // MIN_ORDER_IDreturn MIN_ORDER_ID;case 2: // MAX_ORDER_IDreturn MAX_ORDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __MINORDERID_ISSET_ID = 0;private static final int __MAXORDERID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.MIN_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("minOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.MAX_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("maxOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVerificationAgents_args.class, metaDataMap);}public getAllVerificationAgents_args() {}public getAllVerificationAgents_args(long minOrderId,long maxOrderId){this();this.minOrderId = minOrderId;setMinOrderIdIsSet(true);this.maxOrderId = maxOrderId;setMaxOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllVerificationAgents_args(getAllVerificationAgents_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.minOrderId = other.minOrderId;this.maxOrderId = other.maxOrderId;}public getAllVerificationAgents_args deepCopy() {return new getAllVerificationAgents_args(this);}@Overridepublic void clear() {setMinOrderIdIsSet(false);this.minOrderId = 0;setMaxOrderIdIsSet(false);this.maxOrderId = 0;}public long getMinOrderId() {return this.minOrderId;}public void setMinOrderId(long minOrderId) {this.minOrderId = minOrderId;setMinOrderIdIsSet(true);}public void unsetMinOrderId() {__isset_bit_vector.clear(__MINORDERID_ISSET_ID);}/** Returns true if field minOrderId is set (has been assigned a value) and false otherwise */public boolean isSetMinOrderId() {return __isset_bit_vector.get(__MINORDERID_ISSET_ID);}public void setMinOrderIdIsSet(boolean value) {__isset_bit_vector.set(__MINORDERID_ISSET_ID, value);}public long getMaxOrderId() {return this.maxOrderId;}public void setMaxOrderId(long maxOrderId) {this.maxOrderId = maxOrderId;setMaxOrderIdIsSet(true);}public void unsetMaxOrderId() {__isset_bit_vector.clear(__MAXORDERID_ISSET_ID);}/** Returns true if field maxOrderId is set (has been assigned a value) and false otherwise */public boolean isSetMaxOrderId() {return __isset_bit_vector.get(__MAXORDERID_ISSET_ID);}public void setMaxOrderIdIsSet(boolean value) {__isset_bit_vector.set(__MAXORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case MIN_ORDER_ID:if (value == null) {unsetMinOrderId();} else {setMinOrderId((Long)value);}break;case MAX_ORDER_ID:if (value == null) {unsetMaxOrderId();} else {setMaxOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case MIN_ORDER_ID:return Long.valueOf(getMinOrderId());case MAX_ORDER_ID:return Long.valueOf(getMaxOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case MIN_ORDER_ID:return isSetMinOrderId();case MAX_ORDER_ID:return isSetMaxOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllVerificationAgents_args)return this.equals((getAllVerificationAgents_args)that);return false;}public boolean equals(getAllVerificationAgents_args that) {if (that == null)return false;boolean this_present_minOrderId = true;boolean that_present_minOrderId = true;if (this_present_minOrderId || that_present_minOrderId) {if (!(this_present_minOrderId && that_present_minOrderId))return false;if (this.minOrderId != that.minOrderId)return false;}boolean this_present_maxOrderId = true;boolean that_present_maxOrderId = true;if (this_present_maxOrderId || that_present_maxOrderId) {if (!(this_present_maxOrderId && that_present_maxOrderId))return false;if (this.maxOrderId != that.maxOrderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllVerificationAgents_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllVerificationAgents_args typedOther = (getAllVerificationAgents_args)other;lastComparison = Boolean.valueOf(isSetMinOrderId()).compareTo(typedOther.isSetMinOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetMinOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minOrderId, typedOther.minOrderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetMaxOrderId()).compareTo(typedOther.isSetMaxOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetMaxOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxOrderId, typedOther.maxOrderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // MIN_ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.minOrderId = iprot.readI64();setMinOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // MAX_ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.maxOrderId = iprot.readI64();setMaxOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(MIN_ORDER_ID_FIELD_DESC);oprot.writeI64(this.minOrderId);oprot.writeFieldEnd();oprot.writeFieldBegin(MAX_ORDER_ID_FIELD_DESC);oprot.writeI64(this.maxOrderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllVerificationAgents_args(");boolean first = true;sb.append("minOrderId:");sb.append(this.minOrderId);first = false;if (!first) sb.append(", ");sb.append("maxOrderId:");sb.append(this.maxOrderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllVerificationAgents_result implements org.apache.thrift.TBase<getAllVerificationAgents_result, getAllVerificationAgents_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllVerificationAgents_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<CODVerificationAgent> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CODVerificationAgent.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllVerificationAgents_result.class, metaDataMap);}public getAllVerificationAgents_result() {}public getAllVerificationAgents_result(List<CODVerificationAgent> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllVerificationAgents_result(getAllVerificationAgents_result other) {if (other.isSetSuccess()) {List<CODVerificationAgent> __this__success = new ArrayList<CODVerificationAgent>();for (CODVerificationAgent other_element : other.success) {__this__success.add(new CODVerificationAgent(other_element));}this.success = __this__success;}}public getAllVerificationAgents_result deepCopy() {return new getAllVerificationAgents_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<CODVerificationAgent> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(CODVerificationAgent elem) {if (this.success == null) {this.success = new ArrayList<CODVerificationAgent>();}this.success.add(elem);}public List<CODVerificationAgent> getSuccess() {return this.success;}public void setSuccess(List<CODVerificationAgent> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<CODVerificationAgent>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllVerificationAgents_result)return this.equals((getAllVerificationAgents_result)that);return false;}public boolean equals(getAllVerificationAgents_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllVerificationAgents_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllVerificationAgents_result typedOther = (getAllVerificationAgents_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list328 = iprot.readListBegin();this.success = new ArrayList<CODVerificationAgent>(_list328.size);for (int _i329 = 0; _i329 < _list328.size; ++_i329){CODVerificationAgent _elem330; // required_elem330 = new CODVerificationAgent();_elem330.read(iprot);this.success.add(_elem330);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (CODVerificationAgent _iter331 : this.success){_iter331.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllVerificationAgents_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllAttributesForOrderId_args implements org.apache.thrift.TBase<getAllAttributesForOrderId_args, getAllAttributesForOrderId_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAttributesForOrderId_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private long orderId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAttributesForOrderId_args.class, metaDataMap);}public getAllAttributesForOrderId_args() {}public getAllAttributesForOrderId_args(long orderId){this();this.orderId = orderId;setOrderIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllAttributesForOrderId_args(getAllAttributesForOrderId_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;}public getAllAttributesForOrderId_args deepCopy() {return new getAllAttributesForOrderId_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllAttributesForOrderId_args)return this.equals((getAllAttributesForOrderId_args)that);return false;}public boolean equals(getAllAttributesForOrderId_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllAttributesForOrderId_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllAttributesForOrderId_args typedOther = (getAllAttributesForOrderId_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllAttributesForOrderId_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getAllAttributesForOrderId_result implements org.apache.thrift.TBase<getAllAttributesForOrderId_result, getAllAttributesForOrderId_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllAttributesForOrderId_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Attribute> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllAttributesForOrderId_result.class, metaDataMap);}public getAllAttributesForOrderId_result() {}public getAllAttributesForOrderId_result(List<Attribute> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getAllAttributesForOrderId_result(getAllAttributesForOrderId_result other) {if (other.isSetSuccess()) {List<Attribute> __this__success = new ArrayList<Attribute>();for (Attribute other_element : other.success) {__this__success.add(new Attribute(other_element));}this.success = __this__success;}}public getAllAttributesForOrderId_result deepCopy() {return new getAllAttributesForOrderId_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Attribute> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Attribute elem) {if (this.success == null) {this.success = new ArrayList<Attribute>();}this.success.add(elem);}public List<Attribute> getSuccess() {return this.success;}public void setSuccess(List<Attribute> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Attribute>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllAttributesForOrderId_result)return this.equals((getAllAttributesForOrderId_result)that);return false;}public boolean equals(getAllAttributesForOrderId_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllAttributesForOrderId_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllAttributesForOrderId_result typedOther = (getAllAttributesForOrderId_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list332 = iprot.readListBegin();this.success = new ArrayList<Attribute>(_list332.size);for (int _i333 = 0; _i333 < _list332.size; ++_i333){Attribute _elem334; // required_elem334 = new Attribute();_elem334.read(iprot);this.success.add(_elem334);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Attribute _iter335 : this.success){_iter335.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllAttributesForOrderId_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class setOrderAttributes_args implements org.apache.thrift.TBase<setOrderAttributes_args, setOrderAttributes_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setOrderAttributes_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.LIST, (short)-1);private long orderId; // requiredprivate List<Attribute> attributes; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),ATTRIBUTES((short)-1, "attributes");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case -1: // ATTRIBUTESreturn ATTRIBUTES;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setOrderAttributes_args.class, metaDataMap);}public setOrderAttributes_args() {}public setOrderAttributes_args(long orderId,List<Attribute> attributes){this();this.orderId = orderId;setOrderIdIsSet(true);this.attributes = attributes;}/*** Performs a deep copy on <i>other</i>.*/public setOrderAttributes_args(setOrderAttributes_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;if (other.isSetAttributes()) {List<Attribute> __this__attributes = new ArrayList<Attribute>();for (Attribute other_element : other.attributes) {__this__attributes.add(new Attribute(other_element));}this.attributes = __this__attributes;}}public setOrderAttributes_args deepCopy() {return new setOrderAttributes_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;this.attributes = null;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public int getAttributesSize() {return (this.attributes == null) ? 0 : this.attributes.size();}public java.util.Iterator<Attribute> getAttributesIterator() {return (this.attributes == null) ? null : this.attributes.iterator();}public void addToAttributes(Attribute elem) {if (this.attributes == null) {this.attributes = new ArrayList<Attribute>();}this.attributes.add(elem);}public List<Attribute> getAttributes() {return this.attributes;}public void setAttributes(List<Attribute> attributes) {this.attributes = attributes;}public void unsetAttributes() {this.attributes = null;}/** Returns true if field attributes is set (has been assigned a value) and false otherwise */public boolean isSetAttributes() {return this.attributes != null;}public void setAttributesIsSet(boolean value) {if (!value) {this.attributes = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case ATTRIBUTES:if (value == null) {unsetAttributes();} else {setAttributes((List<Attribute>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case ATTRIBUTES:return getAttributes();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case ATTRIBUTES:return isSetAttributes();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof setOrderAttributes_args)return this.equals((setOrderAttributes_args)that);return false;}public boolean equals(setOrderAttributes_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_attributes = true && this.isSetAttributes();boolean that_present_attributes = true && that.isSetAttributes();if (this_present_attributes || that_present_attributes) {if (!(this_present_attributes && that_present_attributes))return false;if (!this.attributes.equals(that.attributes))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(setOrderAttributes_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;setOrderAttributes_args typedOther = (setOrderAttributes_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());if (lastComparison != 0) {return lastComparison;}if (isSetAttributes()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case -1: // ATTRIBUTESif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list336 = iprot.readListBegin();this.attributes = new ArrayList<Attribute>(_list336.size);for (int _i337 = 0; _i337 < _list336.size; ++_i337){Attribute _elem338; // required_elem338 = new Attribute();_elem338.read(iprot);this.attributes.add(_elem338);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.attributes != null) {oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));for (Attribute _iter339 : this.attributes){_iter339.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("setOrderAttributes_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("attributes:");if (this.attributes == null) {sb.append("null");} else {sb.append(this.attributes);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class setOrderAttributes_result implements org.apache.thrift.TBase<setOrderAttributes_result, setOrderAttributes_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setOrderAttributes_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setOrderAttributes_result.class, metaDataMap);}public setOrderAttributes_result() {}/*** Performs a deep copy on <i>other</i>.*/public setOrderAttributes_result(setOrderAttributes_result other) {}public setOrderAttributes_result deepCopy() {return new setOrderAttributes_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof setOrderAttributes_result)return this.equals((setOrderAttributes_result)that);return false;}public boolean equals(setOrderAttributes_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(setOrderAttributes_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;setOrderAttributes_result typedOther = (setOrderAttributes_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("setOrderAttributes_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class setOrderAttributeForTransaction_args implements org.apache.thrift.TBase<setOrderAttributeForTransaction_args, setOrderAttributeForTransaction_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setOrderAttributeForTransaction_args");private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField ATTRIBUTE_FIELD_DESC = new org.apache.thrift.protocol.TField("attribute", org.apache.thrift.protocol.TType.STRUCT, (short)-1);private long transactionId; // requiredprivate Attribute attribute; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {TRANSACTION_ID((short)1, "transactionId"),ATTRIBUTE((short)-1, "attribute");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // TRANSACTION_IDreturn TRANSACTION_ID;case -1: // ATTRIBUTEreturn ATTRIBUTE;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TRANSACTIONID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ATTRIBUTE, new org.apache.thrift.meta_data.FieldMetaData("attribute", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setOrderAttributeForTransaction_args.class, metaDataMap);}public setOrderAttributeForTransaction_args() {}public setOrderAttributeForTransaction_args(long transactionId,Attribute attribute){this();this.transactionId = transactionId;setTransactionIdIsSet(true);this.attribute = attribute;}/*** Performs a deep copy on <i>other</i>.*/public setOrderAttributeForTransaction_args(setOrderAttributeForTransaction_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.transactionId = other.transactionId;if (other.isSetAttribute()) {this.attribute = new Attribute(other.attribute);}}public setOrderAttributeForTransaction_args deepCopy() {return new setOrderAttributeForTransaction_args(this);}@Overridepublic void clear() {setTransactionIdIsSet(false);this.transactionId = 0;this.attribute = null;}public long getTransactionId() {return this.transactionId;}public void setTransactionId(long transactionId) {this.transactionId = transactionId;setTransactionIdIsSet(true);}public void unsetTransactionId() {__isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);}/** Returns true if field transactionId is set (has been assigned a value) and false otherwise */public boolean isSetTransactionId() {return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);}public void setTransactionIdIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);}public Attribute getAttribute() {return this.attribute;}public void setAttribute(Attribute attribute) {this.attribute = attribute;}public void unsetAttribute() {this.attribute = null;}/** Returns true if field attribute is set (has been assigned a value) and false otherwise */public boolean isSetAttribute() {return this.attribute != null;}public void setAttributeIsSet(boolean value) {if (!value) {this.attribute = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION_ID:if (value == null) {unsetTransactionId();} else {setTransactionId((Long)value);}break;case ATTRIBUTE:if (value == null) {unsetAttribute();} else {setAttribute((Attribute)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION_ID:return Long.valueOf(getTransactionId());case ATTRIBUTE:return getAttribute();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case TRANSACTION_ID:return isSetTransactionId();case ATTRIBUTE:return isSetAttribute();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof setOrderAttributeForTransaction_args)return this.equals((setOrderAttributeForTransaction_args)that);return false;}public boolean equals(setOrderAttributeForTransaction_args that) {if (that == null)return false;boolean this_present_transactionId = true;boolean that_present_transactionId = true;if (this_present_transactionId || that_present_transactionId) {if (!(this_present_transactionId && that_present_transactionId))return false;if (this.transactionId != that.transactionId)return false;}boolean this_present_attribute = true && this.isSetAttribute();boolean that_present_attribute = true && that.isSetAttribute();if (this_present_attribute || that_present_attribute) {if (!(this_present_attribute && that_present_attribute))return false;if (!this.attribute.equals(that.attribute))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(setOrderAttributeForTransaction_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;setOrderAttributeForTransaction_args typedOther = (setOrderAttributeForTransaction_args)other;lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());if (lastComparison != 0) {return lastComparison;}if (isSetTransactionId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetAttribute()).compareTo(typedOther.isSetAttribute());if (lastComparison != 0) {return lastComparison;}if (isSetAttribute()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attribute, typedOther.attribute);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // TRANSACTION_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.transactionId = iprot.readI64();setTransactionIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case -1: // ATTRIBUTEif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.attribute = new Attribute();this.attribute.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.attribute != null) {oprot.writeFieldBegin(ATTRIBUTE_FIELD_DESC);this.attribute.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);oprot.writeI64(this.transactionId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("setOrderAttributeForTransaction_args(");boolean first = true;sb.append("transactionId:");sb.append(this.transactionId);first = false;if (!first) sb.append(", ");sb.append("attribute:");if (this.attribute == null) {sb.append("null");} else {sb.append(this.attribute);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class setOrderAttributeForTransaction_result implements org.apache.thrift.TBase<setOrderAttributeForTransaction_result, setOrderAttributeForTransaction_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setOrderAttributeForTransaction_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setOrderAttributeForTransaction_result.class, metaDataMap);}public setOrderAttributeForTransaction_result() {}/*** Performs a deep copy on <i>other</i>.*/public setOrderAttributeForTransaction_result(setOrderAttributeForTransaction_result other) {}public setOrderAttributeForTransaction_result deepCopy() {return new setOrderAttributeForTransaction_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof setOrderAttributeForTransaction_result)return this.equals((setOrderAttributeForTransaction_result)that);return false;}public boolean equals(setOrderAttributeForTransaction_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(setOrderAttributeForTransaction_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;setOrderAttributeForTransaction_result typedOther = (setOrderAttributeForTransaction_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("setOrderAttributeForTransaction_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getReceivePendingOrders_args implements org.apache.thrift.TBase<getReceivePendingOrders_args, getReceivePendingOrders_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReceivePendingOrders_args");private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)1);private long storeId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {STORE_ID((short)1, "storeId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // STORE_IDreturn STORE_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __STOREID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReceivePendingOrders_args.class, metaDataMap);}public getReceivePendingOrders_args() {}public getReceivePendingOrders_args(long storeId){this();this.storeId = storeId;setStoreIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getReceivePendingOrders_args(getReceivePendingOrders_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.storeId = other.storeId;}public getReceivePendingOrders_args deepCopy() {return new getReceivePendingOrders_args(this);}@Overridepublic void clear() {setStoreIdIsSet(false);this.storeId = 0;}public long getStoreId() {return this.storeId;}public void setStoreId(long storeId) {this.storeId = storeId;setStoreIdIsSet(true);}public void unsetStoreId() {__isset_bit_vector.clear(__STOREID_ISSET_ID);}/** Returns true if field storeId is set (has been assigned a value) and false otherwise */public boolean isSetStoreId() {return __isset_bit_vector.get(__STOREID_ISSET_ID);}public void setStoreIdIsSet(boolean value) {__isset_bit_vector.set(__STOREID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case STORE_ID:if (value == null) {unsetStoreId();} else {setStoreId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case STORE_ID:return Long.valueOf(getStoreId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case STORE_ID:return isSetStoreId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getReceivePendingOrders_args)return this.equals((getReceivePendingOrders_args)that);return false;}public boolean equals(getReceivePendingOrders_args that) {if (that == null)return false;boolean this_present_storeId = true;boolean that_present_storeId = true;if (this_present_storeId || that_present_storeId) {if (!(this_present_storeId && that_present_storeId))return false;if (this.storeId != that.storeId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getReceivePendingOrders_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getReceivePendingOrders_args typedOther = (getReceivePendingOrders_args)other;lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());if (lastComparison != 0) {return lastComparison;}if (isSetStoreId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // STORE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.storeId = iprot.readI64();setStoreIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(STORE_ID_FIELD_DESC);oprot.writeI64(this.storeId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getReceivePendingOrders_args(");boolean first = true;sb.append("storeId:");sb.append(this.storeId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getReceivePendingOrders_result implements org.apache.thrift.TBase<getReceivePendingOrders_result, getReceivePendingOrders_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReceivePendingOrders_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Order> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReceivePendingOrders_result.class, metaDataMap);}public getReceivePendingOrders_result() {}public getReceivePendingOrders_result(List<Order> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getReceivePendingOrders_result(getReceivePendingOrders_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}}public getReceivePendingOrders_result deepCopy() {return new getReceivePendingOrders_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getReceivePendingOrders_result)return this.equals((getReceivePendingOrders_result)that);return false;}public boolean equals(getReceivePendingOrders_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getReceivePendingOrders_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getReceivePendingOrders_result typedOther = (getReceivePendingOrders_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list340 = iprot.readListBegin();this.success = new ArrayList<Order>(_list340.size);for (int _i341 = 0; _i341 < _list340.size; ++_i341){Order _elem342; // required_elem342 = new Order();_elem342.read(iprot);this.success.add(_elem342);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter343 : this.success){_iter343.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getReceivePendingOrders_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getReceivedAtStoreOrders_args implements org.apache.thrift.TBase<getReceivedAtStoreOrders_args, getReceivedAtStoreOrders_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReceivedAtStoreOrders_args");private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)1);private long storeId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {STORE_ID((short)1, "storeId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // STORE_IDreturn STORE_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __STOREID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReceivedAtStoreOrders_args.class, metaDataMap);}public getReceivedAtStoreOrders_args() {}public getReceivedAtStoreOrders_args(long storeId){this();this.storeId = storeId;setStoreIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getReceivedAtStoreOrders_args(getReceivedAtStoreOrders_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.storeId = other.storeId;}public getReceivedAtStoreOrders_args deepCopy() {return new getReceivedAtStoreOrders_args(this);}@Overridepublic void clear() {setStoreIdIsSet(false);this.storeId = 0;}public long getStoreId() {return this.storeId;}public void setStoreId(long storeId) {this.storeId = storeId;setStoreIdIsSet(true);}public void unsetStoreId() {__isset_bit_vector.clear(__STOREID_ISSET_ID);}/** Returns true if field storeId is set (has been assigned a value) and false otherwise */public boolean isSetStoreId() {return __isset_bit_vector.get(__STOREID_ISSET_ID);}public void setStoreIdIsSet(boolean value) {__isset_bit_vector.set(__STOREID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case STORE_ID:if (value == null) {unsetStoreId();} else {setStoreId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case STORE_ID:return Long.valueOf(getStoreId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case STORE_ID:return isSetStoreId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getReceivedAtStoreOrders_args)return this.equals((getReceivedAtStoreOrders_args)that);return false;}public boolean equals(getReceivedAtStoreOrders_args that) {if (that == null)return false;boolean this_present_storeId = true;boolean that_present_storeId = true;if (this_present_storeId || that_present_storeId) {if (!(this_present_storeId && that_present_storeId))return false;if (this.storeId != that.storeId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getReceivedAtStoreOrders_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getReceivedAtStoreOrders_args typedOther = (getReceivedAtStoreOrders_args)other;lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());if (lastComparison != 0) {return lastComparison;}if (isSetStoreId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // STORE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.storeId = iprot.readI64();setStoreIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(STORE_ID_FIELD_DESC);oprot.writeI64(this.storeId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getReceivedAtStoreOrders_args(");boolean first = true;sb.append("storeId:");sb.append(this.storeId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getReceivedAtStoreOrders_result implements org.apache.thrift.TBase<getReceivedAtStoreOrders_result, getReceivedAtStoreOrders_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReceivedAtStoreOrders_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Order> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReceivedAtStoreOrders_result.class, metaDataMap);}public getReceivedAtStoreOrders_result() {}public getReceivedAtStoreOrders_result(List<Order> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getReceivedAtStoreOrders_result(getReceivedAtStoreOrders_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}}public getReceivedAtStoreOrders_result deepCopy() {return new getReceivedAtStoreOrders_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getReceivedAtStoreOrders_result)return this.equals((getReceivedAtStoreOrders_result)that);return false;}public boolean equals(getReceivedAtStoreOrders_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getReceivedAtStoreOrders_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getReceivedAtStoreOrders_result typedOther = (getReceivedAtStoreOrders_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list344 = iprot.readListBegin();this.success = new ArrayList<Order>(_list344.size);for (int _i345 = 0; _i345 < _list344.size; ++_i345){Order _elem346; // required_elem346 = new Order();_elem346.read(iprot);this.success.add(_elem346);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter347 : this.success){_iter347.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getReceivedAtStoreOrders_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersCollectionAtStore_args implements org.apache.thrift.TBase<getOrdersCollectionAtStore_args, getOrdersCollectionAtStore_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersCollectionAtStore_args");private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField FROM_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("fromDate", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField TO_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("toDate", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField ONLY_COD_FIELD_DESC = new org.apache.thrift.protocol.TField("onlyCod", org.apache.thrift.protocol.TType.BOOL, (short)4);private long storeId; // requiredprivate long fromDate; // requiredprivate long toDate; // requiredprivate boolean onlyCod; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {STORE_ID((short)1, "storeId"),FROM_DATE((short)2, "fromDate"),TO_DATE((short)3, "toDate"),ONLY_COD((short)4, "onlyCod");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // STORE_IDreturn STORE_ID;case 2: // FROM_DATEreturn FROM_DATE;case 3: // TO_DATEreturn TO_DATE;case 4: // ONLY_CODreturn ONLY_COD;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __STOREID_ISSET_ID = 0;private static final int __FROMDATE_ISSET_ID = 1;private static final int __TODATE_ISSET_ID = 2;private static final int __ONLYCOD_ISSET_ID = 3;private BitSet __isset_bit_vector = new BitSet(4);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ONLY_COD, new org.apache.thrift.meta_data.FieldMetaData("onlyCod", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersCollectionAtStore_args.class, metaDataMap);}public getOrdersCollectionAtStore_args() {}public getOrdersCollectionAtStore_args(long storeId,long fromDate,long toDate,boolean onlyCod){this();this.storeId = storeId;setStoreIdIsSet(true);this.fromDate = fromDate;setFromDateIsSet(true);this.toDate = toDate;setToDateIsSet(true);this.onlyCod = onlyCod;setOnlyCodIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getOrdersCollectionAtStore_args(getOrdersCollectionAtStore_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.storeId = other.storeId;this.fromDate = other.fromDate;this.toDate = other.toDate;this.onlyCod = other.onlyCod;}public getOrdersCollectionAtStore_args deepCopy() {return new getOrdersCollectionAtStore_args(this);}@Overridepublic void clear() {setStoreIdIsSet(false);this.storeId = 0;setFromDateIsSet(false);this.fromDate = 0;setToDateIsSet(false);this.toDate = 0;setOnlyCodIsSet(false);this.onlyCod = false;}public long getStoreId() {return this.storeId;}public void setStoreId(long storeId) {this.storeId = storeId;setStoreIdIsSet(true);}public void unsetStoreId() {__isset_bit_vector.clear(__STOREID_ISSET_ID);}/** Returns true if field storeId is set (has been assigned a value) and false otherwise */public boolean isSetStoreId() {return __isset_bit_vector.get(__STOREID_ISSET_ID);}public void setStoreIdIsSet(boolean value) {__isset_bit_vector.set(__STOREID_ISSET_ID, value);}public long getFromDate() {return this.fromDate;}public void setFromDate(long fromDate) {this.fromDate = fromDate;setFromDateIsSet(true);}public void unsetFromDate() {__isset_bit_vector.clear(__FROMDATE_ISSET_ID);}/** Returns true if field fromDate is set (has been assigned a value) and false otherwise */public boolean isSetFromDate() {return __isset_bit_vector.get(__FROMDATE_ISSET_ID);}public void setFromDateIsSet(boolean value) {__isset_bit_vector.set(__FROMDATE_ISSET_ID, value);}public long getToDate() {return this.toDate;}public void setToDate(long toDate) {this.toDate = toDate;setToDateIsSet(true);}public void unsetToDate() {__isset_bit_vector.clear(__TODATE_ISSET_ID);}/** Returns true if field toDate is set (has been assigned a value) and false otherwise */public boolean isSetToDate() {return __isset_bit_vector.get(__TODATE_ISSET_ID);}public void setToDateIsSet(boolean value) {__isset_bit_vector.set(__TODATE_ISSET_ID, value);}public boolean isOnlyCod() {return this.onlyCod;}public void setOnlyCod(boolean onlyCod) {this.onlyCod = onlyCod;setOnlyCodIsSet(true);}public void unsetOnlyCod() {__isset_bit_vector.clear(__ONLYCOD_ISSET_ID);}/** Returns true if field onlyCod is set (has been assigned a value) and false otherwise */public boolean isSetOnlyCod() {return __isset_bit_vector.get(__ONLYCOD_ISSET_ID);}public void setOnlyCodIsSet(boolean value) {__isset_bit_vector.set(__ONLYCOD_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case STORE_ID:if (value == null) {unsetStoreId();} else {setStoreId((Long)value);}break;case FROM_DATE:if (value == null) {unsetFromDate();} else {setFromDate((Long)value);}break;case TO_DATE:if (value == null) {unsetToDate();} else {setToDate((Long)value);}break;case ONLY_COD:if (value == null) {unsetOnlyCod();} else {setOnlyCod((Boolean)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case STORE_ID:return Long.valueOf(getStoreId());case FROM_DATE:return Long.valueOf(getFromDate());case TO_DATE:return Long.valueOf(getToDate());case ONLY_COD:return Boolean.valueOf(isOnlyCod());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case STORE_ID:return isSetStoreId();case FROM_DATE:return isSetFromDate();case TO_DATE:return isSetToDate();case ONLY_COD:return isSetOnlyCod();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersCollectionAtStore_args)return this.equals((getOrdersCollectionAtStore_args)that);return false;}public boolean equals(getOrdersCollectionAtStore_args that) {if (that == null)return false;boolean this_present_storeId = true;boolean that_present_storeId = true;if (this_present_storeId || that_present_storeId) {if (!(this_present_storeId && that_present_storeId))return false;if (this.storeId != that.storeId)return false;}boolean this_present_fromDate = true;boolean that_present_fromDate = true;if (this_present_fromDate || that_present_fromDate) {if (!(this_present_fromDate && that_present_fromDate))return false;if (this.fromDate != that.fromDate)return false;}boolean this_present_toDate = true;boolean that_present_toDate = true;if (this_present_toDate || that_present_toDate) {if (!(this_present_toDate && that_present_toDate))return false;if (this.toDate != that.toDate)return false;}boolean this_present_onlyCod = true;boolean that_present_onlyCod = true;if (this_present_onlyCod || that_present_onlyCod) {if (!(this_present_onlyCod && that_present_onlyCod))return false;if (this.onlyCod != that.onlyCod)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersCollectionAtStore_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersCollectionAtStore_args typedOther = (getOrdersCollectionAtStore_args)other;lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());if (lastComparison != 0) {return lastComparison;}if (isSetStoreId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());if (lastComparison != 0) {return lastComparison;}if (isSetFromDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());if (lastComparison != 0) {return lastComparison;}if (isSetToDate()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOnlyCod()).compareTo(typedOther.isSetOnlyCod());if (lastComparison != 0) {return lastComparison;}if (isSetOnlyCod()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.onlyCod, typedOther.onlyCod);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // STORE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.storeId = iprot.readI64();setStoreIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // FROM_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.fromDate = iprot.readI64();setFromDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // TO_DATEif (field.type == org.apache.thrift.protocol.TType.I64) {this.toDate = iprot.readI64();setToDateIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // ONLY_CODif (field.type == org.apache.thrift.protocol.TType.BOOL) {this.onlyCod = iprot.readBool();setOnlyCodIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(STORE_ID_FIELD_DESC);oprot.writeI64(this.storeId);oprot.writeFieldEnd();oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);oprot.writeI64(this.fromDate);oprot.writeFieldEnd();oprot.writeFieldBegin(TO_DATE_FIELD_DESC);oprot.writeI64(this.toDate);oprot.writeFieldEnd();oprot.writeFieldBegin(ONLY_COD_FIELD_DESC);oprot.writeBool(this.onlyCod);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersCollectionAtStore_args(");boolean first = true;sb.append("storeId:");sb.append(this.storeId);first = false;if (!first) sb.append(", ");sb.append("fromDate:");sb.append(this.fromDate);first = false;if (!first) sb.append(", ");sb.append("toDate:");sb.append(this.toDate);first = false;if (!first) sb.append(", ");sb.append("onlyCod:");sb.append(this.onlyCod);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrdersCollectionAtStore_result implements org.apache.thrift.TBase<getOrdersCollectionAtStore_result, getOrdersCollectionAtStore_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrdersCollectionAtStore_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<Order> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrdersCollectionAtStore_result.class, metaDataMap);}public getOrdersCollectionAtStore_result() {}public getOrdersCollectionAtStore_result(List<Order> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getOrdersCollectionAtStore_result(getOrdersCollectionAtStore_result other) {if (other.isSetSuccess()) {List<Order> __this__success = new ArrayList<Order>();for (Order other_element : other.success) {__this__success.add(new Order(other_element));}this.success = __this__success;}}public getOrdersCollectionAtStore_result deepCopy() {return new getOrdersCollectionAtStore_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Order> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Order elem) {if (this.success == null) {this.success = new ArrayList<Order>();}this.success.add(elem);}public List<Order> getSuccess() {return this.success;}public void setSuccess(List<Order> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Order>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrdersCollectionAtStore_result)return this.equals((getOrdersCollectionAtStore_result)that);return false;}public boolean equals(getOrdersCollectionAtStore_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrdersCollectionAtStore_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrdersCollectionAtStore_result typedOther = (getOrdersCollectionAtStore_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list348 = iprot.readListBegin();this.success = new ArrayList<Order>(_list348.size);for (int _i349 = 0; _i349 < _list348.size; ++_i349){Order _elem350; // required_elem350 = new Order();_elem350.read(iprot);this.success.add(_elem350);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (Order _iter351 : this.success){_iter351.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrdersCollectionAtStore_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrderAttributeValue_args implements org.apache.thrift.TBase<getOrderAttributeValue_args, getOrderAttributeValue_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderAttributeValue_args");private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField ATTRIBUTE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("attributeName", org.apache.thrift.protocol.TType.STRING, (short)-1);private long orderId; // requiredprivate String attributeName; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ORDER_ID((short)1, "orderId"),ATTRIBUTE_NAME((short)-1, "attributeName");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ORDER_IDreturn ORDER_ID;case -1: // ATTRIBUTE_NAMEreturn ATTRIBUTE_NAME;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.ATTRIBUTE_NAME, new org.apache.thrift.meta_data.FieldMetaData("attributeName", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderAttributeValue_args.class, metaDataMap);}public getOrderAttributeValue_args() {}public getOrderAttributeValue_args(long orderId,String attributeName){this();this.orderId = orderId;setOrderIdIsSet(true);this.attributeName = attributeName;}/*** Performs a deep copy on <i>other</i>.*/public getOrderAttributeValue_args(getOrderAttributeValue_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.orderId = other.orderId;if (other.isSetAttributeName()) {this.attributeName = other.attributeName;}}public getOrderAttributeValue_args deepCopy() {return new getOrderAttributeValue_args(this);}@Overridepublic void clear() {setOrderIdIsSet(false);this.orderId = 0;this.attributeName = null;}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public String getAttributeName() {return this.attributeName;}public void setAttributeName(String attributeName) {this.attributeName = attributeName;}public void unsetAttributeName() {this.attributeName = null;}/** Returns true if field attributeName is set (has been assigned a value) and false otherwise */public boolean isSetAttributeName() {return this.attributeName != null;}public void setAttributeNameIsSet(boolean value) {if (!value) {this.attributeName = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case ATTRIBUTE_NAME:if (value == null) {unsetAttributeName();} else {setAttributeName((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ORDER_ID:return Long.valueOf(getOrderId());case ATTRIBUTE_NAME:return getAttributeName();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ORDER_ID:return isSetOrderId();case ATTRIBUTE_NAME:return isSetAttributeName();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderAttributeValue_args)return this.equals((getOrderAttributeValue_args)that);return false;}public boolean equals(getOrderAttributeValue_args that) {if (that == null)return false;boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_attributeName = true && this.isSetAttributeName();boolean that_present_attributeName = true && that.isSetAttributeName();if (this_present_attributeName || that_present_attributeName) {if (!(this_present_attributeName && that_present_attributeName))return false;if (!this.attributeName.equals(that.attributeName))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrderAttributeValue_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrderAttributeValue_args typedOther = (getOrderAttributeValue_args)other;lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetAttributeName()).compareTo(typedOther.isSetAttributeName());if (lastComparison != 0) {return lastComparison;}if (isSetAttributeName()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributeName, typedOther.attributeName);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case -1: // ATTRIBUTE_NAMEif (field.type == org.apache.thrift.protocol.TType.STRING) {this.attributeName = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.attributeName != null) {oprot.writeFieldBegin(ATTRIBUTE_NAME_FIELD_DESC);oprot.writeString(this.attributeName);oprot.writeFieldEnd();}oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderAttributeValue_args(");boolean first = true;sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("attributeName:");if (this.attributeName == null) {sb.append("null");} else {sb.append(this.attributeName);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getOrderAttributeValue_result implements org.apache.thrift.TBase<getOrderAttributeValue_result, getOrderAttributeValue_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderAttributeValue_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);private String success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderAttributeValue_result.class, metaDataMap);}public getOrderAttributeValue_result() {}public getOrderAttributeValue_result(String success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getOrderAttributeValue_result(getOrderAttributeValue_result other) {if (other.isSetSuccess()) {this.success = other.success;}}public getOrderAttributeValue_result deepCopy() {return new getOrderAttributeValue_result(this);}@Overridepublic void clear() {this.success = null;}public String getSuccess() {return this.success;}public void setSuccess(String success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((String)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderAttributeValue_result)return this.equals((getOrderAttributeValue_result)that);return false;}public boolean equals(getOrderAttributeValue_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrderAttributeValue_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrderAttributeValue_result typedOther = (getOrderAttributeValue_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRING) {this.success = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeString(this.success);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderAttributeValue_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class acceptOrderForItem_args implements org.apache.thrift.TBase<acceptOrderForItem_args, acceptOrderForItem_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("acceptOrderForItem_args");private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)3);private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)4);private long itemId; // requiredprivate long quantity; // requiredprivate long fulfilmentWarehouseId; // requiredprivate long billingWarehouseId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ITEM_ID((short)1, "itemId"),QUANTITY((short)2, "quantity"),FULFILMENT_WAREHOUSE_ID((short)3, "fulfilmentWarehouseId"),BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // ITEM_IDreturn ITEM_ID;case 2: // QUANTITYreturn QUANTITY;case 3: // FULFILMENT_WAREHOUSE_IDreturn FULFILMENT_WAREHOUSE_ID;case 4: // BILLING_WAREHOUSE_IDreturn BILLING_WAREHOUSE_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ITEMID_ISSET_ID = 0;private static final int __QUANTITY_ISSET_ID = 1;private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 2;private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;private BitSet __isset_bit_vector = new BitSet(4);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(acceptOrderForItem_args.class, metaDataMap);}public acceptOrderForItem_args() {}public acceptOrderForItem_args(long itemId,long quantity,long fulfilmentWarehouseId,long billingWarehouseId){this();this.itemId = itemId;setItemIdIsSet(true);this.quantity = quantity;setQuantityIsSet(true);this.fulfilmentWarehouseId = fulfilmentWarehouseId;setFulfilmentWarehouseIdIsSet(true);this.billingWarehouseId = billingWarehouseId;setBillingWarehouseIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public acceptOrderForItem_args(acceptOrderForItem_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.itemId = other.itemId;this.quantity = other.quantity;this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;this.billingWarehouseId = other.billingWarehouseId;}public acceptOrderForItem_args deepCopy() {return new acceptOrderForItem_args(this);}@Overridepublic void clear() {setItemIdIsSet(false);this.itemId = 0;setQuantityIsSet(false);this.quantity = 0;setFulfilmentWarehouseIdIsSet(false);this.fulfilmentWarehouseId = 0;setBillingWarehouseIdIsSet(false);this.billingWarehouseId = 0;}public long getItemId() {return this.itemId;}public void setItemId(long itemId) {this.itemId = itemId;setItemIdIsSet(true);}public void unsetItemId() {__isset_bit_vector.clear(__ITEMID_ISSET_ID);}/** Returns true if field itemId is set (has been assigned a value) and false otherwise */public boolean isSetItemId() {return __isset_bit_vector.get(__ITEMID_ISSET_ID);}public void setItemIdIsSet(boolean value) {__isset_bit_vector.set(__ITEMID_ISSET_ID, value);}public long getQuantity() {return this.quantity;}public void setQuantity(long quantity) {this.quantity = quantity;setQuantityIsSet(true);}public void unsetQuantity() {__isset_bit_vector.clear(__QUANTITY_ISSET_ID);}/** Returns true if field quantity is set (has been assigned a value) and false otherwise */public boolean isSetQuantity() {return __isset_bit_vector.get(__QUANTITY_ISSET_ID);}public void setQuantityIsSet(boolean value) {__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);}public long getFulfilmentWarehouseId() {return this.fulfilmentWarehouseId;}public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {this.fulfilmentWarehouseId = fulfilmentWarehouseId;setFulfilmentWarehouseIdIsSet(true);}public void unsetFulfilmentWarehouseId() {__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);}/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */public boolean isSetFulfilmentWarehouseId() {return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);}public void setFulfilmentWarehouseIdIsSet(boolean value) {__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);}public long getBillingWarehouseId() {return this.billingWarehouseId;}public void setBillingWarehouseId(long billingWarehouseId) {this.billingWarehouseId = billingWarehouseId;setBillingWarehouseIdIsSet(true);}public void unsetBillingWarehouseId() {__isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);}/** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */public boolean isSetBillingWarehouseId() {return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);}public void setBillingWarehouseIdIsSet(boolean value) {__isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ITEM_ID:if (value == null) {unsetItemId();} else {setItemId((Long)value);}break;case QUANTITY:if (value == null) {unsetQuantity();} else {setQuantity((Long)value);}break;case FULFILMENT_WAREHOUSE_ID:if (value == null) {unsetFulfilmentWarehouseId();} else {setFulfilmentWarehouseId((Long)value);}break;case BILLING_WAREHOUSE_ID:if (value == null) {unsetBillingWarehouseId();} else {setBillingWarehouseId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ITEM_ID:return Long.valueOf(getItemId());case QUANTITY:return Long.valueOf(getQuantity());case FULFILMENT_WAREHOUSE_ID:return Long.valueOf(getFulfilmentWarehouseId());case BILLING_WAREHOUSE_ID:return Long.valueOf(getBillingWarehouseId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ITEM_ID:return isSetItemId();case QUANTITY:return isSetQuantity();case FULFILMENT_WAREHOUSE_ID:return isSetFulfilmentWarehouseId();case BILLING_WAREHOUSE_ID:return isSetBillingWarehouseId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof acceptOrderForItem_args)return this.equals((acceptOrderForItem_args)that);return false;}public boolean equals(acceptOrderForItem_args that) {if (that == null)return false;boolean this_present_itemId = true;boolean that_present_itemId = true;if (this_present_itemId || that_present_itemId) {if (!(this_present_itemId && that_present_itemId))return false;if (this.itemId != that.itemId)return false;}boolean this_present_quantity = true;boolean that_present_quantity = true;if (this_present_quantity || that_present_quantity) {if (!(this_present_quantity && that_present_quantity))return false;if (this.quantity != that.quantity)return false;}boolean this_present_fulfilmentWarehouseId = true;boolean that_present_fulfilmentWarehouseId = true;if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))return false;if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)return false;}boolean this_present_billingWarehouseId = true;boolean that_present_billingWarehouseId = true;if (this_present_billingWarehouseId || that_present_billingWarehouseId) {if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))return false;if (this.billingWarehouseId != that.billingWarehouseId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(acceptOrderForItem_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;acceptOrderForItem_args typedOther = (acceptOrderForItem_args)other;lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());if (lastComparison != 0) {return lastComparison;}if (isSetItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());if (lastComparison != 0) {return lastComparison;}if (isSetQuantity()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());if (lastComparison != 0) {return lastComparison;}if (isSetFulfilmentWarehouseId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());if (lastComparison != 0) {return lastComparison;}if (isSetBillingWarehouseId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.itemId = iprot.readI64();setItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // QUANTITYif (field.type == org.apache.thrift.protocol.TType.I64) {this.quantity = iprot.readI64();setQuantityIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // FULFILMENT_WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.fulfilmentWarehouseId = iprot.readI64();setFulfilmentWarehouseIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // BILLING_WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.billingWarehouseId = iprot.readI64();setBillingWarehouseIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);oprot.writeI64(this.itemId);oprot.writeFieldEnd();oprot.writeFieldBegin(QUANTITY_FIELD_DESC);oprot.writeI64(this.quantity);oprot.writeFieldEnd();oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.fulfilmentWarehouseId);oprot.writeFieldEnd();oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.billingWarehouseId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("acceptOrderForItem_args(");boolean first = true;sb.append("itemId:");sb.append(this.itemId);first = false;if (!first) sb.append(", ");sb.append("quantity:");sb.append(this.quantity);first = false;if (!first) sb.append(", ");sb.append("fulfilmentWarehouseId:");sb.append(this.fulfilmentWarehouseId);first = false;if (!first) sb.append(", ");sb.append("billingWarehouseId:");sb.append(this.billingWarehouseId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class acceptOrderForItem_result implements org.apache.thrift.TBase<acceptOrderForItem_result, acceptOrderForItem_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("acceptOrderForItem_result");/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {;private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(acceptOrderForItem_result.class, metaDataMap);}public acceptOrderForItem_result() {}/*** Performs a deep copy on <i>other</i>.*/public acceptOrderForItem_result(acceptOrderForItem_result other) {}public acceptOrderForItem_result deepCopy() {return new acceptOrderForItem_result(this);}@Overridepublic void clear() {}public void setFieldValue(_Fields field, Object value) {switch (field) {}}public Object getFieldValue(_Fields field) {switch (field) {}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof acceptOrderForItem_result)return this.equals((acceptOrderForItem_result)that);return false;}public boolean equals(acceptOrderForItem_result that) {if (that == null)return false;return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(acceptOrderForItem_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;acceptOrderForItem_result typedOther = (acceptOrderForItem_result)other;return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("acceptOrderForItem_result(");boolean first = true;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class createRechargeOrder_args implements org.apache.thrift.TBase<createRechargeOrder_args, createRechargeOrder_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRechargeOrder_args");private static final org.apache.thrift.protocol.TField RECHARGE_ORDER_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeOrder", org.apache.thrift.protocol.TType.STRUCT, (short)1);private RechargeOrder rechargeOrder; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {RECHARGE_ORDER((short)1, "rechargeOrder");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // RECHARGE_ORDERreturn RECHARGE_ORDER;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.RECHARGE_ORDER, new org.apache.thrift.meta_data.FieldMetaData("rechargeOrder", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RechargeOrder.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRechargeOrder_args.class, metaDataMap);}public createRechargeOrder_args() {}public createRechargeOrder_args(RechargeOrder rechargeOrder){this();this.rechargeOrder = rechargeOrder;}/*** Performs a deep copy on <i>other</i>.*/public createRechargeOrder_args(createRechargeOrder_args other) {if (other.isSetRechargeOrder()) {this.rechargeOrder = new RechargeOrder(other.rechargeOrder);}}public createRechargeOrder_args deepCopy() {return new createRechargeOrder_args(this);}@Overridepublic void clear() {this.rechargeOrder = null;}public RechargeOrder getRechargeOrder() {return this.rechargeOrder;}public void setRechargeOrder(RechargeOrder rechargeOrder) {this.rechargeOrder = rechargeOrder;}public void unsetRechargeOrder() {this.rechargeOrder = null;}/** Returns true if field rechargeOrder is set (has been assigned a value) and false otherwise */public boolean isSetRechargeOrder() {return this.rechargeOrder != null;}public void setRechargeOrderIsSet(boolean value) {if (!value) {this.rechargeOrder = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case RECHARGE_ORDER:if (value == null) {unsetRechargeOrder();} else {setRechargeOrder((RechargeOrder)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case RECHARGE_ORDER:return getRechargeOrder();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case RECHARGE_ORDER:return isSetRechargeOrder();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof createRechargeOrder_args)return this.equals((createRechargeOrder_args)that);return false;}public boolean equals(createRechargeOrder_args that) {if (that == null)return false;boolean this_present_rechargeOrder = true && this.isSetRechargeOrder();boolean that_present_rechargeOrder = true && that.isSetRechargeOrder();if (this_present_rechargeOrder || that_present_rechargeOrder) {if (!(this_present_rechargeOrder && that_present_rechargeOrder))return false;if (!this.rechargeOrder.equals(that.rechargeOrder))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(createRechargeOrder_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;createRechargeOrder_args typedOther = (createRechargeOrder_args)other;lastComparison = Boolean.valueOf(isSetRechargeOrder()).compareTo(typedOther.isSetRechargeOrder());if (lastComparison != 0) {return lastComparison;}if (isSetRechargeOrder()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeOrder, typedOther.rechargeOrder);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // RECHARGE_ORDERif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.rechargeOrder = new RechargeOrder();this.rechargeOrder.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.rechargeOrder != null) {oprot.writeFieldBegin(RECHARGE_ORDER_FIELD_DESC);this.rechargeOrder.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("createRechargeOrder_args(");boolean first = true;sb.append("rechargeOrder:");if (this.rechargeOrder == null) {sb.append("null");} else {sb.append(this.rechargeOrder);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class createRechargeOrder_result implements org.apache.thrift.TBase<createRechargeOrder_result, createRechargeOrder_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRechargeOrder_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private RechargeOrder success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RechargeOrder.class)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRechargeOrder_result.class, metaDataMap);}public createRechargeOrder_result() {}public createRechargeOrder_result(RechargeOrder success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public createRechargeOrder_result(createRechargeOrder_result other) {if (other.isSetSuccess()) {this.success = new RechargeOrder(other.success);}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public createRechargeOrder_result deepCopy() {return new createRechargeOrder_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public RechargeOrder getSuccess() {return this.success;}public void setSuccess(RechargeOrder success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((RechargeOrder)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof createRechargeOrder_result)return this.equals((createRechargeOrder_result)that);return false;}public boolean equals(createRechargeOrder_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(createRechargeOrder_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;createRechargeOrder_result typedOther = (createRechargeOrder_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new RechargeOrder();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("createRechargeOrder_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateRechargeOrderStatus_args implements org.apache.thrift.TBase<updateRechargeOrderStatus_args, updateRechargeOrderStatus_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateRechargeOrderStatus_args");private static final org.apache.thrift.protocol.TField RECHARGE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeOrderId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField RECHARGE_ORDER_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeOrderStatus", org.apache.thrift.protocol.TType.I32, (short)2);private long rechargeOrderId; // requiredprivate RechargeOrderStatus rechargeOrderStatus; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {RECHARGE_ORDER_ID((short)1, "rechargeOrderId"),/**** @see RechargeOrderStatus*/RECHARGE_ORDER_STATUS((short)2, "rechargeOrderStatus");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // RECHARGE_ORDER_IDreturn RECHARGE_ORDER_ID;case 2: // RECHARGE_ORDER_STATUSreturn RECHARGE_ORDER_STATUS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __RECHARGEORDERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.RECHARGE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("rechargeOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.RECHARGE_ORDER_STATUS, new org.apache.thrift.meta_data.FieldMetaData("rechargeOrderStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeOrderStatus.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateRechargeOrderStatus_args.class, metaDataMap);}public updateRechargeOrderStatus_args() {}public updateRechargeOrderStatus_args(long rechargeOrderId,RechargeOrderStatus rechargeOrderStatus){this();this.rechargeOrderId = rechargeOrderId;setRechargeOrderIdIsSet(true);this.rechargeOrderStatus = rechargeOrderStatus;}/*** Performs a deep copy on <i>other</i>.*/public updateRechargeOrderStatus_args(updateRechargeOrderStatus_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.rechargeOrderId = other.rechargeOrderId;if (other.isSetRechargeOrderStatus()) {this.rechargeOrderStatus = other.rechargeOrderStatus;}}public updateRechargeOrderStatus_args deepCopy() {return new updateRechargeOrderStatus_args(this);}@Overridepublic void clear() {setRechargeOrderIdIsSet(false);this.rechargeOrderId = 0;this.rechargeOrderStatus = null;}public long getRechargeOrderId() {return this.rechargeOrderId;}public void setRechargeOrderId(long rechargeOrderId) {this.rechargeOrderId = rechargeOrderId;setRechargeOrderIdIsSet(true);}public void unsetRechargeOrderId() {__isset_bit_vector.clear(__RECHARGEORDERID_ISSET_ID);}/** Returns true if field rechargeOrderId is set (has been assigned a value) and false otherwise */public boolean isSetRechargeOrderId() {return __isset_bit_vector.get(__RECHARGEORDERID_ISSET_ID);}public void setRechargeOrderIdIsSet(boolean value) {__isset_bit_vector.set(__RECHARGEORDERID_ISSET_ID, value);}/**** @see RechargeOrderStatus*/public RechargeOrderStatus getRechargeOrderStatus() {return this.rechargeOrderStatus;}/**** @see RechargeOrderStatus*/public void setRechargeOrderStatus(RechargeOrderStatus rechargeOrderStatus) {this.rechargeOrderStatus = rechargeOrderStatus;}public void unsetRechargeOrderStatus() {this.rechargeOrderStatus = null;}/** Returns true if field rechargeOrderStatus is set (has been assigned a value) and false otherwise */public boolean isSetRechargeOrderStatus() {return this.rechargeOrderStatus != null;}public void setRechargeOrderStatusIsSet(boolean value) {if (!value) {this.rechargeOrderStatus = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case RECHARGE_ORDER_ID:if (value == null) {unsetRechargeOrderId();} else {setRechargeOrderId((Long)value);}break;case RECHARGE_ORDER_STATUS:if (value == null) {unsetRechargeOrderStatus();} else {setRechargeOrderStatus((RechargeOrderStatus)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case RECHARGE_ORDER_ID:return Long.valueOf(getRechargeOrderId());case RECHARGE_ORDER_STATUS:return getRechargeOrderStatus();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case RECHARGE_ORDER_ID:return isSetRechargeOrderId();case RECHARGE_ORDER_STATUS:return isSetRechargeOrderStatus();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateRechargeOrderStatus_args)return this.equals((updateRechargeOrderStatus_args)that);return false;}public boolean equals(updateRechargeOrderStatus_args that) {if (that == null)return false;boolean this_present_rechargeOrderId = true;boolean that_present_rechargeOrderId = true;if (this_present_rechargeOrderId || that_present_rechargeOrderId) {if (!(this_present_rechargeOrderId && that_present_rechargeOrderId))return false;if (this.rechargeOrderId != that.rechargeOrderId)return false;}boolean this_present_rechargeOrderStatus = true && this.isSetRechargeOrderStatus();boolean that_present_rechargeOrderStatus = true && that.isSetRechargeOrderStatus();if (this_present_rechargeOrderStatus || that_present_rechargeOrderStatus) {if (!(this_present_rechargeOrderStatus && that_present_rechargeOrderStatus))return false;if (!this.rechargeOrderStatus.equals(that.rechargeOrderStatus))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateRechargeOrderStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateRechargeOrderStatus_args typedOther = (updateRechargeOrderStatus_args)other;lastComparison = Boolean.valueOf(isSetRechargeOrderId()).compareTo(typedOther.isSetRechargeOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetRechargeOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeOrderId, typedOther.rechargeOrderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetRechargeOrderStatus()).compareTo(typedOther.isSetRechargeOrderStatus());if (lastComparison != 0) {return lastComparison;}if (isSetRechargeOrderStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeOrderStatus, typedOther.rechargeOrderStatus);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // RECHARGE_ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.rechargeOrderId = iprot.readI64();setRechargeOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // RECHARGE_ORDER_STATUSif (field.type == org.apache.thrift.protocol.TType.I32) {this.rechargeOrderStatus = RechargeOrderStatus.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(RECHARGE_ORDER_ID_FIELD_DESC);oprot.writeI64(this.rechargeOrderId);oprot.writeFieldEnd();if (this.rechargeOrderStatus != null) {oprot.writeFieldBegin(RECHARGE_ORDER_STATUS_FIELD_DESC);oprot.writeI32(this.rechargeOrderStatus.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateRechargeOrderStatus_args(");boolean first = true;sb.append("rechargeOrderId:");sb.append(this.rechargeOrderId);first = false;if (!first) sb.append(", ");sb.append("rechargeOrderStatus:");if (this.rechargeOrderStatus == null) {sb.append("null");} else {sb.append(this.rechargeOrderStatus);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class updateRechargeOrderStatus_result implements org.apache.thrift.TBase<updateRechargeOrderStatus_result, updateRechargeOrderStatus_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateRechargeOrderStatus_result");private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateRechargeOrderStatus_result.class, metaDataMap);}public updateRechargeOrderStatus_result() {}public updateRechargeOrderStatus_result(TransactionServiceException ex){this();this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public updateRechargeOrderStatus_result(updateRechargeOrderStatus_result other) {if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public updateRechargeOrderStatus_result deepCopy() {return new updateRechargeOrderStatus_result(this);}@Overridepublic void clear() {this.ex = null;}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof updateRechargeOrderStatus_result)return this.equals((updateRechargeOrderStatus_result)that);return false;}public boolean equals(updateRechargeOrderStatus_result that) {if (that == null)return false;boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(updateRechargeOrderStatus_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;updateRechargeOrderStatus_result typedOther = (updateRechargeOrderStatus_result)other;lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("updateRechargeOrderStatus_result(");boolean first = true;sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class activateRechargeTxn_args implements org.apache.thrift.TBase<activateRechargeTxn_args, activateRechargeTxn_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("activateRechargeTxn_args");private static final org.apache.thrift.protocol.TField RECHARGE_COUPONS_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeCoupons", org.apache.thrift.protocol.TType.LIST, (short)1);private List<RechargeCoupon> rechargeCoupons; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {RECHARGE_COUPONS((short)1, "rechargeCoupons");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // RECHARGE_COUPONSreturn RECHARGE_COUPONS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.RECHARGE_COUPONS, new org.apache.thrift.meta_data.FieldMetaData("rechargeCoupons", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RechargeCoupon.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(activateRechargeTxn_args.class, metaDataMap);}public activateRechargeTxn_args() {}public activateRechargeTxn_args(List<RechargeCoupon> rechargeCoupons){this();this.rechargeCoupons = rechargeCoupons;}/*** Performs a deep copy on <i>other</i>.*/public activateRechargeTxn_args(activateRechargeTxn_args other) {if (other.isSetRechargeCoupons()) {List<RechargeCoupon> __this__rechargeCoupons = new ArrayList<RechargeCoupon>();for (RechargeCoupon other_element : other.rechargeCoupons) {__this__rechargeCoupons.add(new RechargeCoupon(other_element));}this.rechargeCoupons = __this__rechargeCoupons;}}public activateRechargeTxn_args deepCopy() {return new activateRechargeTxn_args(this);}@Overridepublic void clear() {this.rechargeCoupons = null;}public int getRechargeCouponsSize() {return (this.rechargeCoupons == null) ? 0 : this.rechargeCoupons.size();}public java.util.Iterator<RechargeCoupon> getRechargeCouponsIterator() {return (this.rechargeCoupons == null) ? null : this.rechargeCoupons.iterator();}public void addToRechargeCoupons(RechargeCoupon elem) {if (this.rechargeCoupons == null) {this.rechargeCoupons = new ArrayList<RechargeCoupon>();}this.rechargeCoupons.add(elem);}public List<RechargeCoupon> getRechargeCoupons() {return this.rechargeCoupons;}public void setRechargeCoupons(List<RechargeCoupon> rechargeCoupons) {this.rechargeCoupons = rechargeCoupons;}public void unsetRechargeCoupons() {this.rechargeCoupons = null;}/** Returns true if field rechargeCoupons is set (has been assigned a value) and false otherwise */public boolean isSetRechargeCoupons() {return this.rechargeCoupons != null;}public void setRechargeCouponsIsSet(boolean value) {if (!value) {this.rechargeCoupons = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case RECHARGE_COUPONS:if (value == null) {unsetRechargeCoupons();} else {setRechargeCoupons((List<RechargeCoupon>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case RECHARGE_COUPONS:return getRechargeCoupons();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case RECHARGE_COUPONS:return isSetRechargeCoupons();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof activateRechargeTxn_args)return this.equals((activateRechargeTxn_args)that);return false;}public boolean equals(activateRechargeTxn_args that) {if (that == null)return false;boolean this_present_rechargeCoupons = true && this.isSetRechargeCoupons();boolean that_present_rechargeCoupons = true && that.isSetRechargeCoupons();if (this_present_rechargeCoupons || that_present_rechargeCoupons) {if (!(this_present_rechargeCoupons && that_present_rechargeCoupons))return false;if (!this.rechargeCoupons.equals(that.rechargeCoupons))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(activateRechargeTxn_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;activateRechargeTxn_args typedOther = (activateRechargeTxn_args)other;lastComparison = Boolean.valueOf(isSetRechargeCoupons()).compareTo(typedOther.isSetRechargeCoupons());if (lastComparison != 0) {return lastComparison;}if (isSetRechargeCoupons()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeCoupons, typedOther.rechargeCoupons);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // RECHARGE_COUPONSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list352 = iprot.readListBegin();this.rechargeCoupons = new ArrayList<RechargeCoupon>(_list352.size);for (int _i353 = 0; _i353 < _list352.size; ++_i353){RechargeCoupon _elem354; // required_elem354 = new RechargeCoupon();_elem354.read(iprot);this.rechargeCoupons.add(_elem354);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.rechargeCoupons != null) {oprot.writeFieldBegin(RECHARGE_COUPONS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.rechargeCoupons.size()));for (RechargeCoupon _iter355 : this.rechargeCoupons){_iter355.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("activateRechargeTxn_args(");boolean first = true;sb.append("rechargeCoupons:");if (this.rechargeCoupons == null) {sb.append("null");} else {sb.append(this.rechargeCoupons);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class activateRechargeTxn_result implements org.apache.thrift.TBase<activateRechargeTxn_result, activateRechargeTxn_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("activateRechargeTxn_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);private RechargeResponse success; // requiredprivate TransactionServiceException ex; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;case 1: // EXreturn EX;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RechargeResponse.class)));tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(activateRechargeTxn_result.class, metaDataMap);}public activateRechargeTxn_result() {}public activateRechargeTxn_result(RechargeResponse success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public activateRechargeTxn_result(activateRechargeTxn_result other) {if (other.isSetSuccess()) {this.success = new RechargeResponse(other.success);}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public activateRechargeTxn_result deepCopy() {return new activateRechargeTxn_result(this);}@Overridepublic void clear() {this.success = null;this.ex = null;}public RechargeResponse getSuccess() {return this.success;}public void setSuccess(RechargeResponse success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public void setEx(TransactionServiceException ex) {this.ex = ex;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been assigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((RechargeResponse)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof activateRechargeTxn_result)return this.equals((activateRechargeTxn_result)that);return false;}public boolean equals(activateRechargeTxn_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(activateRechargeTxn_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;activateRechargeTxn_result typedOther = (activateRechargeTxn_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());if (lastComparison != 0) {return lastComparison;}if (isSetEx()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.success = new RechargeResponse();this.success.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 1: // EXif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("activateRechargeTxn_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getRechargeOrders_args implements org.apache.thrift.TBase<getRechargeOrders_args, getRechargeOrders_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeOrders_args");private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerId", org.apache.thrift.protocol.TType.I64, (short)1);private long customerId; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CUSTOMER_ID((short)1, "customerId");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CUSTOMER_IDreturn CUSTOMER_ID;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CUSTOMERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRechargeOrders_args.class, metaDataMap);}public getRechargeOrders_args() {}public getRechargeOrders_args(long customerId){this();this.customerId = customerId;setCustomerIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getRechargeOrders_args(getRechargeOrders_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.customerId = other.customerId;}public getRechargeOrders_args deepCopy() {return new getRechargeOrders_args(this);}@Overridepublic void clear() {setCustomerIdIsSet(false);this.customerId = 0;}public long getCustomerId() {return this.customerId;}public void setCustomerId(long customerId) {this.customerId = customerId;setCustomerIdIsSet(true);}public void unsetCustomerId() {__isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);}/** Returns true if field customerId is set (has been assigned a value) and false otherwise */public boolean isSetCustomerId() {return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);}public void setCustomerIdIsSet(boolean value) {__isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case CUSTOMER_ID:if (value == null) {unsetCustomerId();} else {setCustomerId((Long)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CUSTOMER_ID:return Long.valueOf(getCustomerId());}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CUSTOMER_ID:return isSetCustomerId();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getRechargeOrders_args)return this.equals((getRechargeOrders_args)that);return false;}public boolean equals(getRechargeOrders_args that) {if (that == null)return false;boolean this_present_customerId = true;boolean that_present_customerId = true;if (this_present_customerId || that_present_customerId) {if (!(this_present_customerId && that_present_customerId))return false;if (this.customerId != that.customerId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getRechargeOrders_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getRechargeOrders_args typedOther = (getRechargeOrders_args)other;lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());if (lastComparison != 0) {return lastComparison;}if (isSetCustomerId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CUSTOMER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.customerId = iprot.readI64();setCustomerIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);oprot.writeI64(this.customerId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getRechargeOrders_args(");boolean first = true;sb.append("customerId:");sb.append(this.customerId);first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getRechargeOrders_result implements org.apache.thrift.TBase<getRechargeOrders_result, getRechargeOrders_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeOrders_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<RechargeOrder> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RechargeOrder.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRechargeOrders_result.class, metaDataMap);}public getRechargeOrders_result() {}public getRechargeOrders_result(List<RechargeOrder> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getRechargeOrders_result(getRechargeOrders_result other) {if (other.isSetSuccess()) {List<RechargeOrder> __this__success = new ArrayList<RechargeOrder>();for (RechargeOrder other_element : other.success) {__this__success.add(new RechargeOrder(other_element));}this.success = __this__success;}}public getRechargeOrders_result deepCopy() {return new getRechargeOrders_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<RechargeOrder> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(RechargeOrder elem) {if (this.success == null) {this.success = new ArrayList<RechargeOrder>();}this.success.add(elem);}public List<RechargeOrder> getSuccess() {return this.success;}public void setSuccess(List<RechargeOrder> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<RechargeOrder>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getRechargeOrders_result)return this.equals((getRechargeOrders_result)that);return false;}public boolean equals(getRechargeOrders_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getRechargeOrders_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getRechargeOrders_result typedOther = (getRechargeOrders_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list356 = iprot.readListBegin();this.success = new ArrayList<RechargeOrder>(_list356.size);for (int _i357 = 0; _i357 < _list356.size; ++_i357){RechargeOrder _elem358; // required_elem358 = new RechargeOrder();_elem358.read(iprot);this.success.add(_elem358);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (RechargeOrder _iter359 : this.success){_iter359.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getRechargeOrders_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getRechargeCoupons_args implements org.apache.thrift.TBase<getRechargeCoupons_args, getRechargeCoupons_args._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeCoupons_args");private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerId", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField RECHARGE_COUPON_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeCouponStatus", org.apache.thrift.protocol.TType.I32, (short)2);private long customerId; // requiredprivate RechargeCouponStatus rechargeCouponStatus; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {CUSTOMER_ID((short)1, "customerId"),/**** @see RechargeCouponStatus*/RECHARGE_COUPON_STATUS((short)2, "rechargeCouponStatus");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // CUSTOMER_IDreturn CUSTOMER_ID;case 2: // RECHARGE_COUPON_STATUSreturn RECHARGE_COUPON_STATUS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CUSTOMERID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.RECHARGE_COUPON_STATUS, new org.apache.thrift.meta_data.FieldMetaData("rechargeCouponStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeCouponStatus.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRechargeCoupons_args.class, metaDataMap);}public getRechargeCoupons_args() {}public getRechargeCoupons_args(long customerId,RechargeCouponStatus rechargeCouponStatus){this();this.customerId = customerId;setCustomerIdIsSet(true);this.rechargeCouponStatus = rechargeCouponStatus;}/*** Performs a deep copy on <i>other</i>.*/public getRechargeCoupons_args(getRechargeCoupons_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.customerId = other.customerId;if (other.isSetRechargeCouponStatus()) {this.rechargeCouponStatus = other.rechargeCouponStatus;}}public getRechargeCoupons_args deepCopy() {return new getRechargeCoupons_args(this);}@Overridepublic void clear() {setCustomerIdIsSet(false);this.customerId = 0;this.rechargeCouponStatus = null;}public long getCustomerId() {return this.customerId;}public void setCustomerId(long customerId) {this.customerId = customerId;setCustomerIdIsSet(true);}public void unsetCustomerId() {__isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);}/** Returns true if field customerId is set (has been assigned a value) and false otherwise */public boolean isSetCustomerId() {return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);}public void setCustomerIdIsSet(boolean value) {__isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);}/**** @see RechargeCouponStatus*/public RechargeCouponStatus getRechargeCouponStatus() {return this.rechargeCouponStatus;}/**** @see RechargeCouponStatus*/public void setRechargeCouponStatus(RechargeCouponStatus rechargeCouponStatus) {this.rechargeCouponStatus = rechargeCouponStatus;}public void unsetRechargeCouponStatus() {this.rechargeCouponStatus = null;}/** Returns true if field rechargeCouponStatus is set (has been assigned a value) and false otherwise */public boolean isSetRechargeCouponStatus() {return this.rechargeCouponStatus != null;}public void setRechargeCouponStatusIsSet(boolean value) {if (!value) {this.rechargeCouponStatus = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CUSTOMER_ID:if (value == null) {unsetCustomerId();} else {setCustomerId((Long)value);}break;case RECHARGE_COUPON_STATUS:if (value == null) {unsetRechargeCouponStatus();} else {setRechargeCouponStatus((RechargeCouponStatus)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case CUSTOMER_ID:return Long.valueOf(getCustomerId());case RECHARGE_COUPON_STATUS:return getRechargeCouponStatus();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case CUSTOMER_ID:return isSetCustomerId();case RECHARGE_COUPON_STATUS:return isSetRechargeCouponStatus();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getRechargeCoupons_args)return this.equals((getRechargeCoupons_args)that);return false;}public boolean equals(getRechargeCoupons_args that) {if (that == null)return false;boolean this_present_customerId = true;boolean that_present_customerId = true;if (this_present_customerId || that_present_customerId) {if (!(this_present_customerId && that_present_customerId))return false;if (this.customerId != that.customerId)return false;}boolean this_present_rechargeCouponStatus = true && this.isSetRechargeCouponStatus();boolean that_present_rechargeCouponStatus = true && that.isSetRechargeCouponStatus();if (this_present_rechargeCouponStatus || that_present_rechargeCouponStatus) {if (!(this_present_rechargeCouponStatus && that_present_rechargeCouponStatus))return false;if (!this.rechargeCouponStatus.equals(that.rechargeCouponStatus))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getRechargeCoupons_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getRechargeCoupons_args typedOther = (getRechargeCoupons_args)other;lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());if (lastComparison != 0) {return lastComparison;}if (isSetCustomerId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetRechargeCouponStatus()).compareTo(typedOther.isSetRechargeCouponStatus());if (lastComparison != 0) {return lastComparison;}if (isSetRechargeCouponStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeCouponStatus, typedOther.rechargeCouponStatus);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // CUSTOMER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.customerId = iprot.readI64();setCustomerIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // RECHARGE_COUPON_STATUSif (field.type == org.apache.thrift.protocol.TType.I32) {this.rechargeCouponStatus = RechargeCouponStatus.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);oprot.writeI64(this.customerId);oprot.writeFieldEnd();if (this.rechargeCouponStatus != null) {oprot.writeFieldBegin(RECHARGE_COUPON_STATUS_FIELD_DESC);oprot.writeI32(this.rechargeCouponStatus.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getRechargeCoupons_args(");boolean first = true;sb.append("customerId:");sb.append(this.customerId);first = false;if (!first) sb.append(", ");sb.append("rechargeCouponStatus:");if (this.rechargeCouponStatus == null) {sb.append("null");} else {sb.append(this.rechargeCouponStatus);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}public static class getRechargeCoupons_result implements org.apache.thrift.TBase<getRechargeCoupons_result, getRechargeCoupons_result._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRechargeCoupons_result");private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);private List<RechargeCoupon> success; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {SUCCESS((short)0, "success");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 0: // SUCCESSreturn SUCCESS;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RechargeCoupon.class))));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRechargeCoupons_result.class, metaDataMap);}public getRechargeCoupons_result() {}public getRechargeCoupons_result(List<RechargeCoupon> success){this();this.success = success;}/*** Performs a deep copy on <i>other</i>.*/public getRechargeCoupons_result(getRechargeCoupons_result other) {if (other.isSetSuccess()) {List<RechargeCoupon> __this__success = new ArrayList<RechargeCoupon>();for (RechargeCoupon other_element : other.success) {__this__success.add(new RechargeCoupon(other_element));}this.success = __this__success;}}public getRechargeCoupons_result deepCopy() {return new getRechargeCoupons_result(this);}@Overridepublic void clear() {this.success = null;}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<RechargeCoupon> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(RechargeCoupon elem) {if (this.success == null) {this.success = new ArrayList<RechargeCoupon>();}this.success.add(elem);}public List<RechargeCoupon> getSuccess() {return this.success;}public void setSuccess(List<RechargeCoupon> success) {this.success = success;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been assigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<RechargeCoupon>)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case SUCCESS:return isSetSuccess();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getRechargeCoupons_result)return this.equals((getRechargeCoupons_result)that);return false;}public boolean equals(getRechargeCoupons_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getRechargeCoupons_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getRechargeCoupons_result typedOther = (getRechargeCoupons_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());if (lastComparison != 0) {return lastComparison;}if (isSetSuccess()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 0: // SUCCESSif (field.type == org.apache.thrift.protocol.TType.LIST) {{org.apache.thrift.protocol.TList _list360 = iprot.readListBegin();this.success = new ArrayList<RechargeCoupon>(_list360.size);for (int _i361 = 0; _i361 < _list360.size; ++_i361){RechargeCoupon _elem362; // required_elem362 = new RechargeCoupon();_elem362.read(iprot);this.success.add(_elem362);}iprot.readListEnd();}} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));for (RechargeCoupon _iter363 : this.success){_iter363.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getRechargeCoupons_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}}